From b723dd98aae9452567b7799f350348c7fd963845 Mon Sep 17 00:00:00 2001 From: Nicolas VERVELLE Date: Wed, 18 Sep 2024 17:24:26 +0200 Subject: [PATCH] issue-1960: Add nullability annotations to Java generated clients Modifications: * Run export_docs_generator.sh script to update samples --- .../org/openapitools/client/model/Bird.java | 10 +- .../openapitools/client/model/Category.java | 10 +- .../openapitools/client/model/DataQuery.java | 19 ++- .../client/model/DefaultValue.java | 40 +++-- .../client/model/NumberPropertiesOnly.java | 15 +- .../org/openapitools/client/model/Pet.java | 30 ++-- .../org/openapitools/client/model/Query.java | 10 +- .../org/openapitools/client/model/Tag.java | 10 +- .../TestFormObjectMultipartRequestMarker.java | 5 +- ...deTrueObjectAllOfQueryObjectParameter.java | 20 ++- ...deTrueArrayStringQueryObjectParameter.java | 5 +- .../org/openapitools/client/model/Bird.java | 10 +- .../openapitools/client/model/Category.java | 10 +- .../openapitools/client/model/DataQuery.java | 15 +- .../client/model/DefaultValue.java | 33 ++-- .../client/model/NumberPropertiesOnly.java | 15 +- .../org/openapitools/client/model/Pet.java | 28 ++-- .../org/openapitools/client/model/Query.java | 9 +- .../org/openapitools/client/model/Tag.java | 10 +- .../TestFormObjectMultipartRequestMarker.java | 5 +- ...deTrueObjectAllOfQueryObjectParameter.java | 20 ++- ...deTrueArrayStringQueryObjectParameter.java | 4 +- .../org/openapitools/client/model/Bird.java | 10 +- .../openapitools/client/model/Category.java | 10 +- .../openapitools/client/model/DataQuery.java | 19 ++- .../client/model/DefaultValue.java | 37 +++-- .../client/model/NumberPropertiesOnly.java | 15 +- .../org/openapitools/client/model/Pet.java | 30 ++-- .../org/openapitools/client/model/Query.java | 10 +- .../org/openapitools/client/model/Tag.java | 10 +- .../TestFormObjectMultipartRequestMarker.java | 5 +- ...deTrueObjectAllOfQueryObjectParameter.java | 20 ++- ...deTrueArrayStringQueryObjectParameter.java | 5 +- .../openapitools/client/model/Category.java | 10 +- .../client/model/ModelApiResponse.java | 15 +- .../org/openapitools/client/model/Order.java | 30 ++-- .../org/openapitools/client/model/Pet.java | 30 ++-- .../org/openapitools/client/model/Tag.java | 10 +- .../org/openapitools/client/model/User.java | 40 +++-- .../org/openapitools/client/model/Bird.java | 10 +- .../openapitools/client/model/Category.java | 10 +- .../openapitools/client/model/DataQuery.java | 15 +- .../client/model/DefaultValue.java | 40 +++-- .../client/model/NumberPropertiesOnly.java | 15 +- .../org/openapitools/client/model/Pet.java | 30 ++-- .../org/openapitools/client/model/Query.java | 10 +- .../org/openapitools/client/model/Tag.java | 10 +- .../TestFormObjectMultipartRequestMarker.java | 5 +- ...deTrueObjectAllOfQueryObjectParameter.java | 20 ++- ...deTrueArrayStringQueryObjectParameter.java | 5 +- .../org/openapitools/client/model/Bird.java | 10 +- .../openapitools/client/model/Category.java | 10 +- .../openapitools/client/model/DataQuery.java | 19 ++- .../client/model/DefaultValue.java | 40 +++-- .../client/model/NumberPropertiesOnly.java | 15 +- .../org/openapitools/client/model/Pet.java | 30 ++-- .../org/openapitools/client/model/Query.java | 10 +- .../org/openapitools/client/model/Tag.java | 10 +- .../TestFormObjectMultipartRequestMarker.java | 5 +- ...deTrueObjectAllOfQueryObjectParameter.java | 20 ++- ...deTrueArrayStringQueryObjectParameter.java | 5 +- .../org/openapitools/client/model/Bird.java | 10 +- .../openapitools/client/model/Category.java | 10 +- .../openapitools/client/model/DataQuery.java | 19 ++- .../client/model/DefaultValue.java | 40 +++-- .../client/model/NumberPropertiesOnly.java | 15 +- .../org/openapitools/client/model/Pet.java | 30 ++-- .../org/openapitools/client/model/Query.java | 10 +- .../org/openapitools/client/model/Tag.java | 10 +- .../TestFormObjectMultipartRequestMarker.java | 5 +- ...deTrueObjectAllOfQueryObjectParameter.java | 20 ++- ...deTrueArrayStringQueryObjectParameter.java | 5 +- .../org/openapitools/client/model/Bird.java | 10 +- .../openapitools/client/model/Category.java | 10 +- .../openapitools/client/model/DataQuery.java | 19 ++- .../client/model/DefaultValue.java | 40 +++-- .../client/model/NumberPropertiesOnly.java | 15 +- .../org/openapitools/client/model/Pet.java | 30 ++-- .../org/openapitools/client/model/Query.java | 10 +- .../org/openapitools/client/model/Tag.java | 10 +- .../TestFormObjectMultipartRequestMarker.java | 5 +- ...deTrueObjectAllOfQueryObjectParameter.java | 20 ++- ...deTrueArrayStringQueryObjectParameter.java | 5 +- .../openapitools/client/model/SomeObj.java | 25 +-- .../model/AdditionalPropertiesClass.java | 10 +- .../client/model/AllOfWithSingleRef.java | 10 +- .../org/openapitools/client/model/Animal.java | 10 +- .../model/ArrayOfArrayOfNumberOnly.java | 5 +- .../client/model/ArrayOfNumberOnly.java | 5 +- .../openapitools/client/model/ArrayTest.java | 15 +- .../client/model/Capitalization.java | 30 ++-- .../org/openapitools/client/model/Cat.java | 9 +- .../openapitools/client/model/Category.java | 10 +- .../client/model/ChildWithNullable.java | 9 +- .../openapitools/client/model/ClassModel.java | 5 +- .../org/openapitools/client/model/Client.java | 5 +- .../client/model/DeprecatedObject.java | 5 +- .../org/openapitools/client/model/Dog.java | 9 +- .../openapitools/client/model/EnumArrays.java | 10 +- .../openapitools/client/model/EnumTest.java | 40 +++-- .../model/FakeBigDecimalMap200Response.java | 10 +- .../client/model/FileSchemaTestClass.java | 10 +- .../org/openapitools/client/model/Foo.java | 5 +- .../client/model/FooGetDefaultResponse.java | 5 +- .../openapitools/client/model/FormatTest.java | 80 ++++++---- .../client/model/HasOnlyReadOnly.java | 2 + .../client/model/HealthCheckResult.java | 5 +- .../openapitools/client/model/MapTest.java | 20 ++- ...ropertiesAndAdditionalPropertiesClass.java | 15 +- .../client/model/Model200Response.java | 10 +- .../client/model/ModelApiResponse.java | 15 +- .../openapitools/client/model/ModelFile.java | 5 +- .../openapitools/client/model/ModelList.java | 5 +- .../client/model/ModelReturn.java | 5 +- .../org/openapitools/client/model/Name.java | 12 +- .../client/model/NullableClass.java | 60 +++++--- .../openapitools/client/model/NumberOnly.java | 5 +- .../model/ObjectWithDeprecatedFields.java | 20 ++- .../org/openapitools/client/model/Order.java | 30 ++-- .../client/model/OuterComposite.java | 15 +- .../model/OuterObjectWithEnumProperty.java | 5 +- .../client/model/ParentWithNullable.java | 10 +- .../org/openapitools/client/model/Pet.java | 30 ++-- .../client/model/ReadOnlyFirst.java | 6 +- .../client/model/SpecialModelName.java | 5 +- .../org/openapitools/client/model/Tag.java | 10 +- ...neFreeformAdditionalPropertiesRequest.java | 5 +- .../org/openapitools/client/model/User.java | 40 +++-- .../model/AdditionalPropertiesAnyType.java | 5 +- .../model/AdditionalPropertiesArray.java | 5 +- .../model/AdditionalPropertiesBoolean.java | 5 +- .../model/AdditionalPropertiesClass.java | 47 +++--- .../model/AdditionalPropertiesInteger.java | 5 +- .../model/AdditionalPropertiesNumber.java | 5 +- .../model/AdditionalPropertiesObject.java | 5 +- .../model/AdditionalPropertiesString.java | 5 +- .../org/openapitools/client/model/Animal.java | 10 +- .../model/ArrayOfArrayOfNumberOnly.java | 4 +- .../client/model/ArrayOfNumberOnly.java | 4 +- .../openapitools/client/model/ArrayTest.java | 12 +- .../org/openapitools/client/model/BigCat.java | 5 +- .../client/model/Capitalization.java | 30 ++-- .../org/openapitools/client/model/Cat.java | 5 +- .../openapitools/client/model/Category.java | 10 +- .../openapitools/client/model/ClassModel.java | 5 +- .../org/openapitools/client/model/Client.java | 5 +- .../org/openapitools/client/model/Dog.java | 5 +- .../openapitools/client/model/EnumArrays.java | 9 +- .../openapitools/client/model/EnumTest.java | 25 +-- .../org/openapitools/client/model/File.java | 5 +- .../client/model/FileSchemaTestClass.java | 9 +- .../openapitools/client/model/FormatTest.java | 70 +++++---- .../client/model/HasOnlyReadOnly.java | 2 + .../openapitools/client/model/MapTest.java | 16 +- ...ropertiesAndAdditionalPropertiesClass.java | 14 +- .../client/model/Model200Response.java | 10 +- .../client/model/ModelApiResponse.java | 15 +- .../openapitools/client/model/ModelList.java | 5 +- .../client/model/ModelReturn.java | 5 +- .../org/openapitools/client/model/Name.java | 12 +- .../openapitools/client/model/NumberOnly.java | 5 +- .../org/openapitools/client/model/Order.java | 30 ++-- .../client/model/OuterComposite.java | 15 +- .../org/openapitools/client/model/Pet.java | 28 ++-- .../client/model/ReadOnlyFirst.java | 6 +- .../client/model/SpecialModelName.java | 5 +- .../org/openapitools/client/model/Tag.java | 10 +- .../client/model/TypeHolderDefault.java | 24 +-- .../client/model/TypeHolderExample.java | 29 ++-- .../org/openapitools/client/model/User.java | 40 +++-- .../openapitools/client/model/XmlItem.java | 136 +++++++++------- .../model/AdditionalPropertiesClass.java | 8 +- .../client/model/AllOfWithSingleRef.java | 10 +- .../org/openapitools/client/model/Animal.java | 10 +- .../model/ArrayOfArrayOfNumberOnly.java | 4 +- .../client/model/ArrayOfNumberOnly.java | 4 +- .../openapitools/client/model/ArrayTest.java | 12 +- .../client/model/Capitalization.java | 30 ++-- .../org/openapitools/client/model/Cat.java | 5 +- .../openapitools/client/model/Category.java | 10 +- .../client/model/ChildWithNullable.java | 5 +- .../openapitools/client/model/ClassModel.java | 5 +- .../org/openapitools/client/model/Client.java | 5 +- .../client/model/DeprecatedObject.java | 5 +- .../org/openapitools/client/model/Dog.java | 5 +- .../openapitools/client/model/EnumArrays.java | 9 +- .../openapitools/client/model/EnumTest.java | 39 +++-- .../model/FakeBigDecimalMap200Response.java | 9 +- .../org/openapitools/client/model/File.java | 5 +- .../client/model/FileSchemaTestClass.java | 9 +- .../org/openapitools/client/model/Foo.java | 5 +- .../client/model/FooGetDefaultResponse.java | 5 +- .../openapitools/client/model/FormatTest.java | 80 ++++++---- .../client/model/HasOnlyReadOnly.java | 2 + .../client/model/HealthCheckResult.java | 4 +- .../openapitools/client/model/MapTest.java | 16 +- ...ropertiesAndAdditionalPropertiesClass.java | 14 +- .../client/model/Model200Response.java | 10 +- .../client/model/ModelApiResponse.java | 15 +- .../openapitools/client/model/ModelList.java | 5 +- .../client/model/ModelReturn.java | 5 +- .../org/openapitools/client/model/Name.java | 12 +- .../client/model/NullableClass.java | 48 +++--- .../openapitools/client/model/NumberOnly.java | 5 +- .../model/ObjectWithDeprecatedFields.java | 19 ++- .../org/openapitools/client/model/Order.java | 30 ++-- .../client/model/OuterComposite.java | 15 +- .../model/OuterObjectWithEnumProperty.java | 5 +- .../client/model/ParentWithNullable.java | 9 +- .../org/openapitools/client/model/Pet.java | 28 ++-- .../client/model/ReadOnlyFirst.java | 6 +- .../client/model/SpecialModelName.java | 5 +- .../org/openapitools/client/model/Tag.java | 10 +- ...neFreeformAdditionalPropertiesRequest.java | 5 +- .../org/openapitools/client/model/User.java | 40 +++-- .../model/AdditionalPropertiesAnyType.java | 5 +- .../model/AdditionalPropertiesArray.java | 5 +- .../model/AdditionalPropertiesBoolean.java | 5 +- .../model/AdditionalPropertiesClass.java | 55 ++++--- .../model/AdditionalPropertiesInteger.java | 5 +- .../model/AdditionalPropertiesNumber.java | 5 +- .../model/AdditionalPropertiesObject.java | 5 +- .../model/AdditionalPropertiesString.java | 5 +- .../org/openapitools/client/model/Animal.java | 10 +- .../model/ArrayOfArrayOfNumberOnly.java | 5 +- .../client/model/ArrayOfNumberOnly.java | 5 +- .../openapitools/client/model/ArrayTest.java | 15 +- .../org/openapitools/client/model/BigCat.java | 9 +- .../client/model/Capitalization.java | 30 ++-- .../org/openapitools/client/model/Cat.java | 9 +- .../openapitools/client/model/Category.java | 10 +- .../openapitools/client/model/ClassModel.java | 5 +- .../org/openapitools/client/model/Client.java | 5 +- .../org/openapitools/client/model/Dog.java | 9 +- .../openapitools/client/model/EnumArrays.java | 10 +- .../openapitools/client/model/EnumTest.java | 25 +-- .../client/model/FileSchemaTestClass.java | 10 +- .../openapitools/client/model/FormatTest.java | 70 +++++---- .../client/model/HasOnlyReadOnly.java | 2 + .../openapitools/client/model/MapTest.java | 20 ++- ...ropertiesAndAdditionalPropertiesClass.java | 15 +- .../client/model/Model200Response.java | 10 +- .../client/model/ModelApiResponse.java | 15 +- .../openapitools/client/model/ModelFile.java | 5 +- .../openapitools/client/model/ModelList.java | 5 +- .../client/model/ModelReturn.java | 5 +- .../org/openapitools/client/model/Name.java | 12 +- .../openapitools/client/model/NumberOnly.java | 5 +- .../org/openapitools/client/model/Order.java | 30 ++-- .../client/model/OuterComposite.java | 15 +- .../org/openapitools/client/model/Pet.java | 30 ++-- .../client/model/ReadOnlyFirst.java | 6 +- .../client/model/SpecialModelName.java | 5 +- .../org/openapitools/client/model/Tag.java | 10 +- .../client/model/TypeHolderDefault.java | 25 +-- .../client/model/TypeHolderExample.java | 30 ++-- .../org/openapitools/client/model/User.java | 40 +++-- .../openapitools/client/model/XmlItem.java | 145 +++++++++++------- .../model/AdditionalPropertiesAnyType.java | 5 +- .../model/AdditionalPropertiesArray.java | 5 +- .../model/AdditionalPropertiesBoolean.java | 5 +- .../model/AdditionalPropertiesClass.java | 55 ++++--- .../model/AdditionalPropertiesInteger.java | 5 +- .../model/AdditionalPropertiesNumber.java | 5 +- .../model/AdditionalPropertiesObject.java | 5 +- .../model/AdditionalPropertiesString.java | 5 +- .../org/openapitools/client/model/Animal.java | 10 +- .../model/ArrayOfArrayOfNumberOnly.java | 5 +- .../client/model/ArrayOfNumberOnly.java | 5 +- .../openapitools/client/model/ArrayTest.java | 15 +- .../org/openapitools/client/model/BigCat.java | 5 +- .../client/model/Capitalization.java | 30 ++-- .../org/openapitools/client/model/Cat.java | 5 +- .../openapitools/client/model/Category.java | 10 +- .../openapitools/client/model/ClassModel.java | 5 +- .../org/openapitools/client/model/Client.java | 5 +- .../org/openapitools/client/model/Dog.java | 5 +- .../openapitools/client/model/EnumArrays.java | 10 +- .../openapitools/client/model/EnumTest.java | 25 +-- .../client/model/FileSchemaTestClass.java | 10 +- .../openapitools/client/model/FormatTest.java | 70 +++++---- .../client/model/HasOnlyReadOnly.java | 2 + .../openapitools/client/model/MapTest.java | 20 ++- ...ropertiesAndAdditionalPropertiesClass.java | 15 +- .../client/model/Model200Response.java | 10 +- .../client/model/ModelApiResponse.java | 15 +- .../openapitools/client/model/ModelFile.java | 5 +- .../openapitools/client/model/ModelList.java | 5 +- .../client/model/ModelReturn.java | 5 +- .../org/openapitools/client/model/Name.java | 12 +- .../openapitools/client/model/NumberOnly.java | 5 +- .../org/openapitools/client/model/Order.java | 30 ++-- .../client/model/OuterComposite.java | 15 +- .../org/openapitools/client/model/Pet.java | 30 ++-- .../client/model/ReadOnlyFirst.java | 6 +- .../client/model/SpecialModelName.java | 5 +- .../org/openapitools/client/model/Tag.java | 10 +- .../client/model/TypeHolderDefault.java | 25 +-- .../client/model/TypeHolderExample.java | 30 ++-- .../org/openapitools/client/model/User.java | 40 +++-- .../openapitools/client/model/XmlItem.java | 145 +++++++++++------- .../model/AdditionalPropertiesAnyType.java | 5 +- .../model/AdditionalPropertiesArray.java | 5 +- .../model/AdditionalPropertiesBoolean.java | 5 +- .../model/AdditionalPropertiesClass.java | 55 ++++--- .../model/AdditionalPropertiesInteger.java | 5 +- .../model/AdditionalPropertiesNumber.java | 5 +- .../model/AdditionalPropertiesObject.java | 5 +- .../model/AdditionalPropertiesString.java | 5 +- .../org/openapitools/client/model/Animal.java | 10 +- .../model/ArrayOfArrayOfNumberOnly.java | 5 +- .../client/model/ArrayOfNumberOnly.java | 5 +- .../openapitools/client/model/ArrayTest.java | 15 +- .../org/openapitools/client/model/BigCat.java | 5 +- .../client/model/Capitalization.java | 30 ++-- .../org/openapitools/client/model/Cat.java | 5 +- .../openapitools/client/model/Category.java | 10 +- .../openapitools/client/model/ClassModel.java | 5 +- .../org/openapitools/client/model/Client.java | 5 +- .../org/openapitools/client/model/Dog.java | 5 +- .../openapitools/client/model/EnumArrays.java | 10 +- .../openapitools/client/model/EnumTest.java | 25 +-- .../client/model/FileSchemaTestClass.java | 10 +- .../openapitools/client/model/FormatTest.java | 70 +++++---- .../client/model/HasOnlyReadOnly.java | 2 + .../openapitools/client/model/MapTest.java | 20 ++- ...ropertiesAndAdditionalPropertiesClass.java | 15 +- .../client/model/Model200Response.java | 10 +- .../client/model/ModelApiResponse.java | 15 +- .../openapitools/client/model/ModelFile.java | 5 +- .../openapitools/client/model/ModelList.java | 5 +- .../client/model/ModelReturn.java | 5 +- .../org/openapitools/client/model/Name.java | 12 +- .../openapitools/client/model/NumberOnly.java | 5 +- .../org/openapitools/client/model/Order.java | 30 ++-- .../client/model/OuterComposite.java | 15 +- .../org/openapitools/client/model/Pet.java | 30 ++-- .../client/model/ReadOnlyFirst.java | 6 +- .../client/model/SpecialModelName.java | 5 +- .../org/openapitools/client/model/Tag.java | 10 +- .../client/model/TypeHolderDefault.java | 25 +-- .../client/model/TypeHolderExample.java | 30 ++-- .../org/openapitools/client/model/User.java | 40 +++-- .../openapitools/client/model/XmlItem.java | 145 +++++++++++------- .../model/AdditionalPropertiesClass.java | 39 +++-- .../org/openapitools/client/model/Animal.java | 10 +- .../org/openapitools/client/model/Apple.java | 10 +- .../openapitools/client/model/AppleReq.java | 10 +- .../model/ArrayOfArrayOfNumberOnly.java | 5 +- .../client/model/ArrayOfNumberOnly.java | 5 +- .../openapitools/client/model/ArrayTest.java | 15 +- .../org/openapitools/client/model/Banana.java | 5 +- .../openapitools/client/model/BananaReq.java | 10 +- .../openapitools/client/model/BasquePig.java | 5 +- .../client/model/Capitalization.java | 30 ++-- .../org/openapitools/client/model/Cat.java | 5 +- .../openapitools/client/model/Category.java | 10 +- .../openapitools/client/model/ChildCat.java | 10 +- .../openapitools/client/model/ClassModel.java | 5 +- .../org/openapitools/client/model/Client.java | 5 +- .../client/model/ComplexQuadrilateral.java | 10 +- .../openapitools/client/model/DanishPig.java | 5 +- .../client/model/DeprecatedObject.java | 5 +- .../org/openapitools/client/model/Dog.java | 5 +- .../openapitools/client/model/Drawing.java | 18 ++- .../openapitools/client/model/EnumArrays.java | 10 +- .../openapitools/client/model/EnumTest.java | 44 +++--- .../client/model/EquilateralTriangle.java | 10 +- .../client/model/FileSchemaTestClass.java | 10 +- .../org/openapitools/client/model/Foo.java | 5 +- .../client/model/FooGetDefaultResponse.java | 5 +- .../openapitools/client/model/FormatTest.java | 80 ++++++---- .../client/model/GrandparentAnimal.java | 5 +- .../client/model/HasOnlyReadOnly.java | 2 + .../client/model/HealthCheckResult.java | 4 +- .../client/model/IsoscelesTriangle.java | 10 +- .../openapitools/client/model/MapTest.java | 20 ++- ...ropertiesAndAdditionalPropertiesClass.java | 15 +- .../client/model/Model200Response.java | 10 +- .../client/model/ModelApiResponse.java | 15 +- .../openapitools/client/model/ModelFile.java | 5 +- .../openapitools/client/model/ModelList.java | 5 +- .../client/model/ModelReturn.java | 5 +- .../org/openapitools/client/model/Name.java | 12 +- .../client/model/NullableClass.java | 50 +++--- .../openapitools/client/model/NumberOnly.java | 5 +- .../model/ObjectWithDeprecatedFields.java | 20 ++- .../org/openapitools/client/model/Order.java | 30 ++-- .../client/model/OuterComposite.java | 15 +- .../org/openapitools/client/model/Pet.java | 30 ++-- .../client/model/QuadrilateralInterface.java | 5 +- .../client/model/ReadOnlyFirst.java | 6 +- .../client/model/ScaleneTriangle.java | 10 +- .../client/model/ShapeInterface.java | 5 +- .../client/model/SimpleQuadrilateral.java | 10 +- .../client/model/SpecialModelName.java | 10 +- .../org/openapitools/client/model/Tag.java | 10 +- ...neFreeformAdditionalPropertiesRequest.java | 5 +- .../client/model/TriangleInterface.java | 5 +- .../org/openapitools/client/model/User.java | 57 ++++--- .../org/openapitools/client/model/Whale.java | 15 +- .../org/openapitools/client/model/Zebra.java | 10 +- .../model/AdditionalPropertiesClass.java | 39 +++-- .../org/openapitools/client/model/Animal.java | 10 +- .../org/openapitools/client/model/Apple.java | 10 +- .../openapitools/client/model/AppleReq.java | 10 +- .../model/ArrayOfArrayOfNumberOnly.java | 5 +- .../client/model/ArrayOfNumberOnly.java | 5 +- .../openapitools/client/model/ArrayTest.java | 15 +- .../org/openapitools/client/model/Banana.java | 5 +- .../openapitools/client/model/BananaReq.java | 10 +- .../openapitools/client/model/BasquePig.java | 5 +- .../client/model/Capitalization.java | 30 ++-- .../org/openapitools/client/model/Cat.java | 9 +- .../openapitools/client/model/Category.java | 10 +- .../openapitools/client/model/ChildCat.java | 10 +- .../openapitools/client/model/ClassModel.java | 5 +- .../org/openapitools/client/model/Client.java | 5 +- .../client/model/ComplexQuadrilateral.java | 10 +- .../openapitools/client/model/DanishPig.java | 5 +- .../client/model/DeprecatedObject.java | 5 +- .../org/openapitools/client/model/Dog.java | 9 +- .../openapitools/client/model/Drawing.java | 19 ++- .../openapitools/client/model/EnumArrays.java | 10 +- .../openapitools/client/model/EnumTest.java | 44 +++--- .../client/model/EquilateralTriangle.java | 10 +- .../model/FakeBigDecimalMap200Response.java | 10 +- .../client/model/FileSchemaTestClass.java | 10 +- .../org/openapitools/client/model/Foo.java | 5 +- .../client/model/FooGetDefaultResponse.java | 5 +- .../openapitools/client/model/FormatTest.java | 80 ++++++---- .../client/model/GrandparentAnimal.java | 5 +- .../client/model/HasOnlyReadOnly.java | 2 + .../client/model/HealthCheckResult.java | 4 +- .../client/model/IsoscelesTriangle.java | 10 +- .../openapitools/client/model/MapTest.java | 20 ++- ...ropertiesAndAdditionalPropertiesClass.java | 15 +- .../client/model/Model200Response.java | 10 +- .../client/model/ModelApiResponse.java | 15 +- .../openapitools/client/model/ModelFile.java | 5 +- .../openapitools/client/model/ModelList.java | 5 +- .../client/model/ModelReturn.java | 5 +- .../org/openapitools/client/model/Name.java | 12 +- .../client/model/NullableClass.java | 50 +++--- .../openapitools/client/model/NumberOnly.java | 5 +- .../model/ObjectWithDeprecatedFields.java | 20 ++- .../org/openapitools/client/model/Order.java | 30 ++-- .../client/model/OuterComposite.java | 15 +- .../openapitools/client/model/ParentPet.java | 2 +- .../org/openapitools/client/model/Pet.java | 30 ++-- .../client/model/QuadrilateralInterface.java | 5 +- .../client/model/ReadOnlyFirst.java | 6 +- .../client/model/ScaleneTriangle.java | 10 +- .../client/model/ShapeInterface.java | 5 +- .../client/model/SimpleQuadrilateral.java | 10 +- .../client/model/SpecialModelName.java | 10 +- .../org/openapitools/client/model/Tag.java | 10 +- ...neFreeformAdditionalPropertiesRequest.java | 5 +- .../client/model/TriangleInterface.java | 5 +- .../org/openapitools/client/model/User.java | 57 ++++--- .../org/openapitools/client/model/Whale.java | 15 +- .../org/openapitools/client/model/Zebra.java | 10 +- .../openapitools/client/model/Category.java | 10 +- .../client/model/ModelApiResponse.java | 15 +- .../org/openapitools/client/model/Order.java | 30 ++-- .../org/openapitools/client/model/Pet.java | 30 ++-- .../org/openapitools/client/model/Tag.java | 10 +- .../org/openapitools/client/model/User.java | 40 +++-- .../model/AdditionalPropertiesClass.java | 39 +++-- .../org/openapitools/client/model/Animal.java | 10 +- .../org/openapitools/client/model/Apple.java | 10 +- .../openapitools/client/model/AppleReq.java | 10 +- .../model/ArrayOfArrayOfNumberOnly.java | 5 +- .../client/model/ArrayOfNumberOnly.java | 5 +- .../openapitools/client/model/ArrayTest.java | 15 +- .../org/openapitools/client/model/Banana.java | 5 +- .../openapitools/client/model/BananaReq.java | 10 +- .../openapitools/client/model/BasquePig.java | 5 +- .../client/model/Capitalization.java | 30 ++-- .../org/openapitools/client/model/Cat.java | 9 +- .../openapitools/client/model/Category.java | 10 +- .../openapitools/client/model/ChildCat.java | 10 +- .../openapitools/client/model/ClassModel.java | 5 +- .../org/openapitools/client/model/Client.java | 5 +- .../client/model/ComplexQuadrilateral.java | 10 +- .../openapitools/client/model/DanishPig.java | 5 +- .../client/model/DeprecatedObject.java | 5 +- .../org/openapitools/client/model/Dog.java | 9 +- .../openapitools/client/model/Drawing.java | 19 ++- .../openapitools/client/model/EnumArrays.java | 10 +- .../openapitools/client/model/EnumTest.java | 44 +++--- .../client/model/EquilateralTriangle.java | 10 +- .../model/FakeBigDecimalMap200Response.java | 10 +- .../client/model/FileSchemaTestClass.java | 10 +- .../org/openapitools/client/model/Foo.java | 5 +- .../client/model/FooGetDefaultResponse.java | 5 +- .../openapitools/client/model/FormatTest.java | 80 ++++++---- .../client/model/GrandparentAnimal.java | 5 +- .../client/model/HasOnlyReadOnly.java | 2 + .../client/model/HealthCheckResult.java | 4 +- .../client/model/IsoscelesTriangle.java | 10 +- .../openapitools/client/model/MapTest.java | 20 ++- ...ropertiesAndAdditionalPropertiesClass.java | 15 +- .../client/model/Model200Response.java | 10 +- .../client/model/ModelApiResponse.java | 15 +- .../openapitools/client/model/ModelFile.java | 5 +- .../openapitools/client/model/ModelList.java | 5 +- .../client/model/ModelReturn.java | 5 +- .../org/openapitools/client/model/Name.java | 12 +- .../client/model/NullableClass.java | 50 +++--- .../openapitools/client/model/NumberOnly.java | 5 +- .../model/ObjectWithDeprecatedFields.java | 20 ++- .../org/openapitools/client/model/Order.java | 30 ++-- .../client/model/OuterComposite.java | 15 +- .../openapitools/client/model/ParentPet.java | 2 +- .../org/openapitools/client/model/Pet.java | 30 ++-- .../client/model/QuadrilateralInterface.java | 5 +- .../client/model/ReadOnlyFirst.java | 6 +- .../client/model/ScaleneTriangle.java | 10 +- .../client/model/ShapeInterface.java | 5 +- .../client/model/SimpleQuadrilateral.java | 10 +- .../client/model/SpecialModelName.java | 10 +- .../org/openapitools/client/model/Tag.java | 10 +- ...neFreeformAdditionalPropertiesRequest.java | 5 +- .../client/model/TriangleInterface.java | 5 +- .../org/openapitools/client/model/User.java | 57 ++++--- .../org/openapitools/client/model/Whale.java | 15 +- .../org/openapitools/client/model/Zebra.java | 10 +- .../client/model/AllOfSimpleModel.java | 5 +- .../org/openapitools/client/model/Animal.java | 10 +- .../client/model/AnyTypeTest.java | 15 +- .../client/model/ArrayOfSameRef.java | 15 +- .../org/openapitools/client/model/Cat.java | 5 +- .../openapitools/client/model/Category.java | 10 +- .../client/model/CircularReference1.java | 5 +- .../client/model/CircularReference2.java | 5 +- .../client/model/CircularReference3.java | 5 +- .../org/openapitools/client/model/Dog.java | 5 +- .../client/model/ModelApiResponse.java | 15 +- .../org/openapitools/client/model/Order.java | 30 ++-- .../org/openapitools/client/model/Pet.java | 30 ++-- .../model/SimpleModelWithArrayProperty.java | 5 +- .../org/openapitools/client/model/Tag.java | 10 +- .../org/openapitools/client/model/User.java | 40 +++-- .../openapitools/client/model/Category.java | 10 +- .../client/model/ModelApiResponse.java | 15 +- .../org/openapitools/client/model/Order.java | 30 ++-- .../org/openapitools/client/model/Pet.java | 30 ++-- .../org/openapitools/client/model/Tag.java | 10 +- .../org/openapitools/client/model/User.java | 40 +++-- .../model/AdditionalPropertiesAnyType.java | 5 +- .../model/AdditionalPropertiesArray.java | 5 +- .../model/AdditionalPropertiesBoolean.java | 5 +- .../model/AdditionalPropertiesClass.java | 55 ++++--- .../model/AdditionalPropertiesInteger.java | 5 +- .../model/AdditionalPropertiesNumber.java | 5 +- .../model/AdditionalPropertiesObject.java | 5 +- .../model/AdditionalPropertiesString.java | 5 +- .../org/openapitools/client/model/Animal.java | 10 +- .../model/ArrayOfArrayOfNumberOnly.java | 5 +- .../client/model/ArrayOfNumberOnly.java | 5 +- .../openapitools/client/model/ArrayTest.java | 15 +- .../org/openapitools/client/model/BigCat.java | 5 +- .../client/model/Capitalization.java | 30 ++-- .../org/openapitools/client/model/Cat.java | 5 +- .../openapitools/client/model/Category.java | 10 +- .../openapitools/client/model/ClassModel.java | 5 +- .../org/openapitools/client/model/Client.java | 5 +- .../org/openapitools/client/model/Dog.java | 5 +- .../openapitools/client/model/EnumArrays.java | 10 +- .../openapitools/client/model/EnumTest.java | 25 +-- .../client/model/FileSchemaTestClass.java | 10 +- .../openapitools/client/model/FormatTest.java | 70 +++++---- .../client/model/HasOnlyReadOnly.java | 2 + .../openapitools/client/model/MapTest.java | 20 ++- ...ropertiesAndAdditionalPropertiesClass.java | 15 +- .../client/model/Model200Response.java | 10 +- .../client/model/ModelApiResponse.java | 15 +- .../openapitools/client/model/ModelFile.java | 5 +- .../openapitools/client/model/ModelList.java | 5 +- .../client/model/ModelReturn.java | 5 +- .../org/openapitools/client/model/Name.java | 12 +- .../openapitools/client/model/NumberOnly.java | 5 +- .../org/openapitools/client/model/Order.java | 30 ++-- .../client/model/OuterComposite.java | 15 +- .../org/openapitools/client/model/Pet.java | 30 ++-- .../client/model/ReadOnlyFirst.java | 6 +- .../client/model/SpecialModelName.java | 5 +- .../org/openapitools/client/model/Tag.java | 10 +- .../client/model/TypeHolderDefault.java | 25 +-- .../client/model/TypeHolderExample.java | 30 ++-- .../org/openapitools/client/model/User.java | 40 +++-- .../openapitools/client/model/XmlItem.java | 145 +++++++++++------- .../openapitools/client/model/Category.java | 10 +- .../client/model/ModelApiResponse.java | 15 +- .../org/openapitools/client/model/Order.java | 30 ++-- .../org/openapitools/client/model/Pet.java | 30 ++-- .../org/openapitools/client/model/Tag.java | 10 +- .../org/openapitools/client/model/User.java | 40 +++-- .../openapitools/client/model/Category.java | 10 +- .../client/model/ModelApiResponse.java | 15 +- .../org/openapitools/client/model/Order.java | 30 ++-- .../org/openapitools/client/model/Pet.java | 30 ++-- .../model/PetWithRequiredNullableCases1.java | 30 ++-- .../model/PetWithRequiredNullableCases2.java | 30 ++-- .../org/openapitools/client/model/Tag.java | 10 +- .../org/openapitools/client/model/User.java | 40 +++-- .../model/AdditionalPropertiesAnyType.java | 5 +- .../model/AdditionalPropertiesArray.java | 5 +- .../model/AdditionalPropertiesBoolean.java | 5 +- .../model/AdditionalPropertiesClass.java | 55 ++++--- .../model/AdditionalPropertiesInteger.java | 5 +- .../model/AdditionalPropertiesNumber.java | 5 +- .../model/AdditionalPropertiesObject.java | 5 +- .../model/AdditionalPropertiesString.java | 5 +- .../org/openapitools/client/model/Animal.java | 10 +- .../model/ArrayOfArrayOfNumberOnly.java | 5 +- .../client/model/ArrayOfNumberOnly.java | 5 +- .../openapitools/client/model/ArrayTest.java | 15 +- .../org/openapitools/client/model/BigCat.java | 5 +- .../client/model/Capitalization.java | 30 ++-- .../org/openapitools/client/model/Cat.java | 5 +- .../openapitools/client/model/Category.java | 10 +- .../openapitools/client/model/ClassModel.java | 5 +- .../org/openapitools/client/model/Client.java | 5 +- .../org/openapitools/client/model/Dog.java | 5 +- .../openapitools/client/model/EnumArrays.java | 10 +- .../openapitools/client/model/EnumTest.java | 25 +-- .../client/model/FileSchemaTestClass.java | 10 +- .../openapitools/client/model/FormatTest.java | 70 +++++---- .../client/model/HasOnlyReadOnly.java | 2 + .../openapitools/client/model/MapTest.java | 20 ++- ...ropertiesAndAdditionalPropertiesClass.java | 15 +- .../client/model/Model200Response.java | 10 +- .../client/model/ModelApiResponse.java | 15 +- .../openapitools/client/model/ModelFile.java | 5 +- .../openapitools/client/model/ModelList.java | 5 +- .../client/model/ModelReturn.java | 5 +- .../org/openapitools/client/model/Name.java | 12 +- .../openapitools/client/model/NumberOnly.java | 5 +- .../org/openapitools/client/model/Order.java | 30 ++-- .../client/model/OuterComposite.java | 15 +- .../org/openapitools/client/model/Pet.java | 30 ++-- .../client/model/ReadOnlyFirst.java | 6 +- .../client/model/SpecialModelName.java | 5 +- .../org/openapitools/client/model/Tag.java | 10 +- .../client/model/TypeHolderDefault.java | 25 +-- .../client/model/TypeHolderExample.java | 30 ++-- .../org/openapitools/client/model/User.java | 40 +++-- .../openapitools/client/model/XmlItem.java | 145 +++++++++++------- .../openapitools/client/model/Category.java | 10 +- .../client/model/ModelApiResponse.java | 15 +- .../org/openapitools/client/model/Order.java | 30 ++-- .../org/openapitools/client/model/Pet.java | 30 ++-- .../org/openapitools/client/model/Tag.java | 10 +- .../org/openapitools/client/model/User.java | 40 +++-- .../openapitools/client/model/Category.java | 10 +- .../client/model/ModelApiResponse.java | 15 +- .../org/openapitools/client/model/Order.java | 30 ++-- .../org/openapitools/client/model/Pet.java | 30 ++-- .../org/openapitools/client/model/Tag.java | 10 +- .../org/openapitools/client/model/User.java | 40 +++-- .../model/AdditionalPropertiesClass.java | 40 +++-- .../client/model/AllOfModelArrayAnyOf.java | 20 ++- .../AllOfModelArrayAnyOfAllOfAttributes.java | 5 +- ...OfModelArrayAnyOfAllOfLinkListColumn1.java | 5 +- .../org/openapitools/client/model/Animal.java | 10 +- .../org/openapitools/client/model/Apple.java | 10 +- .../openapitools/client/model/AppleReq.java | 10 +- .../client/model/ArrayDefault.java | 10 +- .../model/ArrayOfArrayOfNumberOnly.java | 5 +- .../client/model/ArrayOfInlineAllOf.java | 15 +- ...InlineAllOfArrayAllofDogPropertyInner.java | 10 +- .../client/model/ArrayOfNumberOnly.java | 5 +- .../openapitools/client/model/ArrayTest.java | 15 +- .../org/openapitools/client/model/Banana.java | 5 +- .../openapitools/client/model/BananaReq.java | 10 +- .../openapitools/client/model/BasquePig.java | 5 +- .../client/model/Capitalization.java | 30 ++-- .../org/openapitools/client/model/Cat.java | 5 +- .../openapitools/client/model/Category.java | 10 +- .../openapitools/client/model/ClassModel.java | 5 +- .../org/openapitools/client/model/Client.java | 5 +- .../client/model/ComplexQuadrilateral.java | 10 +- .../openapitools/client/model/DanishPig.java | 5 +- .../client/model/DeprecatedObject.java | 5 +- .../org/openapitools/client/model/Dog.java | 5 +- .../openapitools/client/model/Drawing.java | 20 ++- .../openapitools/client/model/EnumArrays.java | 10 +- .../client/model/EnumStringDiscriminator.java | 5 +- .../openapitools/client/model/EnumTest.java | 45 +++--- .../client/model/EquilateralTriangle.java | 10 +- .../client/model/FileSchemaTestClass.java | 10 +- .../org/openapitools/client/model/Foo.java | 5 +- .../client/model/FooGetDefaultResponse.java | 5 +- .../openapitools/client/model/FormatTest.java | 85 ++++++---- .../client/model/FreeFormObjectTestClass.java | 10 +- .../client/model/GrandparentAnimal.java | 5 +- .../client/model/HasOnlyReadOnly.java | 2 + .../client/model/HealthCheckResult.java | 5 +- .../client/model/IsoscelesTriangle.java | 10 +- .../openapitools/client/model/MapTest.java | 20 ++- ...ropertiesAndAdditionalPropertiesClass.java | 15 +- .../client/model/Model200Response.java | 10 +- .../client/model/ModelApiResponse.java | 15 +- .../openapitools/client/model/ModelFile.java | 5 +- .../openapitools/client/model/ModelList.java | 5 +- .../client/model/ModelReturn.java | 5 +- .../model/ModelWithOneOfAnyOfProperties.java | 10 +- .../org/openapitools/client/model/Name.java | 12 +- .../org/openapitools/client/model/NewPet.java | 41 +++-- .../model/NewPetCategoryInlineAllof.java | 15 +- ...etCategoryInlineAllofAllOfCategoryTag.java | 10 +- .../client/model/NullableClass.java | 60 +++++--- .../openapitools/client/model/NumberOnly.java | 5 +- .../model/ObjectWithDeprecatedFields.java | 20 ++- .../org/openapitools/client/model/Order.java | 30 ++-- .../client/model/OuterComposite.java | 15 +- .../org/openapitools/client/model/Pet.java | 30 ++-- .../client/model/PetComposition.java | 30 ++-- .../org/openapitools/client/model/PetRef.java | 30 ++-- .../client/model/PetUsingAllOf.java | 30 ++-- .../client/model/PetWithRequiredTags.java | 30 ++-- .../client/model/PropertyNameCollision.java | 15 +- .../client/model/QuadrilateralInterface.java | 5 +- .../client/model/ReadOnlyFirst.java | 6 +- .../client/model/ScaleneTriangle.java | 10 +- .../client/model/ShapeInterface.java | 5 +- .../client/model/SimpleQuadrilateral.java | 10 +- .../client/model/SpecialModelName.java | 10 +- .../org/openapitools/client/model/Tag.java | 10 +- ...neFreeformAdditionalPropertiesRequest.java | 5 +- .../client/model/TriangleInterface.java | 5 +- .../org/openapitools/client/model/User.java | 60 +++++--- .../openapitools/client/model/Variable.java | 10 +- .../org/openapitools/client/model/Whale.java | 15 +- .../org/openapitools/client/model/Zebra.java | 10 +- .../model/AdditionalPropertiesAnyType.java | 5 +- .../model/AdditionalPropertiesArray.java | 5 +- .../model/AdditionalPropertiesBoolean.java | 5 +- .../model/AdditionalPropertiesClass.java | 55 ++++--- .../model/AdditionalPropertiesInteger.java | 5 +- .../model/AdditionalPropertiesNumber.java | 5 +- .../model/AdditionalPropertiesObject.java | 5 +- .../model/AdditionalPropertiesString.java | 5 +- .../org/openapitools/client/model/Animal.java | 10 +- .../model/ArrayOfArrayOfNumberOnly.java | 5 +- .../client/model/ArrayOfNumberOnly.java | 5 +- .../openapitools/client/model/ArrayTest.java | 15 +- .../org/openapitools/client/model/BigCat.java | 9 +- .../client/model/Capitalization.java | 30 ++-- .../org/openapitools/client/model/Cat.java | 9 +- .../openapitools/client/model/Category.java | 10 +- .../openapitools/client/model/ClassModel.java | 5 +- .../org/openapitools/client/model/Client.java | 5 +- .../org/openapitools/client/model/Dog.java | 9 +- .../openapitools/client/model/EnumArrays.java | 10 +- .../openapitools/client/model/EnumTest.java | 25 +-- .../client/model/FileSchemaTestClass.java | 10 +- .../openapitools/client/model/FormatTest.java | 70 +++++---- .../client/model/HasOnlyReadOnly.java | 2 + .../openapitools/client/model/MapTest.java | 20 ++- ...ropertiesAndAdditionalPropertiesClass.java | 15 +- .../client/model/Model200Response.java | 10 +- .../client/model/ModelApiResponse.java | 15 +- .../openapitools/client/model/ModelFile.java | 5 +- .../openapitools/client/model/ModelList.java | 5 +- .../client/model/ModelReturn.java | 5 +- .../org/openapitools/client/model/Name.java | 12 +- .../openapitools/client/model/NumberOnly.java | 5 +- .../org/openapitools/client/model/Order.java | 30 ++-- .../client/model/OuterComposite.java | 15 +- .../org/openapitools/client/model/Pet.java | 30 ++-- .../client/model/ReadOnlyFirst.java | 6 +- .../client/model/SpecialModelName.java | 5 +- .../org/openapitools/client/model/Tag.java | 10 +- .../client/model/TypeHolderDefault.java | 25 +-- .../client/model/TypeHolderExample.java | 30 ++-- .../org/openapitools/client/model/User.java | 40 +++-- .../openapitools/client/model/XmlItem.java | 145 +++++++++++------- .../model/AdditionalPropertiesAnyType.java | 5 +- .../model/AdditionalPropertiesArray.java | 5 +- .../model/AdditionalPropertiesBoolean.java | 5 +- .../model/AdditionalPropertiesClass.java | 55 ++++--- .../model/AdditionalPropertiesInteger.java | 5 +- .../model/AdditionalPropertiesNumber.java | 5 +- .../model/AdditionalPropertiesObject.java | 5 +- .../model/AdditionalPropertiesString.java | 5 +- .../org/openapitools/client/model/Animal.java | 10 +- .../model/ArrayOfArrayOfNumberOnly.java | 5 +- .../client/model/ArrayOfNumberOnly.java | 5 +- .../openapitools/client/model/ArrayTest.java | 15 +- .../org/openapitools/client/model/BigCat.java | 9 +- .../client/model/Capitalization.java | 30 ++-- .../org/openapitools/client/model/Cat.java | 9 +- .../openapitools/client/model/Category.java | 10 +- .../openapitools/client/model/ClassModel.java | 5 +- .../org/openapitools/client/model/Client.java | 5 +- .../org/openapitools/client/model/Dog.java | 9 +- .../openapitools/client/model/EnumArrays.java | 10 +- .../openapitools/client/model/EnumTest.java | 25 +-- .../client/model/FileSchemaTestClass.java | 10 +- .../openapitools/client/model/FormatTest.java | 70 +++++---- .../client/model/HasOnlyReadOnly.java | 2 + .../openapitools/client/model/MapTest.java | 20 ++- ...ropertiesAndAdditionalPropertiesClass.java | 15 +- .../client/model/Model200Response.java | 10 +- .../client/model/ModelApiResponse.java | 15 +- .../openapitools/client/model/ModelFile.java | 5 +- .../openapitools/client/model/ModelList.java | 5 +- .../client/model/ModelReturn.java | 5 +- .../org/openapitools/client/model/Name.java | 12 +- .../openapitools/client/model/NumberOnly.java | 5 +- .../org/openapitools/client/model/Order.java | 30 ++-- .../client/model/OuterComposite.java | 15 +- .../org/openapitools/client/model/Pet.java | 30 ++-- .../client/model/ReadOnlyFirst.java | 6 +- .../client/model/SpecialModelName.java | 5 +- .../org/openapitools/client/model/Tag.java | 10 +- .../client/model/TypeHolderDefault.java | 25 +-- .../client/model/TypeHolderExample.java | 30 ++-- .../org/openapitools/client/model/User.java | 40 +++-- .../openapitools/client/model/XmlItem.java | 145 +++++++++++------- .../client/model/ByteArrayObject.java | 25 +-- .../model/AdditionalPropertiesClass.java | 10 +- .../client/model/AllOfWithSingleRef.java | 10 +- .../org/openapitools/client/model/Animal.java | 10 +- .../model/ArrayOfArrayOfNumberOnly.java | 5 +- .../client/model/ArrayOfNumberOnly.java | 5 +- .../openapitools/client/model/ArrayTest.java | 15 +- .../client/model/Capitalization.java | 30 ++-- .../org/openapitools/client/model/Cat.java | 9 +- .../openapitools/client/model/Category.java | 10 +- .../client/model/ChildWithNullable.java | 9 +- .../openapitools/client/model/ClassModel.java | 5 +- .../org/openapitools/client/model/Client.java | 5 +- .../client/model/DeprecatedObject.java | 5 +- .../org/openapitools/client/model/Dog.java | 9 +- .../openapitools/client/model/EnumArrays.java | 10 +- .../openapitools/client/model/EnumTest.java | 40 +++-- .../model/FakeBigDecimalMap200Response.java | 10 +- .../client/model/FileSchemaTestClass.java | 10 +- .../org/openapitools/client/model/Foo.java | 5 +- .../client/model/FooGetDefaultResponse.java | 5 +- .../openapitools/client/model/FormatTest.java | 80 ++++++---- .../client/model/HasOnlyReadOnly.java | 2 + .../client/model/HealthCheckResult.java | 5 +- .../openapitools/client/model/MapTest.java | 20 ++- ...ropertiesAndAdditionalPropertiesClass.java | 15 +- .../client/model/Model200Response.java | 10 +- .../client/model/ModelApiResponse.java | 15 +- .../openapitools/client/model/ModelFile.java | 5 +- .../openapitools/client/model/ModelList.java | 5 +- .../client/model/ModelReturn.java | 5 +- .../org/openapitools/client/model/Name.java | 12 +- .../client/model/NullableClass.java | 60 +++++--- .../openapitools/client/model/NumberOnly.java | 5 +- .../model/ObjectWithDeprecatedFields.java | 20 ++- .../org/openapitools/client/model/Order.java | 30 ++-- .../client/model/OuterComposite.java | 15 +- .../model/OuterObjectWithEnumProperty.java | 5 +- .../client/model/ParentWithNullable.java | 10 +- .../org/openapitools/client/model/Pet.java | 30 ++-- .../client/model/ReadOnlyFirst.java | 6 +- .../client/model/SpecialModelName.java | 5 +- .../org/openapitools/client/model/Tag.java | 10 +- ...neFreeformAdditionalPropertiesRequest.java | 5 +- .../org/openapitools/client/model/User.java | 40 +++-- .../model/AdditionalPropertiesClass.java | 10 +- .../client/model/AllOfWithSingleRef.java | 10 +- .../org/openapitools/client/model/Animal.java | 10 +- .../model/ArrayOfArrayOfNumberOnly.java | 5 +- .../client/model/ArrayOfNumberOnly.java | 5 +- .../openapitools/client/model/ArrayTest.java | 15 +- .../client/model/Capitalization.java | 30 ++-- .../org/openapitools/client/model/Cat.java | 9 +- .../openapitools/client/model/Category.java | 10 +- .../client/model/ChildWithNullable.java | 9 +- .../openapitools/client/model/ClassModel.java | 5 +- .../org/openapitools/client/model/Client.java | 5 +- .../client/model/DeprecatedObject.java | 5 +- .../org/openapitools/client/model/Dog.java | 9 +- .../openapitools/client/model/EnumArrays.java | 10 +- .../openapitools/client/model/EnumTest.java | 40 +++-- .../model/FakeBigDecimalMap200Response.java | 10 +- .../client/model/FileSchemaTestClass.java | 10 +- .../org/openapitools/client/model/Foo.java | 5 +- .../client/model/FooGetDefaultResponse.java | 5 +- .../openapitools/client/model/FormatTest.java | 80 ++++++---- .../client/model/HasOnlyReadOnly.java | 2 + .../client/model/HealthCheckResult.java | 5 +- .../openapitools/client/model/MapTest.java | 20 ++- ...ropertiesAndAdditionalPropertiesClass.java | 15 +- .../client/model/Model200Response.java | 10 +- .../client/model/ModelApiResponse.java | 15 +- .../openapitools/client/model/ModelFile.java | 5 +- .../openapitools/client/model/ModelList.java | 5 +- .../client/model/ModelReturn.java | 5 +- .../org/openapitools/client/model/Name.java | 12 +- .../client/model/NullableClass.java | 60 +++++--- .../openapitools/client/model/NumberOnly.java | 5 +- .../model/ObjectWithDeprecatedFields.java | 20 ++- .../org/openapitools/client/model/Order.java | 30 ++-- .../client/model/OuterComposite.java | 15 +- .../model/OuterObjectWithEnumProperty.java | 5 +- .../client/model/ParentWithNullable.java | 10 +- .../org/openapitools/client/model/Pet.java | 30 ++-- .../client/model/ReadOnlyFirst.java | 6 +- .../client/model/SpecialModelName.java | 5 +- .../org/openapitools/client/model/Tag.java | 10 +- ...neFreeformAdditionalPropertiesRequest.java | 5 +- .../org/openapitools/client/model/User.java | 40 +++-- .../model/AdditionalPropertiesClass.java | 10 +- .../client/model/AllOfWithSingleRef.java | 10 +- .../org/openapitools/client/model/Animal.java | 10 +- .../model/ArrayOfArrayOfNumberOnly.java | 5 +- .../client/model/ArrayOfNumberOnly.java | 5 +- .../openapitools/client/model/ArrayTest.java | 15 +- .../client/model/Capitalization.java | 30 ++-- .../org/openapitools/client/model/Cat.java | 9 +- .../openapitools/client/model/Category.java | 10 +- .../client/model/ChildWithNullable.java | 9 +- .../openapitools/client/model/ClassModel.java | 5 +- .../org/openapitools/client/model/Client.java | 5 +- .../client/model/DeprecatedObject.java | 5 +- .../org/openapitools/client/model/Dog.java | 9 +- .../openapitools/client/model/EnumArrays.java | 10 +- .../openapitools/client/model/EnumTest.java | 40 +++-- .../model/FakeBigDecimalMap200Response.java | 10 +- .../client/model/FileSchemaTestClass.java | 10 +- .../org/openapitools/client/model/Foo.java | 5 +- .../client/model/FooGetDefaultResponse.java | 5 +- .../openapitools/client/model/FormatTest.java | 80 ++++++---- .../client/model/HasOnlyReadOnly.java | 2 + .../client/model/HealthCheckResult.java | 5 +- .../openapitools/client/model/MapTest.java | 20 ++- ...ropertiesAndAdditionalPropertiesClass.java | 15 +- .../client/model/Model200Response.java | 10 +- .../client/model/ModelApiResponse.java | 15 +- .../openapitools/client/model/ModelFile.java | 5 +- .../openapitools/client/model/ModelList.java | 5 +- .../client/model/ModelReturn.java | 5 +- .../org/openapitools/client/model/Name.java | 12 +- .../client/model/NullableClass.java | 60 +++++--- .../openapitools/client/model/NumberOnly.java | 5 +- .../model/ObjectWithDeprecatedFields.java | 20 ++- .../org/openapitools/client/model/Order.java | 30 ++-- .../client/model/OuterComposite.java | 15 +- .../model/OuterObjectWithEnumProperty.java | 5 +- .../client/model/ParentWithNullable.java | 10 +- .../org/openapitools/client/model/Pet.java | 30 ++-- .../client/model/ReadOnlyFirst.java | 6 +- .../client/model/SpecialModelName.java | 5 +- .../org/openapitools/client/model/Tag.java | 10 +- ...neFreeformAdditionalPropertiesRequest.java | 5 +- .../org/openapitools/client/model/User.java | 40 +++-- .../model/AdditionalPropertiesClass.java | 10 +- .../client/model/AllOfWithSingleRef.java | 10 +- .../org/openapitools/client/model/Animal.java | 10 +- .../model/ArrayOfArrayOfNumberOnly.java | 5 +- .../client/model/ArrayOfNumberOnly.java | 5 +- .../openapitools/client/model/ArrayTest.java | 15 +- .../client/model/Capitalization.java | 30 ++-- .../org/openapitools/client/model/Cat.java | 9 +- .../openapitools/client/model/Category.java | 10 +- .../client/model/ChildWithNullable.java | 9 +- .../openapitools/client/model/ClassModel.java | 5 +- .../org/openapitools/client/model/Client.java | 5 +- .../client/model/DeprecatedObject.java | 5 +- .../org/openapitools/client/model/Dog.java | 9 +- .../openapitools/client/model/EnumArrays.java | 10 +- .../openapitools/client/model/EnumTest.java | 40 +++-- .../model/FakeBigDecimalMap200Response.java | 10 +- .../client/model/FileSchemaTestClass.java | 10 +- .../org/openapitools/client/model/Foo.java | 5 +- .../client/model/FooGetDefaultResponse.java | 5 +- .../openapitools/client/model/FormatTest.java | 80 ++++++---- .../client/model/HasOnlyReadOnly.java | 2 + .../client/model/HealthCheckResult.java | 5 +- .../openapitools/client/model/MapTest.java | 20 ++- ...ropertiesAndAdditionalPropertiesClass.java | 15 +- .../client/model/Model200Response.java | 10 +- .../client/model/ModelApiResponse.java | 15 +- .../openapitools/client/model/ModelFile.java | 5 +- .../openapitools/client/model/ModelList.java | 5 +- .../client/model/ModelReturn.java | 5 +- .../org/openapitools/client/model/Name.java | 12 +- .../client/model/NullableClass.java | 60 +++++--- .../openapitools/client/model/NumberOnly.java | 5 +- .../model/ObjectWithDeprecatedFields.java | 20 ++- .../org/openapitools/client/model/Order.java | 30 ++-- .../client/model/OuterComposite.java | 15 +- .../model/OuterObjectWithEnumProperty.java | 5 +- .../client/model/ParentWithNullable.java | 10 +- .../org/openapitools/client/model/Pet.java | 30 ++-- .../client/model/ReadOnlyFirst.java | 6 +- .../client/model/SpecialModelName.java | 5 +- .../org/openapitools/client/model/Tag.java | 10 +- ...neFreeformAdditionalPropertiesRequest.java | 5 +- .../org/openapitools/client/model/User.java | 40 +++-- .../openapitools/client/model/Category.java | 10 +- .../client/model/ModelApiResponse.java | 15 +- .../org/openapitools/client/model/Order.java | 30 ++-- .../org/openapitools/client/model/Pet.java | 30 ++-- .../org/openapitools/client/model/Tag.java | 10 +- .../org/openapitools/client/model/User.java | 40 +++-- .../openapitools/client/model/Category.java | 10 +- .../client/model/ModelApiResponse.java | 15 +- .../org/openapitools/client/model/Order.java | 30 ++-- .../org/openapitools/client/model/Pet.java | 30 ++-- .../org/openapitools/client/model/Tag.java | 10 +- .../org/openapitools/client/model/User.java | 40 +++-- .../openapitools/client/model/Category.java | 10 +- .../client/model/ModelApiResponse.java | 15 +- .../org/openapitools/client/model/Order.java | 30 ++-- .../org/openapitools/client/model/Pet.java | 30 ++-- .../org/openapitools/client/model/Tag.java | 10 +- .../org/openapitools/client/model/User.java | 40 +++-- .../model/AdditionalPropertiesClass.java | 10 +- .../client/model/AllOfWithSingleRef.java | 10 +- .../org/openapitools/client/model/Animal.java | 10 +- .../model/ArrayOfArrayOfNumberOnly.java | 5 +- .../client/model/ArrayOfNumberOnly.java | 5 +- .../openapitools/client/model/ArrayTest.java | 15 +- .../client/model/Capitalization.java | 30 ++-- .../org/openapitools/client/model/Cat.java | 9 +- .../openapitools/client/model/Category.java | 10 +- .../client/model/ChildWithNullable.java | 9 +- .../openapitools/client/model/ClassModel.java | 5 +- .../org/openapitools/client/model/Client.java | 5 +- .../client/model/DeprecatedObject.java | 5 +- .../org/openapitools/client/model/Dog.java | 9 +- .../openapitools/client/model/EnumArrays.java | 10 +- .../openapitools/client/model/EnumTest.java | 40 +++-- .../model/FakeBigDecimalMap200Response.java | 10 +- .../client/model/FileSchemaTestClass.java | 10 +- .../org/openapitools/client/model/Foo.java | 5 +- .../client/model/FooGetDefaultResponse.java | 5 +- .../openapitools/client/model/FormatTest.java | 80 ++++++---- .../client/model/HasOnlyReadOnly.java | 2 + .../client/model/HealthCheckResult.java | 5 +- .../openapitools/client/model/MapTest.java | 20 ++- ...ropertiesAndAdditionalPropertiesClass.java | 15 +- .../client/model/Model200Response.java | 10 +- .../client/model/ModelApiResponse.java | 15 +- .../openapitools/client/model/ModelFile.java | 5 +- .../openapitools/client/model/ModelList.java | 5 +- .../client/model/ModelReturn.java | 5 +- .../org/openapitools/client/model/Name.java | 12 +- .../client/model/NullableClass.java | 60 +++++--- .../openapitools/client/model/NumberOnly.java | 5 +- .../model/ObjectWithDeprecatedFields.java | 20 ++- .../org/openapitools/client/model/Order.java | 30 ++-- .../client/model/OuterComposite.java | 15 +- .../model/OuterObjectWithEnumProperty.java | 5 +- .../client/model/ParentWithNullable.java | 10 +- .../org/openapitools/client/model/Pet.java | 30 ++-- .../client/model/ReadOnlyFirst.java | 6 +- .../client/model/SpecialModelName.java | 5 +- .../org/openapitools/client/model/Tag.java | 10 +- ...neFreeformAdditionalPropertiesRequest.java | 5 +- .../org/openapitools/client/model/User.java | 40 +++-- .../model/AdditionalPropertiesClass.java | 10 +- .../client/model/AllOfWithSingleRef.java | 10 +- .../org/openapitools/client/model/Animal.java | 10 +- .../model/ArrayOfArrayOfNumberOnly.java | 5 +- .../client/model/ArrayOfNumberOnly.java | 5 +- .../openapitools/client/model/ArrayTest.java | 15 +- .../client/model/Capitalization.java | 30 ++-- .../org/openapitools/client/model/Cat.java | 9 +- .../openapitools/client/model/Category.java | 10 +- .../client/model/ChildWithNullable.java | 9 +- .../openapitools/client/model/ClassModel.java | 5 +- .../org/openapitools/client/model/Client.java | 5 +- .../client/model/DeprecatedObject.java | 5 +- .../org/openapitools/client/model/Dog.java | 9 +- .../openapitools/client/model/EnumArrays.java | 10 +- .../openapitools/client/model/EnumTest.java | 40 +++-- .../model/FakeBigDecimalMap200Response.java | 10 +- .../client/model/FileSchemaTestClass.java | 10 +- .../org/openapitools/client/model/Foo.java | 5 +- .../client/model/FooGetDefaultResponse.java | 5 +- .../openapitools/client/model/FormatTest.java | 80 ++++++---- .../client/model/HasOnlyReadOnly.java | 2 + .../client/model/HealthCheckResult.java | 5 +- .../openapitools/client/model/MapTest.java | 20 ++- ...ropertiesAndAdditionalPropertiesClass.java | 15 +- .../client/model/Model200Response.java | 10 +- .../client/model/ModelApiResponse.java | 15 +- .../openapitools/client/model/ModelFile.java | 5 +- .../openapitools/client/model/ModelList.java | 5 +- .../client/model/ModelReturn.java | 5 +- .../org/openapitools/client/model/Name.java | 12 +- .../client/model/NullableClass.java | 60 +++++--- .../openapitools/client/model/NumberOnly.java | 5 +- .../model/ObjectWithDeprecatedFields.java | 20 ++- .../org/openapitools/client/model/Order.java | 30 ++-- .../client/model/OuterComposite.java | 15 +- .../model/OuterObjectWithEnumProperty.java | 5 +- .../client/model/ParentWithNullable.java | 10 +- .../org/openapitools/client/model/Pet.java | 30 ++-- .../client/model/ReadOnlyFirst.java | 6 +- .../client/model/SpecialModelName.java | 5 +- .../org/openapitools/client/model/Tag.java | 10 +- ...neFreeformAdditionalPropertiesRequest.java | 5 +- .../org/openapitools/client/model/User.java | 40 +++-- .../model/AdditionalPropertiesAnyType.java | 5 +- .../model/AdditionalPropertiesArray.java | 5 +- .../model/AdditionalPropertiesBoolean.java | 5 +- .../model/AdditionalPropertiesClass.java | 55 ++++--- .../model/AdditionalPropertiesInteger.java | 5 +- .../model/AdditionalPropertiesNumber.java | 5 +- .../model/AdditionalPropertiesObject.java | 5 +- .../model/AdditionalPropertiesString.java | 5 +- .../org/openapitools/client/model/Animal.java | 10 +- .../model/ArrayOfArrayOfNumberOnly.java | 5 +- .../client/model/ArrayOfNumberOnly.java | 5 +- .../openapitools/client/model/ArrayTest.java | 15 +- .../org/openapitools/client/model/BigCat.java | 9 +- .../client/model/Capitalization.java | 30 ++-- .../org/openapitools/client/model/Cat.java | 9 +- .../openapitools/client/model/Category.java | 10 +- .../openapitools/client/model/ClassModel.java | 5 +- .../org/openapitools/client/model/Client.java | 5 +- .../org/openapitools/client/model/Dog.java | 9 +- .../openapitools/client/model/EnumArrays.java | 10 +- .../openapitools/client/model/EnumTest.java | 25 +-- .../client/model/FileSchemaTestClass.java | 10 +- .../openapitools/client/model/FormatTest.java | 70 +++++---- .../client/model/HasOnlyReadOnly.java | 2 + .../openapitools/client/model/MapTest.java | 20 ++- ...ropertiesAndAdditionalPropertiesClass.java | 15 +- .../client/model/Model200Response.java | 10 +- .../client/model/ModelApiResponse.java | 15 +- .../openapitools/client/model/ModelFile.java | 5 +- .../openapitools/client/model/ModelList.java | 5 +- .../client/model/ModelReturn.java | 5 +- .../org/openapitools/client/model/Name.java | 12 +- .../openapitools/client/model/NumberOnly.java | 5 +- .../org/openapitools/client/model/Order.java | 30 ++-- .../client/model/OuterComposite.java | 15 +- .../org/openapitools/client/model/Pet.java | 30 ++-- .../client/model/ReadOnlyFirst.java | 6 +- .../client/model/SpecialModelName.java | 5 +- .../org/openapitools/client/model/Tag.java | 10 +- .../client/model/TypeHolderDefault.java | 25 +-- .../client/model/TypeHolderExample.java | 30 ++-- .../org/openapitools/client/model/User.java | 40 +++-- .../openapitools/client/model/XmlItem.java | 145 +++++++++++------- .../model/AdditionalPropertiesAnyType.java | 5 +- .../model/AdditionalPropertiesArray.java | 5 +- .../model/AdditionalPropertiesBoolean.java | 5 +- .../model/AdditionalPropertiesClass.java | 55 ++++--- .../model/AdditionalPropertiesInteger.java | 5 +- .../model/AdditionalPropertiesNumber.java | 5 +- .../model/AdditionalPropertiesObject.java | 5 +- .../model/AdditionalPropertiesString.java | 5 +- .../org/openapitools/client/model/Animal.java | 10 +- .../model/ArrayOfArrayOfNumberOnly.java | 5 +- .../client/model/ArrayOfNumberOnly.java | 5 +- .../openapitools/client/model/ArrayTest.java | 15 +- .../org/openapitools/client/model/BigCat.java | 9 +- .../client/model/Capitalization.java | 30 ++-- .../org/openapitools/client/model/Cat.java | 9 +- .../openapitools/client/model/Category.java | 10 +- .../openapitools/client/model/ClassModel.java | 5 +- .../org/openapitools/client/model/Client.java | 5 +- .../org/openapitools/client/model/Dog.java | 9 +- .../openapitools/client/model/EnumArrays.java | 10 +- .../openapitools/client/model/EnumTest.java | 25 +-- .../client/model/FileSchemaTestClass.java | 10 +- .../openapitools/client/model/FormatTest.java | 70 +++++---- .../client/model/HasOnlyReadOnly.java | 2 + .../openapitools/client/model/MapTest.java | 20 ++- ...ropertiesAndAdditionalPropertiesClass.java | 15 +- .../client/model/Model200Response.java | 10 +- .../client/model/ModelApiResponse.java | 15 +- .../openapitools/client/model/ModelFile.java | 5 +- .../openapitools/client/model/ModelList.java | 5 +- .../client/model/ModelReturn.java | 5 +- .../org/openapitools/client/model/Name.java | 12 +- .../openapitools/client/model/NumberOnly.java | 5 +- .../org/openapitools/client/model/Order.java | 30 ++-- .../client/model/OuterComposite.java | 15 +- .../org/openapitools/client/model/Pet.java | 30 ++-- .../client/model/ReadOnlyFirst.java | 6 +- .../client/model/SpecialModelName.java | 5 +- .../org/openapitools/client/model/Tag.java | 10 +- .../client/model/TypeHolderDefault.java | 25 +-- .../client/model/TypeHolderExample.java | 30 ++-- .../org/openapitools/client/model/User.java | 40 +++-- .../openapitools/client/model/XmlItem.java | 145 +++++++++++------- .../model/AdditionalPropertiesAnyType.java | 5 +- .../model/AdditionalPropertiesArray.java | 5 +- .../model/AdditionalPropertiesBoolean.java | 5 +- .../model/AdditionalPropertiesClass.java | 55 ++++--- .../model/AdditionalPropertiesInteger.java | 5 +- .../model/AdditionalPropertiesNumber.java | 5 +- .../model/AdditionalPropertiesObject.java | 5 +- .../model/AdditionalPropertiesString.java | 5 +- .../org/openapitools/client/model/Animal.java | 10 +- .../model/ArrayOfArrayOfNumberOnly.java | 5 +- .../client/model/ArrayOfNumberOnly.java | 5 +- .../openapitools/client/model/ArrayTest.java | 15 +- .../org/openapitools/client/model/BigCat.java | 9 +- .../client/model/Capitalization.java | 30 ++-- .../org/openapitools/client/model/Cat.java | 9 +- .../openapitools/client/model/Category.java | 10 +- .../openapitools/client/model/ClassModel.java | 5 +- .../org/openapitools/client/model/Client.java | 5 +- .../org/openapitools/client/model/Dog.java | 9 +- .../openapitools/client/model/EnumArrays.java | 10 +- .../openapitools/client/model/EnumTest.java | 25 +-- .../client/model/FileSchemaTestClass.java | 10 +- .../openapitools/client/model/FormatTest.java | 70 +++++---- .../client/model/HasOnlyReadOnly.java | 2 + .../openapitools/client/model/MapTest.java | 20 ++- ...ropertiesAndAdditionalPropertiesClass.java | 15 +- .../client/model/Model200Response.java | 10 +- .../client/model/ModelApiResponse.java | 15 +- .../openapitools/client/model/ModelFile.java | 5 +- .../openapitools/client/model/ModelList.java | 5 +- .../client/model/ModelReturn.java | 5 +- .../org/openapitools/client/model/Name.java | 12 +- .../openapitools/client/model/NumberOnly.java | 5 +- .../org/openapitools/client/model/Order.java | 30 ++-- .../client/model/OuterComposite.java | 15 +- .../org/openapitools/client/model/Pet.java | 30 ++-- .../client/model/ReadOnlyFirst.java | 6 +- .../client/model/SpecialModelName.java | 5 +- .../org/openapitools/client/model/Tag.java | 10 +- .../client/model/TypeHolderDefault.java | 25 +-- .../client/model/TypeHolderExample.java | 30 ++-- .../org/openapitools/client/model/User.java | 40 +++-- .../openapitools/client/model/XmlItem.java | 145 +++++++++++------- .../model/AdditionalPropertiesAnyType.java | 5 +- .../model/AdditionalPropertiesArray.java | 5 +- .../model/AdditionalPropertiesBoolean.java | 5 +- .../model/AdditionalPropertiesClass.java | 55 ++++--- .../model/AdditionalPropertiesInteger.java | 5 +- .../model/AdditionalPropertiesNumber.java | 5 +- .../model/AdditionalPropertiesObject.java | 5 +- .../model/AdditionalPropertiesString.java | 5 +- .../org/openapitools/client/model/Animal.java | 10 +- .../model/ArrayOfArrayOfNumberOnly.java | 5 +- .../client/model/ArrayOfNumberOnly.java | 5 +- .../openapitools/client/model/ArrayTest.java | 15 +- .../org/openapitools/client/model/BigCat.java | 9 +- .../client/model/Capitalization.java | 30 ++-- .../org/openapitools/client/model/Cat.java | 9 +- .../openapitools/client/model/Category.java | 10 +- .../openapitools/client/model/ClassModel.java | 5 +- .../org/openapitools/client/model/Client.java | 5 +- .../org/openapitools/client/model/Dog.java | 9 +- .../openapitools/client/model/EnumArrays.java | 10 +- .../openapitools/client/model/EnumTest.java | 25 +-- .../client/model/FileSchemaTestClass.java | 10 +- .../openapitools/client/model/FormatTest.java | 70 +++++---- .../client/model/HasOnlyReadOnly.java | 2 + .../openapitools/client/model/MapTest.java | 20 ++- ...ropertiesAndAdditionalPropertiesClass.java | 15 +- .../client/model/Model200Response.java | 10 +- .../client/model/ModelApiResponse.java | 15 +- .../openapitools/client/model/ModelFile.java | 5 +- .../openapitools/client/model/ModelList.java | 5 +- .../client/model/ModelReturn.java | 5 +- .../org/openapitools/client/model/Name.java | 12 +- .../openapitools/client/model/NumberOnly.java | 5 +- .../org/openapitools/client/model/Order.java | 30 ++-- .../client/model/OuterComposite.java | 15 +- .../org/openapitools/client/model/Pet.java | 30 ++-- .../client/model/ReadOnlyFirst.java | 6 +- .../client/model/SpecialModelName.java | 5 +- .../org/openapitools/client/model/Tag.java | 10 +- .../client/model/TypeHolderDefault.java | 25 +-- .../client/model/TypeHolderExample.java | 30 ++-- .../org/openapitools/client/model/User.java | 40 +++-- .../openapitools/client/model/XmlItem.java | 145 +++++++++++------- .../model/AdditionalPropertiesAnyType.java | 5 +- .../model/AdditionalPropertiesArray.java | 5 +- .../model/AdditionalPropertiesBoolean.java | 5 +- .../model/AdditionalPropertiesClass.java | 55 ++++--- .../model/AdditionalPropertiesInteger.java | 5 +- .../model/AdditionalPropertiesNumber.java | 5 +- .../model/AdditionalPropertiesObject.java | 5 +- .../model/AdditionalPropertiesString.java | 5 +- .../org/openapitools/client/model/Animal.java | 10 +- .../model/ArrayOfArrayOfNumberOnly.java | 5 +- .../client/model/ArrayOfNumberOnly.java | 5 +- .../openapitools/client/model/ArrayTest.java | 15 +- .../org/openapitools/client/model/BigCat.java | 9 +- .../client/model/Capitalization.java | 30 ++-- .../org/openapitools/client/model/Cat.java | 9 +- .../openapitools/client/model/Category.java | 10 +- .../openapitools/client/model/ClassModel.java | 5 +- .../org/openapitools/client/model/Client.java | 5 +- .../org/openapitools/client/model/Dog.java | 9 +- .../openapitools/client/model/EnumArrays.java | 10 +- .../openapitools/client/model/EnumTest.java | 25 +-- .../client/model/FileSchemaTestClass.java | 10 +- .../openapitools/client/model/FormatTest.java | 70 +++++---- .../client/model/HasOnlyReadOnly.java | 2 + .../openapitools/client/model/MapTest.java | 20 ++- ...ropertiesAndAdditionalPropertiesClass.java | 15 +- .../client/model/Model200Response.java | 10 +- .../client/model/ModelApiResponse.java | 15 +- .../openapitools/client/model/ModelFile.java | 5 +- .../openapitools/client/model/ModelList.java | 5 +- .../client/model/ModelReturn.java | 5 +- .../org/openapitools/client/model/Name.java | 12 +- .../openapitools/client/model/NumberOnly.java | 5 +- .../org/openapitools/client/model/Order.java | 30 ++-- .../client/model/OuterComposite.java | 15 +- .../org/openapitools/client/model/Pet.java | 30 ++-- .../client/model/ReadOnlyFirst.java | 6 +- .../client/model/SpecialModelName.java | 5 +- .../org/openapitools/client/model/Tag.java | 10 +- .../client/model/TypeHolderDefault.java | 25 +-- .../client/model/TypeHolderExample.java | 30 ++-- .../org/openapitools/client/model/User.java | 40 +++-- .../openapitools/client/model/XmlItem.java | 145 +++++++++++------- .../model/AdditionalPropertiesClass.java | 10 +- .../client/model/AllOfWithSingleRef.java | 10 +- .../org/openapitools/client/model/Animal.java | 10 +- .../model/ArrayOfArrayOfNumberOnly.java | 5 +- .../client/model/ArrayOfNumberOnly.java | 5 +- .../openapitools/client/model/ArrayTest.java | 15 +- .../client/model/Capitalization.java | 30 ++-- .../org/openapitools/client/model/Cat.java | 9 +- .../openapitools/client/model/Category.java | 10 +- .../client/model/ChildWithNullable.java | 9 +- .../openapitools/client/model/ClassModel.java | 5 +- .../org/openapitools/client/model/Client.java | 5 +- .../client/model/DeprecatedObject.java | 5 +- .../org/openapitools/client/model/Dog.java | 9 +- .../openapitools/client/model/EnumArrays.java | 10 +- .../openapitools/client/model/EnumTest.java | 40 +++-- .../model/FakeBigDecimalMap200Response.java | 10 +- .../client/model/FileSchemaTestClass.java | 10 +- .../org/openapitools/client/model/Foo.java | 5 +- .../client/model/FooGetDefaultResponse.java | 5 +- .../openapitools/client/model/FormatTest.java | 80 ++++++---- .../client/model/HasOnlyReadOnly.java | 2 + .../client/model/HealthCheckResult.java | 5 +- .../openapitools/client/model/MapTest.java | 20 ++- ...ropertiesAndAdditionalPropertiesClass.java | 15 +- .../client/model/Model200Response.java | 10 +- .../client/model/ModelApiResponse.java | 15 +- .../openapitools/client/model/ModelFile.java | 5 +- .../openapitools/client/model/ModelList.java | 5 +- .../client/model/ModelReturn.java | 5 +- .../org/openapitools/client/model/Name.java | 12 +- .../client/model/NullableClass.java | 60 +++++--- .../openapitools/client/model/NumberOnly.java | 5 +- .../model/ObjectWithDeprecatedFields.java | 20 ++- .../org/openapitools/client/model/Order.java | 30 ++-- .../client/model/OuterComposite.java | 15 +- .../model/OuterObjectWithEnumProperty.java | 5 +- .../client/model/ParentWithNullable.java | 10 +- .../org/openapitools/client/model/Pet.java | 30 ++-- .../client/model/ReadOnlyFirst.java | 6 +- .../client/model/SpecialModelName.java | 5 +- .../org/openapitools/client/model/Tag.java | 10 +- ...neFreeformAdditionalPropertiesRequest.java | 5 +- .../org/openapitools/client/model/User.java | 40 +++-- .../model/AdditionalPropertiesClass.java | 10 +- .../client/model/AllOfWithSingleRef.java | 10 +- .../org/openapitools/client/model/Animal.java | 10 +- .../model/ArrayOfArrayOfNumberOnly.java | 5 +- .../client/model/ArrayOfNumberOnly.java | 5 +- .../openapitools/client/model/ArrayTest.java | 15 +- .../client/model/Capitalization.java | 30 ++-- .../org/openapitools/client/model/Cat.java | 9 +- .../openapitools/client/model/Category.java | 10 +- .../client/model/ChildWithNullable.java | 9 +- .../openapitools/client/model/ClassModel.java | 5 +- .../org/openapitools/client/model/Client.java | 5 +- .../client/model/DeprecatedObject.java | 5 +- .../org/openapitools/client/model/Dog.java | 9 +- .../openapitools/client/model/EnumArrays.java | 10 +- .../openapitools/client/model/EnumTest.java | 40 +++-- .../model/FakeBigDecimalMap200Response.java | 10 +- .../client/model/FileSchemaTestClass.java | 10 +- .../org/openapitools/client/model/Foo.java | 5 +- .../client/model/FooGetDefaultResponse.java | 5 +- .../openapitools/client/model/FormatTest.java | 80 ++++++---- .../client/model/HasOnlyReadOnly.java | 2 + .../client/model/HealthCheckResult.java | 5 +- .../openapitools/client/model/MapTest.java | 20 ++- ...ropertiesAndAdditionalPropertiesClass.java | 15 +- .../client/model/Model200Response.java | 10 +- .../client/model/ModelApiResponse.java | 15 +- .../openapitools/client/model/ModelFile.java | 5 +- .../openapitools/client/model/ModelList.java | 5 +- .../client/model/ModelReturn.java | 5 +- .../org/openapitools/client/model/Name.java | 12 +- .../client/model/NullableClass.java | 60 +++++--- .../openapitools/client/model/NumberOnly.java | 5 +- .../model/ObjectWithDeprecatedFields.java | 20 ++- .../org/openapitools/client/model/Order.java | 30 ++-- .../client/model/OuterComposite.java | 15 +- .../model/OuterObjectWithEnumProperty.java | 5 +- .../client/model/ParentWithNullable.java | 10 +- .../org/openapitools/client/model/Pet.java | 30 ++-- .../client/model/ReadOnlyFirst.java | 6 +- .../client/model/SpecialModelName.java | 5 +- .../org/openapitools/client/model/Tag.java | 10 +- ...neFreeformAdditionalPropertiesRequest.java | 5 +- .../org/openapitools/client/model/User.java | 40 +++-- .../client/model/ByteArrayObject.java | 25 +-- .../model/AdditionalPropertiesClass.java | 10 +- .../client/model/AllOfWithSingleRef.java | 10 +- .../org/openapitools/client/model/Animal.java | 10 +- .../model/ArrayOfArrayOfNumberOnly.java | 5 +- .../client/model/ArrayOfNumberOnly.java | 5 +- .../openapitools/client/model/ArrayTest.java | 15 +- .../client/model/Capitalization.java | 30 ++-- .../org/openapitools/client/model/Cat.java | 9 +- .../openapitools/client/model/Category.java | 10 +- .../client/model/ChildWithNullable.java | 9 +- .../openapitools/client/model/ClassModel.java | 5 +- .../org/openapitools/client/model/Client.java | 5 +- .../client/model/DeprecatedObject.java | 5 +- .../org/openapitools/client/model/Dog.java | 9 +- .../openapitools/client/model/EnumArrays.java | 10 +- .../openapitools/client/model/EnumTest.java | 40 +++-- .../model/FakeBigDecimalMap200Response.java | 10 +- .../client/model/FileSchemaTestClass.java | 10 +- .../org/openapitools/client/model/Foo.java | 5 +- .../client/model/FooGetDefaultResponse.java | 5 +- .../openapitools/client/model/FormatTest.java | 80 ++++++---- .../client/model/HasOnlyReadOnly.java | 2 + .../client/model/HealthCheckResult.java | 5 +- .../openapitools/client/model/MapTest.java | 20 ++- ...ropertiesAndAdditionalPropertiesClass.java | 15 +- .../client/model/Model200Response.java | 10 +- .../client/model/ModelApiResponse.java | 15 +- .../openapitools/client/model/ModelFile.java | 5 +- .../openapitools/client/model/ModelList.java | 5 +- .../client/model/ModelReturn.java | 5 +- .../org/openapitools/client/model/Name.java | 12 +- .../client/model/NullableClass.java | 60 +++++--- .../openapitools/client/model/NumberOnly.java | 5 +- .../model/ObjectWithDeprecatedFields.java | 20 ++- .../org/openapitools/client/model/Order.java | 30 ++-- .../client/model/OuterComposite.java | 15 +- .../model/OuterObjectWithEnumProperty.java | 5 +- .../client/model/ParentWithNullable.java | 10 +- .../org/openapitools/client/model/Pet.java | 30 ++-- .../client/model/ReadOnlyFirst.java | 6 +- .../client/model/SpecialModelName.java | 5 +- .../org/openapitools/client/model/Tag.java | 10 +- ...neFreeformAdditionalPropertiesRequest.java | 5 +- .../org/openapitools/client/model/User.java | 40 +++-- .../model/AdditionalPropertiesClass.java | 10 +- .../client/model/AllOfWithSingleRef.java | 10 +- .../org/openapitools/client/model/Animal.java | 10 +- .../model/ArrayOfArrayOfNumberOnly.java | 5 +- .../client/model/ArrayOfNumberOnly.java | 5 +- .../openapitools/client/model/ArrayTest.java | 15 +- .../client/model/Capitalization.java | 30 ++-- .../org/openapitools/client/model/Cat.java | 9 +- .../openapitools/client/model/Category.java | 10 +- .../client/model/ChildWithNullable.java | 9 +- .../openapitools/client/model/ClassModel.java | 5 +- .../org/openapitools/client/model/Client.java | 5 +- .../client/model/DeprecatedObject.java | 5 +- .../org/openapitools/client/model/Dog.java | 9 +- .../openapitools/client/model/EnumArrays.java | 10 +- .../openapitools/client/model/EnumTest.java | 40 +++-- .../model/FakeBigDecimalMap200Response.java | 10 +- .../client/model/FileSchemaTestClass.java | 10 +- .../org/openapitools/client/model/Foo.java | 5 +- .../client/model/FooGetDefaultResponse.java | 5 +- .../openapitools/client/model/FormatTest.java | 80 ++++++---- .../client/model/HasOnlyReadOnly.java | 2 + .../client/model/HealthCheckResult.java | 5 +- .../openapitools/client/model/MapTest.java | 20 ++- ...ropertiesAndAdditionalPropertiesClass.java | 15 +- .../client/model/Model200Response.java | 10 +- .../client/model/ModelApiResponse.java | 15 +- .../openapitools/client/model/ModelFile.java | 5 +- .../openapitools/client/model/ModelList.java | 5 +- .../client/model/ModelReturn.java | 5 +- .../org/openapitools/client/model/Name.java | 12 +- .../client/model/NullableClass.java | 60 +++++--- .../openapitools/client/model/NumberOnly.java | 5 +- .../model/ObjectWithDeprecatedFields.java | 20 ++- .../org/openapitools/client/model/Order.java | 30 ++-- .../client/model/OuterComposite.java | 15 +- .../model/OuterObjectWithEnumProperty.java | 5 +- .../client/model/ParentWithNullable.java | 10 +- .../org/openapitools/client/model/Pet.java | 30 ++-- .../client/model/ReadOnlyFirst.java | 6 +- .../client/model/SpecialModelName.java | 5 +- .../org/openapitools/client/model/Tag.java | 10 +- ...neFreeformAdditionalPropertiesRequest.java | 5 +- .../org/openapitools/client/model/User.java | 40 +++-- .../client/model/ChildSchema.java | 5 +- .../client/model/MySchemaNameCharacters.java | 5 +- .../org/openapitools/client/model/Parent.java | 5 +- .../openapitools/client/model/Category.java | 10 +- .../client/model/ModelApiResponse.java | 15 +- .../org/openapitools/client/model/Order.java | 30 ++-- .../org/openapitools/client/model/Pet.java | 30 ++-- .../org/openapitools/client/model/Tag.java | 10 +- .../org/openapitools/client/model/User.java | 40 +++-- .../openapitools/client/model/Category.java | 10 +- .../client/model/ModelApiResponse.java | 15 +- .../org/openapitools/client/model/Order.java | 30 ++-- .../org/openapitools/client/model/Pet.java | 30 ++-- .../org/openapitools/client/model/Tag.java | 10 +- .../org/openapitools/client/model/User.java | 40 +++-- .../model/AdditionalPropertiesClass.java | 39 +++-- .../org/openapitools/client/model/Animal.java | 10 +- .../org/openapitools/client/model/Apple.java | 10 +- .../openapitools/client/model/AppleReq.java | 10 +- .../model/ArrayOfArrayOfNumberOnly.java | 5 +- .../client/model/ArrayOfNumberOnly.java | 5 +- .../openapitools/client/model/ArrayTest.java | 15 +- .../org/openapitools/client/model/Banana.java | 5 +- .../openapitools/client/model/BananaReq.java | 10 +- .../openapitools/client/model/BasquePig.java | 5 +- .../client/model/Capitalization.java | 30 ++-- .../org/openapitools/client/model/Cat.java | 5 +- .../openapitools/client/model/Category.java | 10 +- .../openapitools/client/model/ChildCat.java | 10 +- .../openapitools/client/model/ClassModel.java | 5 +- .../org/openapitools/client/model/Client.java | 5 +- .../client/model/ComplexQuadrilateral.java | 10 +- .../openapitools/client/model/DanishPig.java | 5 +- .../client/model/DeprecatedObject.java | 5 +- .../org/openapitools/client/model/Dog.java | 5 +- .../openapitools/client/model/Drawing.java | 18 ++- .../openapitools/client/model/EnumArrays.java | 10 +- .../openapitools/client/model/EnumTest.java | 44 +++--- .../client/model/EquilateralTriangle.java | 10 +- .../client/model/FileSchemaTestClass.java | 10 +- .../org/openapitools/client/model/Foo.java | 5 +- .../client/model/FooGetDefaultResponse.java | 5 +- .../openapitools/client/model/FormatTest.java | 80 ++++++---- .../client/model/GrandparentAnimal.java | 5 +- .../client/model/HasOnlyReadOnly.java | 2 + .../client/model/HealthCheckResult.java | 4 +- .../client/model/IsoscelesTriangle.java | 10 +- .../openapitools/client/model/MapTest.java | 20 ++- ...ropertiesAndAdditionalPropertiesClass.java | 15 +- .../client/model/Model200Response.java | 10 +- .../client/model/ModelApiResponse.java | 15 +- .../openapitools/client/model/ModelFile.java | 5 +- .../openapitools/client/model/ModelList.java | 5 +- .../client/model/ModelReturn.java | 5 +- .../org/openapitools/client/model/Name.java | 12 +- .../client/model/NullableClass.java | 50 +++--- .../openapitools/client/model/NumberOnly.java | 5 +- .../model/ObjectWithDeprecatedFields.java | 20 ++- .../org/openapitools/client/model/Order.java | 30 ++-- .../client/model/OuterComposite.java | 15 +- .../org/openapitools/client/model/Pet.java | 30 ++-- .../client/model/QuadrilateralInterface.java | 5 +- .../client/model/ReadOnlyFirst.java | 6 +- .../client/model/ScaleneTriangle.java | 10 +- .../client/model/ShapeInterface.java | 5 +- .../client/model/SimpleQuadrilateral.java | 10 +- .../client/model/SpecialModelName.java | 10 +- .../org/openapitools/client/model/Tag.java | 10 +- ...neFreeformAdditionalPropertiesRequest.java | 5 +- .../client/model/TriangleInterface.java | 5 +- .../org/openapitools/client/model/User.java | 57 ++++--- .../org/openapitools/client/model/Whale.java | 15 +- .../org/openapitools/client/model/Zebra.java | 10 +- 1571 files changed, 14763 insertions(+), 9886 deletions(-) diff --git a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Bird.java b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Bird.java index 1b4ae2ef8106..32d791dfe18e 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Bird.java +++ b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Bird.java @@ -36,15 +36,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Bird { public static final String JSON_PROPERTY_SIZE = "size"; + @javax.annotation.Nullable private String size; public static final String JSON_PROPERTY_COLOR = "color"; + @javax.annotation.Nullable private String color; public Bird() { } - public Bird size(String size) { + public Bird size(@javax.annotation.Nullable String size) { this.size = size; return this; @@ -65,11 +67,11 @@ public String getSize() { @JsonProperty(JSON_PROPERTY_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSize(String size) { + public void setSize(@javax.annotation.Nullable String size) { this.size = size; } - public Bird color(String color) { + public Bird color(@javax.annotation.Nullable String color) { this.color = color; return this; @@ -90,7 +92,7 @@ public String getColor() { @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setColor(String color) { + public void setColor(@javax.annotation.Nullable String color) { this.color = color; } diff --git a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Category.java b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Category.java index 75a768d3095c..b1b9fb54d6cd 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Category.java @@ -36,15 +36,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Category { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public Category() { } - public Category id(Long id) { + public Category id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -65,11 +67,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -90,7 +92,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/DataQuery.java b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/DataQuery.java index f03e84cbc7bd..3cddbfd4a547 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/DataQuery.java +++ b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/DataQuery.java @@ -42,19 +42,22 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class DataQuery extends Query { public static final String JSON_PROPERTY_SUFFIX = "suffix"; + @javax.annotation.Nullable private String suffix; public static final String JSON_PROPERTY_TEXT = "text"; + @javax.annotation.Nullable private String text; public static final String JSON_PROPERTY_DATE = "date"; + @javax.annotation.Nullable private OffsetDateTime date; public DataQuery() { } - public DataQuery suffix(String suffix) { + public DataQuery suffix(@javax.annotation.Nullable String suffix) { this.suffix = suffix; return this; @@ -75,11 +78,11 @@ public String getSuffix() { @JsonProperty(JSON_PROPERTY_SUFFIX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSuffix(String suffix) { + public void setSuffix(@javax.annotation.Nullable String suffix) { this.suffix = suffix; } - public DataQuery text(String text) { + public DataQuery text(@javax.annotation.Nullable String text) { this.text = text; return this; @@ -100,11 +103,11 @@ public String getText() { @JsonProperty(JSON_PROPERTY_TEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setText(String text) { + public void setText(@javax.annotation.Nullable String text) { this.text = text; } - public DataQuery date(OffsetDateTime date) { + public DataQuery date(@javax.annotation.Nullable OffsetDateTime date) { this.date = date; return this; @@ -125,18 +128,18 @@ public OffsetDateTime getDate() { @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDate(OffsetDateTime date) { + public void setDate(@javax.annotation.Nullable OffsetDateTime date) { this.date = date; } @Override - public DataQuery id(Long id) { + public DataQuery id(@javax.annotation.Nullable Long id) { this.setId(id); return this; } @Override - public DataQuery outcomes(List outcomes) { + public DataQuery outcomes(@javax.annotation.Nullable List outcomes) { this.setOutcomes(outcomes); return this; } diff --git a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/DefaultValue.java b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/DefaultValue.java index 238c05cae822..9fde4ef5863b 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/DefaultValue.java +++ b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/DefaultValue.java @@ -50,6 +50,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class DefaultValue { public static final String JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT = "array_string_enum_ref_default"; + @javax.annotation.Nullable private List arrayStringEnumRefDefault = new ArrayList<>(Arrays.asList(StringEnumRef.SUCCESS, StringEnumRef.FAILURE)); /** @@ -90,30 +91,37 @@ public static ArrayStringEnumDefaultEnum fromValue(String value) { } public static final String JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT = "array_string_enum_default"; + @javax.annotation.Nullable private List arrayStringEnumDefault = new ArrayList<>(Arrays.asList(ArrayStringEnumDefaultEnum.SUCCESS, ArrayStringEnumDefaultEnum.FAILURE)); public static final String JSON_PROPERTY_ARRAY_STRING_DEFAULT = "array_string_default"; + @javax.annotation.Nullable private List arrayStringDefault = new ArrayList<>(Arrays.asList("failure", "skipped")); public static final String JSON_PROPERTY_ARRAY_INTEGER_DEFAULT = "array_integer_default"; + @javax.annotation.Nullable private List arrayIntegerDefault = new ArrayList<>(Arrays.asList(1, 3)); public static final String JSON_PROPERTY_ARRAY_STRING = "array_string"; + @javax.annotation.Nullable private List arrayString = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_STRING_NULLABLE = "array_string_nullable"; + @javax.annotation.Nullable private JsonNullable> arrayStringNullable = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_STRING_EXTENSION_NULLABLE = "array_string_extension_nullable"; + @javax.annotation.Nullable private JsonNullable> arrayStringExtensionNullable = JsonNullable.>undefined(); public static final String JSON_PROPERTY_STRING_NULLABLE = "string_nullable"; + @javax.annotation.Nullable private JsonNullable stringNullable = JsonNullable.undefined(); public DefaultValue() { } - public DefaultValue arrayStringEnumRefDefault(List arrayStringEnumRefDefault) { + public DefaultValue arrayStringEnumRefDefault(@javax.annotation.Nullable List arrayStringEnumRefDefault) { this.arrayStringEnumRefDefault = arrayStringEnumRefDefault; return this; @@ -142,11 +150,11 @@ public List getArrayStringEnumRefDefault() { @JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayStringEnumRefDefault(List arrayStringEnumRefDefault) { + public void setArrayStringEnumRefDefault(@javax.annotation.Nullable List arrayStringEnumRefDefault) { this.arrayStringEnumRefDefault = arrayStringEnumRefDefault; } - public DefaultValue arrayStringEnumDefault(List arrayStringEnumDefault) { + public DefaultValue arrayStringEnumDefault(@javax.annotation.Nullable List arrayStringEnumDefault) { this.arrayStringEnumDefault = arrayStringEnumDefault; return this; @@ -175,11 +183,11 @@ public List getArrayStringEnumDefault() { @JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayStringEnumDefault(List arrayStringEnumDefault) { + public void setArrayStringEnumDefault(@javax.annotation.Nullable List arrayStringEnumDefault) { this.arrayStringEnumDefault = arrayStringEnumDefault; } - public DefaultValue arrayStringDefault(List arrayStringDefault) { + public DefaultValue arrayStringDefault(@javax.annotation.Nullable List arrayStringDefault) { this.arrayStringDefault = arrayStringDefault; return this; @@ -208,11 +216,11 @@ public List getArrayStringDefault() { @JsonProperty(JSON_PROPERTY_ARRAY_STRING_DEFAULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayStringDefault(List arrayStringDefault) { + public void setArrayStringDefault(@javax.annotation.Nullable List arrayStringDefault) { this.arrayStringDefault = arrayStringDefault; } - public DefaultValue arrayIntegerDefault(List arrayIntegerDefault) { + public DefaultValue arrayIntegerDefault(@javax.annotation.Nullable List arrayIntegerDefault) { this.arrayIntegerDefault = arrayIntegerDefault; return this; @@ -241,11 +249,11 @@ public List getArrayIntegerDefault() { @JsonProperty(JSON_PROPERTY_ARRAY_INTEGER_DEFAULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayIntegerDefault(List arrayIntegerDefault) { + public void setArrayIntegerDefault(@javax.annotation.Nullable List arrayIntegerDefault) { this.arrayIntegerDefault = arrayIntegerDefault; } - public DefaultValue arrayString(List arrayString) { + public DefaultValue arrayString(@javax.annotation.Nullable List arrayString) { this.arrayString = arrayString; return this; @@ -274,11 +282,11 @@ public List getArrayString() { @JsonProperty(JSON_PROPERTY_ARRAY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayString(List arrayString) { + public void setArrayString(@javax.annotation.Nullable List arrayString) { this.arrayString = arrayString; } - public DefaultValue arrayStringNullable(List arrayStringNullable) { + public DefaultValue arrayStringNullable(@javax.annotation.Nullable List arrayStringNullable) { this.arrayStringNullable = JsonNullable.>of(arrayStringNullable); return this; @@ -319,11 +327,11 @@ public void setArrayStringNullable_JsonNullable(JsonNullable> array this.arrayStringNullable = arrayStringNullable; } - public void setArrayStringNullable(List arrayStringNullable) { + public void setArrayStringNullable(@javax.annotation.Nullable List arrayStringNullable) { this.arrayStringNullable = JsonNullable.>of(arrayStringNullable); } - public DefaultValue arrayStringExtensionNullable(List arrayStringExtensionNullable) { + public DefaultValue arrayStringExtensionNullable(@javax.annotation.Nullable List arrayStringExtensionNullable) { this.arrayStringExtensionNullable = JsonNullable.>of(arrayStringExtensionNullable); return this; @@ -364,11 +372,11 @@ public void setArrayStringExtensionNullable_JsonNullable(JsonNullable arrayStringExtensionNullable) { + public void setArrayStringExtensionNullable(@javax.annotation.Nullable List arrayStringExtensionNullable) { this.arrayStringExtensionNullable = JsonNullable.>of(arrayStringExtensionNullable); } - public DefaultValue stringNullable(String stringNullable) { + public DefaultValue stringNullable(@javax.annotation.Nullable String stringNullable) { this.stringNullable = JsonNullable.of(stringNullable); return this; @@ -397,7 +405,7 @@ public void setStringNullable_JsonNullable(JsonNullable stringNullable) this.stringNullable = stringNullable; } - public void setStringNullable(String stringNullable) { + public void setStringNullable(@javax.annotation.Nullable String stringNullable) { this.stringNullable = JsonNullable.of(stringNullable); } diff --git a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java index 4ebacbedf8c1..12817adc63ba 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java +++ b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java @@ -38,18 +38,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class NumberPropertiesOnly { public static final String JSON_PROPERTY_NUMBER = "number"; + @javax.annotation.Nullable private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; + @javax.annotation.Nullable private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; + @javax.annotation.Nullable private Double _double; public NumberPropertiesOnly() { } - public NumberPropertiesOnly number(BigDecimal number) { + public NumberPropertiesOnly number(@javax.annotation.Nullable BigDecimal number) { this.number = number; return this; @@ -70,11 +73,11 @@ public BigDecimal getNumber() { @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNumber(BigDecimal number) { + public void setNumber(@javax.annotation.Nullable BigDecimal number) { this.number = number; } - public NumberPropertiesOnly _float(Float _float) { + public NumberPropertiesOnly _float(@javax.annotation.Nullable Float _float) { this._float = _float; return this; @@ -95,11 +98,11 @@ public Float getFloat() { @JsonProperty(JSON_PROPERTY_FLOAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFloat(Float _float) { + public void setFloat(@javax.annotation.Nullable Float _float) { this._float = _float; } - public NumberPropertiesOnly _double(Double _double) { + public NumberPropertiesOnly _double(@javax.annotation.Nullable Double _double) { this._double = _double; return this; @@ -122,7 +125,7 @@ public Double getDouble() { @JsonProperty(JSON_PROPERTY_DOUBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDouble(Double _double) { + public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; } diff --git a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Pet.java index 548384c35a4e..d4d4274e58bb 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Pet.java @@ -45,18 +45,23 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Pet { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private String name; public static final String JSON_PROPERTY_CATEGORY = "category"; + @javax.annotation.Nullable private Category category; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; + @javax.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String JSON_PROPERTY_TAGS = "tags"; + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** @@ -97,12 +102,13 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } - public Pet id(Long id) { + public Pet id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -123,11 +129,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Pet name(String name) { + public Pet name(@javax.annotation.Nonnull String name) { this.name = name; return this; @@ -148,11 +154,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } - public Pet category(Category category) { + public Pet category(@javax.annotation.Nullable Category category) { this.category = category; return this; @@ -173,11 +179,11 @@ public Category getCategory() { @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCategory(Category category) { + public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; } - public Pet photoUrls(List photoUrls) { + public Pet photoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; return this; @@ -206,11 +212,11 @@ public List getPhotoUrls() { @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPhotoUrls(List photoUrls) { + public void setPhotoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; } - public Pet tags(List tags) { + public Pet tags(@javax.annotation.Nullable List tags) { this.tags = tags; return this; @@ -239,11 +245,11 @@ public List getTags() { @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTags(List tags) { + public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -264,7 +270,7 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Query.java b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Query.java index 38f8919799dc..3ad582e20461 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Query.java +++ b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Query.java @@ -39,6 +39,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Query { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable protected Long id; /** @@ -79,12 +80,13 @@ public static OutcomesEnum fromValue(String value) { } public static final String JSON_PROPERTY_OUTCOMES = "outcomes"; + @javax.annotation.Nullable protected List outcomes = new ArrayList<>(Arrays.asList(OutcomesEnum.SUCCESS, OutcomesEnum.FAILURE)); public Query() { } - public Query id(Long id) { + public Query id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -105,11 +107,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Query outcomes(List outcomes) { + public Query outcomes(@javax.annotation.Nullable List outcomes) { this.outcomes = outcomes; return this; @@ -138,7 +140,7 @@ public List getOutcomes() { @JsonProperty(JSON_PROPERTY_OUTCOMES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOutcomes(List outcomes) { + public void setOutcomes(@javax.annotation.Nullable List outcomes) { this.outcomes = outcomes; } diff --git a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Tag.java index b5d002f977db..74125fd94512 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Tag.java @@ -36,15 +36,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Tag { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public Tag() { } - public Tag id(Long id) { + public Tag id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -65,11 +67,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -90,7 +92,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java index d1b34d03b0b6..0fb357e6829e 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java +++ b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java @@ -36,12 +36,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class TestFormObjectMultipartRequestMarker { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public TestFormObjectMultipartRequestMarker() { } - public TestFormObjectMultipartRequestMarker name(String name) { + public TestFormObjectMultipartRequestMarker name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -62,7 +63,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java index fd79e1b02287..0ed48b6dff07 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java +++ b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java @@ -39,21 +39,25 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter { public static final String JSON_PROPERTY_SIZE = "size"; + @javax.annotation.Nullable private String size; public static final String JSON_PROPERTY_COLOR = "color"; + @javax.annotation.Nullable private String color; public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() { } - public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(String size) { + public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(@javax.annotation.Nullable String size) { this.size = size; return this; @@ -74,11 +78,11 @@ public String getSize() { @JsonProperty(JSON_PROPERTY_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSize(String size) { + public void setSize(@javax.annotation.Nullable String size) { this.size = size; } - public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color(String color) { + public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color(@javax.annotation.Nullable String color) { this.color = color; return this; @@ -99,11 +103,11 @@ public String getColor() { @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setColor(String color) { + public void setColor(@javax.annotation.Nullable String color) { this.color = color; } - public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(Long id) { + public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -124,11 +128,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(String name) { + public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -149,7 +153,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java index 95c13dc083b6..770466ce15e2 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java +++ b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java @@ -39,12 +39,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter { public static final String JSON_PROPERTY_VALUES = "values"; + @javax.annotation.Nullable private List values = new ArrayList<>(); public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() { } - public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter values(List values) { + public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter values(@javax.annotation.Nullable List values) { this.values = values; return this; @@ -73,7 +74,7 @@ public List getValues() { @JsonProperty(JSON_PROPERTY_VALUES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setValues(List values) { + public void setValues(@javax.annotation.Nullable List values) { this.values = values; } diff --git a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/Bird.java b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/Bird.java index 658fb45ce80d..23a35b86e099 100644 --- a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/Bird.java +++ b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/Bird.java @@ -29,16 +29,18 @@ public class Bird { public static final String SERIALIZED_NAME_SIZE = "size"; @SerializedName(SERIALIZED_NAME_SIZE) + @javax.annotation.Nullable private String size; public static final String SERIALIZED_NAME_COLOR = "color"; @SerializedName(SERIALIZED_NAME_COLOR) + @javax.annotation.Nullable private String color; public Bird() { } - public Bird size(String size) { + public Bird size(@javax.annotation.Nullable String size) { this.size = size; return this; @@ -55,12 +57,12 @@ public String getSize() { } - public void setSize(String size) { + public void setSize(@javax.annotation.Nullable String size) { this.size = size; } - public Bird color(String color) { + public Bird color(@javax.annotation.Nullable String color) { this.color = color; return this; @@ -77,7 +79,7 @@ public String getColor() { } - public void setColor(String color) { + public void setColor(@javax.annotation.Nullable String color) { this.color = color; } diff --git a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/Category.java b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/Category.java index 2b4f090865a2..8f1ca844abc7 100644 --- a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/Category.java @@ -29,16 +29,18 @@ public class Category { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public Category() { } - public Category id(Long id) { + public Category id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -55,12 +57,12 @@ public Long getId() { } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -77,7 +79,7 @@ public String getName() { } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/DataQuery.java b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/DataQuery.java index b342d9f92712..06febaa3269e 100644 --- a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/DataQuery.java +++ b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/DataQuery.java @@ -34,21 +34,24 @@ public class DataQuery extends Query { public static final String SERIALIZED_NAME_SUFFIX = "suffix"; @SerializedName(SERIALIZED_NAME_SUFFIX) + @javax.annotation.Nullable private String suffix; public static final String SERIALIZED_NAME_TEXT = "text"; @SerializedName(SERIALIZED_NAME_TEXT) + @javax.annotation.Nullable private String text; public static final String SERIALIZED_NAME_DATE = "date"; @SerializedName(SERIALIZED_NAME_DATE) + @javax.annotation.Nullable private OffsetDateTime date; public DataQuery() { } - public DataQuery suffix(String suffix) { + public DataQuery suffix(@javax.annotation.Nullable String suffix) { this.suffix = suffix; return this; @@ -65,12 +68,12 @@ public String getSuffix() { } - public void setSuffix(String suffix) { + public void setSuffix(@javax.annotation.Nullable String suffix) { this.suffix = suffix; } - public DataQuery text(String text) { + public DataQuery text(@javax.annotation.Nullable String text) { this.text = text; return this; @@ -87,12 +90,12 @@ public String getText() { } - public void setText(String text) { + public void setText(@javax.annotation.Nullable String text) { this.text = text; } - public DataQuery date(OffsetDateTime date) { + public DataQuery date(@javax.annotation.Nullable OffsetDateTime date) { this.date = date; return this; @@ -109,7 +112,7 @@ public OffsetDateTime getDate() { } - public void setDate(OffsetDateTime date) { + public void setDate(@javax.annotation.Nullable OffsetDateTime date) { this.date = date; } diff --git a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/DefaultValue.java b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/DefaultValue.java index fd6cd0ef8839..3aacb4355f50 100644 --- a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/DefaultValue.java +++ b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/DefaultValue.java @@ -111,12 +111,13 @@ public ArrayStringEnumDefaultEnum read(final JsonReader jsonReader) throws IOExc public static final String SERIALIZED_NAME_STRING_NULLABLE = "string_nullable"; @SerializedName(SERIALIZED_NAME_STRING_NULLABLE) + @javax.annotation.Nullable private String stringNullable; public DefaultValue() { } - public DefaultValue arrayStringEnumRefDefault(List arrayStringEnumRefDefault) { + public DefaultValue arrayStringEnumRefDefault(@javax.annotation.Nullable List arrayStringEnumRefDefault) { this.arrayStringEnumRefDefault = arrayStringEnumRefDefault; return this; @@ -141,12 +142,12 @@ public List getArrayStringEnumRefDefault() { } - public void setArrayStringEnumRefDefault(List arrayStringEnumRefDefault) { + public void setArrayStringEnumRefDefault(@javax.annotation.Nullable List arrayStringEnumRefDefault) { this.arrayStringEnumRefDefault = arrayStringEnumRefDefault; } - public DefaultValue arrayStringEnumDefault(List arrayStringEnumDefault) { + public DefaultValue arrayStringEnumDefault(@javax.annotation.Nullable List arrayStringEnumDefault) { this.arrayStringEnumDefault = arrayStringEnumDefault; return this; @@ -171,12 +172,12 @@ public List getArrayStringEnumDefault() { } - public void setArrayStringEnumDefault(List arrayStringEnumDefault) { + public void setArrayStringEnumDefault(@javax.annotation.Nullable List arrayStringEnumDefault) { this.arrayStringEnumDefault = arrayStringEnumDefault; } - public DefaultValue arrayStringDefault(List arrayStringDefault) { + public DefaultValue arrayStringDefault(@javax.annotation.Nullable List arrayStringDefault) { this.arrayStringDefault = arrayStringDefault; return this; @@ -201,12 +202,12 @@ public List getArrayStringDefault() { } - public void setArrayStringDefault(List arrayStringDefault) { + public void setArrayStringDefault(@javax.annotation.Nullable List arrayStringDefault) { this.arrayStringDefault = arrayStringDefault; } - public DefaultValue arrayIntegerDefault(List arrayIntegerDefault) { + public DefaultValue arrayIntegerDefault(@javax.annotation.Nullable List arrayIntegerDefault) { this.arrayIntegerDefault = arrayIntegerDefault; return this; @@ -231,12 +232,12 @@ public List getArrayIntegerDefault() { } - public void setArrayIntegerDefault(List arrayIntegerDefault) { + public void setArrayIntegerDefault(@javax.annotation.Nullable List arrayIntegerDefault) { this.arrayIntegerDefault = arrayIntegerDefault; } - public DefaultValue arrayString(List arrayString) { + public DefaultValue arrayString(@javax.annotation.Nullable List arrayString) { this.arrayString = arrayString; return this; @@ -261,12 +262,12 @@ public List getArrayString() { } - public void setArrayString(List arrayString) { + public void setArrayString(@javax.annotation.Nullable List arrayString) { this.arrayString = arrayString; } - public DefaultValue arrayStringNullable(List arrayStringNullable) { + public DefaultValue arrayStringNullable(@javax.annotation.Nullable List arrayStringNullable) { this.arrayStringNullable = arrayStringNullable; return this; @@ -291,12 +292,12 @@ public List getArrayStringNullable() { } - public void setArrayStringNullable(List arrayStringNullable) { + public void setArrayStringNullable(@javax.annotation.Nullable List arrayStringNullable) { this.arrayStringNullable = arrayStringNullable; } - public DefaultValue arrayStringExtensionNullable(List arrayStringExtensionNullable) { + public DefaultValue arrayStringExtensionNullable(@javax.annotation.Nullable List arrayStringExtensionNullable) { this.arrayStringExtensionNullable = arrayStringExtensionNullable; return this; @@ -321,12 +322,12 @@ public List getArrayStringExtensionNullable() { } - public void setArrayStringExtensionNullable(List arrayStringExtensionNullable) { + public void setArrayStringExtensionNullable(@javax.annotation.Nullable List arrayStringExtensionNullable) { this.arrayStringExtensionNullable = arrayStringExtensionNullable; } - public DefaultValue stringNullable(String stringNullable) { + public DefaultValue stringNullable(@javax.annotation.Nullable String stringNullable) { this.stringNullable = stringNullable; return this; @@ -343,7 +344,7 @@ public String getStringNullable() { } - public void setStringNullable(String stringNullable) { + public void setStringNullable(@javax.annotation.Nullable String stringNullable) { this.stringNullable = stringNullable; } diff --git a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java index 2b95b9226fd4..b040210761d0 100644 --- a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java +++ b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java @@ -30,20 +30,23 @@ public class NumberPropertiesOnly { public static final String SERIALIZED_NAME_NUMBER = "number"; @SerializedName(SERIALIZED_NAME_NUMBER) + @javax.annotation.Nullable private BigDecimal number; public static final String SERIALIZED_NAME_FLOAT = "float"; @SerializedName(SERIALIZED_NAME_FLOAT) + @javax.annotation.Nullable private Float _float; public static final String SERIALIZED_NAME_DOUBLE = "double"; @SerializedName(SERIALIZED_NAME_DOUBLE) + @javax.annotation.Nullable private Double _double; public NumberPropertiesOnly() { } - public NumberPropertiesOnly number(BigDecimal number) { + public NumberPropertiesOnly number(@javax.annotation.Nullable BigDecimal number) { this.number = number; return this; @@ -60,12 +63,12 @@ public BigDecimal getNumber() { } - public void setNumber(BigDecimal number) { + public void setNumber(@javax.annotation.Nullable BigDecimal number) { this.number = number; } - public NumberPropertiesOnly _float(Float _float) { + public NumberPropertiesOnly _float(@javax.annotation.Nullable Float _float) { this._float = _float; return this; @@ -82,12 +85,12 @@ public Float getFloat() { } - public void setFloat(Float _float) { + public void setFloat(@javax.annotation.Nullable Float _float) { this._float = _float; } - public NumberPropertiesOnly _double(Double _double) { + public NumberPropertiesOnly _double(@javax.annotation.Nullable Double _double) { this._double = _double; return this; @@ -106,7 +109,7 @@ public Double getDouble() { } - public void setDouble(Double _double) { + public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; } diff --git a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/Pet.java index ea24f1dde653..374e573b4b3e 100644 --- a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/Pet.java @@ -34,14 +34,17 @@ public class Pet { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_CATEGORY = "category"; @SerializedName(SERIALIZED_NAME_CATEGORY) + @javax.annotation.Nullable private Category category; public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; @@ -103,12 +106,13 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable private StatusEnum status; public Pet() { } - public Pet id(Long id) { + public Pet id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -125,12 +129,12 @@ public Long getId() { } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Pet name(String name) { + public Pet name(@javax.annotation.Nonnull String name) { this.name = name; return this; @@ -147,12 +151,12 @@ public String getName() { } - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } - public Pet category(Category category) { + public Pet category(@javax.annotation.Nullable Category category) { this.category = category; return this; @@ -169,12 +173,12 @@ public Category getCategory() { } - public void setCategory(Category category) { + public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; } - public Pet photoUrls(List photoUrls) { + public Pet photoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; return this; @@ -199,12 +203,12 @@ public List getPhotoUrls() { } - public void setPhotoUrls(List photoUrls) { + public void setPhotoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; } - public Pet tags(List tags) { + public Pet tags(@javax.annotation.Nullable List tags) { this.tags = tags; return this; @@ -229,12 +233,12 @@ public List getTags() { } - public void setTags(List tags) { + public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -251,7 +255,7 @@ public StatusEnum getStatus() { } - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/Query.java b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/Query.java index 0a4ffb2419fe..eefe331b29e6 100644 --- a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/Query.java +++ b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/Query.java @@ -32,6 +32,7 @@ public class Query { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; /** @@ -90,7 +91,7 @@ public OutcomesEnum read(final JsonReader jsonReader) throws IOException { public Query() { } - public Query id(Long id) { + public Query id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -107,12 +108,12 @@ public Long getId() { } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Query outcomes(List outcomes) { + public Query outcomes(@javax.annotation.Nullable List outcomes) { this.outcomes = outcomes; return this; @@ -137,7 +138,7 @@ public List getOutcomes() { } - public void setOutcomes(List outcomes) { + public void setOutcomes(@javax.annotation.Nullable List outcomes) { this.outcomes = outcomes; } diff --git a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/Tag.java index f8a6a7820d04..a414e16427be 100644 --- a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/Tag.java @@ -29,16 +29,18 @@ public class Tag { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public Tag() { } - public Tag id(Long id) { + public Tag id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -55,12 +57,12 @@ public Long getId() { } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -77,7 +79,7 @@ public String getName() { } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java index 98f4a06cf1c4..b379fed02dc3 100644 --- a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java +++ b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java @@ -29,12 +29,13 @@ public class TestFormObjectMultipartRequestMarker { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public TestFormObjectMultipartRequestMarker() { } - public TestFormObjectMultipartRequestMarker name(String name) { + public TestFormObjectMultipartRequestMarker name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -51,7 +52,7 @@ public String getName() { } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java index 59ce8949c91c..6eb4917d2336 100644 --- a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java +++ b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java @@ -29,24 +29,28 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter { public static final String SERIALIZED_NAME_SIZE = "size"; @SerializedName(SERIALIZED_NAME_SIZE) + @javax.annotation.Nullable private String size; public static final String SERIALIZED_NAME_COLOR = "color"; @SerializedName(SERIALIZED_NAME_COLOR) + @javax.annotation.Nullable private String color; public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() { } - public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(String size) { + public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(@javax.annotation.Nullable String size) { this.size = size; return this; @@ -63,12 +67,12 @@ public String getSize() { } - public void setSize(String size) { + public void setSize(@javax.annotation.Nullable String size) { this.size = size; } - public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color(String color) { + public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color(@javax.annotation.Nullable String color) { this.color = color; return this; @@ -85,12 +89,12 @@ public String getColor() { } - public void setColor(String color) { + public void setColor(@javax.annotation.Nullable String color) { this.color = color; } - public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(Long id) { + public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -107,12 +111,12 @@ public Long getId() { } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(String name) { + public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -129,7 +133,7 @@ public String getName() { } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java index dddaf4b817b0..f0c53af7d431 100644 --- a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java +++ b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java @@ -37,7 +37,7 @@ public class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter { public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() { } - public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter values(List values) { + public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter values(@javax.annotation.Nullable List values) { this.values = values; return this; @@ -62,7 +62,7 @@ public List getValues() { } - public void setValues(List values) { + public void setValues(@javax.annotation.Nullable List values) { this.values = values; } diff --git a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Bird.java b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Bird.java index 8d0826aa4967..644b28e266a9 100644 --- a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Bird.java +++ b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Bird.java @@ -39,15 +39,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Bird { public static final String JSON_PROPERTY_SIZE = "size"; + @javax.annotation.Nullable private String size; public static final String JSON_PROPERTY_COLOR = "color"; + @javax.annotation.Nullable private String color; public Bird() { } - public Bird size(String size) { + public Bird size(@javax.annotation.Nullable String size) { this.size = size; return this; } @@ -66,12 +68,12 @@ public String getSize() { @JsonProperty(JSON_PROPERTY_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSize(String size) { + public void setSize(@javax.annotation.Nullable String size) { this.size = size; } - public Bird color(String color) { + public Bird color(@javax.annotation.Nullable String color) { this.color = color; return this; } @@ -90,7 +92,7 @@ public String getColor() { @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setColor(String color) { + public void setColor(@javax.annotation.Nullable String color) { this.color = color; } diff --git a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Category.java b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Category.java index 856c030f7d9e..58f9c84c62a6 100644 --- a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Category.java @@ -39,15 +39,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Category { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public Category() { } - public Category id(Long id) { + public Category id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -66,12 +68,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -90,7 +92,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/DataQuery.java b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/DataQuery.java index 87952a7ac5d3..71b8e1ceba2a 100644 --- a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/DataQuery.java +++ b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/DataQuery.java @@ -44,18 +44,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class DataQuery extends Query { public static final String JSON_PROPERTY_SUFFIX = "suffix"; + @javax.annotation.Nullable private String suffix; public static final String JSON_PROPERTY_TEXT = "text"; + @javax.annotation.Nullable private String text; public static final String JSON_PROPERTY_DATE = "date"; + @javax.annotation.Nullable private Instant date; public DataQuery() { } - public DataQuery suffix(String suffix) { + public DataQuery suffix(@javax.annotation.Nullable String suffix) { this.suffix = suffix; return this; } @@ -74,12 +77,12 @@ public String getSuffix() { @JsonProperty(JSON_PROPERTY_SUFFIX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSuffix(String suffix) { + public void setSuffix(@javax.annotation.Nullable String suffix) { this.suffix = suffix; } - public DataQuery text(String text) { + public DataQuery text(@javax.annotation.Nullable String text) { this.text = text; return this; } @@ -98,12 +101,12 @@ public String getText() { @JsonProperty(JSON_PROPERTY_TEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setText(String text) { + public void setText(@javax.annotation.Nullable String text) { this.text = text; } - public DataQuery date(Instant date) { + public DataQuery date(@javax.annotation.Nullable Instant date) { this.date = date; return this; } @@ -122,19 +125,19 @@ public Instant getDate() { @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDate(Instant date) { + public void setDate(@javax.annotation.Nullable Instant date) { this.date = date; } @Override - public DataQuery id(Long id) { + public DataQuery id(@javax.annotation.Nullable Long id) { this.setId(id); return this; } @Override - public DataQuery outcomes(List outcomes) { + public DataQuery outcomes(@javax.annotation.Nullable List outcomes) { this.setOutcomes(outcomes); return this; } diff --git a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/DefaultValue.java b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/DefaultValue.java index 7317bcf2b988..bd857d122edf 100644 --- a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/DefaultValue.java +++ b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/DefaultValue.java @@ -52,6 +52,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class DefaultValue { public static final String JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT = "array_string_enum_ref_default"; + @javax.annotation.Nullable private List arrayStringEnumRefDefault = new ArrayList<>(Arrays.asList(StringEnumRef.SUCCESS, StringEnumRef.FAILURE)); /** @@ -92,15 +93,19 @@ public static ArrayStringEnumDefaultEnum fromValue(String value) { } public static final String JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT = "array_string_enum_default"; + @javax.annotation.Nullable private List arrayStringEnumDefault = new ArrayList<>(Arrays.asList(ArrayStringEnumDefaultEnum.SUCCESS, ArrayStringEnumDefaultEnum.FAILURE)); public static final String JSON_PROPERTY_ARRAY_STRING_DEFAULT = "array_string_default"; + @javax.annotation.Nullable private List arrayStringDefault = new ArrayList<>(Arrays.asList("failure", "skipped")); public static final String JSON_PROPERTY_ARRAY_INTEGER_DEFAULT = "array_integer_default"; + @javax.annotation.Nullable private List arrayIntegerDefault = new ArrayList<>(Arrays.asList(1, 3)); public static final String JSON_PROPERTY_ARRAY_STRING = "array_string"; + @javax.annotation.Nullable private List arrayString = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_STRING_NULLABLE = "array_string_nullable"; @@ -115,7 +120,7 @@ public static ArrayStringEnumDefaultEnum fromValue(String value) { public DefaultValue() { } - public DefaultValue arrayStringEnumRefDefault(List arrayStringEnumRefDefault) { + public DefaultValue arrayStringEnumRefDefault(@javax.annotation.Nullable List arrayStringEnumRefDefault) { this.arrayStringEnumRefDefault = arrayStringEnumRefDefault; return this; } @@ -142,12 +147,12 @@ public List getArrayStringEnumRefDefault() { @JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayStringEnumRefDefault(List arrayStringEnumRefDefault) { + public void setArrayStringEnumRefDefault(@javax.annotation.Nullable List arrayStringEnumRefDefault) { this.arrayStringEnumRefDefault = arrayStringEnumRefDefault; } - public DefaultValue arrayStringEnumDefault(List arrayStringEnumDefault) { + public DefaultValue arrayStringEnumDefault(@javax.annotation.Nullable List arrayStringEnumDefault) { this.arrayStringEnumDefault = arrayStringEnumDefault; return this; } @@ -174,12 +179,12 @@ public List getArrayStringEnumDefault() { @JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayStringEnumDefault(List arrayStringEnumDefault) { + public void setArrayStringEnumDefault(@javax.annotation.Nullable List arrayStringEnumDefault) { this.arrayStringEnumDefault = arrayStringEnumDefault; } - public DefaultValue arrayStringDefault(List arrayStringDefault) { + public DefaultValue arrayStringDefault(@javax.annotation.Nullable List arrayStringDefault) { this.arrayStringDefault = arrayStringDefault; return this; } @@ -206,12 +211,12 @@ public List getArrayStringDefault() { @JsonProperty(JSON_PROPERTY_ARRAY_STRING_DEFAULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayStringDefault(List arrayStringDefault) { + public void setArrayStringDefault(@javax.annotation.Nullable List arrayStringDefault) { this.arrayStringDefault = arrayStringDefault; } - public DefaultValue arrayIntegerDefault(List arrayIntegerDefault) { + public DefaultValue arrayIntegerDefault(@javax.annotation.Nullable List arrayIntegerDefault) { this.arrayIntegerDefault = arrayIntegerDefault; return this; } @@ -238,12 +243,12 @@ public List getArrayIntegerDefault() { @JsonProperty(JSON_PROPERTY_ARRAY_INTEGER_DEFAULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayIntegerDefault(List arrayIntegerDefault) { + public void setArrayIntegerDefault(@javax.annotation.Nullable List arrayIntegerDefault) { this.arrayIntegerDefault = arrayIntegerDefault; } - public DefaultValue arrayString(List arrayString) { + public DefaultValue arrayString(@javax.annotation.Nullable List arrayString) { this.arrayString = arrayString; return this; } @@ -270,12 +275,12 @@ public List getArrayString() { @JsonProperty(JSON_PROPERTY_ARRAY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayString(List arrayString) { + public void setArrayString(@javax.annotation.Nullable List arrayString) { this.arrayString = arrayString; } - public DefaultValue arrayStringNullable(List arrayStringNullable) { + public DefaultValue arrayStringNullable(@javax.annotation.Nullable List arrayStringNullable) { this.arrayStringNullable = JsonNullable.>of(arrayStringNullable); return this; } @@ -314,12 +319,12 @@ public void setArrayStringNullable_JsonNullable(JsonNullable> array this.arrayStringNullable = arrayStringNullable; } - public void setArrayStringNullable(List arrayStringNullable) { + public void setArrayStringNullable(@javax.annotation.Nullable List arrayStringNullable) { this.arrayStringNullable = JsonNullable.>of(arrayStringNullable); } - public DefaultValue arrayStringExtensionNullable(List arrayStringExtensionNullable) { + public DefaultValue arrayStringExtensionNullable(@javax.annotation.Nullable List arrayStringExtensionNullable) { this.arrayStringExtensionNullable = JsonNullable.>of(arrayStringExtensionNullable); return this; } @@ -358,12 +363,12 @@ public void setArrayStringExtensionNullable_JsonNullable(JsonNullable arrayStringExtensionNullable) { + public void setArrayStringExtensionNullable(@javax.annotation.Nullable List arrayStringExtensionNullable) { this.arrayStringExtensionNullable = JsonNullable.>of(arrayStringExtensionNullable); } - public DefaultValue stringNullable(String stringNullable) { + public DefaultValue stringNullable(@javax.annotation.Nullable String stringNullable) { this.stringNullable = JsonNullable.of(stringNullable); return this; } @@ -390,7 +395,7 @@ public void setStringNullable_JsonNullable(JsonNullable stringNullable) this.stringNullable = stringNullable; } - public void setStringNullable(String stringNullable) { + public void setStringNullable(@javax.annotation.Nullable String stringNullable) { this.stringNullable = JsonNullable.of(stringNullable); } diff --git a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java index f89935ea9000..0140d50d9b81 100644 --- a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java +++ b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java @@ -41,18 +41,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class NumberPropertiesOnly { public static final String JSON_PROPERTY_NUMBER = "number"; + @javax.annotation.Nullable private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; + @javax.annotation.Nullable private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; + @javax.annotation.Nullable private Double _double; public NumberPropertiesOnly() { } - public NumberPropertiesOnly number(BigDecimal number) { + public NumberPropertiesOnly number(@javax.annotation.Nullable BigDecimal number) { this.number = number; return this; } @@ -71,12 +74,12 @@ public BigDecimal getNumber() { @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNumber(BigDecimal number) { + public void setNumber(@javax.annotation.Nullable BigDecimal number) { this.number = number; } - public NumberPropertiesOnly _float(Float _float) { + public NumberPropertiesOnly _float(@javax.annotation.Nullable Float _float) { this._float = _float; return this; } @@ -95,12 +98,12 @@ public Float getFloat() { @JsonProperty(JSON_PROPERTY_FLOAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFloat(Float _float) { + public void setFloat(@javax.annotation.Nullable Float _float) { this._float = _float; } - public NumberPropertiesOnly _double(Double _double) { + public NumberPropertiesOnly _double(@javax.annotation.Nullable Double _double) { this._double = _double; return this; } @@ -121,7 +124,7 @@ public Double getDouble() { @JsonProperty(JSON_PROPERTY_DOUBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDouble(Double _double) { + public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; } diff --git a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Pet.java index 78a98ee0bb74..088782f00e31 100644 --- a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Pet.java @@ -47,18 +47,23 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Pet { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private String name; public static final String JSON_PROPERTY_CATEGORY = "category"; + @javax.annotation.Nullable private Category category; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; + @javax.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String JSON_PROPERTY_TAGS = "tags"; + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** @@ -99,12 +104,13 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } - public Pet id(Long id) { + public Pet id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -123,12 +129,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Pet name(String name) { + public Pet name(@javax.annotation.Nonnull String name) { this.name = name; return this; } @@ -147,12 +153,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } - public Pet category(Category category) { + public Pet category(@javax.annotation.Nullable Category category) { this.category = category; return this; } @@ -171,12 +177,12 @@ public Category getCategory() { @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCategory(Category category) { + public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; } - public Pet photoUrls(List photoUrls) { + public Pet photoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; return this; } @@ -203,12 +209,12 @@ public List getPhotoUrls() { @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPhotoUrls(List photoUrls) { + public void setPhotoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; } - public Pet tags(List tags) { + public Pet tags(@javax.annotation.Nullable List tags) { this.tags = tags; return this; } @@ -235,12 +241,12 @@ public List getTags() { @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTags(List tags) { + public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; } @@ -259,7 +265,7 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Query.java b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Query.java index de92f1ad3417..894745e40a76 100644 --- a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Query.java +++ b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Query.java @@ -41,6 +41,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Query { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; /** @@ -81,12 +82,13 @@ public static OutcomesEnum fromValue(String value) { } public static final String JSON_PROPERTY_OUTCOMES = "outcomes"; + @javax.annotation.Nullable private List outcomes = new ArrayList<>(Arrays.asList(OutcomesEnum.SUCCESS, OutcomesEnum.FAILURE)); public Query() { } - public Query id(Long id) { + public Query id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -105,12 +107,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Query outcomes(List outcomes) { + public Query outcomes(@javax.annotation.Nullable List outcomes) { this.outcomes = outcomes; return this; } @@ -137,7 +139,7 @@ public List getOutcomes() { @JsonProperty(JSON_PROPERTY_OUTCOMES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOutcomes(List outcomes) { + public void setOutcomes(@javax.annotation.Nullable List outcomes) { this.outcomes = outcomes; } diff --git a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Tag.java index 621f638f4556..bd2f50fb840a 100644 --- a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Tag.java @@ -39,15 +39,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Tag { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public Tag() { } - public Tag id(Long id) { + public Tag id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -66,12 +68,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -90,7 +92,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java index 716519e99ff5..32006a4b8cad 100644 --- a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java +++ b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java @@ -38,12 +38,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class TestFormObjectMultipartRequestMarker { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public TestFormObjectMultipartRequestMarker() { } - public TestFormObjectMultipartRequestMarker name(String name) { + public TestFormObjectMultipartRequestMarker name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -62,7 +63,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java index dcf6d1335956..c902cf7cee14 100644 --- a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java +++ b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java @@ -41,21 +41,25 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter { public static final String JSON_PROPERTY_SIZE = "size"; + @javax.annotation.Nullable private String size; public static final String JSON_PROPERTY_COLOR = "color"; + @javax.annotation.Nullable private String color; public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() { } - public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(String size) { + public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(@javax.annotation.Nullable String size) { this.size = size; return this; } @@ -74,12 +78,12 @@ public String getSize() { @JsonProperty(JSON_PROPERTY_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSize(String size) { + public void setSize(@javax.annotation.Nullable String size) { this.size = size; } - public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color(String color) { + public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color(@javax.annotation.Nullable String color) { this.color = color; return this; } @@ -98,12 +102,12 @@ public String getColor() { @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setColor(String color) { + public void setColor(@javax.annotation.Nullable String color) { this.color = color; } - public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(Long id) { + public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -122,12 +126,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(String name) { + public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -146,7 +150,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java index e9cecf869faa..36f9418ec281 100644 --- a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java +++ b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java @@ -40,12 +40,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter { public static final String JSON_PROPERTY_VALUES = "values"; + @javax.annotation.Nullable private List values = new ArrayList<>(); public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() { } - public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter values(List values) { + public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter values(@javax.annotation.Nullable List values) { this.values = values; return this; } @@ -72,7 +73,7 @@ public List getValues() { @JsonProperty(JSON_PROPERTY_VALUES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setValues(List values) { + public void setValues(@javax.annotation.Nullable List values) { this.values = values; } diff --git a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/model/Category.java b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/model/Category.java index dcf01a0fef1c..76f1fb732aa5 100644 --- a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/model/Category.java @@ -52,16 +52,18 @@ public class Category { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public Category() { } - public Category id(Long id) { + public Category id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -75,12 +77,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -94,7 +96,7 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/model/ModelApiResponse.java index ddb5ae30e170..35ddbcd9d7af 100644 --- a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -52,20 +52,23 @@ public class ModelApiResponse { public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) + @javax.annotation.Nullable private Integer code; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @javax.annotation.Nullable private String type; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable private String message; public ModelApiResponse() { } - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@javax.annotation.Nullable Integer code) { this.code = code; return this; } @@ -79,12 +82,12 @@ public Integer getCode() { return code; } - public void setCode(Integer code) { + public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@javax.annotation.Nullable String type) { this.type = type; return this; } @@ -98,12 +101,12 @@ public String getType() { return type; } - public void setType(String type) { + public void setType(@javax.annotation.Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@javax.annotation.Nullable String message) { this.message = message; return this; } @@ -117,7 +120,7 @@ public String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } diff --git a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/model/Order.java b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/model/Order.java index 6b9675f9da22..224b248cb381 100644 --- a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/model/Order.java @@ -53,18 +53,22 @@ public class Order { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_PET_ID = "petId"; @SerializedName(SERIALIZED_NAME_PET_ID) + @javax.annotation.Nullable private Long petId; public static final String SERIALIZED_NAME_QUANTITY = "quantity"; @SerializedName(SERIALIZED_NAME_QUANTITY) + @javax.annotation.Nullable private Integer quantity; public static final String SERIALIZED_NAME_SHIP_DATE = "shipDate"; @SerializedName(SERIALIZED_NAME_SHIP_DATE) + @javax.annotation.Nullable private OffsetDateTime shipDate; /** @@ -123,16 +127,18 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable private StatusEnum status; public static final String SERIALIZED_NAME_COMPLETE = "complete"; @SerializedName(SERIALIZED_NAME_COMPLETE) + @javax.annotation.Nullable private Boolean complete = false; public Order() { } - public Order id(Long id) { + public Order id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -146,12 +152,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@javax.annotation.Nullable Long petId) { this.petId = petId; return this; } @@ -165,12 +171,12 @@ public Long getPetId() { return petId; } - public void setPetId(Long petId) { + public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -184,12 +190,12 @@ public Integer getQuantity() { return quantity; } - public void setQuantity(Integer quantity) { + public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -203,12 +209,12 @@ public OffsetDateTime getShipDate() { return shipDate; } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; } @@ -222,12 +228,12 @@ public StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } - public Order complete(Boolean complete) { + public Order complete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; return this; } @@ -241,7 +247,7 @@ public Boolean getComplete() { return complete; } - public void setComplete(Boolean complete) { + public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; } diff --git a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/model/Pet.java index 8fcbb25d6391..17f5fcf01c85 100644 --- a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/model/Pet.java @@ -56,22 +56,27 @@ public class Pet { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_CATEGORY = "category"; @SerializedName(SERIALIZED_NAME_CATEGORY) + @javax.annotation.Nullable private Category category; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; @SerializedName(SERIALIZED_NAME_PHOTO_URLS) + @javax.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** @@ -131,12 +136,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_STATUS = "status"; @Deprecated @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable private StatusEnum status; public Pet() { } - public Pet id(Long id) { + public Pet id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -150,12 +156,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@javax.annotation.Nullable Category category) { this.category = category; return this; } @@ -169,12 +175,12 @@ public Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; } - public Pet name(String name) { + public Pet name(@javax.annotation.Nonnull String name) { this.name = name; return this; } @@ -188,12 +194,12 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } - public Pet photoUrls(List photoUrls) { + public Pet photoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; return this; } @@ -215,12 +221,12 @@ public List getPhotoUrls() { return photoUrls; } - public void setPhotoUrls(List photoUrls) { + public void setPhotoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; } - public Pet tags(List tags) { + public Pet tags(@javax.annotation.Nullable List tags) { this.tags = tags; return this; } @@ -242,13 +248,13 @@ public List getTags() { return tags; } - public void setTags(List tags) { + public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; } @Deprecated - public Pet status(StatusEnum status) { + public Pet status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; } @@ -265,7 +271,7 @@ public StatusEnum getStatus() { } @Deprecated - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/model/Tag.java index bd55071f915e..8a52d79df3ac 100644 --- a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/model/Tag.java @@ -52,16 +52,18 @@ public class Tag { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public Tag() { } - public Tag id(Long id) { + public Tag id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -75,12 +77,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -94,7 +96,7 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/model/User.java b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/model/User.java index c2ff6e0766f5..dbc21c559a3f 100644 --- a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/model/User.java @@ -52,40 +52,48 @@ public class User { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_USERNAME = "username"; @SerializedName(SERIALIZED_NAME_USERNAME) + @javax.annotation.Nullable private String username; public static final String SERIALIZED_NAME_FIRST_NAME = "firstName"; @SerializedName(SERIALIZED_NAME_FIRST_NAME) + @javax.annotation.Nullable private String firstName; public static final String SERIALIZED_NAME_LAST_NAME = "lastName"; @SerializedName(SERIALIZED_NAME_LAST_NAME) + @javax.annotation.Nullable private String lastName; public static final String SERIALIZED_NAME_EMAIL = "email"; @SerializedName(SERIALIZED_NAME_EMAIL) + @javax.annotation.Nullable private String email; public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) + @javax.annotation.Nullable private String password; public static final String SERIALIZED_NAME_PHONE = "phone"; @SerializedName(SERIALIZED_NAME_PHONE) + @javax.annotation.Nullable private String phone; public static final String SERIALIZED_NAME_USER_STATUS = "userStatus"; @SerializedName(SERIALIZED_NAME_USER_STATUS) + @javax.annotation.Nullable private Integer userStatus; public User() { } - public User id(Long id) { + public User id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -99,12 +107,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@javax.annotation.Nullable String username) { this.username = username; return this; } @@ -118,12 +126,12 @@ public String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@javax.annotation.Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; return this; } @@ -137,12 +145,12 @@ public String getFirstName() { return firstName; } - public void setFirstName(String firstName) { + public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; return this; } @@ -156,12 +164,12 @@ public String getLastName() { return lastName; } - public void setLastName(String lastName) { + public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@javax.annotation.Nullable String email) { this.email = email; return this; } @@ -175,12 +183,12 @@ public String getEmail() { return email; } - public void setEmail(String email) { + public void setEmail(@javax.annotation.Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@javax.annotation.Nullable String password) { this.password = password; return this; } @@ -194,12 +202,12 @@ public String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@javax.annotation.Nullable String phone) { this.phone = phone; return this; } @@ -213,12 +221,12 @@ public String getPhone() { return phone; } - public void setPhone(String phone) { + public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -232,7 +240,7 @@ public Integer getUserStatus() { return userStatus; } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/Bird.java b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/Bird.java index b0475747f2a2..d075fb739d46 100644 --- a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/Bird.java +++ b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/Bird.java @@ -52,16 +52,18 @@ public class Bird { public static final String SERIALIZED_NAME_SIZE = "size"; @SerializedName(SERIALIZED_NAME_SIZE) + @javax.annotation.Nullable private String size; public static final String SERIALIZED_NAME_COLOR = "color"; @SerializedName(SERIALIZED_NAME_COLOR) + @javax.annotation.Nullable private String color; public Bird() { } - public Bird size(String size) { + public Bird size(@javax.annotation.Nullable String size) { this.size = size; return this; } @@ -75,12 +77,12 @@ public String getSize() { return size; } - public void setSize(String size) { + public void setSize(@javax.annotation.Nullable String size) { this.size = size; } - public Bird color(String color) { + public Bird color(@javax.annotation.Nullable String color) { this.color = color; return this; } @@ -94,7 +96,7 @@ public String getColor() { return color; } - public void setColor(String color) { + public void setColor(@javax.annotation.Nullable String color) { this.color = color; } diff --git a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/Category.java b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/Category.java index f02560657278..dd869c6465ec 100644 --- a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/Category.java @@ -52,16 +52,18 @@ public class Category { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public Category() { } - public Category id(Long id) { + public Category id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -75,12 +77,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -94,7 +96,7 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/DataQuery.java b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/DataQuery.java index eb5161032373..f892c1621156 100644 --- a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/DataQuery.java +++ b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/DataQuery.java @@ -56,20 +56,23 @@ public class DataQuery extends Query { public static final String SERIALIZED_NAME_SUFFIX = "suffix"; @SerializedName(SERIALIZED_NAME_SUFFIX) + @javax.annotation.Nullable private String suffix; public static final String SERIALIZED_NAME_TEXT = "text"; @SerializedName(SERIALIZED_NAME_TEXT) + @javax.annotation.Nullable private String text; public static final String SERIALIZED_NAME_DATE = "date"; @SerializedName(SERIALIZED_NAME_DATE) + @javax.annotation.Nullable private OffsetDateTime date; public DataQuery() { } - public DataQuery suffix(String suffix) { + public DataQuery suffix(@javax.annotation.Nullable String suffix) { this.suffix = suffix; return this; } @@ -83,12 +86,12 @@ public String getSuffix() { return suffix; } - public void setSuffix(String suffix) { + public void setSuffix(@javax.annotation.Nullable String suffix) { this.suffix = suffix; } - public DataQuery text(String text) { + public DataQuery text(@javax.annotation.Nullable String text) { this.text = text; return this; } @@ -102,12 +105,12 @@ public String getText() { return text; } - public void setText(String text) { + public void setText(@javax.annotation.Nullable String text) { this.text = text; } - public DataQuery date(OffsetDateTime date) { + public DataQuery date(@javax.annotation.Nullable OffsetDateTime date) { this.date = date; return this; } @@ -121,7 +124,7 @@ public OffsetDateTime getDate() { return date; } - public void setDate(OffsetDateTime date) { + public void setDate(@javax.annotation.Nullable OffsetDateTime date) { this.date = date; } diff --git a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/DefaultValue.java b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/DefaultValue.java index a70fc9b2150e..0a3400eb5609 100644 --- a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/DefaultValue.java +++ b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/DefaultValue.java @@ -56,6 +56,7 @@ public class DefaultValue { public static final String SERIALIZED_NAME_ARRAY_STRING_ENUM_REF_DEFAULT = "array_string_enum_ref_default"; @SerializedName(SERIALIZED_NAME_ARRAY_STRING_ENUM_REF_DEFAULT) + @javax.annotation.Nullable private List arrayStringEnumRefDefault = new ArrayList<>(Arrays.asList(StringEnumRef.SUCCESS, StringEnumRef.FAILURE)); /** @@ -114,36 +115,43 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_ARRAY_STRING_ENUM_DEFAULT = "array_string_enum_default"; @SerializedName(SERIALIZED_NAME_ARRAY_STRING_ENUM_DEFAULT) + @javax.annotation.Nullable private List arrayStringEnumDefault = new ArrayList<>(Arrays.asList(ArrayStringEnumDefaultEnum.SUCCESS, ArrayStringEnumDefaultEnum.FAILURE)); public static final String SERIALIZED_NAME_ARRAY_STRING_DEFAULT = "array_string_default"; @SerializedName(SERIALIZED_NAME_ARRAY_STRING_DEFAULT) + @javax.annotation.Nullable private List arrayStringDefault = new ArrayList<>(Arrays.asList("failure", "skipped")); public static final String SERIALIZED_NAME_ARRAY_INTEGER_DEFAULT = "array_integer_default"; @SerializedName(SERIALIZED_NAME_ARRAY_INTEGER_DEFAULT) + @javax.annotation.Nullable private List arrayIntegerDefault = new ArrayList<>(Arrays.asList(1, 3)); public static final String SERIALIZED_NAME_ARRAY_STRING = "array_string"; @SerializedName(SERIALIZED_NAME_ARRAY_STRING) + @javax.annotation.Nullable private List arrayString = new ArrayList<>(); public static final String SERIALIZED_NAME_ARRAY_STRING_NULLABLE = "array_string_nullable"; @SerializedName(SERIALIZED_NAME_ARRAY_STRING_NULLABLE) + @javax.annotation.Nullable private List arrayStringNullable; public static final String SERIALIZED_NAME_ARRAY_STRING_EXTENSION_NULLABLE = "array_string_extension_nullable"; @SerializedName(SERIALIZED_NAME_ARRAY_STRING_EXTENSION_NULLABLE) + @javax.annotation.Nullable private List arrayStringExtensionNullable; public static final String SERIALIZED_NAME_STRING_NULLABLE = "string_nullable"; @SerializedName(SERIALIZED_NAME_STRING_NULLABLE) + @javax.annotation.Nullable private String stringNullable; public DefaultValue() { } - public DefaultValue arrayStringEnumRefDefault(List arrayStringEnumRefDefault) { + public DefaultValue arrayStringEnumRefDefault(@javax.annotation.Nullable List arrayStringEnumRefDefault) { this.arrayStringEnumRefDefault = arrayStringEnumRefDefault; return this; } @@ -165,12 +173,12 @@ public List getArrayStringEnumRefDefault() { return arrayStringEnumRefDefault; } - public void setArrayStringEnumRefDefault(List arrayStringEnumRefDefault) { + public void setArrayStringEnumRefDefault(@javax.annotation.Nullable List arrayStringEnumRefDefault) { this.arrayStringEnumRefDefault = arrayStringEnumRefDefault; } - public DefaultValue arrayStringEnumDefault(List arrayStringEnumDefault) { + public DefaultValue arrayStringEnumDefault(@javax.annotation.Nullable List arrayStringEnumDefault) { this.arrayStringEnumDefault = arrayStringEnumDefault; return this; } @@ -192,12 +200,12 @@ public List getArrayStringEnumDefault() { return arrayStringEnumDefault; } - public void setArrayStringEnumDefault(List arrayStringEnumDefault) { + public void setArrayStringEnumDefault(@javax.annotation.Nullable List arrayStringEnumDefault) { this.arrayStringEnumDefault = arrayStringEnumDefault; } - public DefaultValue arrayStringDefault(List arrayStringDefault) { + public DefaultValue arrayStringDefault(@javax.annotation.Nullable List arrayStringDefault) { this.arrayStringDefault = arrayStringDefault; return this; } @@ -219,12 +227,12 @@ public List getArrayStringDefault() { return arrayStringDefault; } - public void setArrayStringDefault(List arrayStringDefault) { + public void setArrayStringDefault(@javax.annotation.Nullable List arrayStringDefault) { this.arrayStringDefault = arrayStringDefault; } - public DefaultValue arrayIntegerDefault(List arrayIntegerDefault) { + public DefaultValue arrayIntegerDefault(@javax.annotation.Nullable List arrayIntegerDefault) { this.arrayIntegerDefault = arrayIntegerDefault; return this; } @@ -246,12 +254,12 @@ public List getArrayIntegerDefault() { return arrayIntegerDefault; } - public void setArrayIntegerDefault(List arrayIntegerDefault) { + public void setArrayIntegerDefault(@javax.annotation.Nullable List arrayIntegerDefault) { this.arrayIntegerDefault = arrayIntegerDefault; } - public DefaultValue arrayString(List arrayString) { + public DefaultValue arrayString(@javax.annotation.Nullable List arrayString) { this.arrayString = arrayString; return this; } @@ -273,12 +281,12 @@ public List getArrayString() { return arrayString; } - public void setArrayString(List arrayString) { + public void setArrayString(@javax.annotation.Nullable List arrayString) { this.arrayString = arrayString; } - public DefaultValue arrayStringNullable(List arrayStringNullable) { + public DefaultValue arrayStringNullable(@javax.annotation.Nullable List arrayStringNullable) { this.arrayStringNullable = arrayStringNullable; return this; } @@ -300,12 +308,12 @@ public List getArrayStringNullable() { return arrayStringNullable; } - public void setArrayStringNullable(List arrayStringNullable) { + public void setArrayStringNullable(@javax.annotation.Nullable List arrayStringNullable) { this.arrayStringNullable = arrayStringNullable; } - public DefaultValue arrayStringExtensionNullable(List arrayStringExtensionNullable) { + public DefaultValue arrayStringExtensionNullable(@javax.annotation.Nullable List arrayStringExtensionNullable) { this.arrayStringExtensionNullable = arrayStringExtensionNullable; return this; } @@ -327,12 +335,12 @@ public List getArrayStringExtensionNullable() { return arrayStringExtensionNullable; } - public void setArrayStringExtensionNullable(List arrayStringExtensionNullable) { + public void setArrayStringExtensionNullable(@javax.annotation.Nullable List arrayStringExtensionNullable) { this.arrayStringExtensionNullable = arrayStringExtensionNullable; } - public DefaultValue stringNullable(String stringNullable) { + public DefaultValue stringNullable(@javax.annotation.Nullable String stringNullable) { this.stringNullable = stringNullable; return this; } @@ -346,7 +354,7 @@ public String getStringNullable() { return stringNullable; } - public void setStringNullable(String stringNullable) { + public void setStringNullable(@javax.annotation.Nullable String stringNullable) { this.stringNullable = stringNullable; } diff --git a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java index 353048817315..2c8c25c9f2a7 100644 --- a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java +++ b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java @@ -53,20 +53,23 @@ public class NumberPropertiesOnly { public static final String SERIALIZED_NAME_NUMBER = "number"; @SerializedName(SERIALIZED_NAME_NUMBER) + @javax.annotation.Nullable private BigDecimal number; public static final String SERIALIZED_NAME_FLOAT = "float"; @SerializedName(SERIALIZED_NAME_FLOAT) + @javax.annotation.Nullable private Float _float; public static final String SERIALIZED_NAME_DOUBLE = "double"; @SerializedName(SERIALIZED_NAME_DOUBLE) + @javax.annotation.Nullable private Double _double; public NumberPropertiesOnly() { } - public NumberPropertiesOnly number(BigDecimal number) { + public NumberPropertiesOnly number(@javax.annotation.Nullable BigDecimal number) { this.number = number; return this; } @@ -80,12 +83,12 @@ public BigDecimal getNumber() { return number; } - public void setNumber(BigDecimal number) { + public void setNumber(@javax.annotation.Nullable BigDecimal number) { this.number = number; } - public NumberPropertiesOnly _float(Float _float) { + public NumberPropertiesOnly _float(@javax.annotation.Nullable Float _float) { this._float = _float; return this; } @@ -99,12 +102,12 @@ public Float getFloat() { return _float; } - public void setFloat(Float _float) { + public void setFloat(@javax.annotation.Nullable Float _float) { this._float = _float; } - public NumberPropertiesOnly _double(Double _double) { + public NumberPropertiesOnly _double(@javax.annotation.Nullable Double _double) { this._double = _double; return this; } @@ -120,7 +123,7 @@ public Double getDouble() { return _double; } - public void setDouble(Double _double) { + public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; } diff --git a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/Pet.java index dbe07da6fa45..866fd024716c 100644 --- a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/Pet.java @@ -56,22 +56,27 @@ public class Pet { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_CATEGORY = "category"; @SerializedName(SERIALIZED_NAME_CATEGORY) + @javax.annotation.Nullable private Category category; public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; @SerializedName(SERIALIZED_NAME_PHOTO_URLS) + @javax.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** @@ -130,12 +135,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable private StatusEnum status; public Pet() { } - public Pet id(Long id) { + public Pet id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -149,12 +155,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Pet name(String name) { + public Pet name(@javax.annotation.Nonnull String name) { this.name = name; return this; } @@ -168,12 +174,12 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } - public Pet category(Category category) { + public Pet category(@javax.annotation.Nullable Category category) { this.category = category; return this; } @@ -187,12 +193,12 @@ public Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; } - public Pet photoUrls(List photoUrls) { + public Pet photoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; return this; } @@ -214,12 +220,12 @@ public List getPhotoUrls() { return photoUrls; } - public void setPhotoUrls(List photoUrls) { + public void setPhotoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; } - public Pet tags(List tags) { + public Pet tags(@javax.annotation.Nullable List tags) { this.tags = tags; return this; } @@ -241,12 +247,12 @@ public List getTags() { return tags; } - public void setTags(List tags) { + public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; } @@ -260,7 +266,7 @@ public StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/Query.java b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/Query.java index 0e34d10b0e90..ce6895f085e6 100644 --- a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/Query.java +++ b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/Query.java @@ -54,6 +54,7 @@ public class Query { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; /** @@ -112,12 +113,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_OUTCOMES = "outcomes"; @SerializedName(SERIALIZED_NAME_OUTCOMES) + @javax.annotation.Nullable private List outcomes = new ArrayList<>(Arrays.asList(OutcomesEnum.SUCCESS, OutcomesEnum.FAILURE)); public Query() { } - public Query id(Long id) { + public Query id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -131,12 +133,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Query outcomes(List outcomes) { + public Query outcomes(@javax.annotation.Nullable List outcomes) { this.outcomes = outcomes; return this; } @@ -158,7 +160,7 @@ public List getOutcomes() { return outcomes; } - public void setOutcomes(List outcomes) { + public void setOutcomes(@javax.annotation.Nullable List outcomes) { this.outcomes = outcomes; } diff --git a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/Tag.java index 42559b879365..fba69c7b07c7 100644 --- a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/Tag.java @@ -52,16 +52,18 @@ public class Tag { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public Tag() { } - public Tag id(Long id) { + public Tag id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -75,12 +77,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -94,7 +96,7 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java index 44a146bf5f0b..a305dc491157 100644 --- a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java +++ b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java @@ -52,12 +52,13 @@ public class TestFormObjectMultipartRequestMarker { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public TestFormObjectMultipartRequestMarker() { } - public TestFormObjectMultipartRequestMarker name(String name) { + public TestFormObjectMultipartRequestMarker name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -71,7 +72,7 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java index bd8d21bad837..bb895dd195ac 100644 --- a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java +++ b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java @@ -52,24 +52,28 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter { public static final String SERIALIZED_NAME_SIZE = "size"; @SerializedName(SERIALIZED_NAME_SIZE) + @javax.annotation.Nullable private String size; public static final String SERIALIZED_NAME_COLOR = "color"; @SerializedName(SERIALIZED_NAME_COLOR) + @javax.annotation.Nullable private String color; public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() { } - public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(String size) { + public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(@javax.annotation.Nullable String size) { this.size = size; return this; } @@ -83,12 +87,12 @@ public String getSize() { return size; } - public void setSize(String size) { + public void setSize(@javax.annotation.Nullable String size) { this.size = size; } - public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color(String color) { + public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color(@javax.annotation.Nullable String color) { this.color = color; return this; } @@ -102,12 +106,12 @@ public String getColor() { return color; } - public void setColor(String color) { + public void setColor(@javax.annotation.Nullable String color) { this.color = color; } - public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(Long id) { + public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -121,12 +125,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(String name) { + public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -140,7 +144,7 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java index 1edd7ef2ba25..3a84e411cc55 100644 --- a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java +++ b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java @@ -54,12 +54,13 @@ public class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter { public static final String SERIALIZED_NAME_VALUES = "values"; @SerializedName(SERIALIZED_NAME_VALUES) + @javax.annotation.Nullable private List values = new ArrayList<>(); public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() { } - public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter values(List values) { + public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter values(@javax.annotation.Nullable List values) { this.values = values; return this; } @@ -81,7 +82,7 @@ public List getValues() { return values; } - public void setValues(List values) { + public void setValues(@javax.annotation.Nullable List values) { this.values = values; } diff --git a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Bird.java b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Bird.java index 789eac68ca67..03a277a97ac6 100644 --- a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Bird.java +++ b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Bird.java @@ -33,15 +33,17 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Bird { public static final String JSON_PROPERTY_SIZE = "size"; + @jakarta.annotation.Nullable private String size; public static final String JSON_PROPERTY_COLOR = "color"; + @jakarta.annotation.Nullable private String color; public Bird() { } - public Bird size(String size) { + public Bird size(@jakarta.annotation.Nullable String size) { this.size = size; return this; @@ -62,11 +64,11 @@ public String getSize() { @JsonProperty(JSON_PROPERTY_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSize(String size) { + public void setSize(@jakarta.annotation.Nullable String size) { this.size = size; } - public Bird color(String color) { + public Bird color(@jakarta.annotation.Nullable String color) { this.color = color; return this; @@ -87,7 +89,7 @@ public String getColor() { @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setColor(String color) { + public void setColor(@jakarta.annotation.Nullable String color) { this.color = color; } diff --git a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Category.java b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Category.java index 091c29d8d4e5..89e491fed8c5 100644 --- a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Category.java @@ -33,15 +33,17 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Category { public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private String name; public Category() { } - public Category id(Long id) { + public Category id(@jakarta.annotation.Nullable Long id) { this.id = id; return this; @@ -62,11 +64,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@jakarta.annotation.Nullable String name) { this.name = name; return this; @@ -87,7 +89,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/DataQuery.java b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/DataQuery.java index e186c2838e80..6e734db7fa5a 100644 --- a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/DataQuery.java +++ b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/DataQuery.java @@ -39,19 +39,22 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class DataQuery extends Query { public static final String JSON_PROPERTY_SUFFIX = "suffix"; + @jakarta.annotation.Nullable private String suffix; public static final String JSON_PROPERTY_TEXT = "text"; + @jakarta.annotation.Nullable private String text; public static final String JSON_PROPERTY_DATE = "date"; + @jakarta.annotation.Nullable private Instant date; public DataQuery() { } - public DataQuery suffix(String suffix) { + public DataQuery suffix(@jakarta.annotation.Nullable String suffix) { this.suffix = suffix; return this; @@ -72,11 +75,11 @@ public String getSuffix() { @JsonProperty(JSON_PROPERTY_SUFFIX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSuffix(String suffix) { + public void setSuffix(@jakarta.annotation.Nullable String suffix) { this.suffix = suffix; } - public DataQuery text(String text) { + public DataQuery text(@jakarta.annotation.Nullable String text) { this.text = text; return this; @@ -97,11 +100,11 @@ public String getText() { @JsonProperty(JSON_PROPERTY_TEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setText(String text) { + public void setText(@jakarta.annotation.Nullable String text) { this.text = text; } - public DataQuery date(Instant date) { + public DataQuery date(@jakarta.annotation.Nullable Instant date) { this.date = date; return this; @@ -122,18 +125,18 @@ public Instant getDate() { @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDate(Instant date) { + public void setDate(@jakarta.annotation.Nullable Instant date) { this.date = date; } @Override - public DataQuery id(Long id) { + public DataQuery id(@jakarta.annotation.Nullable Long id) { this.setId(id); return this; } @Override - public DataQuery outcomes(List outcomes) { + public DataQuery outcomes(@jakarta.annotation.Nullable List outcomes) { this.setOutcomes(outcomes); return this; } diff --git a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/DefaultValue.java b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/DefaultValue.java index b656923f00e7..6929856360d9 100644 --- a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/DefaultValue.java +++ b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/DefaultValue.java @@ -47,6 +47,7 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class DefaultValue { public static final String JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT = "array_string_enum_ref_default"; + @jakarta.annotation.Nullable private List arrayStringEnumRefDefault = new ArrayList<>(Arrays.asList(StringEnumRef.SUCCESS, StringEnumRef.FAILURE)); /** @@ -87,30 +88,37 @@ public static ArrayStringEnumDefaultEnum fromValue(String value) { } public static final String JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT = "array_string_enum_default"; + @jakarta.annotation.Nullable private List arrayStringEnumDefault = new ArrayList<>(Arrays.asList(ArrayStringEnumDefaultEnum.SUCCESS, ArrayStringEnumDefaultEnum.FAILURE)); public static final String JSON_PROPERTY_ARRAY_STRING_DEFAULT = "array_string_default"; + @jakarta.annotation.Nullable private List arrayStringDefault = new ArrayList<>(Arrays.asList("failure", "skipped")); public static final String JSON_PROPERTY_ARRAY_INTEGER_DEFAULT = "array_integer_default"; + @jakarta.annotation.Nullable private List arrayIntegerDefault = new ArrayList<>(Arrays.asList(1, 3)); public static final String JSON_PROPERTY_ARRAY_STRING = "array_string"; + @jakarta.annotation.Nullable private List arrayString = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_STRING_NULLABLE = "array_string_nullable"; + @jakarta.annotation.Nullable private JsonNullable> arrayStringNullable = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_STRING_EXTENSION_NULLABLE = "array_string_extension_nullable"; + @jakarta.annotation.Nullable private JsonNullable> arrayStringExtensionNullable = JsonNullable.>undefined(); public static final String JSON_PROPERTY_STRING_NULLABLE = "string_nullable"; + @jakarta.annotation.Nullable private JsonNullable stringNullable = JsonNullable.undefined(); public DefaultValue() { } - public DefaultValue arrayStringEnumRefDefault(List arrayStringEnumRefDefault) { + public DefaultValue arrayStringEnumRefDefault(@jakarta.annotation.Nullable List arrayStringEnumRefDefault) { this.arrayStringEnumRefDefault = arrayStringEnumRefDefault; return this; @@ -139,11 +147,11 @@ public List getArrayStringEnumRefDefault() { @JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayStringEnumRefDefault(List arrayStringEnumRefDefault) { + public void setArrayStringEnumRefDefault(@jakarta.annotation.Nullable List arrayStringEnumRefDefault) { this.arrayStringEnumRefDefault = arrayStringEnumRefDefault; } - public DefaultValue arrayStringEnumDefault(List arrayStringEnumDefault) { + public DefaultValue arrayStringEnumDefault(@jakarta.annotation.Nullable List arrayStringEnumDefault) { this.arrayStringEnumDefault = arrayStringEnumDefault; return this; @@ -172,11 +180,11 @@ public List getArrayStringEnumDefault() { @JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayStringEnumDefault(List arrayStringEnumDefault) { + public void setArrayStringEnumDefault(@jakarta.annotation.Nullable List arrayStringEnumDefault) { this.arrayStringEnumDefault = arrayStringEnumDefault; } - public DefaultValue arrayStringDefault(List arrayStringDefault) { + public DefaultValue arrayStringDefault(@jakarta.annotation.Nullable List arrayStringDefault) { this.arrayStringDefault = arrayStringDefault; return this; @@ -205,11 +213,11 @@ public List getArrayStringDefault() { @JsonProperty(JSON_PROPERTY_ARRAY_STRING_DEFAULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayStringDefault(List arrayStringDefault) { + public void setArrayStringDefault(@jakarta.annotation.Nullable List arrayStringDefault) { this.arrayStringDefault = arrayStringDefault; } - public DefaultValue arrayIntegerDefault(List arrayIntegerDefault) { + public DefaultValue arrayIntegerDefault(@jakarta.annotation.Nullable List arrayIntegerDefault) { this.arrayIntegerDefault = arrayIntegerDefault; return this; @@ -238,11 +246,11 @@ public List getArrayIntegerDefault() { @JsonProperty(JSON_PROPERTY_ARRAY_INTEGER_DEFAULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayIntegerDefault(List arrayIntegerDefault) { + public void setArrayIntegerDefault(@jakarta.annotation.Nullable List arrayIntegerDefault) { this.arrayIntegerDefault = arrayIntegerDefault; } - public DefaultValue arrayString(List arrayString) { + public DefaultValue arrayString(@jakarta.annotation.Nullable List arrayString) { this.arrayString = arrayString; return this; @@ -271,11 +279,11 @@ public List getArrayString() { @JsonProperty(JSON_PROPERTY_ARRAY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayString(List arrayString) { + public void setArrayString(@jakarta.annotation.Nullable List arrayString) { this.arrayString = arrayString; } - public DefaultValue arrayStringNullable(List arrayStringNullable) { + public DefaultValue arrayStringNullable(@jakarta.annotation.Nullable List arrayStringNullable) { this.arrayStringNullable = JsonNullable.>of(arrayStringNullable); return this; @@ -316,11 +324,11 @@ public void setArrayStringNullable_JsonNullable(JsonNullable> array this.arrayStringNullable = arrayStringNullable; } - public void setArrayStringNullable(List arrayStringNullable) { + public void setArrayStringNullable(@jakarta.annotation.Nullable List arrayStringNullable) { this.arrayStringNullable = JsonNullable.>of(arrayStringNullable); } - public DefaultValue arrayStringExtensionNullable(List arrayStringExtensionNullable) { + public DefaultValue arrayStringExtensionNullable(@jakarta.annotation.Nullable List arrayStringExtensionNullable) { this.arrayStringExtensionNullable = JsonNullable.>of(arrayStringExtensionNullable); return this; @@ -361,11 +369,11 @@ public void setArrayStringExtensionNullable_JsonNullable(JsonNullable arrayStringExtensionNullable) { + public void setArrayStringExtensionNullable(@jakarta.annotation.Nullable List arrayStringExtensionNullable) { this.arrayStringExtensionNullable = JsonNullable.>of(arrayStringExtensionNullable); } - public DefaultValue stringNullable(String stringNullable) { + public DefaultValue stringNullable(@jakarta.annotation.Nullable String stringNullable) { this.stringNullable = JsonNullable.of(stringNullable); return this; @@ -394,7 +402,7 @@ public void setStringNullable_JsonNullable(JsonNullable stringNullable) this.stringNullable = stringNullable; } - public void setStringNullable(String stringNullable) { + public void setStringNullable(@jakarta.annotation.Nullable String stringNullable) { this.stringNullable = JsonNullable.of(stringNullable); } diff --git a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java index 27cff81e2864..36f978036edb 100644 --- a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java +++ b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java @@ -35,18 +35,21 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class NumberPropertiesOnly { public static final String JSON_PROPERTY_NUMBER = "number"; + @jakarta.annotation.Nullable private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; + @jakarta.annotation.Nullable private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; + @jakarta.annotation.Nullable private Double _double; public NumberPropertiesOnly() { } - public NumberPropertiesOnly number(BigDecimal number) { + public NumberPropertiesOnly number(@jakarta.annotation.Nullable BigDecimal number) { this.number = number; return this; @@ -67,11 +70,11 @@ public BigDecimal getNumber() { @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNumber(BigDecimal number) { + public void setNumber(@jakarta.annotation.Nullable BigDecimal number) { this.number = number; } - public NumberPropertiesOnly _float(Float _float) { + public NumberPropertiesOnly _float(@jakarta.annotation.Nullable Float _float) { this._float = _float; return this; @@ -92,11 +95,11 @@ public Float getFloat() { @JsonProperty(JSON_PROPERTY_FLOAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFloat(Float _float) { + public void setFloat(@jakarta.annotation.Nullable Float _float) { this._float = _float; } - public NumberPropertiesOnly _double(Double _double) { + public NumberPropertiesOnly _double(@jakarta.annotation.Nullable Double _double) { this._double = _double; return this; @@ -119,7 +122,7 @@ public Double getDouble() { @JsonProperty(JSON_PROPERTY_DOUBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDouble(Double _double) { + public void setDouble(@jakarta.annotation.Nullable Double _double) { this._double = _double; } diff --git a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Pet.java index 277c0c2175d3..9a887f784828 100644 --- a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Pet.java @@ -42,18 +42,23 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Pet { public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_CATEGORY = "category"; + @jakarta.annotation.Nullable private Category category; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; + @jakarta.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String JSON_PROPERTY_TAGS = "tags"; + @jakarta.annotation.Nullable private List tags = new ArrayList<>(); /** @@ -94,12 +99,13 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @jakarta.annotation.Nullable private StatusEnum status; public Pet() { } - public Pet id(Long id) { + public Pet id(@jakarta.annotation.Nullable Long id) { this.id = id; return this; @@ -120,11 +126,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; } - public Pet name(String name) { + public Pet name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; @@ -145,11 +151,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public Pet category(Category category) { + public Pet category(@jakarta.annotation.Nullable Category category) { this.category = category; return this; @@ -170,11 +176,11 @@ public Category getCategory() { @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCategory(Category category) { + public void setCategory(@jakarta.annotation.Nullable Category category) { this.category = category; } - public Pet photoUrls(List photoUrls) { + public Pet photoUrls(@jakarta.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; return this; @@ -203,11 +209,11 @@ public List getPhotoUrls() { @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPhotoUrls(List photoUrls) { + public void setPhotoUrls(@jakarta.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; } - public Pet tags(List tags) { + public Pet tags(@jakarta.annotation.Nullable List tags) { this.tags = tags; return this; @@ -236,11 +242,11 @@ public List getTags() { @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTags(List tags) { + public void setTags(@jakarta.annotation.Nullable List tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -261,7 +267,7 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Query.java b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Query.java index 563e3c587f73..e8f371fd5ef9 100644 --- a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Query.java +++ b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Query.java @@ -36,6 +36,7 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Query { public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nullable protected Long id; /** @@ -76,12 +77,13 @@ public static OutcomesEnum fromValue(String value) { } public static final String JSON_PROPERTY_OUTCOMES = "outcomes"; + @jakarta.annotation.Nullable protected List outcomes = new ArrayList<>(Arrays.asList(OutcomesEnum.SUCCESS, OutcomesEnum.FAILURE)); public Query() { } - public Query id(Long id) { + public Query id(@jakarta.annotation.Nullable Long id) { this.id = id; return this; @@ -102,11 +104,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; } - public Query outcomes(List outcomes) { + public Query outcomes(@jakarta.annotation.Nullable List outcomes) { this.outcomes = outcomes; return this; @@ -135,7 +137,7 @@ public List getOutcomes() { @JsonProperty(JSON_PROPERTY_OUTCOMES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOutcomes(List outcomes) { + public void setOutcomes(@jakarta.annotation.Nullable List outcomes) { this.outcomes = outcomes; } diff --git a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Tag.java index 4b0753876313..171ed7c8e320 100644 --- a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Tag.java @@ -33,15 +33,17 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Tag { public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private String name; public Tag() { } - public Tag id(Long id) { + public Tag id(@jakarta.annotation.Nullable Long id) { this.id = id; return this; @@ -62,11 +64,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@jakarta.annotation.Nullable String name) { this.name = name; return this; @@ -87,7 +89,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java index e2b66474cdf2..34e589a1ba13 100644 --- a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java +++ b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java @@ -33,12 +33,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class TestFormObjectMultipartRequestMarker { public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private String name; public TestFormObjectMultipartRequestMarker() { } - public TestFormObjectMultipartRequestMarker name(String name) { + public TestFormObjectMultipartRequestMarker name(@jakarta.annotation.Nullable String name) { this.name = name; return this; @@ -59,7 +60,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java index ed8330734c73..e182c7d924a2 100644 --- a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java +++ b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java @@ -36,21 +36,25 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter { public static final String JSON_PROPERTY_SIZE = "size"; + @jakarta.annotation.Nullable private String size; public static final String JSON_PROPERTY_COLOR = "color"; + @jakarta.annotation.Nullable private String color; public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private String name; public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() { } - public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(String size) { + public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(@jakarta.annotation.Nullable String size) { this.size = size; return this; @@ -71,11 +75,11 @@ public String getSize() { @JsonProperty(JSON_PROPERTY_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSize(String size) { + public void setSize(@jakarta.annotation.Nullable String size) { this.size = size; } - public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color(String color) { + public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color(@jakarta.annotation.Nullable String color) { this.color = color; return this; @@ -96,11 +100,11 @@ public String getColor() { @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setColor(String color) { + public void setColor(@jakarta.annotation.Nullable String color) { this.color = color; } - public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(Long id) { + public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(@jakarta.annotation.Nullable Long id) { this.id = id; return this; @@ -121,11 +125,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; } - public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(String name) { + public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(@jakarta.annotation.Nullable String name) { this.name = name; return this; @@ -146,7 +150,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java index 8f9cf2a54283..63aea0f0fad3 100644 --- a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java +++ b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java @@ -36,12 +36,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter { public static final String JSON_PROPERTY_VALUES = "values"; + @jakarta.annotation.Nullable private List values = new ArrayList<>(); public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() { } - public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter values(List values) { + public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter values(@jakarta.annotation.Nullable List values) { this.values = values; return this; @@ -70,7 +71,7 @@ public List getValues() { @JsonProperty(JSON_PROPERTY_VALUES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setValues(List values) { + public void setValues(@jakarta.annotation.Nullable List values) { this.values = values; } diff --git a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Bird.java b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Bird.java index eba01300602b..ec6199a2fbe6 100644 --- a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Bird.java +++ b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Bird.java @@ -33,15 +33,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Bird { public static final String JSON_PROPERTY_SIZE = "size"; + @javax.annotation.Nullable private String size; public static final String JSON_PROPERTY_COLOR = "color"; + @javax.annotation.Nullable private String color; public Bird() { } - public Bird size(String size) { + public Bird size(@javax.annotation.Nullable String size) { this.size = size; return this; @@ -62,11 +64,11 @@ public String getSize() { @JsonProperty(JSON_PROPERTY_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSize(String size) { + public void setSize(@javax.annotation.Nullable String size) { this.size = size; } - public Bird color(String color) { + public Bird color(@javax.annotation.Nullable String color) { this.color = color; return this; @@ -87,7 +89,7 @@ public String getColor() { @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setColor(String color) { + public void setColor(@javax.annotation.Nullable String color) { this.color = color; } diff --git a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Category.java b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Category.java index e9b38219f529..bccb1ab46b72 100644 --- a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Category.java @@ -33,15 +33,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Category { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public Category() { } - public Category id(Long id) { + public Category id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -62,11 +64,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -87,7 +89,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/DataQuery.java b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/DataQuery.java index b33e3d3020cd..629e658f6325 100644 --- a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/DataQuery.java +++ b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/DataQuery.java @@ -39,19 +39,22 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class DataQuery extends Query { public static final String JSON_PROPERTY_SUFFIX = "suffix"; + @javax.annotation.Nullable private String suffix; public static final String JSON_PROPERTY_TEXT = "text"; + @javax.annotation.Nullable private String text; public static final String JSON_PROPERTY_DATE = "date"; + @javax.annotation.Nullable private OffsetDateTime date; public DataQuery() { } - public DataQuery suffix(String suffix) { + public DataQuery suffix(@javax.annotation.Nullable String suffix) { this.suffix = suffix; return this; @@ -72,11 +75,11 @@ public String getSuffix() { @JsonProperty(JSON_PROPERTY_SUFFIX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSuffix(String suffix) { + public void setSuffix(@javax.annotation.Nullable String suffix) { this.suffix = suffix; } - public DataQuery text(String text) { + public DataQuery text(@javax.annotation.Nullable String text) { this.text = text; return this; @@ -97,11 +100,11 @@ public String getText() { @JsonProperty(JSON_PROPERTY_TEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setText(String text) { + public void setText(@javax.annotation.Nullable String text) { this.text = text; } - public DataQuery date(OffsetDateTime date) { + public DataQuery date(@javax.annotation.Nullable OffsetDateTime date) { this.date = date; return this; @@ -122,18 +125,18 @@ public OffsetDateTime getDate() { @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDate(OffsetDateTime date) { + public void setDate(@javax.annotation.Nullable OffsetDateTime date) { this.date = date; } @Override - public DataQuery id(Long id) { + public DataQuery id(@javax.annotation.Nullable Long id) { this.setId(id); return this; } @Override - public DataQuery outcomes(List outcomes) { + public DataQuery outcomes(@javax.annotation.Nullable List outcomes) { this.setOutcomes(outcomes); return this; } diff --git a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/DefaultValue.java b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/DefaultValue.java index ecdd490bb753..8ce31ead0f4a 100644 --- a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/DefaultValue.java +++ b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/DefaultValue.java @@ -47,6 +47,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class DefaultValue { public static final String JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT = "array_string_enum_ref_default"; + @javax.annotation.Nullable private List arrayStringEnumRefDefault = new ArrayList<>(Arrays.asList(StringEnumRef.SUCCESS, StringEnumRef.FAILURE)); /** @@ -87,30 +88,37 @@ public static ArrayStringEnumDefaultEnum fromValue(String value) { } public static final String JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT = "array_string_enum_default"; + @javax.annotation.Nullable private List arrayStringEnumDefault = new ArrayList<>(Arrays.asList(ArrayStringEnumDefaultEnum.SUCCESS, ArrayStringEnumDefaultEnum.FAILURE)); public static final String JSON_PROPERTY_ARRAY_STRING_DEFAULT = "array_string_default"; + @javax.annotation.Nullable private List arrayStringDefault = new ArrayList<>(Arrays.asList("failure", "skipped")); public static final String JSON_PROPERTY_ARRAY_INTEGER_DEFAULT = "array_integer_default"; + @javax.annotation.Nullable private List arrayIntegerDefault = new ArrayList<>(Arrays.asList(1, 3)); public static final String JSON_PROPERTY_ARRAY_STRING = "array_string"; + @javax.annotation.Nullable private List arrayString = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_STRING_NULLABLE = "array_string_nullable"; + @javax.annotation.Nullable private JsonNullable> arrayStringNullable = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_STRING_EXTENSION_NULLABLE = "array_string_extension_nullable"; + @javax.annotation.Nullable private JsonNullable> arrayStringExtensionNullable = JsonNullable.>undefined(); public static final String JSON_PROPERTY_STRING_NULLABLE = "string_nullable"; + @javax.annotation.Nullable private JsonNullable stringNullable = JsonNullable.undefined(); public DefaultValue() { } - public DefaultValue arrayStringEnumRefDefault(List arrayStringEnumRefDefault) { + public DefaultValue arrayStringEnumRefDefault(@javax.annotation.Nullable List arrayStringEnumRefDefault) { this.arrayStringEnumRefDefault = arrayStringEnumRefDefault; return this; @@ -139,11 +147,11 @@ public List getArrayStringEnumRefDefault() { @JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayStringEnumRefDefault(List arrayStringEnumRefDefault) { + public void setArrayStringEnumRefDefault(@javax.annotation.Nullable List arrayStringEnumRefDefault) { this.arrayStringEnumRefDefault = arrayStringEnumRefDefault; } - public DefaultValue arrayStringEnumDefault(List arrayStringEnumDefault) { + public DefaultValue arrayStringEnumDefault(@javax.annotation.Nullable List arrayStringEnumDefault) { this.arrayStringEnumDefault = arrayStringEnumDefault; return this; @@ -172,11 +180,11 @@ public List getArrayStringEnumDefault() { @JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayStringEnumDefault(List arrayStringEnumDefault) { + public void setArrayStringEnumDefault(@javax.annotation.Nullable List arrayStringEnumDefault) { this.arrayStringEnumDefault = arrayStringEnumDefault; } - public DefaultValue arrayStringDefault(List arrayStringDefault) { + public DefaultValue arrayStringDefault(@javax.annotation.Nullable List arrayStringDefault) { this.arrayStringDefault = arrayStringDefault; return this; @@ -205,11 +213,11 @@ public List getArrayStringDefault() { @JsonProperty(JSON_PROPERTY_ARRAY_STRING_DEFAULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayStringDefault(List arrayStringDefault) { + public void setArrayStringDefault(@javax.annotation.Nullable List arrayStringDefault) { this.arrayStringDefault = arrayStringDefault; } - public DefaultValue arrayIntegerDefault(List arrayIntegerDefault) { + public DefaultValue arrayIntegerDefault(@javax.annotation.Nullable List arrayIntegerDefault) { this.arrayIntegerDefault = arrayIntegerDefault; return this; @@ -238,11 +246,11 @@ public List getArrayIntegerDefault() { @JsonProperty(JSON_PROPERTY_ARRAY_INTEGER_DEFAULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayIntegerDefault(List arrayIntegerDefault) { + public void setArrayIntegerDefault(@javax.annotation.Nullable List arrayIntegerDefault) { this.arrayIntegerDefault = arrayIntegerDefault; } - public DefaultValue arrayString(List arrayString) { + public DefaultValue arrayString(@javax.annotation.Nullable List arrayString) { this.arrayString = arrayString; return this; @@ -271,11 +279,11 @@ public List getArrayString() { @JsonProperty(JSON_PROPERTY_ARRAY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayString(List arrayString) { + public void setArrayString(@javax.annotation.Nullable List arrayString) { this.arrayString = arrayString; } - public DefaultValue arrayStringNullable(List arrayStringNullable) { + public DefaultValue arrayStringNullable(@javax.annotation.Nullable List arrayStringNullable) { this.arrayStringNullable = JsonNullable.>of(arrayStringNullable); return this; @@ -316,11 +324,11 @@ public void setArrayStringNullable_JsonNullable(JsonNullable> array this.arrayStringNullable = arrayStringNullable; } - public void setArrayStringNullable(List arrayStringNullable) { + public void setArrayStringNullable(@javax.annotation.Nullable List arrayStringNullable) { this.arrayStringNullable = JsonNullable.>of(arrayStringNullable); } - public DefaultValue arrayStringExtensionNullable(List arrayStringExtensionNullable) { + public DefaultValue arrayStringExtensionNullable(@javax.annotation.Nullable List arrayStringExtensionNullable) { this.arrayStringExtensionNullable = JsonNullable.>of(arrayStringExtensionNullable); return this; @@ -361,11 +369,11 @@ public void setArrayStringExtensionNullable_JsonNullable(JsonNullable arrayStringExtensionNullable) { + public void setArrayStringExtensionNullable(@javax.annotation.Nullable List arrayStringExtensionNullable) { this.arrayStringExtensionNullable = JsonNullable.>of(arrayStringExtensionNullable); } - public DefaultValue stringNullable(String stringNullable) { + public DefaultValue stringNullable(@javax.annotation.Nullable String stringNullable) { this.stringNullable = JsonNullable.of(stringNullable); return this; @@ -394,7 +402,7 @@ public void setStringNullable_JsonNullable(JsonNullable stringNullable) this.stringNullable = stringNullable; } - public void setStringNullable(String stringNullable) { + public void setStringNullable(@javax.annotation.Nullable String stringNullable) { this.stringNullable = JsonNullable.of(stringNullable); } diff --git a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java index 739056718813..c82c4cd6515f 100644 --- a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java +++ b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java @@ -35,18 +35,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class NumberPropertiesOnly { public static final String JSON_PROPERTY_NUMBER = "number"; + @javax.annotation.Nullable private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; + @javax.annotation.Nullable private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; + @javax.annotation.Nullable private Double _double; public NumberPropertiesOnly() { } - public NumberPropertiesOnly number(BigDecimal number) { + public NumberPropertiesOnly number(@javax.annotation.Nullable BigDecimal number) { this.number = number; return this; @@ -67,11 +70,11 @@ public BigDecimal getNumber() { @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNumber(BigDecimal number) { + public void setNumber(@javax.annotation.Nullable BigDecimal number) { this.number = number; } - public NumberPropertiesOnly _float(Float _float) { + public NumberPropertiesOnly _float(@javax.annotation.Nullable Float _float) { this._float = _float; return this; @@ -92,11 +95,11 @@ public Float getFloat() { @JsonProperty(JSON_PROPERTY_FLOAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFloat(Float _float) { + public void setFloat(@javax.annotation.Nullable Float _float) { this._float = _float; } - public NumberPropertiesOnly _double(Double _double) { + public NumberPropertiesOnly _double(@javax.annotation.Nullable Double _double) { this._double = _double; return this; @@ -119,7 +122,7 @@ public Double getDouble() { @JsonProperty(JSON_PROPERTY_DOUBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDouble(Double _double) { + public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; } diff --git a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Pet.java index e82f063d249c..1dd05a8f791e 100644 --- a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Pet.java @@ -42,18 +42,23 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Pet { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private String name; public static final String JSON_PROPERTY_CATEGORY = "category"; + @javax.annotation.Nullable private Category category; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; + @javax.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String JSON_PROPERTY_TAGS = "tags"; + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** @@ -94,12 +99,13 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } - public Pet id(Long id) { + public Pet id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -120,11 +126,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Pet name(String name) { + public Pet name(@javax.annotation.Nonnull String name) { this.name = name; return this; @@ -145,11 +151,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } - public Pet category(Category category) { + public Pet category(@javax.annotation.Nullable Category category) { this.category = category; return this; @@ -170,11 +176,11 @@ public Category getCategory() { @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCategory(Category category) { + public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; } - public Pet photoUrls(List photoUrls) { + public Pet photoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; return this; @@ -203,11 +209,11 @@ public List getPhotoUrls() { @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPhotoUrls(List photoUrls) { + public void setPhotoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; } - public Pet tags(List tags) { + public Pet tags(@javax.annotation.Nullable List tags) { this.tags = tags; return this; @@ -236,11 +242,11 @@ public List getTags() { @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTags(List tags) { + public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -261,7 +267,7 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Query.java b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Query.java index 339bc1b76a9e..2ba152b11aa5 100644 --- a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Query.java +++ b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Query.java @@ -36,6 +36,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Query { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable protected Long id; /** @@ -76,12 +77,13 @@ public static OutcomesEnum fromValue(String value) { } public static final String JSON_PROPERTY_OUTCOMES = "outcomes"; + @javax.annotation.Nullable protected List outcomes = new ArrayList<>(Arrays.asList(OutcomesEnum.SUCCESS, OutcomesEnum.FAILURE)); public Query() { } - public Query id(Long id) { + public Query id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -102,11 +104,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Query outcomes(List outcomes) { + public Query outcomes(@javax.annotation.Nullable List outcomes) { this.outcomes = outcomes; return this; @@ -135,7 +137,7 @@ public List getOutcomes() { @JsonProperty(JSON_PROPERTY_OUTCOMES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOutcomes(List outcomes) { + public void setOutcomes(@javax.annotation.Nullable List outcomes) { this.outcomes = outcomes; } diff --git a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Tag.java index 7fec324a881f..60261fe6f513 100644 --- a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Tag.java @@ -33,15 +33,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Tag { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public Tag() { } - public Tag id(Long id) { + public Tag id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -62,11 +64,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -87,7 +89,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java index aa08d1332503..a4b89fefa3c3 100644 --- a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java +++ b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java @@ -33,12 +33,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class TestFormObjectMultipartRequestMarker { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public TestFormObjectMultipartRequestMarker() { } - public TestFormObjectMultipartRequestMarker name(String name) { + public TestFormObjectMultipartRequestMarker name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -59,7 +60,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java index b6048f6b7398..5193ca0acf46 100644 --- a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java +++ b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java @@ -36,21 +36,25 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter { public static final String JSON_PROPERTY_SIZE = "size"; + @javax.annotation.Nullable private String size; public static final String JSON_PROPERTY_COLOR = "color"; + @javax.annotation.Nullable private String color; public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() { } - public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(String size) { + public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(@javax.annotation.Nullable String size) { this.size = size; return this; @@ -71,11 +75,11 @@ public String getSize() { @JsonProperty(JSON_PROPERTY_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSize(String size) { + public void setSize(@javax.annotation.Nullable String size) { this.size = size; } - public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color(String color) { + public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color(@javax.annotation.Nullable String color) { this.color = color; return this; @@ -96,11 +100,11 @@ public String getColor() { @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setColor(String color) { + public void setColor(@javax.annotation.Nullable String color) { this.color = color; } - public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(Long id) { + public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -121,11 +125,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(String name) { + public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -146,7 +150,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java index 4ccb05ecbe3d..1b0401465b86 100644 --- a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java +++ b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java @@ -36,12 +36,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter { public static final String JSON_PROPERTY_VALUES = "values"; + @javax.annotation.Nullable private List values = new ArrayList<>(); public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() { } - public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter values(List values) { + public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter values(@javax.annotation.Nullable List values) { this.values = values; return this; @@ -70,7 +71,7 @@ public List getValues() { @JsonProperty(JSON_PROPERTY_VALUES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setValues(List values) { + public void setValues(@javax.annotation.Nullable List values) { this.values = values; } diff --git a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Bird.java b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Bird.java index eba01300602b..ec6199a2fbe6 100644 --- a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Bird.java +++ b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Bird.java @@ -33,15 +33,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Bird { public static final String JSON_PROPERTY_SIZE = "size"; + @javax.annotation.Nullable private String size; public static final String JSON_PROPERTY_COLOR = "color"; + @javax.annotation.Nullable private String color; public Bird() { } - public Bird size(String size) { + public Bird size(@javax.annotation.Nullable String size) { this.size = size; return this; @@ -62,11 +64,11 @@ public String getSize() { @JsonProperty(JSON_PROPERTY_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSize(String size) { + public void setSize(@javax.annotation.Nullable String size) { this.size = size; } - public Bird color(String color) { + public Bird color(@javax.annotation.Nullable String color) { this.color = color; return this; @@ -87,7 +89,7 @@ public String getColor() { @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setColor(String color) { + public void setColor(@javax.annotation.Nullable String color) { this.color = color; } diff --git a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Category.java b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Category.java index e9b38219f529..bccb1ab46b72 100644 --- a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Category.java @@ -33,15 +33,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Category { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public Category() { } - public Category id(Long id) { + public Category id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -62,11 +64,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -87,7 +89,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/DataQuery.java b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/DataQuery.java index b33e3d3020cd..629e658f6325 100644 --- a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/DataQuery.java +++ b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/DataQuery.java @@ -39,19 +39,22 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class DataQuery extends Query { public static final String JSON_PROPERTY_SUFFIX = "suffix"; + @javax.annotation.Nullable private String suffix; public static final String JSON_PROPERTY_TEXT = "text"; + @javax.annotation.Nullable private String text; public static final String JSON_PROPERTY_DATE = "date"; + @javax.annotation.Nullable private OffsetDateTime date; public DataQuery() { } - public DataQuery suffix(String suffix) { + public DataQuery suffix(@javax.annotation.Nullable String suffix) { this.suffix = suffix; return this; @@ -72,11 +75,11 @@ public String getSuffix() { @JsonProperty(JSON_PROPERTY_SUFFIX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSuffix(String suffix) { + public void setSuffix(@javax.annotation.Nullable String suffix) { this.suffix = suffix; } - public DataQuery text(String text) { + public DataQuery text(@javax.annotation.Nullable String text) { this.text = text; return this; @@ -97,11 +100,11 @@ public String getText() { @JsonProperty(JSON_PROPERTY_TEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setText(String text) { + public void setText(@javax.annotation.Nullable String text) { this.text = text; } - public DataQuery date(OffsetDateTime date) { + public DataQuery date(@javax.annotation.Nullable OffsetDateTime date) { this.date = date; return this; @@ -122,18 +125,18 @@ public OffsetDateTime getDate() { @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDate(OffsetDateTime date) { + public void setDate(@javax.annotation.Nullable OffsetDateTime date) { this.date = date; } @Override - public DataQuery id(Long id) { + public DataQuery id(@javax.annotation.Nullable Long id) { this.setId(id); return this; } @Override - public DataQuery outcomes(List outcomes) { + public DataQuery outcomes(@javax.annotation.Nullable List outcomes) { this.setOutcomes(outcomes); return this; } diff --git a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/DefaultValue.java b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/DefaultValue.java index 1029fd39a93a..c0428e9a560b 100644 --- a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/DefaultValue.java +++ b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/DefaultValue.java @@ -47,6 +47,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class DefaultValue { public static final String JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT = "array_string_enum_ref_default"; + @javax.annotation.Nullable private List arrayStringEnumRefDefault = new ArrayList<>(Arrays.asList(StringEnumRef.SUCCESS, StringEnumRef.FAILURE)); /** @@ -87,30 +88,37 @@ public static ArrayStringEnumDefaultEnum fromValue(String value) { } public static final String JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT = "array_string_enum_default"; + @javax.annotation.Nullable private List arrayStringEnumDefault = new ArrayList<>(Arrays.asList(ArrayStringEnumDefaultEnum.SUCCESS, ArrayStringEnumDefaultEnum.FAILURE)); public static final String JSON_PROPERTY_ARRAY_STRING_DEFAULT = "array_string_default"; + @javax.annotation.Nullable private List arrayStringDefault = new ArrayList<>(Arrays.asList("failure", "skipped")); public static final String JSON_PROPERTY_ARRAY_INTEGER_DEFAULT = "array_integer_default"; + @javax.annotation.Nullable private List arrayIntegerDefault = new ArrayList<>(Arrays.asList(1, 3)); public static final String JSON_PROPERTY_ARRAY_STRING = "array_string"; + @javax.annotation.Nullable private List arrayString; public static final String JSON_PROPERTY_ARRAY_STRING_NULLABLE = "array_string_nullable"; + @javax.annotation.Nullable private JsonNullable> arrayStringNullable = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_STRING_EXTENSION_NULLABLE = "array_string_extension_nullable"; + @javax.annotation.Nullable private JsonNullable> arrayStringExtensionNullable = JsonNullable.>undefined(); public static final String JSON_PROPERTY_STRING_NULLABLE = "string_nullable"; + @javax.annotation.Nullable private JsonNullable stringNullable = JsonNullable.undefined(); public DefaultValue() { } - public DefaultValue arrayStringEnumRefDefault(List arrayStringEnumRefDefault) { + public DefaultValue arrayStringEnumRefDefault(@javax.annotation.Nullable List arrayStringEnumRefDefault) { this.arrayStringEnumRefDefault = arrayStringEnumRefDefault; return this; @@ -139,11 +147,11 @@ public List getArrayStringEnumRefDefault() { @JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayStringEnumRefDefault(List arrayStringEnumRefDefault) { + public void setArrayStringEnumRefDefault(@javax.annotation.Nullable List arrayStringEnumRefDefault) { this.arrayStringEnumRefDefault = arrayStringEnumRefDefault; } - public DefaultValue arrayStringEnumDefault(List arrayStringEnumDefault) { + public DefaultValue arrayStringEnumDefault(@javax.annotation.Nullable List arrayStringEnumDefault) { this.arrayStringEnumDefault = arrayStringEnumDefault; return this; @@ -172,11 +180,11 @@ public List getArrayStringEnumDefault() { @JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayStringEnumDefault(List arrayStringEnumDefault) { + public void setArrayStringEnumDefault(@javax.annotation.Nullable List arrayStringEnumDefault) { this.arrayStringEnumDefault = arrayStringEnumDefault; } - public DefaultValue arrayStringDefault(List arrayStringDefault) { + public DefaultValue arrayStringDefault(@javax.annotation.Nullable List arrayStringDefault) { this.arrayStringDefault = arrayStringDefault; return this; @@ -205,11 +213,11 @@ public List getArrayStringDefault() { @JsonProperty(JSON_PROPERTY_ARRAY_STRING_DEFAULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayStringDefault(List arrayStringDefault) { + public void setArrayStringDefault(@javax.annotation.Nullable List arrayStringDefault) { this.arrayStringDefault = arrayStringDefault; } - public DefaultValue arrayIntegerDefault(List arrayIntegerDefault) { + public DefaultValue arrayIntegerDefault(@javax.annotation.Nullable List arrayIntegerDefault) { this.arrayIntegerDefault = arrayIntegerDefault; return this; @@ -238,11 +246,11 @@ public List getArrayIntegerDefault() { @JsonProperty(JSON_PROPERTY_ARRAY_INTEGER_DEFAULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayIntegerDefault(List arrayIntegerDefault) { + public void setArrayIntegerDefault(@javax.annotation.Nullable List arrayIntegerDefault) { this.arrayIntegerDefault = arrayIntegerDefault; } - public DefaultValue arrayString(List arrayString) { + public DefaultValue arrayString(@javax.annotation.Nullable List arrayString) { this.arrayString = arrayString; return this; @@ -271,11 +279,11 @@ public List getArrayString() { @JsonProperty(JSON_PROPERTY_ARRAY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayString(List arrayString) { + public void setArrayString(@javax.annotation.Nullable List arrayString) { this.arrayString = arrayString; } - public DefaultValue arrayStringNullable(List arrayStringNullable) { + public DefaultValue arrayStringNullable(@javax.annotation.Nullable List arrayStringNullable) { this.arrayStringNullable = JsonNullable.>of(arrayStringNullable); return this; @@ -316,11 +324,11 @@ public void setArrayStringNullable_JsonNullable(JsonNullable> array this.arrayStringNullable = arrayStringNullable; } - public void setArrayStringNullable(List arrayStringNullable) { + public void setArrayStringNullable(@javax.annotation.Nullable List arrayStringNullable) { this.arrayStringNullable = JsonNullable.>of(arrayStringNullable); } - public DefaultValue arrayStringExtensionNullable(List arrayStringExtensionNullable) { + public DefaultValue arrayStringExtensionNullable(@javax.annotation.Nullable List arrayStringExtensionNullable) { this.arrayStringExtensionNullable = JsonNullable.>of(arrayStringExtensionNullable); return this; @@ -361,11 +369,11 @@ public void setArrayStringExtensionNullable_JsonNullable(JsonNullable arrayStringExtensionNullable) { + public void setArrayStringExtensionNullable(@javax.annotation.Nullable List arrayStringExtensionNullable) { this.arrayStringExtensionNullable = JsonNullable.>of(arrayStringExtensionNullable); } - public DefaultValue stringNullable(String stringNullable) { + public DefaultValue stringNullable(@javax.annotation.Nullable String stringNullable) { this.stringNullable = JsonNullable.of(stringNullable); return this; @@ -394,7 +402,7 @@ public void setStringNullable_JsonNullable(JsonNullable stringNullable) this.stringNullable = stringNullable; } - public void setStringNullable(String stringNullable) { + public void setStringNullable(@javax.annotation.Nullable String stringNullable) { this.stringNullable = JsonNullable.of(stringNullable); } diff --git a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java index 739056718813..c82c4cd6515f 100644 --- a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java +++ b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java @@ -35,18 +35,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class NumberPropertiesOnly { public static final String JSON_PROPERTY_NUMBER = "number"; + @javax.annotation.Nullable private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; + @javax.annotation.Nullable private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; + @javax.annotation.Nullable private Double _double; public NumberPropertiesOnly() { } - public NumberPropertiesOnly number(BigDecimal number) { + public NumberPropertiesOnly number(@javax.annotation.Nullable BigDecimal number) { this.number = number; return this; @@ -67,11 +70,11 @@ public BigDecimal getNumber() { @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNumber(BigDecimal number) { + public void setNumber(@javax.annotation.Nullable BigDecimal number) { this.number = number; } - public NumberPropertiesOnly _float(Float _float) { + public NumberPropertiesOnly _float(@javax.annotation.Nullable Float _float) { this._float = _float; return this; @@ -92,11 +95,11 @@ public Float getFloat() { @JsonProperty(JSON_PROPERTY_FLOAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFloat(Float _float) { + public void setFloat(@javax.annotation.Nullable Float _float) { this._float = _float; } - public NumberPropertiesOnly _double(Double _double) { + public NumberPropertiesOnly _double(@javax.annotation.Nullable Double _double) { this._double = _double; return this; @@ -119,7 +122,7 @@ public Double getDouble() { @JsonProperty(JSON_PROPERTY_DOUBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDouble(Double _double) { + public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; } diff --git a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Pet.java index 2d1b9cda8c01..4d1a327bcdd0 100644 --- a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Pet.java @@ -42,18 +42,23 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Pet { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private String name; public static final String JSON_PROPERTY_CATEGORY = "category"; + @javax.annotation.Nullable private Category category; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; + @javax.annotation.Nonnull private List photoUrls; public static final String JSON_PROPERTY_TAGS = "tags"; + @javax.annotation.Nullable private List tags; /** @@ -94,12 +99,13 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } - public Pet id(Long id) { + public Pet id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -120,11 +126,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Pet name(String name) { + public Pet name(@javax.annotation.Nonnull String name) { this.name = name; return this; @@ -145,11 +151,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } - public Pet category(Category category) { + public Pet category(@javax.annotation.Nullable Category category) { this.category = category; return this; @@ -170,11 +176,11 @@ public Category getCategory() { @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCategory(Category category) { + public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; } - public Pet photoUrls(List photoUrls) { + public Pet photoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; return this; @@ -203,11 +209,11 @@ public List getPhotoUrls() { @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPhotoUrls(List photoUrls) { + public void setPhotoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; } - public Pet tags(List tags) { + public Pet tags(@javax.annotation.Nullable List tags) { this.tags = tags; return this; @@ -236,11 +242,11 @@ public List getTags() { @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTags(List tags) { + public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -261,7 +267,7 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Query.java b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Query.java index 339bc1b76a9e..2ba152b11aa5 100644 --- a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Query.java +++ b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Query.java @@ -36,6 +36,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Query { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable protected Long id; /** @@ -76,12 +77,13 @@ public static OutcomesEnum fromValue(String value) { } public static final String JSON_PROPERTY_OUTCOMES = "outcomes"; + @javax.annotation.Nullable protected List outcomes = new ArrayList<>(Arrays.asList(OutcomesEnum.SUCCESS, OutcomesEnum.FAILURE)); public Query() { } - public Query id(Long id) { + public Query id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -102,11 +104,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Query outcomes(List outcomes) { + public Query outcomes(@javax.annotation.Nullable List outcomes) { this.outcomes = outcomes; return this; @@ -135,7 +137,7 @@ public List getOutcomes() { @JsonProperty(JSON_PROPERTY_OUTCOMES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOutcomes(List outcomes) { + public void setOutcomes(@javax.annotation.Nullable List outcomes) { this.outcomes = outcomes; } diff --git a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Tag.java index 7fec324a881f..60261fe6f513 100644 --- a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Tag.java @@ -33,15 +33,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Tag { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public Tag() { } - public Tag id(Long id) { + public Tag id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -62,11 +64,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -87,7 +89,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java index aa08d1332503..a4b89fefa3c3 100644 --- a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java +++ b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java @@ -33,12 +33,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class TestFormObjectMultipartRequestMarker { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public TestFormObjectMultipartRequestMarker() { } - public TestFormObjectMultipartRequestMarker name(String name) { + public TestFormObjectMultipartRequestMarker name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -59,7 +60,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java index b6048f6b7398..5193ca0acf46 100644 --- a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java +++ b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java @@ -36,21 +36,25 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter { public static final String JSON_PROPERTY_SIZE = "size"; + @javax.annotation.Nullable private String size; public static final String JSON_PROPERTY_COLOR = "color"; + @javax.annotation.Nullable private String color; public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() { } - public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(String size) { + public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(@javax.annotation.Nullable String size) { this.size = size; return this; @@ -71,11 +75,11 @@ public String getSize() { @JsonProperty(JSON_PROPERTY_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSize(String size) { + public void setSize(@javax.annotation.Nullable String size) { this.size = size; } - public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color(String color) { + public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color(@javax.annotation.Nullable String color) { this.color = color; return this; @@ -96,11 +100,11 @@ public String getColor() { @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setColor(String color) { + public void setColor(@javax.annotation.Nullable String color) { this.color = color; } - public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(Long id) { + public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -121,11 +125,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(String name) { + public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -146,7 +150,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java index b9bc73ca806a..48d131bdb6d1 100644 --- a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java +++ b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java @@ -36,12 +36,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter { public static final String JSON_PROPERTY_VALUES = "values"; + @javax.annotation.Nullable private List values; public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() { } - public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter values(List values) { + public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter values(@javax.annotation.Nullable List values) { this.values = values; return this; @@ -70,7 +71,7 @@ public List getValues() { @JsonProperty(JSON_PROPERTY_VALUES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setValues(List values) { + public void setValues(@javax.annotation.Nullable List values) { this.values = values; } diff --git a/samples/client/others/java/okhttp-gson-streaming/src/main/java/org/openapitools/client/model/SomeObj.java b/samples/client/others/java/okhttp-gson-streaming/src/main/java/org/openapitools/client/model/SomeObj.java index 9cb367038a53..f06d1b21a905 100644 --- a/samples/client/others/java/okhttp-gson-streaming/src/main/java/org/openapitools/client/model/SomeObj.java +++ b/samples/client/others/java/okhttp-gson-streaming/src/main/java/org/openapitools/client/model/SomeObj.java @@ -105,28 +105,33 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_$_TYPE = "$_type"; @SerializedName(SERIALIZED_NAME_$_TYPE) + @javax.annotation.Nullable private TypeEnum $type = TypeEnum.SOME_OBJ_IDENTIFIER; public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public static final String SERIALIZED_NAME_ACTIVE = "active"; @SerializedName(SERIALIZED_NAME_ACTIVE) + @javax.annotation.Nullable private Boolean active; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @javax.annotation.Nullable private String type; public SomeObj() { } - public SomeObj $type(TypeEnum $type) { + public SomeObj $type(@javax.annotation.Nullable TypeEnum $type) { this.$type = $type; return this; } @@ -140,12 +145,12 @@ public SomeObj() { return $type; } - public void set$Type(TypeEnum $type) { + public void set$Type(@javax.annotation.Nullable TypeEnum $type) { this.$type = $type; } - public SomeObj id(Long id) { + public SomeObj id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -159,12 +164,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public SomeObj name(String name) { + public SomeObj name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -178,12 +183,12 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } - public SomeObj active(Boolean active) { + public SomeObj active(@javax.annotation.Nullable Boolean active) { this.active = active; return this; } @@ -197,12 +202,12 @@ public Boolean getActive() { return active; } - public void setActive(Boolean active) { + public void setActive(@javax.annotation.Nullable Boolean active) { this.active = active; } - public SomeObj type(String type) { + public SomeObj type(@javax.annotation.Nullable String type) { this.type = type; return this; } @@ -216,7 +221,7 @@ public String getType() { return type; } - public void setType(String type) { + public void setType(@javax.annotation.Nullable String type) { this.type = type; } diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 30649944b3e7..6ac8b3202cc6 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -38,15 +38,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_PROPERTY = "map_property"; + @javax.annotation.Nullable private Map mapProperty = new HashMap<>(); public static final String JSON_PROPERTY_MAP_OF_MAP_PROPERTY = "map_of_map_property"; + @javax.annotation.Nullable private Map> mapOfMapProperty = new HashMap<>(); public AdditionalPropertiesClass() { } - public AdditionalPropertiesClass mapProperty(Map mapProperty) { + public AdditionalPropertiesClass mapProperty(@javax.annotation.Nullable Map mapProperty) { this.mapProperty = mapProperty; return this; @@ -75,11 +77,11 @@ public Map getMapProperty() { @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapProperty(Map mapProperty) { + public void setMapProperty(@javax.annotation.Nullable Map mapProperty) { this.mapProperty = mapProperty; } - public AdditionalPropertiesClass mapOfMapProperty(Map> mapOfMapProperty) { + public AdditionalPropertiesClass mapOfMapProperty(@javax.annotation.Nullable Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; return this; @@ -108,7 +110,7 @@ public Map> getMapOfMapProperty() { @JsonProperty(JSON_PROPERTY_MAP_OF_MAP_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapOfMapProperty(Map> mapOfMapProperty) { + public void setMapOfMapProperty(@javax.annotation.Nullable Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; } diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java index 7b1e11bd3b6c..432d31f838cb 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java @@ -37,15 +37,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AllOfWithSingleRef { public static final String JSON_PROPERTY_USERNAME = "username"; + @javax.annotation.Nullable private String username; public static final String JSON_PROPERTY_SINGLE_REF_TYPE = "SingleRefType"; + @javax.annotation.Nullable private SingleRefType singleRefType; public AllOfWithSingleRef() { } - public AllOfWithSingleRef username(String username) { + public AllOfWithSingleRef username(@javax.annotation.Nullable String username) { this.username = username; return this; @@ -66,11 +68,11 @@ public String getUsername() { @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsername(String username) { + public void setUsername(@javax.annotation.Nullable String username) { this.username = username; } - public AllOfWithSingleRef singleRefType(SingleRefType singleRefType) { + public AllOfWithSingleRef singleRefType(@javax.annotation.Nullable SingleRefType singleRefType) { this.singleRefType = singleRefType; return this; @@ -91,7 +93,7 @@ public SingleRefType getSingleRefType() { @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSingleRefType(SingleRefType singleRefType) { + public void setSingleRefType(@javax.annotation.Nullable SingleRefType singleRefType) { this.singleRefType = singleRefType; } diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Animal.java index eff6752d3ecc..8c7b0500afbf 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Animal.java @@ -49,15 +49,17 @@ public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; + @javax.annotation.Nonnull protected String className; public static final String JSON_PROPERTY_COLOR = "color"; + @javax.annotation.Nullable protected String color = "red"; public Animal() { } - public Animal className(String className) { + public Animal className(@javax.annotation.Nonnull String className) { this.className = className; return this; @@ -78,11 +80,11 @@ public String getClassName() { @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setClassName(String className) { + public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; } - public Animal color(String color) { + public Animal color(@javax.annotation.Nullable String color) { this.color = color; return this; @@ -103,7 +105,7 @@ public String getColor() { @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setColor(String color) { + public void setColor(@javax.annotation.Nullable String color) { this.color = color; } diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index e6cbd3d0e55b..c2ae2568fe48 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -39,12 +39,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayOfArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; + @javax.annotation.Nullable private List> arrayArrayNumber = new ArrayList<>(); public ArrayOfArrayOfNumberOnly() { } - public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + public ArrayOfArrayOfNumberOnly arrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; return this; @@ -73,7 +74,7 @@ public List> getArrayArrayNumber() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayNumber(List> arrayArrayNumber) { + public void setArrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 2484f71bb2db..35842bcca2e8 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -39,12 +39,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; + @javax.annotation.Nullable private List arrayNumber = new ArrayList<>(); public ArrayOfNumberOnly() { } - public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + public ArrayOfNumberOnly arrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; return this; @@ -73,7 +74,7 @@ public List getArrayNumber() { @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayNumber(List arrayNumber) { + public void setArrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ArrayTest.java index cbaeca7da287..7314714763f5 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -41,18 +41,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; + @javax.annotation.Nullable private List arrayOfString = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; + @javax.annotation.Nullable private List> arrayArrayOfInteger = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; + @javax.annotation.Nullable private List> arrayArrayOfModel = new ArrayList<>(); public ArrayTest() { } - public ArrayTest arrayOfString(List arrayOfString) { + public ArrayTest arrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; return this; @@ -81,11 +84,11 @@ public List getArrayOfString() { @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayOfString(List arrayOfString) { + public void setArrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; } - public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + public ArrayTest arrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; return this; @@ -114,11 +117,11 @@ public List> getArrayArrayOfInteger() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { + public void setArrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } - public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + public ArrayTest arrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; return this; @@ -147,7 +150,7 @@ public List> getArrayArrayOfModel() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayOfModel(List> arrayArrayOfModel) { + public void setArrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Capitalization.java index afe861b9d724..8bcbf2ba0cc7 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Capitalization.java @@ -40,27 +40,33 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Capitalization { public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; + @javax.annotation.Nullable private String smallCamel; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; + @javax.annotation.Nullable private String capitalCamel; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; + @javax.annotation.Nullable private String smallSnake; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; + @javax.annotation.Nullable private String capitalSnake; public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; + @javax.annotation.Nullable private String scAETHFlowPoints; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; + @javax.annotation.Nullable private String ATT_NAME; public Capitalization() { } - public Capitalization smallCamel(String smallCamel) { + public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; return this; @@ -81,11 +87,11 @@ public String getSmallCamel() { @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmallCamel(String smallCamel) { + public void setSmallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; } - public Capitalization capitalCamel(String capitalCamel) { + public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; return this; @@ -106,11 +112,11 @@ public String getCapitalCamel() { @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCapitalCamel(String capitalCamel) { + public void setCapitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; } - public Capitalization smallSnake(String smallSnake) { + public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; return this; @@ -131,11 +137,11 @@ public String getSmallSnake() { @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmallSnake(String smallSnake) { + public void setSmallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; } - public Capitalization capitalSnake(String capitalSnake) { + public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; return this; @@ -156,11 +162,11 @@ public String getCapitalSnake() { @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCapitalSnake(String capitalSnake) { + public void setCapitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; } - public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; return this; @@ -181,11 +187,11 @@ public String getScAETHFlowPoints() { @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setScAETHFlowPoints(String scAETHFlowPoints) { + public void setScAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } - public Capitalization ATT_NAME(String ATT_NAME) { + public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; return this; @@ -206,7 +212,7 @@ public String getATTNAME() { @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setATTNAME(String ATT_NAME) { + public void setATTNAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Cat.java index b13481b18881..4de73b9d99fd 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Cat.java @@ -45,13 +45,14 @@ public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; + @javax.annotation.Nullable private Boolean declawed; public Cat() { } - public Cat declawed(Boolean declawed) { + public Cat declawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; return this; @@ -72,18 +73,18 @@ public Boolean getDeclawed() { @JsonProperty(JSON_PROPERTY_DECLAWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; } @Override - public Cat className(String className) { + public Cat className(@javax.annotation.Nonnull String className) { this.setClassName(className); return this; } @Override - public Cat color(String color) { + public Cat color(@javax.annotation.Nullable String color) { this.setColor(color); return this; } diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Category.java index a10765a07982..483dde507b93 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Category.java @@ -36,15 +36,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Category { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private String name = "default-name"; public Category() { } - public Category id(Long id) { + public Category id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -65,11 +67,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@javax.annotation.Nonnull String name) { this.name = name; return this; @@ -90,7 +92,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ChildWithNullable.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ChildWithNullable.java index 52ca27cdf063..dc7465fec01f 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ChildWithNullable.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ChildWithNullable.java @@ -46,13 +46,14 @@ public class ChildWithNullable extends ParentWithNullable { public static final String JSON_PROPERTY_OTHER_PROPERTY = "otherProperty"; + @javax.annotation.Nullable private String otherProperty; public ChildWithNullable() { } - public ChildWithNullable otherProperty(String otherProperty) { + public ChildWithNullable otherProperty(@javax.annotation.Nullable String otherProperty) { this.otherProperty = otherProperty; return this; @@ -73,18 +74,18 @@ public String getOtherProperty() { @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOtherProperty(String otherProperty) { + public void setOtherProperty(@javax.annotation.Nullable String otherProperty) { this.otherProperty = otherProperty; } @Override - public ChildWithNullable type(TypeEnum type) { + public ChildWithNullable type(@javax.annotation.Nullable TypeEnum type) { this.setType(type); return this; } @Override - public ChildWithNullable nullableProperty(String nullableProperty) { + public ChildWithNullable nullableProperty(@javax.annotation.Nullable String nullableProperty) { this.setNullableProperty(nullableProperty); return this; } diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ClassModel.java index bddf69a54116..0766609e9cdd 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ClassModel.java @@ -35,12 +35,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ClassModel { public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; + @javax.annotation.Nullable private String propertyClass; public ClassModel() { } - public ClassModel propertyClass(String propertyClass) { + public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; @@ -61,7 +62,7 @@ public String getPropertyClass() { @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Client.java index 5b0df61d1e66..495df4dd72cc 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Client.java @@ -35,12 +35,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Client { public static final String JSON_PROPERTY_CLIENT = "client"; + @javax.annotation.Nullable private String client; public Client() { } - public Client client(String client) { + public Client client(@javax.annotation.Nullable String client) { this.client = client; return this; @@ -61,7 +62,7 @@ public String getClient() { @JsonProperty(JSON_PROPERTY_CLIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setClient(String client) { + public void setClient(@javax.annotation.Nullable String client) { this.client = client; } diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/DeprecatedObject.java index 6b424d70a9f8..ad9255003273 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -37,12 +37,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class DeprecatedObject { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public DeprecatedObject() { } - public DeprecatedObject name(String name) { + public DeprecatedObject name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -63,7 +64,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Dog.java index 9c7a7c623950..b42bce421186 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Dog.java @@ -45,13 +45,14 @@ public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; + @javax.annotation.Nullable private String breed; public Dog() { } - public Dog breed(String breed) { + public Dog breed(@javax.annotation.Nullable String breed) { this.breed = breed; return this; @@ -72,18 +73,18 @@ public String getBreed() { @JsonProperty(JSON_PROPERTY_BREED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBreed(String breed) { + public void setBreed(@javax.annotation.Nullable String breed) { this.breed = breed; } @Override - public Dog className(String className) { + public Dog className(@javax.annotation.Nonnull String className) { this.setClassName(className); return this; } @Override - public Dog color(String color) { + public Dog color(@javax.annotation.Nullable String color) { this.setColor(color); return this; } diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/EnumArrays.java index 4968949312db..446a5143e84c 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -74,6 +74,7 @@ public static JustSymbolEnum fromValue(String value) { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** @@ -112,12 +113,13 @@ public static ArrayEnumEnum fromValue(String value) { } public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; + @javax.annotation.Nullable private List arrayEnum = new ArrayList<>(); public EnumArrays() { } - public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; @@ -138,11 +140,11 @@ public JustSymbolEnum getJustSymbol() { @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJustSymbol(JustSymbolEnum justSymbol) { + public void setJustSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } - public EnumArrays arrayEnum(List arrayEnum) { + public EnumArrays arrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; return this; @@ -171,7 +173,7 @@ public List getArrayEnum() { @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayEnum(List arrayEnum) { + public void setArrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/EnumTest.java index 5fe70b9e5c67..7c0bf8157cc6 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/EnumTest.java @@ -88,6 +88,7 @@ public static EnumStringEnum fromValue(String value) { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; + @javax.annotation.Nullable private EnumStringEnum enumString; /** @@ -128,6 +129,7 @@ public static EnumStringRequiredEnum fromValue(String value) { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** @@ -166,6 +168,7 @@ public static EnumIntegerEnum fromValue(Integer value) { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** @@ -204,24 +207,29 @@ public static EnumNumberEnum fromValue(Double value) { } public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; + @javax.annotation.Nullable private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; + @javax.annotation.Nullable private JsonNullable outerEnum = JsonNullable.undefined(); public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER = "outerEnumInteger"; + @javax.annotation.Nullable private OuterEnumInteger outerEnumInteger; public static final String JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE = "outerEnumDefaultValue"; + @javax.annotation.Nullable private OuterEnumDefaultValue outerEnumDefaultValue = OuterEnumDefaultValue.PLACED; public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE = "outerEnumIntegerDefaultValue"; + @javax.annotation.Nullable private OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = OuterEnumIntegerDefaultValue.NUMBER_0; public EnumTest() { } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; @@ -242,11 +250,11 @@ public EnumStringEnum getEnumString() { @JsonProperty(JSON_PROPERTY_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumString(EnumStringEnum enumString) { + public void setEnumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; } - public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; return this; @@ -267,11 +275,11 @@ public EnumStringRequiredEnum getEnumStringRequired() { @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public void setEnumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; @@ -292,11 +300,11 @@ public EnumIntegerEnum getEnumInteger() { @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumInteger(EnumIntegerEnum enumInteger) { + public void setEnumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } - public EnumTest enumNumber(EnumNumberEnum enumNumber) { + public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; return this; @@ -317,11 +325,11 @@ public EnumNumberEnum getEnumNumber() { @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumNumber(EnumNumberEnum enumNumber) { + public void setEnumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } - public EnumTest outerEnum(OuterEnum outerEnum) { + public EnumTest outerEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = JsonNullable.of(outerEnum); return this; @@ -350,11 +358,11 @@ public void setOuterEnum_JsonNullable(JsonNullable outerEnum) { this.outerEnum = outerEnum; } - public void setOuterEnum(OuterEnum outerEnum) { + public void setOuterEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = JsonNullable.of(outerEnum); } - public EnumTest outerEnumInteger(OuterEnumInteger outerEnumInteger) { + public EnumTest outerEnumInteger(@javax.annotation.Nullable OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; return this; @@ -375,11 +383,11 @@ public OuterEnumInteger getOuterEnumInteger() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnumInteger(OuterEnumInteger outerEnumInteger) { + public void setOuterEnumInteger(@javax.annotation.Nullable OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; } - public EnumTest outerEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) { + public EnumTest outerEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; return this; @@ -400,11 +408,11 @@ public OuterEnumDefaultValue getOuterEnumDefaultValue() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) { + public void setOuterEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; } - public EnumTest outerEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { + public EnumTest outerEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; return this; @@ -425,7 +433,7 @@ public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { + public void setOuterEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; } diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java index 64b47e71f729..d69582d93fb0 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java @@ -40,15 +40,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FakeBigDecimalMap200Response { public static final String JSON_PROPERTY_SOME_ID = "someId"; + @javax.annotation.Nullable private BigDecimal someId; public static final String JSON_PROPERTY_SOME_MAP = "someMap"; + @javax.annotation.Nullable private Map someMap = new HashMap<>(); public FakeBigDecimalMap200Response() { } - public FakeBigDecimalMap200Response someId(BigDecimal someId) { + public FakeBigDecimalMap200Response someId(@javax.annotation.Nullable BigDecimal someId) { this.someId = someId; return this; @@ -69,11 +71,11 @@ public BigDecimal getSomeId() { @JsonProperty(JSON_PROPERTY_SOME_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSomeId(BigDecimal someId) { + public void setSomeId(@javax.annotation.Nullable BigDecimal someId) { this.someId = someId; } - public FakeBigDecimalMap200Response someMap(Map someMap) { + public FakeBigDecimalMap200Response someMap(@javax.annotation.Nullable Map someMap) { this.someMap = someMap; return this; @@ -102,7 +104,7 @@ public Map getSomeMap() { @JsonProperty(JSON_PROPERTY_SOME_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSomeMap(Map someMap) { + public void setSomeMap(@javax.annotation.Nullable Map someMap) { this.someMap = someMap; } diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 57d604a90b4a..5fb9c55e40d0 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -40,15 +40,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; + @javax.annotation.Nullable private ModelFile _file; public static final String JSON_PROPERTY_FILES = "files"; + @javax.annotation.Nullable private List files = new ArrayList<>(); public FileSchemaTestClass() { } - public FileSchemaTestClass _file(ModelFile _file) { + public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { this._file = _file; return this; @@ -69,11 +71,11 @@ public ModelFile getFile() { @JsonProperty(JSON_PROPERTY_FILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFile(ModelFile _file) { + public void setFile(@javax.annotation.Nullable ModelFile _file) { this._file = _file; } - public FileSchemaTestClass files(List files) { + public FileSchemaTestClass files(@javax.annotation.Nullable List files) { this.files = files; return this; @@ -102,7 +104,7 @@ public List getFiles() { @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFiles(List files) { + public void setFiles(@javax.annotation.Nullable List files) { this.files = files; } diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Foo.java index 01ce05e81c3e..370f4490b700 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Foo.java @@ -35,12 +35,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Foo { public static final String JSON_PROPERTY_BAR = "bar"; + @javax.annotation.Nullable private String bar = "bar"; public Foo() { } - public Foo bar(String bar) { + public Foo bar(@javax.annotation.Nullable String bar) { this.bar = bar; return this; @@ -61,7 +62,7 @@ public String getBar() { @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBar(String bar) { + public void setBar(@javax.annotation.Nullable String bar) { this.bar = bar; } diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index a84910ca4f3b..7da08700df96 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -37,12 +37,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FooGetDefaultResponse { public static final String JSON_PROPERTY_STRING = "string"; + @javax.annotation.Nullable private Foo string; public FooGetDefaultResponse() { } - public FooGetDefaultResponse string(Foo string) { + public FooGetDefaultResponse string(@javax.annotation.Nullable Foo string) { this.string = string; return this; @@ -63,7 +64,7 @@ public Foo getString() { @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setString(Foo string) { + public void setString(@javax.annotation.Nullable Foo string) { this.string = string; } diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/FormatTest.java index 1861b4516e06..369ec193aea9 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/FormatTest.java @@ -56,57 +56,73 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; + @javax.annotation.Nullable private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; + @javax.annotation.Nullable private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; + @javax.annotation.Nullable private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; + @javax.annotation.Nonnull private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; + @javax.annotation.Nullable private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; + @javax.annotation.Nullable private Double _double; public static final String JSON_PROPERTY_DECIMAL = "decimal"; + @javax.annotation.Nullable private BigDecimal decimal; public static final String JSON_PROPERTY_STRING = "string"; + @javax.annotation.Nullable private String string; public static final String JSON_PROPERTY_BYTE = "byte"; + @javax.annotation.Nonnull private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; + @javax.annotation.Nullable private File binary; public static final String JSON_PROPERTY_DATE = "date"; + @javax.annotation.Nonnull private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; + @javax.annotation.Nonnull private String password; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS = "pattern_with_digits"; + @javax.annotation.Nullable private String patternWithDigits; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER = "pattern_with_digits_and_delimiter"; + @javax.annotation.Nullable private String patternWithDigitsAndDelimiter; public FormatTest() { } - public FormatTest integer(Integer integer) { + public FormatTest integer(@javax.annotation.Nullable Integer integer) { this.integer = integer; return this; @@ -129,11 +145,11 @@ public Integer getInteger() { @JsonProperty(JSON_PROPERTY_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInteger(Integer integer) { + public void setInteger(@javax.annotation.Nullable Integer integer) { this.integer = integer; } - public FormatTest int32(Integer int32) { + public FormatTest int32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; return this; @@ -156,11 +172,11 @@ public Integer getInt32() { @JsonProperty(JSON_PROPERTY_INT32) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInt32(Integer int32) { + public void setInt32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; } - public FormatTest int64(Long int64) { + public FormatTest int64(@javax.annotation.Nullable Long int64) { this.int64 = int64; return this; @@ -181,11 +197,11 @@ public Long getInt64() { @JsonProperty(JSON_PROPERTY_INT64) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInt64(Long int64) { + public void setInt64(@javax.annotation.Nullable Long int64) { this.int64 = int64; } - public FormatTest number(BigDecimal number) { + public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { this.number = number; return this; @@ -208,11 +224,11 @@ public BigDecimal getNumber() { @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNumber(BigDecimal number) { + public void setNumber(@javax.annotation.Nonnull BigDecimal number) { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@javax.annotation.Nullable Float _float) { this._float = _float; return this; @@ -235,11 +251,11 @@ public Float getFloat() { @JsonProperty(JSON_PROPERTY_FLOAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFloat(Float _float) { + public void setFloat(@javax.annotation.Nullable Float _float) { this._float = _float; } - public FormatTest _double(Double _double) { + public FormatTest _double(@javax.annotation.Nullable Double _double) { this._double = _double; return this; @@ -262,11 +278,11 @@ public Double getDouble() { @JsonProperty(JSON_PROPERTY_DOUBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDouble(Double _double) { + public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; } - public FormatTest decimal(BigDecimal decimal) { + public FormatTest decimal(@javax.annotation.Nullable BigDecimal decimal) { this.decimal = decimal; return this; @@ -287,11 +303,11 @@ public BigDecimal getDecimal() { @JsonProperty(JSON_PROPERTY_DECIMAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDecimal(BigDecimal decimal) { + public void setDecimal(@javax.annotation.Nullable BigDecimal decimal) { this.decimal = decimal; } - public FormatTest string(String string) { + public FormatTest string(@javax.annotation.Nullable String string) { this.string = string; return this; @@ -312,11 +328,11 @@ public String getString() { @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setString(String string) { + public void setString(@javax.annotation.Nullable String string) { this.string = string; } - public FormatTest _byte(byte[] _byte) { + public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; return this; @@ -337,11 +353,11 @@ public byte[] getByte() { @JsonProperty(JSON_PROPERTY_BYTE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setByte(byte[] _byte) { + public void setByte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; } - public FormatTest binary(File binary) { + public FormatTest binary(@javax.annotation.Nullable File binary) { this.binary = binary; return this; @@ -362,11 +378,11 @@ public File getBinary() { @JsonProperty(JSON_PROPERTY_BINARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBinary(File binary) { + public void setBinary(@javax.annotation.Nullable File binary) { this.binary = binary; } - public FormatTest date(LocalDate date) { + public FormatTest date(@javax.annotation.Nonnull LocalDate date) { this.date = date; return this; @@ -387,11 +403,11 @@ public LocalDate getDate() { @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDate(LocalDate date) { + public void setDate(@javax.annotation.Nonnull LocalDate date) { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; @@ -412,11 +428,11 @@ public OffsetDateTime getDateTime() { @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public FormatTest uuid(UUID uuid) { + public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; @@ -437,11 +453,11 @@ public UUID getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(UUID uuid) { + public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public FormatTest password(String password) { + public FormatTest password(@javax.annotation.Nonnull String password) { this.password = password; return this; @@ -462,11 +478,11 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nonnull String password) { this.password = password; } - public FormatTest patternWithDigits(String patternWithDigits) { + public FormatTest patternWithDigits(@javax.annotation.Nullable String patternWithDigits) { this.patternWithDigits = patternWithDigits; return this; @@ -487,11 +503,11 @@ public String getPatternWithDigits() { @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPatternWithDigits(String patternWithDigits) { + public void setPatternWithDigits(@javax.annotation.Nullable String patternWithDigits) { this.patternWithDigits = patternWithDigits; } - public FormatTest patternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) { + public FormatTest patternWithDigitsAndDelimiter(@javax.annotation.Nullable String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; return this; @@ -512,7 +528,7 @@ public String getPatternWithDigitsAndDelimiter() { @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPatternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) { + public void setPatternWithDigitsAndDelimiter(@javax.annotation.Nullable String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; } diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 82ab5e5a4d4a..2481cfa129c5 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -37,9 +37,11 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_FOO = "foo"; + @javax.annotation.Nullable private String foo; public HasOnlyReadOnly() { diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/HealthCheckResult.java index 36dc7b201378..fa142bb6c8e6 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -39,12 +39,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class HealthCheckResult { public static final String JSON_PROPERTY_NULLABLE_MESSAGE = "NullableMessage"; + @javax.annotation.Nullable private JsonNullable nullableMessage = JsonNullable.undefined(); public HealthCheckResult() { } - public HealthCheckResult nullableMessage(String nullableMessage) { + public HealthCheckResult nullableMessage(@javax.annotation.Nullable String nullableMessage) { this.nullableMessage = JsonNullable.of(nullableMessage); return this; @@ -73,7 +74,7 @@ public void setNullableMessage_JsonNullable(JsonNullable nullableMessage this.nullableMessage = nullableMessage; } - public void setNullableMessage(String nullableMessage) { + public void setNullableMessage(@javax.annotation.Nullable String nullableMessage) { this.nullableMessage = JsonNullable.of(nullableMessage); } diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/MapTest.java index a9e8a960a621..49629841108a 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/MapTest.java @@ -40,6 +40,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; + @javax.annotation.Nullable private Map> mapMapOfString = new HashMap<>(); /** @@ -78,18 +79,21 @@ public static InnerEnum fromValue(String value) { } public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; + @javax.annotation.Nullable private Map mapOfEnumString = new HashMap<>(); public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; + @javax.annotation.Nullable private Map directMap = new HashMap<>(); public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; + @javax.annotation.Nullable private Map indirectMap = new HashMap<>(); public MapTest() { } - public MapTest mapMapOfString(Map> mapMapOfString) { + public MapTest mapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; return this; @@ -118,11 +122,11 @@ public Map> getMapMapOfString() { @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapMapOfString(Map> mapMapOfString) { + public void setMapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } - public MapTest mapOfEnumString(Map mapOfEnumString) { + public MapTest mapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; return this; @@ -151,11 +155,11 @@ public Map getMapOfEnumString() { @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapOfEnumString(Map mapOfEnumString) { + public void setMapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } - public MapTest directMap(Map directMap) { + public MapTest directMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; return this; @@ -184,11 +188,11 @@ public Map getDirectMap() { @JsonProperty(JSON_PROPERTY_DIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDirectMap(Map directMap) { + public void setDirectMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; } - public MapTest indirectMap(Map indirectMap) { + public MapTest indirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; return this; @@ -217,7 +221,7 @@ public Map getIndirectMap() { @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIndirectMap(Map indirectMap) { + public void setIndirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 5594f7c484c9..2bd6670f6f92 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -42,18 +42,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; + @javax.annotation.Nullable private Map map = new HashMap<>(); public MixedPropertiesAndAdditionalPropertiesClass() { } - public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; @@ -74,11 +77,11 @@ public UUID getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(UUID uuid) { + public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; @@ -99,11 +102,11 @@ public OffsetDateTime getDateTime() { @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + public MixedPropertiesAndAdditionalPropertiesClass map(@javax.annotation.Nullable Map map) { this.map = map; return this; @@ -132,7 +135,7 @@ public Map getMap() { @JsonProperty(JSON_PROPERTY_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMap(Map map) { + public void setMap(@javax.annotation.Nullable Map map) { this.map = map; } diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Model200Response.java index 855bd5b58fc2..fec3f222d150 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Model200Response.java @@ -37,15 +37,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; + @javax.annotation.Nullable private String propertyClass; public Model200Response() { } - public Model200Response name(Integer name) { + public Model200Response name(@javax.annotation.Nullable Integer name) { this.name = name; return this; @@ -66,11 +68,11 @@ public Integer getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(Integer name) { + public void setName(@javax.annotation.Nullable Integer name) { this.name = name; } - public Model200Response propertyClass(String propertyClass) { + public Model200Response propertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; @@ -91,7 +93,7 @@ public String getPropertyClass() { @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ModelApiResponse.java index ea1fe75a0caf..9af9c26ac400 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -38,18 +38,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nullable private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nullable private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; + @javax.annotation.Nullable private String message; public ModelApiResponse() { } - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@javax.annotation.Nullable Integer code) { this.code = code; return this; @@ -70,11 +73,11 @@ public Integer getCode() { @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCode(Integer code) { + public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@javax.annotation.Nullable String type) { this.type = type; return this; @@ -95,11 +98,11 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { + public void setType(@javax.annotation.Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@javax.annotation.Nullable String message) { this.message = message; return this; @@ -120,7 +123,7 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ModelFile.java index 558d5d5c0b44..f83805bdebc9 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ModelFile.java @@ -36,12 +36,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelFile { public static final String JSON_PROPERTY_SOURCE_U_R_I = "sourceURI"; + @javax.annotation.Nullable private String sourceURI; public ModelFile() { } - public ModelFile sourceURI(String sourceURI) { + public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; return this; @@ -62,7 +63,7 @@ public String getSourceURI() { @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSourceURI(String sourceURI) { + public void setSourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; } diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ModelList.java index 283c53d3caba..2182242e4dc0 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ModelList.java @@ -36,12 +36,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelList { public static final String JSON_PROPERTY_123LIST = "123-list"; + @javax.annotation.Nullable private String _123list; public ModelList() { } - public ModelList _123list(String _123list) { + public ModelList _123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; return this; @@ -62,7 +63,7 @@ public String get123list() { @JsonProperty(JSON_PROPERTY_123LIST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void set123list(String _123list) { + public void set123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; } diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ModelReturn.java index fd02456936e1..04f75779885c 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -36,12 +36,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; + @javax.annotation.Nullable private Integer _return; public ModelReturn() { } - public ModelReturn _return(Integer _return) { + public ModelReturn _return(@javax.annotation.Nullable Integer _return) { this._return = _return; return this; @@ -62,7 +63,7 @@ public Integer getReturn() { @JsonProperty(JSON_PROPERTY_RETURN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setReturn(Integer _return) { + public void setReturn(@javax.annotation.Nullable Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Name.java index cfe546f9ebf7..f86b6590bb7d 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Name.java @@ -38,15 +38,19 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Name { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; + @javax.annotation.Nullable private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; + @javax.annotation.Nullable private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; + @javax.annotation.Nullable private Integer _123number; public Name() { @@ -64,7 +68,7 @@ public Name( this._123number = _123number; } - public Name name(Integer name) { + public Name name(@javax.annotation.Nonnull Integer name) { this.name = name; return this; @@ -85,7 +89,7 @@ public Integer getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(Integer name) { + public void setName(@javax.annotation.Nonnull Integer name) { this.name = name; } @@ -103,7 +107,7 @@ public Integer getSnakeCase() { - public Name property(String property) { + public Name property(@javax.annotation.Nullable String property) { this.property = property; return this; @@ -124,7 +128,7 @@ public String getProperty() { @JsonProperty(JSON_PROPERTY_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProperty(String property) { + public void setProperty(@javax.annotation.Nullable String property) { this.property = property; } diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/NullableClass.java index f0dedea05ae8..778be86ee56d 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/NullableClass.java @@ -58,46 +58,58 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class NullableClass extends HashMap { public static final String JSON_PROPERTY_INTEGER_PROP = "integer_prop"; + @javax.annotation.Nullable private JsonNullable integerProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_NUMBER_PROP = "number_prop"; + @javax.annotation.Nullable private JsonNullable numberProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_BOOLEAN_PROP = "boolean_prop"; + @javax.annotation.Nullable private JsonNullable booleanProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_STRING_PROP = "string_prop"; + @javax.annotation.Nullable private JsonNullable stringProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_DATE_PROP = "date_prop"; + @javax.annotation.Nullable private JsonNullable dateProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_DATETIME_PROP = "datetime_prop"; + @javax.annotation.Nullable private JsonNullable datetimeProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_ARRAY_NULLABLE_PROP = "array_nullable_prop"; + @javax.annotation.Nullable private JsonNullable> arrayNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP = "array_and_items_nullable_prop"; + @javax.annotation.Nullable private JsonNullable> arrayAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_ITEMS_NULLABLE = "array_items_nullable"; + @javax.annotation.Nullable private List arrayItemsNullable = new ArrayList<>(); public static final String JSON_PROPERTY_OBJECT_NULLABLE_PROP = "object_nullable_prop"; + @javax.annotation.Nullable private JsonNullable> objectNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP = "object_and_items_nullable_prop"; + @javax.annotation.Nullable private JsonNullable> objectAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_OBJECT_ITEMS_NULLABLE = "object_items_nullable"; + @javax.annotation.Nullable private Map objectItemsNullable = new HashMap<>(); public NullableClass() { } - public NullableClass integerProp(Integer integerProp) { + public NullableClass integerProp(@javax.annotation.Nullable Integer integerProp) { this.integerProp = JsonNullable.of(integerProp); return this; @@ -126,11 +138,11 @@ public void setIntegerProp_JsonNullable(JsonNullable integerProp) { this.integerProp = integerProp; } - public void setIntegerProp(Integer integerProp) { + public void setIntegerProp(@javax.annotation.Nullable Integer integerProp) { this.integerProp = JsonNullable.of(integerProp); } - public NullableClass numberProp(BigDecimal numberProp) { + public NullableClass numberProp(@javax.annotation.Nullable BigDecimal numberProp) { this.numberProp = JsonNullable.of(numberProp); return this; @@ -159,11 +171,11 @@ public void setNumberProp_JsonNullable(JsonNullable numberProp) { this.numberProp = numberProp; } - public void setNumberProp(BigDecimal numberProp) { + public void setNumberProp(@javax.annotation.Nullable BigDecimal numberProp) { this.numberProp = JsonNullable.of(numberProp); } - public NullableClass booleanProp(Boolean booleanProp) { + public NullableClass booleanProp(@javax.annotation.Nullable Boolean booleanProp) { this.booleanProp = JsonNullable.of(booleanProp); return this; @@ -192,11 +204,11 @@ public void setBooleanProp_JsonNullable(JsonNullable booleanProp) { this.booleanProp = booleanProp; } - public void setBooleanProp(Boolean booleanProp) { + public void setBooleanProp(@javax.annotation.Nullable Boolean booleanProp) { this.booleanProp = JsonNullable.of(booleanProp); } - public NullableClass stringProp(String stringProp) { + public NullableClass stringProp(@javax.annotation.Nullable String stringProp) { this.stringProp = JsonNullable.of(stringProp); return this; @@ -225,11 +237,11 @@ public void setStringProp_JsonNullable(JsonNullable stringProp) { this.stringProp = stringProp; } - public void setStringProp(String stringProp) { + public void setStringProp(@javax.annotation.Nullable String stringProp) { this.stringProp = JsonNullable.of(stringProp); } - public NullableClass dateProp(LocalDate dateProp) { + public NullableClass dateProp(@javax.annotation.Nullable LocalDate dateProp) { this.dateProp = JsonNullable.of(dateProp); return this; @@ -258,11 +270,11 @@ public void setDateProp_JsonNullable(JsonNullable dateProp) { this.dateProp = dateProp; } - public void setDateProp(LocalDate dateProp) { + public void setDateProp(@javax.annotation.Nullable LocalDate dateProp) { this.dateProp = JsonNullable.of(dateProp); } - public NullableClass datetimeProp(OffsetDateTime datetimeProp) { + public NullableClass datetimeProp(@javax.annotation.Nullable OffsetDateTime datetimeProp) { this.datetimeProp = JsonNullable.of(datetimeProp); return this; @@ -291,11 +303,11 @@ public void setDatetimeProp_JsonNullable(JsonNullable datetimePr this.datetimeProp = datetimeProp; } - public void setDatetimeProp(OffsetDateTime datetimeProp) { + public void setDatetimeProp(@javax.annotation.Nullable OffsetDateTime datetimeProp) { this.datetimeProp = JsonNullable.of(datetimeProp); } - public NullableClass arrayNullableProp(List arrayNullableProp) { + public NullableClass arrayNullableProp(@javax.annotation.Nullable List arrayNullableProp) { this.arrayNullableProp = JsonNullable.>of(arrayNullableProp); return this; @@ -336,11 +348,11 @@ public void setArrayNullableProp_JsonNullable(JsonNullable> arrayNu this.arrayNullableProp = arrayNullableProp; } - public void setArrayNullableProp(List arrayNullableProp) { + public void setArrayNullableProp(@javax.annotation.Nullable List arrayNullableProp) { this.arrayNullableProp = JsonNullable.>of(arrayNullableProp); } - public NullableClass arrayAndItemsNullableProp(List arrayAndItemsNullableProp) { + public NullableClass arrayAndItemsNullableProp(@javax.annotation.Nullable List arrayAndItemsNullableProp) { this.arrayAndItemsNullableProp = JsonNullable.>of(arrayAndItemsNullableProp); return this; @@ -381,11 +393,11 @@ public void setArrayAndItemsNullableProp_JsonNullable(JsonNullable> this.arrayAndItemsNullableProp = arrayAndItemsNullableProp; } - public void setArrayAndItemsNullableProp(List arrayAndItemsNullableProp) { + public void setArrayAndItemsNullableProp(@javax.annotation.Nullable List arrayAndItemsNullableProp) { this.arrayAndItemsNullableProp = JsonNullable.>of(arrayAndItemsNullableProp); } - public NullableClass arrayItemsNullable(List arrayItemsNullable) { + public NullableClass arrayItemsNullable(@javax.annotation.Nullable List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; return this; @@ -414,11 +426,11 @@ public List getArrayItemsNullable() { @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayItemsNullable(List arrayItemsNullable) { + public void setArrayItemsNullable(@javax.annotation.Nullable List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; } - public NullableClass objectNullableProp(Map objectNullableProp) { + public NullableClass objectNullableProp(@javax.annotation.Nullable Map objectNullableProp) { this.objectNullableProp = JsonNullable.>of(objectNullableProp); return this; @@ -459,11 +471,11 @@ public void setObjectNullableProp_JsonNullable(JsonNullable> this.objectNullableProp = objectNullableProp; } - public void setObjectNullableProp(Map objectNullableProp) { + public void setObjectNullableProp(@javax.annotation.Nullable Map objectNullableProp) { this.objectNullableProp = JsonNullable.>of(objectNullableProp); } - public NullableClass objectAndItemsNullableProp(Map objectAndItemsNullableProp) { + public NullableClass objectAndItemsNullableProp(@javax.annotation.Nullable Map objectAndItemsNullableProp) { this.objectAndItemsNullableProp = JsonNullable.>of(objectAndItemsNullableProp); return this; @@ -504,11 +516,11 @@ public void setObjectAndItemsNullableProp_JsonNullable(JsonNullable objectAndItemsNullableProp) { + public void setObjectAndItemsNullableProp(@javax.annotation.Nullable Map objectAndItemsNullableProp) { this.objectAndItemsNullableProp = JsonNullable.>of(objectAndItemsNullableProp); } - public NullableClass objectItemsNullable(Map objectItemsNullable) { + public NullableClass objectItemsNullable(@javax.annotation.Nullable Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; return this; @@ -537,7 +549,7 @@ public Map getObjectItemsNullable() { @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setObjectItemsNullable(Map objectItemsNullable) { + public void setObjectItemsNullable(@javax.annotation.Nullable Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; } diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/NumberOnly.java index 7d2c02aa643d..1697da66cd25 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -36,12 +36,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; + @javax.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } - public NumberOnly justNumber(BigDecimal justNumber) { + public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; @@ -62,7 +63,7 @@ public BigDecimal getJustNumber() { @JsonProperty(JSON_PROPERTY_JUST_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJustNumber(BigDecimal justNumber) { + public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index 9d78d4b79273..e41862abf885 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -43,21 +43,25 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ObjectWithDeprecatedFields { public static final String JSON_PROPERTY_UUID = "uuid"; + @javax.annotation.Nullable private String uuid; public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private BigDecimal id; public static final String JSON_PROPERTY_DEPRECATED_REF = "deprecatedRef"; + @javax.annotation.Nullable private DeprecatedObject deprecatedRef; public static final String JSON_PROPERTY_BARS = "bars"; + @javax.annotation.Nullable private List bars = new ArrayList<>(); public ObjectWithDeprecatedFields() { } - public ObjectWithDeprecatedFields uuid(String uuid) { + public ObjectWithDeprecatedFields uuid(@javax.annotation.Nullable String uuid) { this.uuid = uuid; return this; @@ -78,11 +82,11 @@ public String getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(String uuid) { + public void setUuid(@javax.annotation.Nullable String uuid) { this.uuid = uuid; } - public ObjectWithDeprecatedFields id(BigDecimal id) { + public ObjectWithDeprecatedFields id(@javax.annotation.Nullable BigDecimal id) { this.id = id; return this; @@ -105,11 +109,11 @@ public BigDecimal getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(BigDecimal id) { + public void setId(@javax.annotation.Nullable BigDecimal id) { this.id = id; } - public ObjectWithDeprecatedFields deprecatedRef(DeprecatedObject deprecatedRef) { + public ObjectWithDeprecatedFields deprecatedRef(@javax.annotation.Nullable DeprecatedObject deprecatedRef) { this.deprecatedRef = deprecatedRef; return this; @@ -132,11 +136,11 @@ public DeprecatedObject getDeprecatedRef() { @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeprecatedRef(DeprecatedObject deprecatedRef) { + public void setDeprecatedRef(@javax.annotation.Nullable DeprecatedObject deprecatedRef) { this.deprecatedRef = deprecatedRef; } - public ObjectWithDeprecatedFields bars(List bars) { + public ObjectWithDeprecatedFields bars(@javax.annotation.Nullable List bars) { this.bars = bars; return this; @@ -167,7 +171,7 @@ public List getBars() { @JsonProperty(JSON_PROPERTY_BARS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBars(List bars) { + public void setBars(@javax.annotation.Nullable List bars) { this.bars = bars; } diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Order.java index 7a62711ddb25..550e7ddeef00 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Order.java @@ -41,15 +41,19 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Order { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; + @javax.annotation.Nullable private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; + @javax.annotation.Nullable private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; + @javax.annotation.Nullable private OffsetDateTime shipDate; /** @@ -90,15 +94,17 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @javax.annotation.Nullable private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; + @javax.annotation.Nullable private Boolean complete = false; public Order() { } - public Order id(Long id) { + public Order id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -119,11 +125,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@javax.annotation.Nullable Long petId) { this.petId = petId; return this; @@ -144,11 +150,11 @@ public Long getPetId() { @JsonProperty(JSON_PROPERTY_PET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPetId(Long petId) { + public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; return this; @@ -169,11 +175,11 @@ public Integer getQuantity() { @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setQuantity(Integer quantity) { + public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; @@ -194,11 +200,11 @@ public OffsetDateTime getShipDate() { @JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -219,11 +225,11 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } - public Order complete(Boolean complete) { + public Order complete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; return this; @@ -244,7 +250,7 @@ public Boolean getComplete() { @JsonProperty(JSON_PROPERTY_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setComplete(Boolean complete) { + public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/OuterComposite.java index 3214c8f65bf5..de320f1e8252 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -38,18 +38,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; + @javax.annotation.Nullable private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; + @javax.annotation.Nullable private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; + @javax.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } - public OuterComposite myNumber(BigDecimal myNumber) { + public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; @@ -70,11 +73,11 @@ public BigDecimal getMyNumber() { @JsonProperty(JSON_PROPERTY_MY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyNumber(BigDecimal myNumber) { + public void setMyNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; } - public OuterComposite myString(String myString) { + public OuterComposite myString(@javax.annotation.Nullable String myString) { this.myString = myString; return this; @@ -95,11 +98,11 @@ public String getMyString() { @JsonProperty(JSON_PROPERTY_MY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyString(String myString) { + public void setMyString(@javax.annotation.Nullable String myString) { this.myString = myString; } - public OuterComposite myBoolean(Boolean myBoolean) { + public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; return this; @@ -120,7 +123,7 @@ public Boolean getMyBoolean() { @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyBoolean(Boolean myBoolean) { + public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java index c9fc07571dfc..d906ca638b8b 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java @@ -36,12 +36,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class OuterObjectWithEnumProperty { public static final String JSON_PROPERTY_VALUE = "value"; + @javax.annotation.Nonnull private OuterEnumInteger value; public OuterObjectWithEnumProperty() { } - public OuterObjectWithEnumProperty value(OuterEnumInteger value) { + public OuterObjectWithEnumProperty value(@javax.annotation.Nonnull OuterEnumInteger value) { this.value = value; return this; @@ -62,7 +63,7 @@ public OuterEnumInteger getValue() { @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setValue(OuterEnumInteger value) { + public void setValue(@javax.annotation.Nonnull OuterEnumInteger value) { this.value = value; } diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ParentWithNullable.java index 9b5bc4a04c6a..a9e0a78a3c15 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -85,15 +85,17 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nullable protected TypeEnum type; public static final String JSON_PROPERTY_NULLABLE_PROPERTY = "nullableProperty"; + @javax.annotation.Nullable protected JsonNullable nullableProperty = JsonNullable.undefined(); public ParentWithNullable() { } - public ParentWithNullable type(TypeEnum type) { + public ParentWithNullable type(@javax.annotation.Nullable TypeEnum type) { this.type = type; return this; @@ -114,11 +116,11 @@ public TypeEnum getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(TypeEnum type) { + public void setType(@javax.annotation.Nullable TypeEnum type) { this.type = type; } - public ParentWithNullable nullableProperty(String nullableProperty) { + public ParentWithNullable nullableProperty(@javax.annotation.Nullable String nullableProperty) { this.nullableProperty = JsonNullable.of(nullableProperty); return this; @@ -147,7 +149,7 @@ public void setNullableProperty_JsonNullable(JsonNullable nullableProper this.nullableProperty = nullableProperty; } - public void setNullableProperty(String nullableProperty) { + public void setNullableProperty(@javax.annotation.Nullable String nullableProperty) { this.nullableProperty = JsonNullable.of(nullableProperty); } diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Pet.java index 94e0b2dcfd2f..bf5332a9a314 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Pet.java @@ -48,18 +48,23 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Pet { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; + @javax.annotation.Nullable private Category category; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; + @javax.annotation.Nonnull private Set photoUrls = new LinkedHashSet<>(); public static final String JSON_PROPERTY_TAGS = "tags"; + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** @@ -100,12 +105,13 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } - public Pet id(Long id) { + public Pet id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -126,11 +132,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@javax.annotation.Nullable Category category) { this.category = category; return this; @@ -151,11 +157,11 @@ public Category getCategory() { @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCategory(Category category) { + public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; } - public Pet name(String name) { + public Pet name(@javax.annotation.Nonnull String name) { this.name = name; return this; @@ -176,11 +182,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } - public Pet photoUrls(Set photoUrls) { + public Pet photoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; return this; @@ -210,11 +216,11 @@ public Set getPhotoUrls() { @JsonDeserialize(as = LinkedHashSet.class) @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPhotoUrls(Set photoUrls) { + public void setPhotoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; } - public Pet tags(List tags) { + public Pet tags(@javax.annotation.Nullable List tags) { this.tags = tags; return this; @@ -243,11 +249,11 @@ public List getTags() { @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTags(List tags) { + public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -268,7 +274,7 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 2cbaf191ba35..c9091a3fefac 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -36,9 +36,11 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; + @javax.annotation.Nullable private String baz; public ReadOnlyFirst() { @@ -68,7 +70,7 @@ public String getBar() { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { this.baz = baz; return this; @@ -89,7 +91,7 @@ public String getBaz() { @JsonProperty(JSON_PROPERTY_BAZ) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBaz(String baz) { + public void setBaz(@javax.annotation.Nullable String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/SpecialModelName.java index debe24408697..8aefe9464748 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -36,12 +36,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; + @javax.annotation.Nullable private Long $specialPropertyName; public SpecialModelName() { } - public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + public SpecialModelName $specialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; return this; @@ -62,7 +63,7 @@ public SpecialModelName() { @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void set$SpecialPropertyName(Long $specialPropertyName) { + public void set$SpecialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Tag.java index 6314ffa103b3..f090d230f10f 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Tag.java @@ -36,15 +36,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Tag { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public Tag() { } - public Tag id(Long id) { + public Tag id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -65,11 +67,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -90,7 +92,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index 5005edd57023..df843d9bc11f 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -38,13 +38,14 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class TestInlineFreeformAdditionalPropertiesRequest extends HashMap { public static final String JSON_PROPERTY_SOME_PROPERTY = "someProperty"; + @javax.annotation.Nullable private String someProperty; public TestInlineFreeformAdditionalPropertiesRequest() { } - public TestInlineFreeformAdditionalPropertiesRequest someProperty(String someProperty) { + public TestInlineFreeformAdditionalPropertiesRequest someProperty(@javax.annotation.Nullable String someProperty) { this.someProperty = someProperty; return this; @@ -65,7 +66,7 @@ public String getSomeProperty() { @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSomeProperty(String someProperty) { + public void setSomeProperty(@javax.annotation.Nullable String someProperty) { this.someProperty = someProperty; } diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/User.java index ccd2753ecf50..1a49880e0be0 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/User.java @@ -42,33 +42,41 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class User { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; + @javax.annotation.Nullable private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; + @javax.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; + @javax.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; + @javax.annotation.Nullable private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; + @javax.annotation.Nullable private String password; public static final String JSON_PROPERTY_PHONE = "phone"; + @javax.annotation.Nullable private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; + @javax.annotation.Nullable private Integer userStatus; public User() { } - public User id(Long id) { + public User id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -89,11 +97,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@javax.annotation.Nullable String username) { this.username = username; return this; @@ -114,11 +122,11 @@ public String getUsername() { @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsername(String username) { + public void setUsername(@javax.annotation.Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; return this; @@ -139,11 +147,11 @@ public String getFirstName() { @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFirstName(String firstName) { + public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; return this; @@ -164,11 +172,11 @@ public String getLastName() { @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLastName(String lastName) { + public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@javax.annotation.Nullable String email) { this.email = email; return this; @@ -189,11 +197,11 @@ public String getEmail() { @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEmail(String email) { + public void setEmail(@javax.annotation.Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@javax.annotation.Nullable String password) { this.password = password; return this; @@ -214,11 +222,11 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@javax.annotation.Nullable String phone) { this.phone = phone; return this; @@ -239,11 +247,11 @@ public String getPhone() { @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPhone(String phone) { + public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; return this; @@ -264,7 +272,7 @@ public Integer getUserStatus() { @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index 7ec9063cdf77..d721ed709879 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -39,13 +39,14 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesAnyType extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public AdditionalPropertiesAnyType() { } - public AdditionalPropertiesAnyType name(String name) { + public AdditionalPropertiesAnyType name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -66,7 +67,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 6e96b383de4f..3787a98ce80c 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -40,13 +40,14 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesArray extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public AdditionalPropertiesArray() { } - public AdditionalPropertiesArray name(String name) { + public AdditionalPropertiesArray name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -67,7 +68,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index b47cf520b85a..b9d71e4827ce 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -39,13 +39,14 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesBoolean extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public AdditionalPropertiesBoolean() { } - public AdditionalPropertiesBoolean name(String name) { + public AdditionalPropertiesBoolean name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -66,7 +67,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index ad6e4ba17ab7..6471e8f47942 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -71,18 +71,21 @@ public class AdditionalPropertiesClass { private Map> mapMapAnytype = new HashMap<>(); public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1"; + @javax.annotation.Nullable private Object anytype1; public static final String JSON_PROPERTY_ANYTYPE2 = "anytype_2"; + @javax.annotation.Nullable private Object anytype2; public static final String JSON_PROPERTY_ANYTYPE3 = "anytype_3"; + @javax.annotation.Nullable private Object anytype3; public AdditionalPropertiesClass() { } - public AdditionalPropertiesClass mapString(Map mapString) { + public AdditionalPropertiesClass mapString(@javax.annotation.Nullable Map mapString) { this.mapString = mapString; return this; @@ -111,12 +114,12 @@ public Map getMapString() { @JsonProperty(JSON_PROPERTY_MAP_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapString(Map mapString) { + public void setMapString(@javax.annotation.Nullable Map mapString) { this.mapString = mapString; } - public AdditionalPropertiesClass mapNumber(Map mapNumber) { + public AdditionalPropertiesClass mapNumber(@javax.annotation.Nullable Map mapNumber) { this.mapNumber = mapNumber; return this; @@ -145,12 +148,12 @@ public Map getMapNumber() { @JsonProperty(JSON_PROPERTY_MAP_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapNumber(Map mapNumber) { + public void setMapNumber(@javax.annotation.Nullable Map mapNumber) { this.mapNumber = mapNumber; } - public AdditionalPropertiesClass mapInteger(Map mapInteger) { + public AdditionalPropertiesClass mapInteger(@javax.annotation.Nullable Map mapInteger) { this.mapInteger = mapInteger; return this; @@ -179,12 +182,12 @@ public Map getMapInteger() { @JsonProperty(JSON_PROPERTY_MAP_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapInteger(Map mapInteger) { + public void setMapInteger(@javax.annotation.Nullable Map mapInteger) { this.mapInteger = mapInteger; } - public AdditionalPropertiesClass mapBoolean(Map mapBoolean) { + public AdditionalPropertiesClass mapBoolean(@javax.annotation.Nullable Map mapBoolean) { this.mapBoolean = mapBoolean; return this; @@ -213,12 +216,12 @@ public Map getMapBoolean() { @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapBoolean(Map mapBoolean) { + public void setMapBoolean(@javax.annotation.Nullable Map mapBoolean) { this.mapBoolean = mapBoolean; } - public AdditionalPropertiesClass mapArrayInteger(Map> mapArrayInteger) { + public AdditionalPropertiesClass mapArrayInteger(@javax.annotation.Nullable Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; return this; @@ -247,12 +250,12 @@ public Map> getMapArrayInteger() { @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapArrayInteger(Map> mapArrayInteger) { + public void setMapArrayInteger(@javax.annotation.Nullable Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; } - public AdditionalPropertiesClass mapArrayAnytype(Map> mapArrayAnytype) { + public AdditionalPropertiesClass mapArrayAnytype(@javax.annotation.Nullable Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; return this; @@ -281,12 +284,12 @@ public Map> getMapArrayAnytype() { @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapArrayAnytype(Map> mapArrayAnytype) { + public void setMapArrayAnytype(@javax.annotation.Nullable Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; } - public AdditionalPropertiesClass mapMapString(Map> mapMapString) { + public AdditionalPropertiesClass mapMapString(@javax.annotation.Nullable Map> mapMapString) { this.mapMapString = mapMapString; return this; @@ -315,12 +318,12 @@ public Map> getMapMapString() { @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapMapString(Map> mapMapString) { + public void setMapMapString(@javax.annotation.Nullable Map> mapMapString) { this.mapMapString = mapMapString; } - public AdditionalPropertiesClass mapMapAnytype(Map> mapMapAnytype) { + public AdditionalPropertiesClass mapMapAnytype(@javax.annotation.Nullable Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; return this; @@ -349,12 +352,12 @@ public Map> getMapMapAnytype() { @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapMapAnytype(Map> mapMapAnytype) { + public void setMapMapAnytype(@javax.annotation.Nullable Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@javax.annotation.Nullable Object anytype1) { this.anytype1 = anytype1; return this; @@ -375,12 +378,12 @@ public Object getAnytype1() { @JsonProperty(JSON_PROPERTY_ANYTYPE1) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAnytype1(Object anytype1) { + public void setAnytype1(@javax.annotation.Nullable Object anytype1) { this.anytype1 = anytype1; } - public AdditionalPropertiesClass anytype2(Object anytype2) { + public AdditionalPropertiesClass anytype2(@javax.annotation.Nullable Object anytype2) { this.anytype2 = anytype2; return this; @@ -401,12 +404,12 @@ public Object getAnytype2() { @JsonProperty(JSON_PROPERTY_ANYTYPE2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAnytype2(Object anytype2) { + public void setAnytype2(@javax.annotation.Nullable Object anytype2) { this.anytype2 = anytype2; } - public AdditionalPropertiesClass anytype3(Object anytype3) { + public AdditionalPropertiesClass anytype3(@javax.annotation.Nullable Object anytype3) { this.anytype3 = anytype3; return this; @@ -427,7 +430,7 @@ public Object getAnytype3() { @JsonProperty(JSON_PROPERTY_ANYTYPE3) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAnytype3(Object anytype3) { + public void setAnytype3(@javax.annotation.Nullable Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index d965e4120ce9..e121f932319e 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -39,13 +39,14 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesInteger extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public AdditionalPropertiesInteger() { } - public AdditionalPropertiesInteger name(String name) { + public AdditionalPropertiesInteger name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -66,7 +67,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index c5587b9a3ade..cac4f85432c7 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -40,13 +40,14 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesNumber extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public AdditionalPropertiesNumber() { } - public AdditionalPropertiesNumber name(String name) { + public AdditionalPropertiesNumber name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -67,7 +68,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index 036510a58770..3e4f2d4320f1 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -39,13 +39,14 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesObject extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public AdditionalPropertiesObject() { } - public AdditionalPropertiesObject name(String name) { + public AdditionalPropertiesObject name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -66,7 +67,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 7565b49b7be9..5bad4eaf7e83 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -39,13 +39,14 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesString extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public AdditionalPropertiesString() { } - public AdditionalPropertiesString name(String name) { + public AdditionalPropertiesString name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -66,7 +67,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Animal.java index 0d33e03778c4..ca47637cbe2b 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Animal.java @@ -48,15 +48,17 @@ public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; + @javax.annotation.Nonnull protected String className; public static final String JSON_PROPERTY_COLOR = "color"; + @javax.annotation.Nullable private String color = "red"; public Animal() { } - public Animal className(String className) { + public Animal className(@javax.annotation.Nonnull String className) { this.className = className; return this; @@ -77,12 +79,12 @@ public String getClassName() { @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setClassName(String className) { + public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; } - public Animal color(String color) { + public Animal color(@javax.annotation.Nullable String color) { this.color = color; return this; @@ -103,7 +105,7 @@ public String getColor() { @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setColor(String color) { + public void setColor(@javax.annotation.Nullable String color) { this.color = color; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index aec7873404a1..80dd2e9954b7 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -42,7 +42,7 @@ public class ArrayOfArrayOfNumberOnly { public ArrayOfArrayOfNumberOnly() { } - public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + public ArrayOfArrayOfNumberOnly arrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; return this; @@ -71,7 +71,7 @@ public List> getArrayArrayNumber() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayNumber(List> arrayArrayNumber) { + public void setArrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index b03ae3dad8ef..06921a55dc39 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -42,7 +42,7 @@ public class ArrayOfNumberOnly { public ArrayOfNumberOnly() { } - public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + public ArrayOfNumberOnly arrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; return this; @@ -71,7 +71,7 @@ public List getArrayNumber() { @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayNumber(List arrayNumber) { + public void setArrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayTest.java index 3099fcd25f17..f3148b30d2bb 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -50,7 +50,7 @@ public class ArrayTest { public ArrayTest() { } - public ArrayTest arrayOfString(List arrayOfString) { + public ArrayTest arrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; return this; @@ -79,12 +79,12 @@ public List getArrayOfString() { @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayOfString(List arrayOfString) { + public void setArrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; } - public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + public ArrayTest arrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; return this; @@ -113,12 +113,12 @@ public List> getArrayArrayOfInteger() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { + public void setArrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } - public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + public ArrayTest arrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; return this; @@ -147,7 +147,7 @@ public List> getArrayArrayOfModel() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayOfModel(List> arrayArrayOfModel) { + public void setArrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/BigCat.java index 4ec7b6e5f836..a17fc30df88d 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/BigCat.java @@ -82,13 +82,14 @@ public static KindEnum fromValue(String value) { } public static final String JSON_PROPERTY_KIND = "kind"; + @javax.annotation.Nullable private KindEnum kind; public BigCat() { } - public BigCat kind(KindEnum kind) { + public BigCat kind(@javax.annotation.Nullable KindEnum kind) { this.kind = kind; return this; @@ -109,7 +110,7 @@ public KindEnum getKind() { @JsonProperty(JSON_PROPERTY_KIND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setKind(KindEnum kind) { + public void setKind(@javax.annotation.Nullable KindEnum kind) { this.kind = kind; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Capitalization.java index e183923b018d..6ea1d941b5a4 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Capitalization.java @@ -38,27 +38,33 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Capitalization { public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; + @javax.annotation.Nullable private String smallCamel; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; + @javax.annotation.Nullable private String capitalCamel; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; + @javax.annotation.Nullable private String smallSnake; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; + @javax.annotation.Nullable private String capitalSnake; public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; + @javax.annotation.Nullable private String scAETHFlowPoints; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; + @javax.annotation.Nullable private String ATT_NAME; public Capitalization() { } - public Capitalization smallCamel(String smallCamel) { + public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; return this; @@ -79,12 +85,12 @@ public String getSmallCamel() { @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmallCamel(String smallCamel) { + public void setSmallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; } - public Capitalization capitalCamel(String capitalCamel) { + public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; return this; @@ -105,12 +111,12 @@ public String getCapitalCamel() { @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCapitalCamel(String capitalCamel) { + public void setCapitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; } - public Capitalization smallSnake(String smallSnake) { + public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; return this; @@ -131,12 +137,12 @@ public String getSmallSnake() { @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmallSnake(String smallSnake) { + public void setSmallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; } - public Capitalization capitalSnake(String capitalSnake) { + public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; return this; @@ -157,12 +163,12 @@ public String getCapitalSnake() { @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCapitalSnake(String capitalSnake) { + public void setCapitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; } - public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; return this; @@ -183,12 +189,12 @@ public String getScAETHFlowPoints() { @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setScAETHFlowPoints(String scAETHFlowPoints) { + public void setScAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } - public Capitalization ATT_NAME(String ATT_NAME) { + public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; return this; @@ -209,7 +215,7 @@ public String getATTNAME() { @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setATTNAME(String ATT_NAME) { + public void setATTNAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Cat.java index 99bd8041dffc..4b4d5fcb797e 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Cat.java @@ -46,13 +46,14 @@ public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; + @javax.annotation.Nullable private Boolean declawed; public Cat() { } - public Cat declawed(Boolean declawed) { + public Cat declawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; return this; @@ -73,7 +74,7 @@ public Boolean isDeclawed() { @JsonProperty(JSON_PROPERTY_DECLAWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Category.java index 57124c5ee696..2960d14ab6ea 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Category.java @@ -34,15 +34,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Category { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private String name = "default-name"; public Category() { } - public Category id(Long id) { + public Category id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -63,12 +65,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@javax.annotation.Nonnull String name) { this.name = name; return this; @@ -89,7 +91,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ClassModel.java index 9a3e2b1948f1..ac00969b3134 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ClassModel.java @@ -33,12 +33,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ClassModel { public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; + @javax.annotation.Nullable private String propertyClass; public ClassModel() { } - public ClassModel propertyClass(String propertyClass) { + public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; @@ -59,7 +60,7 @@ public String getPropertyClass() { @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Client.java index ceea70202bba..8c0a8519ac18 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Client.java @@ -33,12 +33,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Client { public static final String JSON_PROPERTY_CLIENT = "client"; + @javax.annotation.Nullable private String client; public Client() { } - public Client client(String client) { + public Client client(@javax.annotation.Nullable String client) { this.client = client; return this; @@ -59,7 +60,7 @@ public String getClient() { @JsonProperty(JSON_PROPERTY_CLIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setClient(String client) { + public void setClient(@javax.annotation.Nullable String client) { this.client = client; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Dog.java index ed02c047048e..5ac653b756a6 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Dog.java @@ -43,13 +43,14 @@ public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; + @javax.annotation.Nullable private String breed; public Dog() { } - public Dog breed(String breed) { + public Dog breed(@javax.annotation.Nullable String breed) { this.breed = breed; return this; @@ -70,7 +71,7 @@ public String getBreed() { @JsonProperty(JSON_PROPERTY_BREED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBreed(String breed) { + public void setBreed(@javax.annotation.Nullable String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/EnumArrays.java index ed346979789c..647ddcabf975 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -72,6 +72,7 @@ public static JustSymbolEnum fromValue(String value) { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** @@ -115,7 +116,7 @@ public static ArrayEnumEnum fromValue(String value) { public EnumArrays() { } - public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; @@ -136,12 +137,12 @@ public JustSymbolEnum getJustSymbol() { @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJustSymbol(JustSymbolEnum justSymbol) { + public void setJustSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } - public EnumArrays arrayEnum(List arrayEnum) { + public EnumArrays arrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; return this; @@ -170,7 +171,7 @@ public List getArrayEnum() { @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayEnum(List arrayEnum) { + public void setArrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/EnumTest.java index 31e3f8199f3e..f163b06013ec 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/EnumTest.java @@ -76,6 +76,7 @@ public static EnumStringEnum fromValue(String value) { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; + @javax.annotation.Nullable private EnumStringEnum enumString; /** @@ -116,6 +117,7 @@ public static EnumStringRequiredEnum fromValue(String value) { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** @@ -154,6 +156,7 @@ public static EnumIntegerEnum fromValue(Integer value) { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** @@ -192,15 +195,17 @@ public static EnumNumberEnum fromValue(Double value) { } public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; + @javax.annotation.Nullable private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; + @javax.annotation.Nullable private OuterEnum outerEnum; public EnumTest() { } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; @@ -221,12 +226,12 @@ public EnumStringEnum getEnumString() { @JsonProperty(JSON_PROPERTY_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumString(EnumStringEnum enumString) { + public void setEnumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; } - public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; return this; @@ -247,12 +252,12 @@ public EnumStringRequiredEnum getEnumStringRequired() { @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public void setEnumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; @@ -273,12 +278,12 @@ public EnumIntegerEnum getEnumInteger() { @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumInteger(EnumIntegerEnum enumInteger) { + public void setEnumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } - public EnumTest enumNumber(EnumNumberEnum enumNumber) { + public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; return this; @@ -299,12 +304,12 @@ public EnumNumberEnum getEnumNumber() { @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumNumber(EnumNumberEnum enumNumber) { + public void setEnumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } - public EnumTest outerEnum(OuterEnum outerEnum) { + public EnumTest outerEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; return this; @@ -325,7 +330,7 @@ public OuterEnum getOuterEnum() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnum(OuterEnum outerEnum) { + public void setOuterEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/File.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/File.java index 9d83d9ffff74..80634d080ddd 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/File.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/File.java @@ -33,12 +33,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class File { public static final String JSON_PROPERTY_SOURCE_U_R_I = "sourceURI"; + @javax.annotation.Nullable private String sourceURI; public File() { } - public File sourceURI(String sourceURI) { + public File sourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; return this; @@ -59,7 +60,7 @@ public String getSourceURI() { @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSourceURI(String sourceURI) { + public void setSourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 613c609ed5ff..c4d3e2d375e9 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -38,6 +38,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; + @javax.annotation.Nullable private File file; public static final String JSON_PROPERTY_FILES = "files"; @@ -46,7 +47,7 @@ public class FileSchemaTestClass { public FileSchemaTestClass() { } - public FileSchemaTestClass file(File file) { + public FileSchemaTestClass file(@javax.annotation.Nullable File file) { this.file = file; return this; @@ -67,12 +68,12 @@ public File getFile() { @JsonProperty(JSON_PROPERTY_FILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFile(File file) { + public void setFile(@javax.annotation.Nullable File file) { this.file = file; } - public FileSchemaTestClass files(List files) { + public FileSchemaTestClass files(@javax.annotation.Nullable List files) { this.files = files; return this; @@ -101,7 +102,7 @@ public List getFiles() { @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFiles(List files) { + public void setFiles(@javax.annotation.Nullable List files) { this.files = files; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/FormatTest.java index 101add4e9c9b..0bf27f1a77ca 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/FormatTest.java @@ -52,51 +52,65 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; + @javax.annotation.Nullable private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; + @javax.annotation.Nullable private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; + @javax.annotation.Nullable private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; + @javax.annotation.Nonnull private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; + @javax.annotation.Nullable private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; + @javax.annotation.Nullable private Double _double; public static final String JSON_PROPERTY_STRING = "string"; + @javax.annotation.Nullable private String string; public static final String JSON_PROPERTY_BYTE = "byte"; + @javax.annotation.Nonnull private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; + @javax.annotation.Nullable private File binary; public static final String JSON_PROPERTY_DATE = "date"; + @javax.annotation.Nonnull private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; + @javax.annotation.Nonnull private String password; public static final String JSON_PROPERTY_BIG_DECIMAL = "BigDecimal"; + @javax.annotation.Nullable private BigDecimal bigDecimal; public FormatTest() { } - public FormatTest integer(Integer integer) { + public FormatTest integer(@javax.annotation.Nullable Integer integer) { this.integer = integer; return this; @@ -119,12 +133,12 @@ public Integer getInteger() { @JsonProperty(JSON_PROPERTY_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInteger(Integer integer) { + public void setInteger(@javax.annotation.Nullable Integer integer) { this.integer = integer; } - public FormatTest int32(Integer int32) { + public FormatTest int32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; return this; @@ -147,12 +161,12 @@ public Integer getInt32() { @JsonProperty(JSON_PROPERTY_INT32) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInt32(Integer int32) { + public void setInt32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; } - public FormatTest int64(Long int64) { + public FormatTest int64(@javax.annotation.Nullable Long int64) { this.int64 = int64; return this; @@ -173,12 +187,12 @@ public Long getInt64() { @JsonProperty(JSON_PROPERTY_INT64) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInt64(Long int64) { + public void setInt64(@javax.annotation.Nullable Long int64) { this.int64 = int64; } - public FormatTest number(BigDecimal number) { + public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { this.number = number; return this; @@ -201,12 +215,12 @@ public BigDecimal getNumber() { @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNumber(BigDecimal number) { + public void setNumber(@javax.annotation.Nonnull BigDecimal number) { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@javax.annotation.Nullable Float _float) { this._float = _float; return this; @@ -229,12 +243,12 @@ public Float getFloat() { @JsonProperty(JSON_PROPERTY_FLOAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFloat(Float _float) { + public void setFloat(@javax.annotation.Nullable Float _float) { this._float = _float; } - public FormatTest _double(Double _double) { + public FormatTest _double(@javax.annotation.Nullable Double _double) { this._double = _double; return this; @@ -257,12 +271,12 @@ public Double getDouble() { @JsonProperty(JSON_PROPERTY_DOUBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDouble(Double _double) { + public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; } - public FormatTest string(String string) { + public FormatTest string(@javax.annotation.Nullable String string) { this.string = string; return this; @@ -283,12 +297,12 @@ public String getString() { @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setString(String string) { + public void setString(@javax.annotation.Nullable String string) { this.string = string; } - public FormatTest _byte(byte[] _byte) { + public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; return this; @@ -309,12 +323,12 @@ public byte[] getByte() { @JsonProperty(JSON_PROPERTY_BYTE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setByte(byte[] _byte) { + public void setByte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; } - public FormatTest binary(File binary) { + public FormatTest binary(@javax.annotation.Nullable File binary) { this.binary = binary; return this; @@ -335,12 +349,12 @@ public File getBinary() { @JsonProperty(JSON_PROPERTY_BINARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBinary(File binary) { + public void setBinary(@javax.annotation.Nullable File binary) { this.binary = binary; } - public FormatTest date(LocalDate date) { + public FormatTest date(@javax.annotation.Nonnull LocalDate date) { this.date = date; return this; @@ -361,12 +375,12 @@ public LocalDate getDate() { @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDate(LocalDate date) { + public void setDate(@javax.annotation.Nonnull LocalDate date) { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; @@ -387,12 +401,12 @@ public OffsetDateTime getDateTime() { @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public FormatTest uuid(UUID uuid) { + public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; @@ -413,12 +427,12 @@ public UUID getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(UUID uuid) { + public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public FormatTest password(String password) { + public FormatTest password(@javax.annotation.Nonnull String password) { this.password = password; return this; @@ -439,12 +453,12 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nonnull String password) { this.password = password; } - public FormatTest bigDecimal(BigDecimal bigDecimal) { + public FormatTest bigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; @@ -465,7 +479,7 @@ public BigDecimal getBigDecimal() { @JsonProperty(JSON_PROPERTY_BIG_DECIMAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBigDecimal(BigDecimal bigDecimal) { + public void setBigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index a599856bfc75..baa7dfaa69dd 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -35,9 +35,11 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_FOO = "foo"; + @javax.annotation.Nullable private String foo; public HasOnlyReadOnly() { diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/MapTest.java index 96b9b3e920f8..654937f564f3 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/MapTest.java @@ -87,7 +87,7 @@ public static InnerEnum fromValue(String value) { public MapTest() { } - public MapTest mapMapOfString(Map> mapMapOfString) { + public MapTest mapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; return this; @@ -116,12 +116,12 @@ public Map> getMapMapOfString() { @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapMapOfString(Map> mapMapOfString) { + public void setMapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } - public MapTest mapOfEnumString(Map mapOfEnumString) { + public MapTest mapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; return this; @@ -150,12 +150,12 @@ public Map getMapOfEnumString() { @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapOfEnumString(Map mapOfEnumString) { + public void setMapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } - public MapTest directMap(Map directMap) { + public MapTest directMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; return this; @@ -184,12 +184,12 @@ public Map getDirectMap() { @JsonProperty(JSON_PROPERTY_DIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDirectMap(Map directMap) { + public void setDirectMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; } - public MapTest indirectMap(Map indirectMap) { + public MapTest indirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; return this; @@ -218,7 +218,7 @@ public Map getIndirectMap() { @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIndirectMap(Map indirectMap) { + public void setIndirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 05e96b73515d..e69b40ecb445 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -40,9 +40,11 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; @@ -51,7 +53,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass { public MixedPropertiesAndAdditionalPropertiesClass() { } - public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; @@ -72,12 +74,12 @@ public UUID getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(UUID uuid) { + public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; @@ -98,12 +100,12 @@ public OffsetDateTime getDateTime() { @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + public MixedPropertiesAndAdditionalPropertiesClass map(@javax.annotation.Nullable Map map) { this.map = map; return this; @@ -132,7 +134,7 @@ public Map getMap() { @JsonProperty(JSON_PROPERTY_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMap(Map map) { + public void setMap(@javax.annotation.Nullable Map map) { this.map = map; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Model200Response.java index c2c6d61f20b2..81971ae7b64b 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Model200Response.java @@ -35,15 +35,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; + @javax.annotation.Nullable private String propertyClass; public Model200Response() { } - public Model200Response name(Integer name) { + public Model200Response name(@javax.annotation.Nullable Integer name) { this.name = name; return this; @@ -64,12 +66,12 @@ public Integer getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(Integer name) { + public void setName(@javax.annotation.Nullable Integer name) { this.name = name; } - public Model200Response propertyClass(String propertyClass) { + public Model200Response propertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; @@ -90,7 +92,7 @@ public String getPropertyClass() { @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 7c42fb75cac1..390defb7f7fa 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -36,18 +36,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nullable private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nullable private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; + @javax.annotation.Nullable private String message; public ModelApiResponse() { } - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@javax.annotation.Nullable Integer code) { this.code = code; return this; @@ -68,12 +71,12 @@ public Integer getCode() { @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCode(Integer code) { + public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@javax.annotation.Nullable String type) { this.type = type; return this; @@ -94,12 +97,12 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { + public void setType(@javax.annotation.Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@javax.annotation.Nullable String message) { this.message = message; return this; @@ -120,7 +123,7 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelList.java index fb9dce6cd1e9..ed56f08e59e5 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelList.java @@ -34,12 +34,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelList { public static final String JSON_PROPERTY_123LIST = "123-list"; + @javax.annotation.Nullable private String _123list; public ModelList() { } - public ModelList _123list(String _123list) { + public ModelList _123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; return this; @@ -60,7 +61,7 @@ public String get123list() { @JsonProperty(JSON_PROPERTY_123LIST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void set123list(String _123list) { + public void set123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelReturn.java index ad315a33fcd8..d5af60e2d050 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -34,12 +34,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; + @javax.annotation.Nullable private Integer _return; public ModelReturn() { } - public ModelReturn _return(Integer _return) { + public ModelReturn _return(@javax.annotation.Nullable Integer _return) { this._return = _return; return this; @@ -60,7 +61,7 @@ public Integer getReturn() { @JsonProperty(JSON_PROPERTY_RETURN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setReturn(Integer _return) { + public void setReturn(@javax.annotation.Nullable Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Name.java index f67038bebbe9..a50010990aa6 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Name.java @@ -36,15 +36,19 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Name { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; + @javax.annotation.Nullable private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; + @javax.annotation.Nullable private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; + @javax.annotation.Nullable private Integer _123number; public Name() { @@ -60,7 +64,7 @@ public Name( this._123number = _123number; } - public Name name(Integer name) { + public Name name(@javax.annotation.Nonnull Integer name) { this.name = name; return this; @@ -81,7 +85,7 @@ public Integer getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(Integer name) { + public void setName(@javax.annotation.Nonnull Integer name) { this.name = name; } @@ -101,7 +105,7 @@ public Integer getSnakeCase() { - public Name property(String property) { + public Name property(@javax.annotation.Nullable String property) { this.property = property; return this; @@ -122,7 +126,7 @@ public String getProperty() { @JsonProperty(JSON_PROPERTY_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProperty(String property) { + public void setProperty(@javax.annotation.Nullable String property) { this.property = property; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/NumberOnly.java index 0f4272b85608..a60f5c4914ca 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -34,12 +34,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; + @javax.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } - public NumberOnly justNumber(BigDecimal justNumber) { + public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; @@ -60,7 +61,7 @@ public BigDecimal getJustNumber() { @JsonProperty(JSON_PROPERTY_JUST_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJustNumber(BigDecimal justNumber) { + public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Order.java index 382b00aeff78..261097fe7f6e 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Order.java @@ -39,15 +39,19 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Order { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; + @javax.annotation.Nullable private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; + @javax.annotation.Nullable private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; + @javax.annotation.Nullable private OffsetDateTime shipDate; /** @@ -88,15 +92,17 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @javax.annotation.Nullable private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; + @javax.annotation.Nullable private Boolean complete = false; public Order() { } - public Order id(Long id) { + public Order id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -117,12 +123,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@javax.annotation.Nullable Long petId) { this.petId = petId; return this; @@ -143,12 +149,12 @@ public Long getPetId() { @JsonProperty(JSON_PROPERTY_PET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPetId(Long petId) { + public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; return this; @@ -169,12 +175,12 @@ public Integer getQuantity() { @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setQuantity(Integer quantity) { + public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; @@ -195,12 +201,12 @@ public OffsetDateTime getShipDate() { @JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -221,12 +227,12 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } - public Order complete(Boolean complete) { + public Order complete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; return this; @@ -247,7 +253,7 @@ public Boolean isComplete() { @JsonProperty(JSON_PROPERTY_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setComplete(Boolean complete) { + public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/OuterComposite.java index c1c2ea852626..9bb742b263f4 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -36,18 +36,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; + @javax.annotation.Nullable private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; + @javax.annotation.Nullable private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; + @javax.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } - public OuterComposite myNumber(BigDecimal myNumber) { + public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; @@ -68,12 +71,12 @@ public BigDecimal getMyNumber() { @JsonProperty(JSON_PROPERTY_MY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyNumber(BigDecimal myNumber) { + public void setMyNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; } - public OuterComposite myString(String myString) { + public OuterComposite myString(@javax.annotation.Nullable String myString) { this.myString = myString; return this; @@ -94,12 +97,12 @@ public String getMyString() { @JsonProperty(JSON_PROPERTY_MY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyString(String myString) { + public void setMyString(@javax.annotation.Nullable String myString) { this.myString = myString; } - public OuterComposite myBoolean(Boolean myBoolean) { + public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; return this; @@ -120,7 +123,7 @@ public Boolean isMyBoolean() { @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyBoolean(Boolean myBoolean) { + public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Pet.java index ad4ee909ee4f..f61d61e9b0e5 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Pet.java @@ -46,12 +46,15 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Pet { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; + @javax.annotation.Nullable private Category category; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; @@ -98,12 +101,13 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } - public Pet id(Long id) { + public Pet id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -124,12 +128,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@javax.annotation.Nullable Category category) { this.category = category; return this; @@ -150,12 +154,12 @@ public Category getCategory() { @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCategory(Category category) { + public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; } - public Pet name(String name) { + public Pet name(@javax.annotation.Nonnull String name) { this.name = name; return this; @@ -176,12 +180,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } - public Pet photoUrls(Set photoUrls) { + public Pet photoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; return this; @@ -211,12 +215,12 @@ public Set getPhotoUrls() { @JsonDeserialize(as = LinkedHashSet.class) @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPhotoUrls(Set photoUrls) { + public void setPhotoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; } - public Pet tags(List tags) { + public Pet tags(@javax.annotation.Nullable List tags) { this.tags = tags; return this; @@ -245,12 +249,12 @@ public List getTags() { @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTags(List tags) { + public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -271,7 +275,7 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 1e5372874333..d26a872b2c9f 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -34,9 +34,11 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; + @javax.annotation.Nullable private String baz; public ReadOnlyFirst() { @@ -65,7 +67,7 @@ public String getBar() { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { this.baz = baz; return this; @@ -86,7 +88,7 @@ public String getBaz() { @JsonProperty(JSON_PROPERTY_BAZ) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBaz(String baz) { + public void setBaz(@javax.annotation.Nullable String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/SpecialModelName.java index f4751e2a9750..f1ea31882656 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -34,12 +34,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; + @javax.annotation.Nullable private Long $specialPropertyName; public SpecialModelName() { } - public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + public SpecialModelName $specialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; return this; @@ -60,7 +61,7 @@ public SpecialModelName() { @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void set$SpecialPropertyName(Long $specialPropertyName) { + public void set$SpecialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Tag.java index af5eb0615ea2..5e4e541b476f 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Tag.java @@ -34,15 +34,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Tag { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public Tag() { } - public Tag id(Long id) { + public Tag id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -63,12 +65,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -89,7 +91,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index 5c573d596266..6ac456e1c4c4 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -41,15 +41,19 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class TypeHolderDefault { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; + @javax.annotation.Nonnull private String stringItem = "what"; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; + @javax.annotation.Nonnull private BigDecimal numberItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; + @javax.annotation.Nonnull private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; + @javax.annotation.Nonnull private Boolean boolItem = true; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; @@ -58,7 +62,7 @@ public class TypeHolderDefault { public TypeHolderDefault() { } - public TypeHolderDefault stringItem(String stringItem) { + public TypeHolderDefault stringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; return this; @@ -79,12 +83,12 @@ public String getStringItem() { @JsonProperty(JSON_PROPERTY_STRING_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStringItem(String stringItem) { + public void setStringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; } - public TypeHolderDefault numberItem(BigDecimal numberItem) { + public TypeHolderDefault numberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; return this; @@ -105,12 +109,12 @@ public BigDecimal getNumberItem() { @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNumberItem(BigDecimal numberItem) { + public void setNumberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; } - public TypeHolderDefault integerItem(Integer integerItem) { + public TypeHolderDefault integerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; return this; @@ -131,12 +135,12 @@ public Integer getIntegerItem() { @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setIntegerItem(Integer integerItem) { + public void setIntegerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; } - public TypeHolderDefault boolItem(Boolean boolItem) { + public TypeHolderDefault boolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; return this; @@ -157,12 +161,12 @@ public Boolean isBoolItem() { @JsonProperty(JSON_PROPERTY_BOOL_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBoolItem(Boolean boolItem) { + public void setBoolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; } - public TypeHolderDefault arrayItem(List arrayItem) { + public TypeHolderDefault arrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; return this; @@ -191,7 +195,7 @@ public List getArrayItem() { @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setArrayItem(List arrayItem) { + public void setArrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderExample.java index a6eacd23036d..b0e148dc27f4 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -42,18 +42,23 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class TypeHolderExample { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; + @javax.annotation.Nonnull private String stringItem; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; + @javax.annotation.Nonnull private BigDecimal numberItem; public static final String JSON_PROPERTY_FLOAT_ITEM = "float_item"; + @javax.annotation.Nonnull private Float floatItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; + @javax.annotation.Nonnull private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; + @javax.annotation.Nonnull private Boolean boolItem; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; @@ -62,7 +67,7 @@ public class TypeHolderExample { public TypeHolderExample() { } - public TypeHolderExample stringItem(String stringItem) { + public TypeHolderExample stringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; return this; @@ -83,12 +88,12 @@ public String getStringItem() { @JsonProperty(JSON_PROPERTY_STRING_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStringItem(String stringItem) { + public void setStringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; } - public TypeHolderExample numberItem(BigDecimal numberItem) { + public TypeHolderExample numberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; return this; @@ -109,12 +114,12 @@ public BigDecimal getNumberItem() { @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNumberItem(BigDecimal numberItem) { + public void setNumberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; } - public TypeHolderExample floatItem(Float floatItem) { + public TypeHolderExample floatItem(@javax.annotation.Nonnull Float floatItem) { this.floatItem = floatItem; return this; @@ -135,12 +140,12 @@ public Float getFloatItem() { @JsonProperty(JSON_PROPERTY_FLOAT_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFloatItem(Float floatItem) { + public void setFloatItem(@javax.annotation.Nonnull Float floatItem) { this.floatItem = floatItem; } - public TypeHolderExample integerItem(Integer integerItem) { + public TypeHolderExample integerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; return this; @@ -161,12 +166,12 @@ public Integer getIntegerItem() { @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setIntegerItem(Integer integerItem) { + public void setIntegerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; } - public TypeHolderExample boolItem(Boolean boolItem) { + public TypeHolderExample boolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; return this; @@ -187,12 +192,12 @@ public Boolean isBoolItem() { @JsonProperty(JSON_PROPERTY_BOOL_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBoolItem(Boolean boolItem) { + public void setBoolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; } - public TypeHolderExample arrayItem(List arrayItem) { + public TypeHolderExample arrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; return this; @@ -221,7 +226,7 @@ public List getArrayItem() { @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setArrayItem(List arrayItem) { + public void setArrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/User.java index e3dc8bb1dfdf..7c6b5d2cb21d 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/User.java @@ -40,33 +40,41 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class User { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; + @javax.annotation.Nullable private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; + @javax.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; + @javax.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; + @javax.annotation.Nullable private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; + @javax.annotation.Nullable private String password; public static final String JSON_PROPERTY_PHONE = "phone"; + @javax.annotation.Nullable private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; + @javax.annotation.Nullable private Integer userStatus; public User() { } - public User id(Long id) { + public User id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -87,12 +95,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@javax.annotation.Nullable String username) { this.username = username; return this; @@ -113,12 +121,12 @@ public String getUsername() { @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsername(String username) { + public void setUsername(@javax.annotation.Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; return this; @@ -139,12 +147,12 @@ public String getFirstName() { @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFirstName(String firstName) { + public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; return this; @@ -165,12 +173,12 @@ public String getLastName() { @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLastName(String lastName) { + public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@javax.annotation.Nullable String email) { this.email = email; return this; @@ -191,12 +199,12 @@ public String getEmail() { @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEmail(String email) { + public void setEmail(@javax.annotation.Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@javax.annotation.Nullable String password) { this.password = password; return this; @@ -217,12 +225,12 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@javax.annotation.Nullable String phone) { this.phone = phone; return this; @@ -243,12 +251,12 @@ public String getPhone() { @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPhone(String phone) { + public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; return this; @@ -269,7 +277,7 @@ public Integer getUserStatus() { @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/XmlItem.java index ba2c8c363e84..001974cdf6a8 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/XmlItem.java @@ -65,30 +65,38 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class XmlItem { public static final String JSON_PROPERTY_ATTRIBUTE_STRING = "attribute_string"; + @javax.annotation.Nullable private String attributeString; public static final String JSON_PROPERTY_ATTRIBUTE_NUMBER = "attribute_number"; + @javax.annotation.Nullable private BigDecimal attributeNumber; public static final String JSON_PROPERTY_ATTRIBUTE_INTEGER = "attribute_integer"; + @javax.annotation.Nullable private Integer attributeInteger; public static final String JSON_PROPERTY_ATTRIBUTE_BOOLEAN = "attribute_boolean"; + @javax.annotation.Nullable private Boolean attributeBoolean; public static final String JSON_PROPERTY_WRAPPED_ARRAY = "wrapped_array"; private List wrappedArray = new ArrayList<>(); public static final String JSON_PROPERTY_NAME_STRING = "name_string"; + @javax.annotation.Nullable private String nameString; public static final String JSON_PROPERTY_NAME_NUMBER = "name_number"; + @javax.annotation.Nullable private BigDecimal nameNumber; public static final String JSON_PROPERTY_NAME_INTEGER = "name_integer"; + @javax.annotation.Nullable private Integer nameInteger; public static final String JSON_PROPERTY_NAME_BOOLEAN = "name_boolean"; + @javax.annotation.Nullable private Boolean nameBoolean; public static final String JSON_PROPERTY_NAME_ARRAY = "name_array"; @@ -98,15 +106,19 @@ public class XmlItem { private List nameWrappedArray = new ArrayList<>(); public static final String JSON_PROPERTY_PREFIX_STRING = "prefix_string"; + @javax.annotation.Nullable private String prefixString; public static final String JSON_PROPERTY_PREFIX_NUMBER = "prefix_number"; + @javax.annotation.Nullable private BigDecimal prefixNumber; public static final String JSON_PROPERTY_PREFIX_INTEGER = "prefix_integer"; + @javax.annotation.Nullable private Integer prefixInteger; public static final String JSON_PROPERTY_PREFIX_BOOLEAN = "prefix_boolean"; + @javax.annotation.Nullable private Boolean prefixBoolean; public static final String JSON_PROPERTY_PREFIX_ARRAY = "prefix_array"; @@ -116,15 +128,19 @@ public class XmlItem { private List prefixWrappedArray = new ArrayList<>(); public static final String JSON_PROPERTY_NAMESPACE_STRING = "namespace_string"; + @javax.annotation.Nullable private String namespaceString; public static final String JSON_PROPERTY_NAMESPACE_NUMBER = "namespace_number"; + @javax.annotation.Nullable private BigDecimal namespaceNumber; public static final String JSON_PROPERTY_NAMESPACE_INTEGER = "namespace_integer"; + @javax.annotation.Nullable private Integer namespaceInteger; public static final String JSON_PROPERTY_NAMESPACE_BOOLEAN = "namespace_boolean"; + @javax.annotation.Nullable private Boolean namespaceBoolean; public static final String JSON_PROPERTY_NAMESPACE_ARRAY = "namespace_array"; @@ -134,15 +150,19 @@ public class XmlItem { private List namespaceWrappedArray = new ArrayList<>(); public static final String JSON_PROPERTY_PREFIX_NS_STRING = "prefix_ns_string"; + @javax.annotation.Nullable private String prefixNsString; public static final String JSON_PROPERTY_PREFIX_NS_NUMBER = "prefix_ns_number"; + @javax.annotation.Nullable private BigDecimal prefixNsNumber; public static final String JSON_PROPERTY_PREFIX_NS_INTEGER = "prefix_ns_integer"; + @javax.annotation.Nullable private Integer prefixNsInteger; public static final String JSON_PROPERTY_PREFIX_NS_BOOLEAN = "prefix_ns_boolean"; + @javax.annotation.Nullable private Boolean prefixNsBoolean; public static final String JSON_PROPERTY_PREFIX_NS_ARRAY = "prefix_ns_array"; @@ -154,7 +174,7 @@ public class XmlItem { public XmlItem() { } - public XmlItem attributeString(String attributeString) { + public XmlItem attributeString(@javax.annotation.Nullable String attributeString) { this.attributeString = attributeString; return this; @@ -175,12 +195,12 @@ public String getAttributeString() { @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttributeString(String attributeString) { + public void setAttributeString(@javax.annotation.Nullable String attributeString) { this.attributeString = attributeString; } - public XmlItem attributeNumber(BigDecimal attributeNumber) { + public XmlItem attributeNumber(@javax.annotation.Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; return this; @@ -201,12 +221,12 @@ public BigDecimal getAttributeNumber() { @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttributeNumber(BigDecimal attributeNumber) { + public void setAttributeNumber(@javax.annotation.Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } - public XmlItem attributeInteger(Integer attributeInteger) { + public XmlItem attributeInteger(@javax.annotation.Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; return this; @@ -227,12 +247,12 @@ public Integer getAttributeInteger() { @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttributeInteger(Integer attributeInteger) { + public void setAttributeInteger(@javax.annotation.Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; } - public XmlItem attributeBoolean(Boolean attributeBoolean) { + public XmlItem attributeBoolean(@javax.annotation.Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; return this; @@ -253,12 +273,12 @@ public Boolean isAttributeBoolean() { @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttributeBoolean(Boolean attributeBoolean) { + public void setAttributeBoolean(@javax.annotation.Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } - public XmlItem wrappedArray(List wrappedArray) { + public XmlItem wrappedArray(@javax.annotation.Nullable List wrappedArray) { this.wrappedArray = wrappedArray; return this; @@ -287,12 +307,12 @@ public List getWrappedArray() { @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWrappedArray(List wrappedArray) { + public void setWrappedArray(@javax.annotation.Nullable List wrappedArray) { this.wrappedArray = wrappedArray; } - public XmlItem nameString(String nameString) { + public XmlItem nameString(@javax.annotation.Nullable String nameString) { this.nameString = nameString; return this; @@ -313,12 +333,12 @@ public String getNameString() { @JsonProperty(JSON_PROPERTY_NAME_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameString(String nameString) { + public void setNameString(@javax.annotation.Nullable String nameString) { this.nameString = nameString; } - public XmlItem nameNumber(BigDecimal nameNumber) { + public XmlItem nameNumber(@javax.annotation.Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; return this; @@ -339,12 +359,12 @@ public BigDecimal getNameNumber() { @JsonProperty(JSON_PROPERTY_NAME_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameNumber(BigDecimal nameNumber) { + public void setNameNumber(@javax.annotation.Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; } - public XmlItem nameInteger(Integer nameInteger) { + public XmlItem nameInteger(@javax.annotation.Nullable Integer nameInteger) { this.nameInteger = nameInteger; return this; @@ -365,12 +385,12 @@ public Integer getNameInteger() { @JsonProperty(JSON_PROPERTY_NAME_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameInteger(Integer nameInteger) { + public void setNameInteger(@javax.annotation.Nullable Integer nameInteger) { this.nameInteger = nameInteger; } - public XmlItem nameBoolean(Boolean nameBoolean) { + public XmlItem nameBoolean(@javax.annotation.Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; return this; @@ -391,12 +411,12 @@ public Boolean isNameBoolean() { @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameBoolean(Boolean nameBoolean) { + public void setNameBoolean(@javax.annotation.Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; } - public XmlItem nameArray(List nameArray) { + public XmlItem nameArray(@javax.annotation.Nullable List nameArray) { this.nameArray = nameArray; return this; @@ -425,12 +445,12 @@ public List getNameArray() { @JsonProperty(JSON_PROPERTY_NAME_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameArray(List nameArray) { + public void setNameArray(@javax.annotation.Nullable List nameArray) { this.nameArray = nameArray; } - public XmlItem nameWrappedArray(List nameWrappedArray) { + public XmlItem nameWrappedArray(@javax.annotation.Nullable List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; return this; @@ -459,12 +479,12 @@ public List getNameWrappedArray() { @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameWrappedArray(List nameWrappedArray) { + public void setNameWrappedArray(@javax.annotation.Nullable List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } - public XmlItem prefixString(String prefixString) { + public XmlItem prefixString(@javax.annotation.Nullable String prefixString) { this.prefixString = prefixString; return this; @@ -485,12 +505,12 @@ public String getPrefixString() { @JsonProperty(JSON_PROPERTY_PREFIX_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixString(String prefixString) { + public void setPrefixString(@javax.annotation.Nullable String prefixString) { this.prefixString = prefixString; } - public XmlItem prefixNumber(BigDecimal prefixNumber) { + public XmlItem prefixNumber(@javax.annotation.Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; return this; @@ -511,12 +531,12 @@ public BigDecimal getPrefixNumber() { @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNumber(BigDecimal prefixNumber) { + public void setPrefixNumber(@javax.annotation.Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } - public XmlItem prefixInteger(Integer prefixInteger) { + public XmlItem prefixInteger(@javax.annotation.Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; return this; @@ -537,12 +557,12 @@ public Integer getPrefixInteger() { @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixInteger(Integer prefixInteger) { + public void setPrefixInteger(@javax.annotation.Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; } - public XmlItem prefixBoolean(Boolean prefixBoolean) { + public XmlItem prefixBoolean(@javax.annotation.Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; return this; @@ -563,12 +583,12 @@ public Boolean isPrefixBoolean() { @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixBoolean(Boolean prefixBoolean) { + public void setPrefixBoolean(@javax.annotation.Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } - public XmlItem prefixArray(List prefixArray) { + public XmlItem prefixArray(@javax.annotation.Nullable List prefixArray) { this.prefixArray = prefixArray; return this; @@ -597,12 +617,12 @@ public List getPrefixArray() { @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixArray(List prefixArray) { + public void setPrefixArray(@javax.annotation.Nullable List prefixArray) { this.prefixArray = prefixArray; } - public XmlItem prefixWrappedArray(List prefixWrappedArray) { + public XmlItem prefixWrappedArray(@javax.annotation.Nullable List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; return this; @@ -631,12 +651,12 @@ public List getPrefixWrappedArray() { @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixWrappedArray(List prefixWrappedArray) { + public void setPrefixWrappedArray(@javax.annotation.Nullable List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem namespaceString(String namespaceString) { + public XmlItem namespaceString(@javax.annotation.Nullable String namespaceString) { this.namespaceString = namespaceString; return this; @@ -657,12 +677,12 @@ public String getNamespaceString() { @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNamespaceString(String namespaceString) { + public void setNamespaceString(@javax.annotation.Nullable String namespaceString) { this.namespaceString = namespaceString; } - public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + public XmlItem namespaceNumber(@javax.annotation.Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; return this; @@ -683,12 +703,12 @@ public BigDecimal getNamespaceNumber() { @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNamespaceNumber(BigDecimal namespaceNumber) { + public void setNamespaceNumber(@javax.annotation.Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } - public XmlItem namespaceInteger(Integer namespaceInteger) { + public XmlItem namespaceInteger(@javax.annotation.Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; return this; @@ -709,12 +729,12 @@ public Integer getNamespaceInteger() { @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNamespaceInteger(Integer namespaceInteger) { + public void setNamespaceInteger(@javax.annotation.Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } - public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + public XmlItem namespaceBoolean(@javax.annotation.Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; return this; @@ -735,12 +755,12 @@ public Boolean isNamespaceBoolean() { @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNamespaceBoolean(Boolean namespaceBoolean) { + public void setNamespaceBoolean(@javax.annotation.Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } - public XmlItem namespaceArray(List namespaceArray) { + public XmlItem namespaceArray(@javax.annotation.Nullable List namespaceArray) { this.namespaceArray = namespaceArray; return this; @@ -769,12 +789,12 @@ public List getNamespaceArray() { @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNamespaceArray(List namespaceArray) { + public void setNamespaceArray(@javax.annotation.Nullable List namespaceArray) { this.namespaceArray = namespaceArray; } - public XmlItem namespaceWrappedArray(List namespaceWrappedArray) { + public XmlItem namespaceWrappedArray(@javax.annotation.Nullable List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; return this; @@ -803,12 +823,12 @@ public List getNamespaceWrappedArray() { @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNamespaceWrappedArray(List namespaceWrappedArray) { + public void setNamespaceWrappedArray(@javax.annotation.Nullable List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem prefixNsString(String prefixNsString) { + public XmlItem prefixNsString(@javax.annotation.Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; @@ -829,12 +849,12 @@ public String getPrefixNsString() { @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNsString(String prefixNsString) { + public void setPrefixNsString(@javax.annotation.Nullable String prefixNsString) { this.prefixNsString = prefixNsString; } - public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + public XmlItem prefixNsNumber(@javax.annotation.Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; return this; @@ -855,12 +875,12 @@ public BigDecimal getPrefixNsNumber() { @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNsNumber(BigDecimal prefixNsNumber) { + public void setPrefixNsNumber(@javax.annotation.Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } - public XmlItem prefixNsInteger(Integer prefixNsInteger) { + public XmlItem prefixNsInteger(@javax.annotation.Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; return this; @@ -881,12 +901,12 @@ public Integer getPrefixNsInteger() { @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNsInteger(Integer prefixNsInteger) { + public void setPrefixNsInteger(@javax.annotation.Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } - public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + public XmlItem prefixNsBoolean(@javax.annotation.Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; return this; @@ -907,12 +927,12 @@ public Boolean isPrefixNsBoolean() { @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNsBoolean(Boolean prefixNsBoolean) { + public void setPrefixNsBoolean(@javax.annotation.Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } - public XmlItem prefixNsArray(List prefixNsArray) { + public XmlItem prefixNsArray(@javax.annotation.Nullable List prefixNsArray) { this.prefixNsArray = prefixNsArray; return this; @@ -941,12 +961,12 @@ public List getPrefixNsArray() { @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNsArray(List prefixNsArray) { + public void setPrefixNsArray(@javax.annotation.Nullable List prefixNsArray) { this.prefixNsArray = prefixNsArray; } - public XmlItem prefixNsWrappedArray(List prefixNsWrappedArray) { + public XmlItem prefixNsWrappedArray(@javax.annotation.Nullable List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; return this; @@ -975,7 +995,7 @@ public List getPrefixNsWrappedArray() { @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { + public void setPrefixNsWrappedArray(@javax.annotation.Nullable List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 09c239452985..1f5587a1e69a 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -43,7 +43,7 @@ public class AdditionalPropertiesClass { public AdditionalPropertiesClass() { } - public AdditionalPropertiesClass mapProperty(Map mapProperty) { + public AdditionalPropertiesClass mapProperty(@javax.annotation.Nullable Map mapProperty) { this.mapProperty = mapProperty; return this; @@ -72,12 +72,12 @@ public Map getMapProperty() { @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapProperty(Map mapProperty) { + public void setMapProperty(@javax.annotation.Nullable Map mapProperty) { this.mapProperty = mapProperty; } - public AdditionalPropertiesClass mapOfMapProperty(Map> mapOfMapProperty) { + public AdditionalPropertiesClass mapOfMapProperty(@javax.annotation.Nullable Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; return this; @@ -106,7 +106,7 @@ public Map> getMapOfMapProperty() { @JsonProperty(JSON_PROPERTY_MAP_OF_MAP_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapOfMapProperty(Map> mapOfMapProperty) { + public void setMapOfMapProperty(@javax.annotation.Nullable Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java index b2c565b9de6f..a6cc90d2d068 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java @@ -34,15 +34,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AllOfWithSingleRef { public static final String JSON_PROPERTY_USERNAME = "username"; + @javax.annotation.Nullable private String username; public static final String JSON_PROPERTY_SINGLE_REF_TYPE = "SingleRefType"; + @javax.annotation.Nullable private SingleRefType singleRefType; public AllOfWithSingleRef() { } - public AllOfWithSingleRef username(String username) { + public AllOfWithSingleRef username(@javax.annotation.Nullable String username) { this.username = username; return this; @@ -63,12 +65,12 @@ public String getUsername() { @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsername(String username) { + public void setUsername(@javax.annotation.Nullable String username) { this.username = username; } - public AllOfWithSingleRef singleRefType(SingleRefType singleRefType) { + public AllOfWithSingleRef singleRefType(@javax.annotation.Nullable SingleRefType singleRefType) { this.singleRefType = singleRefType; return this; @@ -89,7 +91,7 @@ public SingleRefType getSingleRefType() { @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSingleRefType(SingleRefType singleRefType) { + public void setSingleRefType(@javax.annotation.Nullable SingleRefType singleRefType) { this.singleRefType = singleRefType; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Animal.java index 19aa556dda95..3ee53aeab9c4 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Animal.java @@ -46,15 +46,17 @@ public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; + @javax.annotation.Nonnull protected String className; public static final String JSON_PROPERTY_COLOR = "color"; + @javax.annotation.Nullable private String color = "red"; public Animal() { } - public Animal className(String className) { + public Animal className(@javax.annotation.Nonnull String className) { this.className = className; return this; @@ -75,12 +77,12 @@ public String getClassName() { @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setClassName(String className) { + public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; } - public Animal color(String color) { + public Animal color(@javax.annotation.Nullable String color) { this.color = color; return this; @@ -101,7 +103,7 @@ public String getColor() { @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setColor(String color) { + public void setColor(@javax.annotation.Nullable String color) { this.color = color; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 8516c985dded..f42bc5bc008a 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -41,7 +41,7 @@ public class ArrayOfArrayOfNumberOnly { public ArrayOfArrayOfNumberOnly() { } - public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + public ArrayOfArrayOfNumberOnly arrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; return this; @@ -70,7 +70,7 @@ public List> getArrayArrayNumber() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayNumber(List> arrayArrayNumber) { + public void setArrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 8f123ea92cb5..34f6f075a779 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -41,7 +41,7 @@ public class ArrayOfNumberOnly { public ArrayOfNumberOnly() { } - public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + public ArrayOfNumberOnly arrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; return this; @@ -70,7 +70,7 @@ public List getArrayNumber() { @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayNumber(List arrayNumber) { + public void setArrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ArrayTest.java index 3baf3524c047..55e2637d38f9 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -49,7 +49,7 @@ public class ArrayTest { public ArrayTest() { } - public ArrayTest arrayOfString(List arrayOfString) { + public ArrayTest arrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; return this; @@ -78,12 +78,12 @@ public List getArrayOfString() { @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayOfString(List arrayOfString) { + public void setArrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; } - public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + public ArrayTest arrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; return this; @@ -112,12 +112,12 @@ public List> getArrayArrayOfInteger() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { + public void setArrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } - public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + public ArrayTest arrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; return this; @@ -146,7 +146,7 @@ public List> getArrayArrayOfModel() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayOfModel(List> arrayArrayOfModel) { + public void setArrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Capitalization.java index 69a399ad5dc5..41c05374ca16 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Capitalization.java @@ -37,27 +37,33 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Capitalization { public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; + @javax.annotation.Nullable private String smallCamel; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; + @javax.annotation.Nullable private String capitalCamel; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; + @javax.annotation.Nullable private String smallSnake; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; + @javax.annotation.Nullable private String capitalSnake; public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; + @javax.annotation.Nullable private String scAETHFlowPoints; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; + @javax.annotation.Nullable private String ATT_NAME; public Capitalization() { } - public Capitalization smallCamel(String smallCamel) { + public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; return this; @@ -78,12 +84,12 @@ public String getSmallCamel() { @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmallCamel(String smallCamel) { + public void setSmallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; } - public Capitalization capitalCamel(String capitalCamel) { + public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; return this; @@ -104,12 +110,12 @@ public String getCapitalCamel() { @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCapitalCamel(String capitalCamel) { + public void setCapitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; } - public Capitalization smallSnake(String smallSnake) { + public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; return this; @@ -130,12 +136,12 @@ public String getSmallSnake() { @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmallSnake(String smallSnake) { + public void setSmallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; } - public Capitalization capitalSnake(String capitalSnake) { + public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; return this; @@ -156,12 +162,12 @@ public String getCapitalSnake() { @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCapitalSnake(String capitalSnake) { + public void setCapitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; } - public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; return this; @@ -182,12 +188,12 @@ public String getScAETHFlowPoints() { @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setScAETHFlowPoints(String scAETHFlowPoints) { + public void setScAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } - public Capitalization ATT_NAME(String ATT_NAME) { + public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; return this; @@ -208,7 +214,7 @@ public String getATTNAME() { @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setATTNAME(String ATT_NAME) { + public void setATTNAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Cat.java index d4bbbab1eda7..07b14f628a8a 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Cat.java @@ -42,13 +42,14 @@ public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; + @javax.annotation.Nullable private Boolean declawed; public Cat() { } - public Cat declawed(Boolean declawed) { + public Cat declawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; return this; @@ -69,7 +70,7 @@ public Boolean isDeclawed() { @JsonProperty(JSON_PROPERTY_DECLAWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Category.java index 1aa8c0a75a7b..c432daba66ca 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Category.java @@ -33,15 +33,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Category { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private String name = "default-name"; public Category() { } - public Category id(Long id) { + public Category id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -62,12 +64,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@javax.annotation.Nonnull String name) { this.name = name; return this; @@ -88,7 +90,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ChildWithNullable.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ChildWithNullable.java index 0d19c4c6e3ae..bdca97cb63ad 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ChildWithNullable.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ChildWithNullable.java @@ -43,13 +43,14 @@ public class ChildWithNullable extends ParentWithNullable { public static final String JSON_PROPERTY_OTHER_PROPERTY = "otherProperty"; + @javax.annotation.Nullable private String otherProperty; public ChildWithNullable() { } - public ChildWithNullable otherProperty(String otherProperty) { + public ChildWithNullable otherProperty(@javax.annotation.Nullable String otherProperty) { this.otherProperty = otherProperty; return this; @@ -70,7 +71,7 @@ public String getOtherProperty() { @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOtherProperty(String otherProperty) { + public void setOtherProperty(@javax.annotation.Nullable String otherProperty) { this.otherProperty = otherProperty; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ClassModel.java index 0d0468ad0b1f..43a98212c512 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ClassModel.java @@ -32,12 +32,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ClassModel { public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; + @javax.annotation.Nullable private String propertyClass; public ClassModel() { } - public ClassModel propertyClass(String propertyClass) { + public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; @@ -58,7 +59,7 @@ public String getPropertyClass() { @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Client.java index 3c8001b85d57..73181e3f18cd 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Client.java @@ -32,12 +32,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Client { public static final String JSON_PROPERTY_CLIENT = "client"; + @javax.annotation.Nullable private String client; public Client() { } - public Client client(String client) { + public Client client(@javax.annotation.Nullable String client) { this.client = client; return this; @@ -58,7 +59,7 @@ public String getClient() { @JsonProperty(JSON_PROPERTY_CLIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setClient(String client) { + public void setClient(@javax.annotation.Nullable String client) { this.client = client; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/DeprecatedObject.java index f7a9ba124b06..aff1f4ade41d 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -34,12 +34,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class DeprecatedObject { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public DeprecatedObject() { } - public DeprecatedObject name(String name) { + public DeprecatedObject name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -60,7 +61,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Dog.java index 904971671a74..4249054c37d9 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Dog.java @@ -42,13 +42,14 @@ public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; + @javax.annotation.Nullable private String breed; public Dog() { } - public Dog breed(String breed) { + public Dog breed(@javax.annotation.Nullable String breed) { this.breed = breed; return this; @@ -69,7 +70,7 @@ public String getBreed() { @JsonProperty(JSON_PROPERTY_BREED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBreed(String breed) { + public void setBreed(@javax.annotation.Nullable String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/EnumArrays.java index 9dacd14d7e2b..7befd96f25ec 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -71,6 +71,7 @@ public static JustSymbolEnum fromValue(String value) { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** @@ -114,7 +115,7 @@ public static ArrayEnumEnum fromValue(String value) { public EnumArrays() { } - public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; @@ -135,12 +136,12 @@ public JustSymbolEnum getJustSymbol() { @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJustSymbol(JustSymbolEnum justSymbol) { + public void setJustSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } - public EnumArrays arrayEnum(List arrayEnum) { + public EnumArrays arrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; return this; @@ -169,7 +170,7 @@ public List getArrayEnum() { @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayEnum(List arrayEnum) { + public void setArrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/EnumTest.java index 6636e85935ae..03161af964c3 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/EnumTest.java @@ -85,6 +85,7 @@ public static EnumStringEnum fromValue(String value) { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; + @javax.annotation.Nullable private EnumStringEnum enumString; /** @@ -125,6 +126,7 @@ public static EnumStringRequiredEnum fromValue(String value) { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** @@ -163,6 +165,7 @@ public static EnumIntegerEnum fromValue(Integer value) { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** @@ -201,24 +204,28 @@ public static EnumNumberEnum fromValue(Double value) { } public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; + @javax.annotation.Nullable private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; private JsonNullable outerEnum = JsonNullable.undefined(); public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER = "outerEnumInteger"; + @javax.annotation.Nullable private OuterEnumInteger outerEnumInteger; public static final String JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE = "outerEnumDefaultValue"; + @javax.annotation.Nullable private OuterEnumDefaultValue outerEnumDefaultValue = OuterEnumDefaultValue.PLACED; public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE = "outerEnumIntegerDefaultValue"; + @javax.annotation.Nullable private OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = OuterEnumIntegerDefaultValue.NUMBER_0; public EnumTest() { } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; @@ -239,12 +246,12 @@ public EnumStringEnum getEnumString() { @JsonProperty(JSON_PROPERTY_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumString(EnumStringEnum enumString) { + public void setEnumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; } - public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; return this; @@ -265,12 +272,12 @@ public EnumStringRequiredEnum getEnumStringRequired() { @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public void setEnumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; @@ -291,12 +298,12 @@ public EnumIntegerEnum getEnumInteger() { @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumInteger(EnumIntegerEnum enumInteger) { + public void setEnumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } - public EnumTest enumNumber(EnumNumberEnum enumNumber) { + public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; return this; @@ -317,12 +324,12 @@ public EnumNumberEnum getEnumNumber() { @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumNumber(EnumNumberEnum enumNumber) { + public void setEnumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } - public EnumTest outerEnum(OuterEnum outerEnum) { + public EnumTest outerEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = JsonNullable.of(outerEnum); return this; @@ -351,12 +358,12 @@ public void setOuterEnum_JsonNullable(JsonNullable outerEnum) { this.outerEnum = outerEnum; } - public void setOuterEnum(OuterEnum outerEnum) { + public void setOuterEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = JsonNullable.of(outerEnum); } - public EnumTest outerEnumInteger(OuterEnumInteger outerEnumInteger) { + public EnumTest outerEnumInteger(@javax.annotation.Nullable OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; return this; @@ -377,12 +384,12 @@ public OuterEnumInteger getOuterEnumInteger() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnumInteger(OuterEnumInteger outerEnumInteger) { + public void setOuterEnumInteger(@javax.annotation.Nullable OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; } - public EnumTest outerEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) { + public EnumTest outerEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; return this; @@ -403,12 +410,12 @@ public OuterEnumDefaultValue getOuterEnumDefaultValue() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) { + public void setOuterEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; } - public EnumTest outerEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { + public EnumTest outerEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; return this; @@ -429,7 +436,7 @@ public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { + public void setOuterEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java index bf54c7cb7188..2a973a01903f 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java @@ -37,6 +37,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FakeBigDecimalMap200Response { public static final String JSON_PROPERTY_SOME_ID = "someId"; + @javax.annotation.Nullable private BigDecimal someId; public static final String JSON_PROPERTY_SOME_MAP = "someMap"; @@ -45,7 +46,7 @@ public class FakeBigDecimalMap200Response { public FakeBigDecimalMap200Response() { } - public FakeBigDecimalMap200Response someId(BigDecimal someId) { + public FakeBigDecimalMap200Response someId(@javax.annotation.Nullable BigDecimal someId) { this.someId = someId; return this; @@ -66,12 +67,12 @@ public BigDecimal getSomeId() { @JsonProperty(JSON_PROPERTY_SOME_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSomeId(BigDecimal someId) { + public void setSomeId(@javax.annotation.Nullable BigDecimal someId) { this.someId = someId; } - public FakeBigDecimalMap200Response someMap(Map someMap) { + public FakeBigDecimalMap200Response someMap(@javax.annotation.Nullable Map someMap) { this.someMap = someMap; return this; @@ -100,7 +101,7 @@ public Map getSomeMap() { @JsonProperty(JSON_PROPERTY_SOME_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSomeMap(Map someMap) { + public void setSomeMap(@javax.annotation.Nullable Map someMap) { this.someMap = someMap; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/File.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/File.java index 9de94a7cf404..44461754857f 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/File.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/File.java @@ -32,12 +32,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class File { public static final String JSON_PROPERTY_SOURCE_U_R_I = "sourceURI"; + @javax.annotation.Nullable private String sourceURI; public File() { } - public File sourceURI(String sourceURI) { + public File sourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; return this; @@ -58,7 +59,7 @@ public String getSourceURI() { @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSourceURI(String sourceURI) { + public void setSourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 77d620b74980..aa2a022c859e 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -37,6 +37,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; + @javax.annotation.Nullable private File file; public static final String JSON_PROPERTY_FILES = "files"; @@ -45,7 +46,7 @@ public class FileSchemaTestClass { public FileSchemaTestClass() { } - public FileSchemaTestClass file(File file) { + public FileSchemaTestClass file(@javax.annotation.Nullable File file) { this.file = file; return this; @@ -66,12 +67,12 @@ public File getFile() { @JsonProperty(JSON_PROPERTY_FILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFile(File file) { + public void setFile(@javax.annotation.Nullable File file) { this.file = file; } - public FileSchemaTestClass files(List files) { + public FileSchemaTestClass files(@javax.annotation.Nullable List files) { this.files = files; return this; @@ -100,7 +101,7 @@ public List getFiles() { @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFiles(List files) { + public void setFiles(@javax.annotation.Nullable List files) { this.files = files; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Foo.java index 17eead741846..9b043bba3147 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Foo.java @@ -32,12 +32,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Foo { public static final String JSON_PROPERTY_BAR = "bar"; + @javax.annotation.Nullable private String bar = "bar"; public Foo() { } - public Foo bar(String bar) { + public Foo bar(@javax.annotation.Nullable String bar) { this.bar = bar; return this; @@ -58,7 +59,7 @@ public String getBar() { @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBar(String bar) { + public void setBar(@javax.annotation.Nullable String bar) { this.bar = bar; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index ec97470529ac..5486c67e4524 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -34,12 +34,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FooGetDefaultResponse { public static final String JSON_PROPERTY_STRING = "string"; + @javax.annotation.Nullable private Foo string; public FooGetDefaultResponse() { } - public FooGetDefaultResponse string(Foo string) { + public FooGetDefaultResponse string(@javax.annotation.Nullable Foo string) { this.string = string; return this; @@ -60,7 +61,7 @@ public Foo getString() { @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setString(Foo string) { + public void setString(@javax.annotation.Nullable Foo string) { this.string = string; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FormatTest.java index 4b4ba224f7e5..05484bb99490 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FormatTest.java @@ -53,57 +53,73 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; + @javax.annotation.Nullable private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; + @javax.annotation.Nullable private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; + @javax.annotation.Nullable private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; + @javax.annotation.Nonnull private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; + @javax.annotation.Nullable private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; + @javax.annotation.Nullable private Double _double; public static final String JSON_PROPERTY_DECIMAL = "decimal"; + @javax.annotation.Nullable private BigDecimal decimal; public static final String JSON_PROPERTY_STRING = "string"; + @javax.annotation.Nullable private String string; public static final String JSON_PROPERTY_BYTE = "byte"; + @javax.annotation.Nonnull private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; + @javax.annotation.Nullable private File binary; public static final String JSON_PROPERTY_DATE = "date"; + @javax.annotation.Nonnull private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; + @javax.annotation.Nonnull private String password; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS = "pattern_with_digits"; + @javax.annotation.Nullable private String patternWithDigits; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER = "pattern_with_digits_and_delimiter"; + @javax.annotation.Nullable private String patternWithDigitsAndDelimiter; public FormatTest() { } - public FormatTest integer(Integer integer) { + public FormatTest integer(@javax.annotation.Nullable Integer integer) { this.integer = integer; return this; @@ -126,12 +142,12 @@ public Integer getInteger() { @JsonProperty(JSON_PROPERTY_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInteger(Integer integer) { + public void setInteger(@javax.annotation.Nullable Integer integer) { this.integer = integer; } - public FormatTest int32(Integer int32) { + public FormatTest int32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; return this; @@ -154,12 +170,12 @@ public Integer getInt32() { @JsonProperty(JSON_PROPERTY_INT32) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInt32(Integer int32) { + public void setInt32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; } - public FormatTest int64(Long int64) { + public FormatTest int64(@javax.annotation.Nullable Long int64) { this.int64 = int64; return this; @@ -180,12 +196,12 @@ public Long getInt64() { @JsonProperty(JSON_PROPERTY_INT64) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInt64(Long int64) { + public void setInt64(@javax.annotation.Nullable Long int64) { this.int64 = int64; } - public FormatTest number(BigDecimal number) { + public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { this.number = number; return this; @@ -208,12 +224,12 @@ public BigDecimal getNumber() { @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNumber(BigDecimal number) { + public void setNumber(@javax.annotation.Nonnull BigDecimal number) { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@javax.annotation.Nullable Float _float) { this._float = _float; return this; @@ -236,12 +252,12 @@ public Float getFloat() { @JsonProperty(JSON_PROPERTY_FLOAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFloat(Float _float) { + public void setFloat(@javax.annotation.Nullable Float _float) { this._float = _float; } - public FormatTest _double(Double _double) { + public FormatTest _double(@javax.annotation.Nullable Double _double) { this._double = _double; return this; @@ -264,12 +280,12 @@ public Double getDouble() { @JsonProperty(JSON_PROPERTY_DOUBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDouble(Double _double) { + public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; } - public FormatTest decimal(BigDecimal decimal) { + public FormatTest decimal(@javax.annotation.Nullable BigDecimal decimal) { this.decimal = decimal; return this; @@ -290,12 +306,12 @@ public BigDecimal getDecimal() { @JsonProperty(JSON_PROPERTY_DECIMAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDecimal(BigDecimal decimal) { + public void setDecimal(@javax.annotation.Nullable BigDecimal decimal) { this.decimal = decimal; } - public FormatTest string(String string) { + public FormatTest string(@javax.annotation.Nullable String string) { this.string = string; return this; @@ -316,12 +332,12 @@ public String getString() { @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setString(String string) { + public void setString(@javax.annotation.Nullable String string) { this.string = string; } - public FormatTest _byte(byte[] _byte) { + public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; return this; @@ -342,12 +358,12 @@ public byte[] getByte() { @JsonProperty(JSON_PROPERTY_BYTE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setByte(byte[] _byte) { + public void setByte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; } - public FormatTest binary(File binary) { + public FormatTest binary(@javax.annotation.Nullable File binary) { this.binary = binary; return this; @@ -368,12 +384,12 @@ public File getBinary() { @JsonProperty(JSON_PROPERTY_BINARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBinary(File binary) { + public void setBinary(@javax.annotation.Nullable File binary) { this.binary = binary; } - public FormatTest date(LocalDate date) { + public FormatTest date(@javax.annotation.Nonnull LocalDate date) { this.date = date; return this; @@ -394,12 +410,12 @@ public LocalDate getDate() { @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDate(LocalDate date) { + public void setDate(@javax.annotation.Nonnull LocalDate date) { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; @@ -420,12 +436,12 @@ public OffsetDateTime getDateTime() { @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public FormatTest uuid(UUID uuid) { + public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; @@ -446,12 +462,12 @@ public UUID getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(UUID uuid) { + public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public FormatTest password(String password) { + public FormatTest password(@javax.annotation.Nonnull String password) { this.password = password; return this; @@ -472,12 +488,12 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nonnull String password) { this.password = password; } - public FormatTest patternWithDigits(String patternWithDigits) { + public FormatTest patternWithDigits(@javax.annotation.Nullable String patternWithDigits) { this.patternWithDigits = patternWithDigits; return this; @@ -498,12 +514,12 @@ public String getPatternWithDigits() { @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPatternWithDigits(String patternWithDigits) { + public void setPatternWithDigits(@javax.annotation.Nullable String patternWithDigits) { this.patternWithDigits = patternWithDigits; } - public FormatTest patternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) { + public FormatTest patternWithDigitsAndDelimiter(@javax.annotation.Nullable String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; return this; @@ -524,7 +540,7 @@ public String getPatternWithDigitsAndDelimiter() { @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPatternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) { + public void setPatternWithDigitsAndDelimiter(@javax.annotation.Nullable String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 4d59bc69a298..4e01941ad788 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -34,9 +34,11 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_FOO = "foo"; + @javax.annotation.Nullable private String foo; public HasOnlyReadOnly() { diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/HealthCheckResult.java index 37135023963e..cce15dade276 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -41,7 +41,7 @@ public class HealthCheckResult { public HealthCheckResult() { } - public HealthCheckResult nullableMessage(String nullableMessage) { + public HealthCheckResult nullableMessage(@javax.annotation.Nullable String nullableMessage) { this.nullableMessage = JsonNullable.of(nullableMessage); return this; @@ -70,7 +70,7 @@ public void setNullableMessage_JsonNullable(JsonNullable nullableMessage this.nullableMessage = nullableMessage; } - public void setNullableMessage(String nullableMessage) { + public void setNullableMessage(@javax.annotation.Nullable String nullableMessage) { this.nullableMessage = JsonNullable.of(nullableMessage); } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/MapTest.java index 2da180eee2e9..6b29c60431c3 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/MapTest.java @@ -86,7 +86,7 @@ public static InnerEnum fromValue(String value) { public MapTest() { } - public MapTest mapMapOfString(Map> mapMapOfString) { + public MapTest mapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; return this; @@ -115,12 +115,12 @@ public Map> getMapMapOfString() { @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapMapOfString(Map> mapMapOfString) { + public void setMapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } - public MapTest mapOfEnumString(Map mapOfEnumString) { + public MapTest mapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; return this; @@ -149,12 +149,12 @@ public Map getMapOfEnumString() { @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapOfEnumString(Map mapOfEnumString) { + public void setMapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } - public MapTest directMap(Map directMap) { + public MapTest directMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; return this; @@ -183,12 +183,12 @@ public Map getDirectMap() { @JsonProperty(JSON_PROPERTY_DIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDirectMap(Map directMap) { + public void setDirectMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; } - public MapTest indirectMap(Map indirectMap) { + public MapTest indirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; return this; @@ -217,7 +217,7 @@ public Map getIndirectMap() { @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIndirectMap(Map indirectMap) { + public void setIndirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index cfd1a6090ea8..50a9e255360a 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -39,9 +39,11 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; @@ -50,7 +52,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass { public MixedPropertiesAndAdditionalPropertiesClass() { } - public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; @@ -71,12 +73,12 @@ public UUID getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(UUID uuid) { + public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; @@ -97,12 +99,12 @@ public OffsetDateTime getDateTime() { @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + public MixedPropertiesAndAdditionalPropertiesClass map(@javax.annotation.Nullable Map map) { this.map = map; return this; @@ -131,7 +133,7 @@ public Map getMap() { @JsonProperty(JSON_PROPERTY_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMap(Map map) { + public void setMap(@javax.annotation.Nullable Map map) { this.map = map; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Model200Response.java index a98e38bb79f0..a122c28dcb80 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Model200Response.java @@ -34,15 +34,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; + @javax.annotation.Nullable private String propertyClass; public Model200Response() { } - public Model200Response name(Integer name) { + public Model200Response name(@javax.annotation.Nullable Integer name) { this.name = name; return this; @@ -63,12 +65,12 @@ public Integer getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(Integer name) { + public void setName(@javax.annotation.Nullable Integer name) { this.name = name; } - public Model200Response propertyClass(String propertyClass) { + public Model200Response propertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; @@ -89,7 +91,7 @@ public String getPropertyClass() { @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ModelApiResponse.java index daf05ddc1f29..4d7a0a48bda7 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -35,18 +35,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nullable private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nullable private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; + @javax.annotation.Nullable private String message; public ModelApiResponse() { } - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@javax.annotation.Nullable Integer code) { this.code = code; return this; @@ -67,12 +70,12 @@ public Integer getCode() { @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCode(Integer code) { + public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@javax.annotation.Nullable String type) { this.type = type; return this; @@ -93,12 +96,12 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { + public void setType(@javax.annotation.Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@javax.annotation.Nullable String message) { this.message = message; return this; @@ -119,7 +122,7 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ModelList.java index 4847e518b837..7b62bcb9b46d 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ModelList.java @@ -33,12 +33,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelList { public static final String JSON_PROPERTY_123LIST = "123-list"; + @javax.annotation.Nullable private String _123list; public ModelList() { } - public ModelList _123list(String _123list) { + public ModelList _123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; return this; @@ -59,7 +60,7 @@ public String get123list() { @JsonProperty(JSON_PROPERTY_123LIST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void set123list(String _123list) { + public void set123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ModelReturn.java index 35bb3782939f..55b0696657fc 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -33,12 +33,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; + @javax.annotation.Nullable private Integer _return; public ModelReturn() { } - public ModelReturn _return(Integer _return) { + public ModelReturn _return(@javax.annotation.Nullable Integer _return) { this._return = _return; return this; @@ -59,7 +60,7 @@ public Integer getReturn() { @JsonProperty(JSON_PROPERTY_RETURN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setReturn(Integer _return) { + public void setReturn(@javax.annotation.Nullable Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Name.java index 6d6553a9178e..b36df40711e4 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Name.java @@ -35,15 +35,19 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Name { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; + @javax.annotation.Nullable private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; + @javax.annotation.Nullable private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; + @javax.annotation.Nullable private Integer _123number; public Name() { @@ -59,7 +63,7 @@ public Name( this._123number = _123number; } - public Name name(Integer name) { + public Name name(@javax.annotation.Nonnull Integer name) { this.name = name; return this; @@ -80,7 +84,7 @@ public Integer getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(Integer name) { + public void setName(@javax.annotation.Nonnull Integer name) { this.name = name; } @@ -100,7 +104,7 @@ public Integer getSnakeCase() { - public Name property(String property) { + public Name property(@javax.annotation.Nullable String property) { this.property = property; return this; @@ -121,7 +125,7 @@ public String getProperty() { @JsonProperty(JSON_PROPERTY_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProperty(String property) { + public void setProperty(@javax.annotation.Nullable String property) { this.property = property; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/NullableClass.java index c0c0e1ca71b4..c0535bd8e150 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/NullableClass.java @@ -98,7 +98,7 @@ public NullableClass() { } - public NullableClass integerProp(Integer integerProp) { + public NullableClass integerProp(@javax.annotation.Nullable Integer integerProp) { this.integerProp = JsonNullable.of(integerProp); return this; @@ -127,12 +127,12 @@ public void setIntegerProp_JsonNullable(JsonNullable integerProp) { this.integerProp = integerProp; } - public void setIntegerProp(Integer integerProp) { + public void setIntegerProp(@javax.annotation.Nullable Integer integerProp) { this.integerProp = JsonNullable.of(integerProp); } - public NullableClass numberProp(BigDecimal numberProp) { + public NullableClass numberProp(@javax.annotation.Nullable BigDecimal numberProp) { this.numberProp = JsonNullable.of(numberProp); return this; @@ -161,12 +161,12 @@ public void setNumberProp_JsonNullable(JsonNullable numberProp) { this.numberProp = numberProp; } - public void setNumberProp(BigDecimal numberProp) { + public void setNumberProp(@javax.annotation.Nullable BigDecimal numberProp) { this.numberProp = JsonNullable.of(numberProp); } - public NullableClass booleanProp(Boolean booleanProp) { + public NullableClass booleanProp(@javax.annotation.Nullable Boolean booleanProp) { this.booleanProp = JsonNullable.of(booleanProp); return this; @@ -195,12 +195,12 @@ public void setBooleanProp_JsonNullable(JsonNullable booleanProp) { this.booleanProp = booleanProp; } - public void setBooleanProp(Boolean booleanProp) { + public void setBooleanProp(@javax.annotation.Nullable Boolean booleanProp) { this.booleanProp = JsonNullable.of(booleanProp); } - public NullableClass stringProp(String stringProp) { + public NullableClass stringProp(@javax.annotation.Nullable String stringProp) { this.stringProp = JsonNullable.of(stringProp); return this; @@ -229,12 +229,12 @@ public void setStringProp_JsonNullable(JsonNullable stringProp) { this.stringProp = stringProp; } - public void setStringProp(String stringProp) { + public void setStringProp(@javax.annotation.Nullable String stringProp) { this.stringProp = JsonNullable.of(stringProp); } - public NullableClass dateProp(LocalDate dateProp) { + public NullableClass dateProp(@javax.annotation.Nullable LocalDate dateProp) { this.dateProp = JsonNullable.of(dateProp); return this; @@ -263,12 +263,12 @@ public void setDateProp_JsonNullable(JsonNullable dateProp) { this.dateProp = dateProp; } - public void setDateProp(LocalDate dateProp) { + public void setDateProp(@javax.annotation.Nullable LocalDate dateProp) { this.dateProp = JsonNullable.of(dateProp); } - public NullableClass datetimeProp(OffsetDateTime datetimeProp) { + public NullableClass datetimeProp(@javax.annotation.Nullable OffsetDateTime datetimeProp) { this.datetimeProp = JsonNullable.of(datetimeProp); return this; @@ -297,12 +297,12 @@ public void setDatetimeProp_JsonNullable(JsonNullable datetimePr this.datetimeProp = datetimeProp; } - public void setDatetimeProp(OffsetDateTime datetimeProp) { + public void setDatetimeProp(@javax.annotation.Nullable OffsetDateTime datetimeProp) { this.datetimeProp = JsonNullable.of(datetimeProp); } - public NullableClass arrayNullableProp(List arrayNullableProp) { + public NullableClass arrayNullableProp(@javax.annotation.Nullable List arrayNullableProp) { this.arrayNullableProp = JsonNullable.>of(arrayNullableProp); return this; @@ -343,12 +343,12 @@ public void setArrayNullableProp_JsonNullable(JsonNullable> arrayNu this.arrayNullableProp = arrayNullableProp; } - public void setArrayNullableProp(List arrayNullableProp) { + public void setArrayNullableProp(@javax.annotation.Nullable List arrayNullableProp) { this.arrayNullableProp = JsonNullable.>of(arrayNullableProp); } - public NullableClass arrayAndItemsNullableProp(List arrayAndItemsNullableProp) { + public NullableClass arrayAndItemsNullableProp(@javax.annotation.Nullable List arrayAndItemsNullableProp) { this.arrayAndItemsNullableProp = JsonNullable.>of(arrayAndItemsNullableProp); return this; @@ -389,12 +389,12 @@ public void setArrayAndItemsNullableProp_JsonNullable(JsonNullable> this.arrayAndItemsNullableProp = arrayAndItemsNullableProp; } - public void setArrayAndItemsNullableProp(List arrayAndItemsNullableProp) { + public void setArrayAndItemsNullableProp(@javax.annotation.Nullable List arrayAndItemsNullableProp) { this.arrayAndItemsNullableProp = JsonNullable.>of(arrayAndItemsNullableProp); } - public NullableClass arrayItemsNullable(List arrayItemsNullable) { + public NullableClass arrayItemsNullable(@javax.annotation.Nullable List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; return this; @@ -423,12 +423,12 @@ public List getArrayItemsNullable() { @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayItemsNullable(List arrayItemsNullable) { + public void setArrayItemsNullable(@javax.annotation.Nullable List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; } - public NullableClass objectNullableProp(Map objectNullableProp) { + public NullableClass objectNullableProp(@javax.annotation.Nullable Map objectNullableProp) { this.objectNullableProp = JsonNullable.>of(objectNullableProp); return this; @@ -469,12 +469,12 @@ public void setObjectNullableProp_JsonNullable(JsonNullable> this.objectNullableProp = objectNullableProp; } - public void setObjectNullableProp(Map objectNullableProp) { + public void setObjectNullableProp(@javax.annotation.Nullable Map objectNullableProp) { this.objectNullableProp = JsonNullable.>of(objectNullableProp); } - public NullableClass objectAndItemsNullableProp(Map objectAndItemsNullableProp) { + public NullableClass objectAndItemsNullableProp(@javax.annotation.Nullable Map objectAndItemsNullableProp) { this.objectAndItemsNullableProp = JsonNullable.>of(objectAndItemsNullableProp); return this; @@ -515,12 +515,12 @@ public void setObjectAndItemsNullableProp_JsonNullable(JsonNullable objectAndItemsNullableProp) { + public void setObjectAndItemsNullableProp(@javax.annotation.Nullable Map objectAndItemsNullableProp) { this.objectAndItemsNullableProp = JsonNullable.>of(objectAndItemsNullableProp); } - public NullableClass objectItemsNullable(Map objectItemsNullable) { + public NullableClass objectItemsNullable(@javax.annotation.Nullable Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; return this; @@ -549,7 +549,7 @@ public Map getObjectItemsNullable() { @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setObjectItemsNullable(Map objectItemsNullable) { + public void setObjectItemsNullable(@javax.annotation.Nullable Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/NumberOnly.java index 60f3e67ea767..64c0b1679fc0 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -33,12 +33,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; + @javax.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } - public NumberOnly justNumber(BigDecimal justNumber) { + public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; @@ -59,7 +60,7 @@ public BigDecimal getJustNumber() { @JsonProperty(JSON_PROPERTY_JUST_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJustNumber(BigDecimal justNumber) { + public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index 6f55ec1f08df..5f92d8be53f3 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -40,12 +40,15 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ObjectWithDeprecatedFields { public static final String JSON_PROPERTY_UUID = "uuid"; + @javax.annotation.Nullable private String uuid; public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private BigDecimal id; public static final String JSON_PROPERTY_DEPRECATED_REF = "deprecatedRef"; + @javax.annotation.Nullable private DeprecatedObject deprecatedRef; public static final String JSON_PROPERTY_BARS = "bars"; @@ -54,7 +57,7 @@ public class ObjectWithDeprecatedFields { public ObjectWithDeprecatedFields() { } - public ObjectWithDeprecatedFields uuid(String uuid) { + public ObjectWithDeprecatedFields uuid(@javax.annotation.Nullable String uuid) { this.uuid = uuid; return this; @@ -75,12 +78,12 @@ public String getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(String uuid) { + public void setUuid(@javax.annotation.Nullable String uuid) { this.uuid = uuid; } - public ObjectWithDeprecatedFields id(BigDecimal id) { + public ObjectWithDeprecatedFields id(@javax.annotation.Nullable BigDecimal id) { this.id = id; return this; @@ -103,12 +106,12 @@ public BigDecimal getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(BigDecimal id) { + public void setId(@javax.annotation.Nullable BigDecimal id) { this.id = id; } - public ObjectWithDeprecatedFields deprecatedRef(DeprecatedObject deprecatedRef) { + public ObjectWithDeprecatedFields deprecatedRef(@javax.annotation.Nullable DeprecatedObject deprecatedRef) { this.deprecatedRef = deprecatedRef; return this; @@ -131,12 +134,12 @@ public DeprecatedObject getDeprecatedRef() { @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeprecatedRef(DeprecatedObject deprecatedRef) { + public void setDeprecatedRef(@javax.annotation.Nullable DeprecatedObject deprecatedRef) { this.deprecatedRef = deprecatedRef; } - public ObjectWithDeprecatedFields bars(List bars) { + public ObjectWithDeprecatedFields bars(@javax.annotation.Nullable List bars) { this.bars = bars; return this; @@ -167,7 +170,7 @@ public List getBars() { @JsonProperty(JSON_PROPERTY_BARS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBars(List bars) { + public void setBars(@javax.annotation.Nullable List bars) { this.bars = bars; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Order.java index 669f1525aef3..5f6ac44a173e 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Order.java @@ -38,15 +38,19 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Order { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; + @javax.annotation.Nullable private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; + @javax.annotation.Nullable private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; + @javax.annotation.Nullable private OffsetDateTime shipDate; /** @@ -87,15 +91,17 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @javax.annotation.Nullable private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; + @javax.annotation.Nullable private Boolean complete = false; public Order() { } - public Order id(Long id) { + public Order id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -116,12 +122,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@javax.annotation.Nullable Long petId) { this.petId = petId; return this; @@ -142,12 +148,12 @@ public Long getPetId() { @JsonProperty(JSON_PROPERTY_PET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPetId(Long petId) { + public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; return this; @@ -168,12 +174,12 @@ public Integer getQuantity() { @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setQuantity(Integer quantity) { + public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; @@ -194,12 +200,12 @@ public OffsetDateTime getShipDate() { @JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -220,12 +226,12 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } - public Order complete(Boolean complete) { + public Order complete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; return this; @@ -246,7 +252,7 @@ public Boolean isComplete() { @JsonProperty(JSON_PROPERTY_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setComplete(Boolean complete) { + public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/OuterComposite.java index 22ff0a97c53b..4a583c7fe20e 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -35,18 +35,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; + @javax.annotation.Nullable private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; + @javax.annotation.Nullable private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; + @javax.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } - public OuterComposite myNumber(BigDecimal myNumber) { + public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; @@ -67,12 +70,12 @@ public BigDecimal getMyNumber() { @JsonProperty(JSON_PROPERTY_MY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyNumber(BigDecimal myNumber) { + public void setMyNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; } - public OuterComposite myString(String myString) { + public OuterComposite myString(@javax.annotation.Nullable String myString) { this.myString = myString; return this; @@ -93,12 +96,12 @@ public String getMyString() { @JsonProperty(JSON_PROPERTY_MY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyString(String myString) { + public void setMyString(@javax.annotation.Nullable String myString) { this.myString = myString; } - public OuterComposite myBoolean(Boolean myBoolean) { + public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; return this; @@ -119,7 +122,7 @@ public Boolean isMyBoolean() { @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyBoolean(Boolean myBoolean) { + public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java index 9ce7c0db63b5..94a5b21b7549 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java @@ -33,12 +33,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class OuterObjectWithEnumProperty { public static final String JSON_PROPERTY_VALUE = "value"; + @javax.annotation.Nonnull private OuterEnumInteger value; public OuterObjectWithEnumProperty() { } - public OuterObjectWithEnumProperty value(OuterEnumInteger value) { + public OuterObjectWithEnumProperty value(@javax.annotation.Nonnull OuterEnumInteger value) { this.value = value; return this; @@ -59,7 +60,7 @@ public OuterEnumInteger getValue() { @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setValue(OuterEnumInteger value) { + public void setValue(@javax.annotation.Nonnull OuterEnumInteger value) { this.value = value; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ParentWithNullable.java index f981bc803c99..71bbc2897c13 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -82,6 +82,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nullable protected TypeEnum type; public static final String JSON_PROPERTY_NULLABLE_PROPERTY = "nullableProperty"; @@ -90,7 +91,7 @@ public static TypeEnum fromValue(String value) { public ParentWithNullable() { } - public ParentWithNullable type(TypeEnum type) { + public ParentWithNullable type(@javax.annotation.Nullable TypeEnum type) { this.type = type; return this; @@ -111,12 +112,12 @@ public TypeEnum getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(TypeEnum type) { + public void setType(@javax.annotation.Nullable TypeEnum type) { this.type = type; } - public ParentWithNullable nullableProperty(String nullableProperty) { + public ParentWithNullable nullableProperty(@javax.annotation.Nullable String nullableProperty) { this.nullableProperty = JsonNullable.of(nullableProperty); return this; @@ -145,7 +146,7 @@ public void setNullableProperty_JsonNullable(JsonNullable nullableProper this.nullableProperty = nullableProperty; } - public void setNullableProperty(String nullableProperty) { + public void setNullableProperty(@javax.annotation.Nullable String nullableProperty) { this.nullableProperty = JsonNullable.of(nullableProperty); } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Pet.java index 034c5d9ffd2a..908f071aadbf 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Pet.java @@ -45,12 +45,15 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Pet { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; + @javax.annotation.Nullable private Category category; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; @@ -97,12 +100,13 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } - public Pet id(Long id) { + public Pet id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -123,12 +127,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@javax.annotation.Nullable Category category) { this.category = category; return this; @@ -149,12 +153,12 @@ public Category getCategory() { @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCategory(Category category) { + public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; } - public Pet name(String name) { + public Pet name(@javax.annotation.Nonnull String name) { this.name = name; return this; @@ -175,12 +179,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } - public Pet photoUrls(Set photoUrls) { + public Pet photoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; return this; @@ -210,12 +214,12 @@ public Set getPhotoUrls() { @JsonDeserialize(as = LinkedHashSet.class) @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPhotoUrls(Set photoUrls) { + public void setPhotoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; } - public Pet tags(List tags) { + public Pet tags(@javax.annotation.Nullable List tags) { this.tags = tags; return this; @@ -244,12 +248,12 @@ public List getTags() { @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTags(List tags) { + public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -270,7 +274,7 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index f5d998943209..a9061ce9e56f 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -33,9 +33,11 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; + @javax.annotation.Nullable private String baz; public ReadOnlyFirst() { @@ -64,7 +66,7 @@ public String getBar() { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { this.baz = baz; return this; @@ -85,7 +87,7 @@ public String getBaz() { @JsonProperty(JSON_PROPERTY_BAZ) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBaz(String baz) { + public void setBaz(@javax.annotation.Nullable String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/SpecialModelName.java index 0c18219fbb32..0175e2af405a 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -33,12 +33,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; + @javax.annotation.Nullable private Long $specialPropertyName; public SpecialModelName() { } - public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + public SpecialModelName $specialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; return this; @@ -59,7 +60,7 @@ public SpecialModelName() { @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void set$SpecialPropertyName(Long $specialPropertyName) { + public void set$SpecialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Tag.java index 77581bbdf108..90566dc0b3f4 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Tag.java @@ -33,15 +33,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Tag { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public Tag() { } - public Tag id(Long id) { + public Tag id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -62,12 +64,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -88,7 +90,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index 053e66ae74af..1fdd9d15b72b 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -39,13 +39,14 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class TestInlineFreeformAdditionalPropertiesRequest extends HashMap { public static final String JSON_PROPERTY_SOME_PROPERTY = "someProperty"; + @javax.annotation.Nullable private String someProperty; public TestInlineFreeformAdditionalPropertiesRequest() { } - public TestInlineFreeformAdditionalPropertiesRequest someProperty(String someProperty) { + public TestInlineFreeformAdditionalPropertiesRequest someProperty(@javax.annotation.Nullable String someProperty) { this.someProperty = someProperty; return this; @@ -66,7 +67,7 @@ public String getSomeProperty() { @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSomeProperty(String someProperty) { + public void setSomeProperty(@javax.annotation.Nullable String someProperty) { this.someProperty = someProperty; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/User.java index 0cb0907886ee..387a4049bcff 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/User.java @@ -39,33 +39,41 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class User { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; + @javax.annotation.Nullable private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; + @javax.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; + @javax.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; + @javax.annotation.Nullable private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; + @javax.annotation.Nullable private String password; public static final String JSON_PROPERTY_PHONE = "phone"; + @javax.annotation.Nullable private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; + @javax.annotation.Nullable private Integer userStatus; public User() { } - public User id(Long id) { + public User id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -86,12 +94,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@javax.annotation.Nullable String username) { this.username = username; return this; @@ -112,12 +120,12 @@ public String getUsername() { @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsername(String username) { + public void setUsername(@javax.annotation.Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; return this; @@ -138,12 +146,12 @@ public String getFirstName() { @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFirstName(String firstName) { + public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; return this; @@ -164,12 +172,12 @@ public String getLastName() { @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLastName(String lastName) { + public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@javax.annotation.Nullable String email) { this.email = email; return this; @@ -190,12 +198,12 @@ public String getEmail() { @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEmail(String email) { + public void setEmail(@javax.annotation.Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@javax.annotation.Nullable String password) { this.password = password; return this; @@ -216,12 +224,12 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@javax.annotation.Nullable String phone) { this.phone = phone; return this; @@ -242,12 +250,12 @@ public String getPhone() { @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPhone(String phone) { + public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; return this; @@ -268,7 +276,7 @@ public Integer getUserStatus() { @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index 7d76015c18dc..63a3f904eef9 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -34,13 +34,14 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesAnyType extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public AdditionalPropertiesAnyType() { } - public AdditionalPropertiesAnyType name(String name) { + public AdditionalPropertiesAnyType name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -61,7 +62,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index b204848d8b07..8ec5951dce5e 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -35,13 +35,14 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesArray extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public AdditionalPropertiesArray() { } - public AdditionalPropertiesArray name(String name) { + public AdditionalPropertiesArray name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -62,7 +63,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 390a17d46c04..2e1a6fc42022 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -34,13 +34,14 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesBoolean extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public AdditionalPropertiesBoolean() { } - public AdditionalPropertiesBoolean name(String name) { + public AdditionalPropertiesBoolean name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -61,7 +62,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 7f8a1aab0163..f3d5bcd5ea4e 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -46,42 +46,53 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_STRING = "map_string"; + @javax.annotation.Nullable private Map mapString = new HashMap<>(); public static final String JSON_PROPERTY_MAP_NUMBER = "map_number"; + @javax.annotation.Nullable private Map mapNumber = new HashMap<>(); public static final String JSON_PROPERTY_MAP_INTEGER = "map_integer"; + @javax.annotation.Nullable private Map mapInteger = new HashMap<>(); public static final String JSON_PROPERTY_MAP_BOOLEAN = "map_boolean"; + @javax.annotation.Nullable private Map mapBoolean = new HashMap<>(); public static final String JSON_PROPERTY_MAP_ARRAY_INTEGER = "map_array_integer"; + @javax.annotation.Nullable private Map> mapArrayInteger = new HashMap<>(); public static final String JSON_PROPERTY_MAP_ARRAY_ANYTYPE = "map_array_anytype"; + @javax.annotation.Nullable private Map> mapArrayAnytype = new HashMap<>(); public static final String JSON_PROPERTY_MAP_MAP_STRING = "map_map_string"; + @javax.annotation.Nullable private Map> mapMapString = new HashMap<>(); public static final String JSON_PROPERTY_MAP_MAP_ANYTYPE = "map_map_anytype"; + @javax.annotation.Nullable private Map> mapMapAnytype = new HashMap<>(); public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1"; + @javax.annotation.Nullable private Object anytype1; public static final String JSON_PROPERTY_ANYTYPE2 = "anytype_2"; + @javax.annotation.Nullable private Object anytype2; public static final String JSON_PROPERTY_ANYTYPE3 = "anytype_3"; + @javax.annotation.Nullable private Object anytype3; public AdditionalPropertiesClass() { } - public AdditionalPropertiesClass mapString(Map mapString) { + public AdditionalPropertiesClass mapString(@javax.annotation.Nullable Map mapString) { this.mapString = mapString; return this; @@ -110,11 +121,11 @@ public Map getMapString() { @JsonProperty(JSON_PROPERTY_MAP_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapString(Map mapString) { + public void setMapString(@javax.annotation.Nullable Map mapString) { this.mapString = mapString; } - public AdditionalPropertiesClass mapNumber(Map mapNumber) { + public AdditionalPropertiesClass mapNumber(@javax.annotation.Nullable Map mapNumber) { this.mapNumber = mapNumber; return this; @@ -143,11 +154,11 @@ public Map getMapNumber() { @JsonProperty(JSON_PROPERTY_MAP_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapNumber(Map mapNumber) { + public void setMapNumber(@javax.annotation.Nullable Map mapNumber) { this.mapNumber = mapNumber; } - public AdditionalPropertiesClass mapInteger(Map mapInteger) { + public AdditionalPropertiesClass mapInteger(@javax.annotation.Nullable Map mapInteger) { this.mapInteger = mapInteger; return this; @@ -176,11 +187,11 @@ public Map getMapInteger() { @JsonProperty(JSON_PROPERTY_MAP_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapInteger(Map mapInteger) { + public void setMapInteger(@javax.annotation.Nullable Map mapInteger) { this.mapInteger = mapInteger; } - public AdditionalPropertiesClass mapBoolean(Map mapBoolean) { + public AdditionalPropertiesClass mapBoolean(@javax.annotation.Nullable Map mapBoolean) { this.mapBoolean = mapBoolean; return this; @@ -209,11 +220,11 @@ public Map getMapBoolean() { @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapBoolean(Map mapBoolean) { + public void setMapBoolean(@javax.annotation.Nullable Map mapBoolean) { this.mapBoolean = mapBoolean; } - public AdditionalPropertiesClass mapArrayInteger(Map> mapArrayInteger) { + public AdditionalPropertiesClass mapArrayInteger(@javax.annotation.Nullable Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; return this; @@ -242,11 +253,11 @@ public Map> getMapArrayInteger() { @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapArrayInteger(Map> mapArrayInteger) { + public void setMapArrayInteger(@javax.annotation.Nullable Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; } - public AdditionalPropertiesClass mapArrayAnytype(Map> mapArrayAnytype) { + public AdditionalPropertiesClass mapArrayAnytype(@javax.annotation.Nullable Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; return this; @@ -275,11 +286,11 @@ public Map> getMapArrayAnytype() { @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapArrayAnytype(Map> mapArrayAnytype) { + public void setMapArrayAnytype(@javax.annotation.Nullable Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; } - public AdditionalPropertiesClass mapMapString(Map> mapMapString) { + public AdditionalPropertiesClass mapMapString(@javax.annotation.Nullable Map> mapMapString) { this.mapMapString = mapMapString; return this; @@ -308,11 +319,11 @@ public Map> getMapMapString() { @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapMapString(Map> mapMapString) { + public void setMapMapString(@javax.annotation.Nullable Map> mapMapString) { this.mapMapString = mapMapString; } - public AdditionalPropertiesClass mapMapAnytype(Map> mapMapAnytype) { + public AdditionalPropertiesClass mapMapAnytype(@javax.annotation.Nullable Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; return this; @@ -341,11 +352,11 @@ public Map> getMapMapAnytype() { @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapMapAnytype(Map> mapMapAnytype) { + public void setMapMapAnytype(@javax.annotation.Nullable Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@javax.annotation.Nullable Object anytype1) { this.anytype1 = anytype1; return this; @@ -366,11 +377,11 @@ public Object getAnytype1() { @JsonProperty(JSON_PROPERTY_ANYTYPE1) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAnytype1(Object anytype1) { + public void setAnytype1(@javax.annotation.Nullable Object anytype1) { this.anytype1 = anytype1; } - public AdditionalPropertiesClass anytype2(Object anytype2) { + public AdditionalPropertiesClass anytype2(@javax.annotation.Nullable Object anytype2) { this.anytype2 = anytype2; return this; @@ -391,11 +402,11 @@ public Object getAnytype2() { @JsonProperty(JSON_PROPERTY_ANYTYPE2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAnytype2(Object anytype2) { + public void setAnytype2(@javax.annotation.Nullable Object anytype2) { this.anytype2 = anytype2; } - public AdditionalPropertiesClass anytype3(Object anytype3) { + public AdditionalPropertiesClass anytype3(@javax.annotation.Nullable Object anytype3) { this.anytype3 = anytype3; return this; @@ -416,7 +427,7 @@ public Object getAnytype3() { @JsonProperty(JSON_PROPERTY_ANYTYPE3) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAnytype3(Object anytype3) { + public void setAnytype3(@javax.annotation.Nullable Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 7eec9f5de9ac..98cf431e8f5b 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -34,13 +34,14 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesInteger extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public AdditionalPropertiesInteger() { } - public AdditionalPropertiesInteger name(String name) { + public AdditionalPropertiesInteger name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -61,7 +62,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index d417229395da..7240349efafe 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -35,13 +35,14 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesNumber extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public AdditionalPropertiesNumber() { } - public AdditionalPropertiesNumber name(String name) { + public AdditionalPropertiesNumber name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -62,7 +63,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index 8fdbd471ca5f..e69c6b1386c2 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -34,13 +34,14 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesObject extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public AdditionalPropertiesObject() { } - public AdditionalPropertiesObject name(String name) { + public AdditionalPropertiesObject name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -61,7 +62,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 892681299380..b173f0e3470b 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -34,13 +34,14 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesString extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public AdditionalPropertiesString() { } - public AdditionalPropertiesString name(String name) { + public AdditionalPropertiesString name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -61,7 +62,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Animal.java index 3fa04854385b..4ec137f4a1bb 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Animal.java @@ -47,15 +47,17 @@ public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; + @javax.annotation.Nonnull protected String className; public static final String JSON_PROPERTY_COLOR = "color"; + @javax.annotation.Nullable protected String color = "red"; public Animal() { } - public Animal className(String className) { + public Animal className(@javax.annotation.Nonnull String className) { this.className = className; return this; @@ -76,11 +78,11 @@ public String getClassName() { @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setClassName(String className) { + public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; } - public Animal color(String color) { + public Animal color(@javax.annotation.Nullable String color) { this.color = color; return this; @@ -101,7 +103,7 @@ public String getColor() { @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setColor(String color) { + public void setColor(@javax.annotation.Nullable String color) { this.color = color; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index bb5e1e064489..18a572cba180 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -36,12 +36,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayOfArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; + @javax.annotation.Nullable private List> arrayArrayNumber = new ArrayList<>(); public ArrayOfArrayOfNumberOnly() { } - public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + public ArrayOfArrayOfNumberOnly arrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; return this; @@ -70,7 +71,7 @@ public List> getArrayArrayNumber() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayNumber(List> arrayArrayNumber) { + public void setArrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index f807afcbd310..4aaa3f7fa616 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -36,12 +36,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; + @javax.annotation.Nullable private List arrayNumber = new ArrayList<>(); public ArrayOfNumberOnly() { } - public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + public ArrayOfNumberOnly arrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; return this; @@ -70,7 +71,7 @@ public List getArrayNumber() { @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayNumber(List arrayNumber) { + public void setArrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ArrayTest.java index 09f4fee4ae44..8229b3d48622 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -38,18 +38,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; + @javax.annotation.Nullable private List arrayOfString = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; + @javax.annotation.Nullable private List> arrayArrayOfInteger = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; + @javax.annotation.Nullable private List> arrayArrayOfModel = new ArrayList<>(); public ArrayTest() { } - public ArrayTest arrayOfString(List arrayOfString) { + public ArrayTest arrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; return this; @@ -78,11 +81,11 @@ public List getArrayOfString() { @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayOfString(List arrayOfString) { + public void setArrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; } - public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + public ArrayTest arrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; return this; @@ -111,11 +114,11 @@ public List> getArrayArrayOfInteger() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { + public void setArrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } - public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + public ArrayTest arrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; return this; @@ -144,7 +147,7 @@ public List> getArrayArrayOfModel() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayOfModel(List> arrayArrayOfModel) { + public void setArrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/BigCat.java index 2de9987aacb5..0f1e19d5cdd7 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/BigCat.java @@ -81,13 +81,14 @@ public static KindEnum fromValue(String value) { } public static final String JSON_PROPERTY_KIND = "kind"; + @javax.annotation.Nullable private KindEnum kind; public BigCat() { } - public BigCat kind(KindEnum kind) { + public BigCat kind(@javax.annotation.Nullable KindEnum kind) { this.kind = kind; return this; @@ -108,18 +109,18 @@ public KindEnum getKind() { @JsonProperty(JSON_PROPERTY_KIND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setKind(KindEnum kind) { + public void setKind(@javax.annotation.Nullable KindEnum kind) { this.kind = kind; } @Override - public BigCat className(String className) { + public BigCat className(@javax.annotation.Nonnull String className) { this.setClassName(className); return this; } @Override - public BigCat color(String color) { + public BigCat color(@javax.annotation.Nullable String color) { this.setColor(color); return this; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Capitalization.java index 43c174eab6c0..9ba3cfe4c4fb 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Capitalization.java @@ -37,27 +37,33 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Capitalization { public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; + @javax.annotation.Nullable private String smallCamel; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; + @javax.annotation.Nullable private String capitalCamel; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; + @javax.annotation.Nullable private String smallSnake; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; + @javax.annotation.Nullable private String capitalSnake; public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; + @javax.annotation.Nullable private String scAETHFlowPoints; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; + @javax.annotation.Nullable private String ATT_NAME; public Capitalization() { } - public Capitalization smallCamel(String smallCamel) { + public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; return this; @@ -78,11 +84,11 @@ public String getSmallCamel() { @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmallCamel(String smallCamel) { + public void setSmallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; } - public Capitalization capitalCamel(String capitalCamel) { + public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; return this; @@ -103,11 +109,11 @@ public String getCapitalCamel() { @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCapitalCamel(String capitalCamel) { + public void setCapitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; } - public Capitalization smallSnake(String smallSnake) { + public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; return this; @@ -128,11 +134,11 @@ public String getSmallSnake() { @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmallSnake(String smallSnake) { + public void setSmallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; } - public Capitalization capitalSnake(String capitalSnake) { + public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; return this; @@ -153,11 +159,11 @@ public String getCapitalSnake() { @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCapitalSnake(String capitalSnake) { + public void setCapitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; } - public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; return this; @@ -178,11 +184,11 @@ public String getScAETHFlowPoints() { @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setScAETHFlowPoints(String scAETHFlowPoints) { + public void setScAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } - public Capitalization ATT_NAME(String ATT_NAME) { + public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; return this; @@ -203,7 +209,7 @@ public String getATTNAME() { @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setATTNAME(String ATT_NAME) { + public void setATTNAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Cat.java index 3251850ded05..6d0b632824fb 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Cat.java @@ -45,13 +45,14 @@ public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; + @javax.annotation.Nullable protected Boolean declawed; public Cat() { } - public Cat declawed(Boolean declawed) { + public Cat declawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; return this; @@ -72,18 +73,18 @@ public Boolean getDeclawed() { @JsonProperty(JSON_PROPERTY_DECLAWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; } @Override - public Cat className(String className) { + public Cat className(@javax.annotation.Nonnull String className) { this.setClassName(className); return this; } @Override - public Cat color(String color) { + public Cat color(@javax.annotation.Nullable String color) { this.setColor(color); return this; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Category.java index 332aa92b9bd9..0c4ede2fd662 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Category.java @@ -33,15 +33,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Category { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private String name = "default-name"; public Category() { } - public Category id(Long id) { + public Category id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -62,11 +64,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@javax.annotation.Nonnull String name) { this.name = name; return this; @@ -87,7 +89,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ClassModel.java index eba862847664..15f206254637 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ClassModel.java @@ -32,12 +32,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ClassModel { public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; + @javax.annotation.Nullable private String propertyClass; public ClassModel() { } - public ClassModel propertyClass(String propertyClass) { + public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; @@ -58,7 +59,7 @@ public String getPropertyClass() { @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Client.java index a5f5a56f08f3..f9d821e024b9 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Client.java @@ -32,12 +32,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Client { public static final String JSON_PROPERTY_CLIENT = "client"; + @javax.annotation.Nullable private String client; public Client() { } - public Client client(String client) { + public Client client(@javax.annotation.Nullable String client) { this.client = client; return this; @@ -58,7 +59,7 @@ public String getClient() { @JsonProperty(JSON_PROPERTY_CLIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setClient(String client) { + public void setClient(@javax.annotation.Nullable String client) { this.client = client; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Dog.java index cf9d1537e128..8c5a24918453 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Dog.java @@ -42,13 +42,14 @@ public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; + @javax.annotation.Nullable private String breed; public Dog() { } - public Dog breed(String breed) { + public Dog breed(@javax.annotation.Nullable String breed) { this.breed = breed; return this; @@ -69,18 +70,18 @@ public String getBreed() { @JsonProperty(JSON_PROPERTY_BREED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBreed(String breed) { + public void setBreed(@javax.annotation.Nullable String breed) { this.breed = breed; } @Override - public Dog className(String className) { + public Dog className(@javax.annotation.Nonnull String className) { this.setClassName(className); return this; } @Override - public Dog color(String color) { + public Dog color(@javax.annotation.Nullable String color) { this.setColor(color); return this; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/EnumArrays.java index ed3d3768e625..356e89c0f0cf 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -71,6 +71,7 @@ public static JustSymbolEnum fromValue(String value) { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** @@ -109,12 +110,13 @@ public static ArrayEnumEnum fromValue(String value) { } public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; + @javax.annotation.Nullable private List arrayEnum = new ArrayList<>(); public EnumArrays() { } - public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; @@ -135,11 +137,11 @@ public JustSymbolEnum getJustSymbol() { @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJustSymbol(JustSymbolEnum justSymbol) { + public void setJustSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } - public EnumArrays arrayEnum(List arrayEnum) { + public EnumArrays arrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; return this; @@ -168,7 +170,7 @@ public List getArrayEnum() { @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayEnum(List arrayEnum) { + public void setArrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/EnumTest.java index 726fcf37f13d..2ecab850f0ea 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/EnumTest.java @@ -75,6 +75,7 @@ public static EnumStringEnum fromValue(String value) { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; + @javax.annotation.Nullable private EnumStringEnum enumString; /** @@ -115,6 +116,7 @@ public static EnumStringRequiredEnum fromValue(String value) { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** @@ -153,6 +155,7 @@ public static EnumIntegerEnum fromValue(Integer value) { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** @@ -191,15 +194,17 @@ public static EnumNumberEnum fromValue(Double value) { } public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; + @javax.annotation.Nullable private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; + @javax.annotation.Nullable private OuterEnum outerEnum; public EnumTest() { } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; @@ -220,11 +225,11 @@ public EnumStringEnum getEnumString() { @JsonProperty(JSON_PROPERTY_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumString(EnumStringEnum enumString) { + public void setEnumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; } - public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; return this; @@ -245,11 +250,11 @@ public EnumStringRequiredEnum getEnumStringRequired() { @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public void setEnumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; @@ -270,11 +275,11 @@ public EnumIntegerEnum getEnumInteger() { @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumInteger(EnumIntegerEnum enumInteger) { + public void setEnumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } - public EnumTest enumNumber(EnumNumberEnum enumNumber) { + public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; return this; @@ -295,11 +300,11 @@ public EnumNumberEnum getEnumNumber() { @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumNumber(EnumNumberEnum enumNumber) { + public void setEnumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } - public EnumTest outerEnum(OuterEnum outerEnum) { + public EnumTest outerEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; return this; @@ -320,7 +325,7 @@ public OuterEnum getOuterEnum() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnum(OuterEnum outerEnum) { + public void setOuterEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 98b4699c06ec..e83e1fe54dfb 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -37,15 +37,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; + @javax.annotation.Nullable private ModelFile _file; public static final String JSON_PROPERTY_FILES = "files"; + @javax.annotation.Nullable private List files = new ArrayList<>(); public FileSchemaTestClass() { } - public FileSchemaTestClass _file(ModelFile _file) { + public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { this._file = _file; return this; @@ -66,11 +68,11 @@ public ModelFile getFile() { @JsonProperty(JSON_PROPERTY_FILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFile(ModelFile _file) { + public void setFile(@javax.annotation.Nullable ModelFile _file) { this._file = _file; } - public FileSchemaTestClass files(List files) { + public FileSchemaTestClass files(@javax.annotation.Nullable List files) { this.files = files; return this; @@ -99,7 +101,7 @@ public List getFiles() { @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFiles(List files) { + public void setFiles(@javax.annotation.Nullable List files) { this.files = files; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/FormatTest.java index 91fe0a861777..ddc65ba4ef60 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/FormatTest.java @@ -51,51 +51,65 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; + @javax.annotation.Nullable private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; + @javax.annotation.Nullable private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; + @javax.annotation.Nullable private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; + @javax.annotation.Nonnull private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; + @javax.annotation.Nullable private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; + @javax.annotation.Nullable private Double _double; public static final String JSON_PROPERTY_STRING = "string"; + @javax.annotation.Nullable private String string; public static final String JSON_PROPERTY_BYTE = "byte"; + @javax.annotation.Nonnull private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; + @javax.annotation.Nullable private File binary; public static final String JSON_PROPERTY_DATE = "date"; + @javax.annotation.Nonnull private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; + @javax.annotation.Nonnull private String password; public static final String JSON_PROPERTY_BIG_DECIMAL = "BigDecimal"; + @javax.annotation.Nullable private BigDecimal bigDecimal; public FormatTest() { } - public FormatTest integer(Integer integer) { + public FormatTest integer(@javax.annotation.Nullable Integer integer) { this.integer = integer; return this; @@ -118,11 +132,11 @@ public Integer getInteger() { @JsonProperty(JSON_PROPERTY_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInteger(Integer integer) { + public void setInteger(@javax.annotation.Nullable Integer integer) { this.integer = integer; } - public FormatTest int32(Integer int32) { + public FormatTest int32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; return this; @@ -145,11 +159,11 @@ public Integer getInt32() { @JsonProperty(JSON_PROPERTY_INT32) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInt32(Integer int32) { + public void setInt32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; } - public FormatTest int64(Long int64) { + public FormatTest int64(@javax.annotation.Nullable Long int64) { this.int64 = int64; return this; @@ -170,11 +184,11 @@ public Long getInt64() { @JsonProperty(JSON_PROPERTY_INT64) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInt64(Long int64) { + public void setInt64(@javax.annotation.Nullable Long int64) { this.int64 = int64; } - public FormatTest number(BigDecimal number) { + public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { this.number = number; return this; @@ -197,11 +211,11 @@ public BigDecimal getNumber() { @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNumber(BigDecimal number) { + public void setNumber(@javax.annotation.Nonnull BigDecimal number) { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@javax.annotation.Nullable Float _float) { this._float = _float; return this; @@ -224,11 +238,11 @@ public Float getFloat() { @JsonProperty(JSON_PROPERTY_FLOAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFloat(Float _float) { + public void setFloat(@javax.annotation.Nullable Float _float) { this._float = _float; } - public FormatTest _double(Double _double) { + public FormatTest _double(@javax.annotation.Nullable Double _double) { this._double = _double; return this; @@ -251,11 +265,11 @@ public Double getDouble() { @JsonProperty(JSON_PROPERTY_DOUBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDouble(Double _double) { + public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; } - public FormatTest string(String string) { + public FormatTest string(@javax.annotation.Nullable String string) { this.string = string; return this; @@ -276,11 +290,11 @@ public String getString() { @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setString(String string) { + public void setString(@javax.annotation.Nullable String string) { this.string = string; } - public FormatTest _byte(byte[] _byte) { + public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; return this; @@ -301,11 +315,11 @@ public byte[] getByte() { @JsonProperty(JSON_PROPERTY_BYTE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setByte(byte[] _byte) { + public void setByte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; } - public FormatTest binary(File binary) { + public FormatTest binary(@javax.annotation.Nullable File binary) { this.binary = binary; return this; @@ -326,11 +340,11 @@ public File getBinary() { @JsonProperty(JSON_PROPERTY_BINARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBinary(File binary) { + public void setBinary(@javax.annotation.Nullable File binary) { this.binary = binary; } - public FormatTest date(LocalDate date) { + public FormatTest date(@javax.annotation.Nonnull LocalDate date) { this.date = date; return this; @@ -351,11 +365,11 @@ public LocalDate getDate() { @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDate(LocalDate date) { + public void setDate(@javax.annotation.Nonnull LocalDate date) { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; @@ -376,11 +390,11 @@ public OffsetDateTime getDateTime() { @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public FormatTest uuid(UUID uuid) { + public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; @@ -401,11 +415,11 @@ public UUID getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(UUID uuid) { + public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public FormatTest password(String password) { + public FormatTest password(@javax.annotation.Nonnull String password) { this.password = password; return this; @@ -426,11 +440,11 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nonnull String password) { this.password = password; } - public FormatTest bigDecimal(BigDecimal bigDecimal) { + public FormatTest bigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; @@ -451,7 +465,7 @@ public BigDecimal getBigDecimal() { @JsonProperty(JSON_PROPERTY_BIG_DECIMAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBigDecimal(BigDecimal bigDecimal) { + public void setBigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 89f9de6d3d41..ce79f11f55ac 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -34,9 +34,11 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_FOO = "foo"; + @javax.annotation.Nullable private String foo; public HasOnlyReadOnly() { diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/MapTest.java index 1ae40680e29e..34ba6c76e66d 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/MapTest.java @@ -37,6 +37,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; + @javax.annotation.Nullable private Map> mapMapOfString = new HashMap<>(); /** @@ -75,18 +76,21 @@ public static InnerEnum fromValue(String value) { } public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; + @javax.annotation.Nullable private Map mapOfEnumString = new HashMap<>(); public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; + @javax.annotation.Nullable private Map directMap = new HashMap<>(); public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; + @javax.annotation.Nullable private Map indirectMap = new HashMap<>(); public MapTest() { } - public MapTest mapMapOfString(Map> mapMapOfString) { + public MapTest mapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; return this; @@ -115,11 +119,11 @@ public Map> getMapMapOfString() { @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapMapOfString(Map> mapMapOfString) { + public void setMapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } - public MapTest mapOfEnumString(Map mapOfEnumString) { + public MapTest mapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; return this; @@ -148,11 +152,11 @@ public Map getMapOfEnumString() { @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapOfEnumString(Map mapOfEnumString) { + public void setMapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } - public MapTest directMap(Map directMap) { + public MapTest directMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; return this; @@ -181,11 +185,11 @@ public Map getDirectMap() { @JsonProperty(JSON_PROPERTY_DIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDirectMap(Map directMap) { + public void setDirectMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; } - public MapTest indirectMap(Map indirectMap) { + public MapTest indirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; return this; @@ -214,7 +218,7 @@ public Map getIndirectMap() { @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIndirectMap(Map indirectMap) { + public void setIndirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index a9cf93ce52e5..f1e0cc2daa7b 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -39,18 +39,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; + @javax.annotation.Nullable private Map map = new HashMap<>(); public MixedPropertiesAndAdditionalPropertiesClass() { } - public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; @@ -71,11 +74,11 @@ public UUID getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(UUID uuid) { + public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; @@ -96,11 +99,11 @@ public OffsetDateTime getDateTime() { @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + public MixedPropertiesAndAdditionalPropertiesClass map(@javax.annotation.Nullable Map map) { this.map = map; return this; @@ -129,7 +132,7 @@ public Map getMap() { @JsonProperty(JSON_PROPERTY_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMap(Map map) { + public void setMap(@javax.annotation.Nullable Map map) { this.map = map; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Model200Response.java index 9dd501519d94..81203bc5fec5 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Model200Response.java @@ -34,15 +34,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; + @javax.annotation.Nullable private String propertyClass; public Model200Response() { } - public Model200Response name(Integer name) { + public Model200Response name(@javax.annotation.Nullable Integer name) { this.name = name; return this; @@ -63,11 +65,11 @@ public Integer getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(Integer name) { + public void setName(@javax.annotation.Nullable Integer name) { this.name = name; } - public Model200Response propertyClass(String propertyClass) { + public Model200Response propertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; @@ -88,7 +90,7 @@ public String getPropertyClass() { @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 06f950e61809..8295041ee48a 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -35,18 +35,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nullable private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nullable private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; + @javax.annotation.Nullable private String message; public ModelApiResponse() { } - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@javax.annotation.Nullable Integer code) { this.code = code; return this; @@ -67,11 +70,11 @@ public Integer getCode() { @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCode(Integer code) { + public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@javax.annotation.Nullable String type) { this.type = type; return this; @@ -92,11 +95,11 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { + public void setType(@javax.annotation.Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@javax.annotation.Nullable String message) { this.message = message; return this; @@ -117,7 +120,7 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelFile.java index c57b589f9a93..5d4793a2e437 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelFile.java @@ -33,12 +33,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelFile { public static final String JSON_PROPERTY_SOURCE_U_R_I = "sourceURI"; + @javax.annotation.Nullable private String sourceURI; public ModelFile() { } - public ModelFile sourceURI(String sourceURI) { + public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; return this; @@ -59,7 +60,7 @@ public String getSourceURI() { @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSourceURI(String sourceURI) { + public void setSourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelList.java index 3dc09aa2be76..02dcc4b37e64 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelList.java @@ -33,12 +33,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelList { public static final String JSON_PROPERTY_123LIST = "123-list"; + @javax.annotation.Nullable private String _123list; public ModelList() { } - public ModelList _123list(String _123list) { + public ModelList _123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; return this; @@ -59,7 +60,7 @@ public String get123list() { @JsonProperty(JSON_PROPERTY_123LIST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void set123list(String _123list) { + public void set123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelReturn.java index 2d5696ac318a..d38260eee6db 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -33,12 +33,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; + @javax.annotation.Nullable private Integer _return; public ModelReturn() { } - public ModelReturn _return(Integer _return) { + public ModelReturn _return(@javax.annotation.Nullable Integer _return) { this._return = _return; return this; @@ -59,7 +60,7 @@ public Integer getReturn() { @JsonProperty(JSON_PROPERTY_RETURN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setReturn(Integer _return) { + public void setReturn(@javax.annotation.Nullable Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Name.java index a45307c099a0..c94d16233849 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Name.java @@ -35,15 +35,19 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Name { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; + @javax.annotation.Nullable private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; + @javax.annotation.Nullable private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; + @javax.annotation.Nullable private Integer _123number; public Name() { @@ -61,7 +65,7 @@ public Name( this._123number = _123number; } - public Name name(Integer name) { + public Name name(@javax.annotation.Nonnull Integer name) { this.name = name; return this; @@ -82,7 +86,7 @@ public Integer getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(Integer name) { + public void setName(@javax.annotation.Nonnull Integer name) { this.name = name; } @@ -100,7 +104,7 @@ public Integer getSnakeCase() { - public Name property(String property) { + public Name property(@javax.annotation.Nullable String property) { this.property = property; return this; @@ -121,7 +125,7 @@ public String getProperty() { @JsonProperty(JSON_PROPERTY_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProperty(String property) { + public void setProperty(@javax.annotation.Nullable String property) { this.property = property; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/NumberOnly.java index ba7b026b3f6e..43f6d3fa6a62 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -33,12 +33,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; + @javax.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } - public NumberOnly justNumber(BigDecimal justNumber) { + public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; @@ -59,7 +60,7 @@ public BigDecimal getJustNumber() { @JsonProperty(JSON_PROPERTY_JUST_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJustNumber(BigDecimal justNumber) { + public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Order.java index 31a2cd4aada5..7915f35bce17 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Order.java @@ -38,15 +38,19 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Order { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; + @javax.annotation.Nullable private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; + @javax.annotation.Nullable private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; + @javax.annotation.Nullable private OffsetDateTime shipDate; /** @@ -87,15 +91,17 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @javax.annotation.Nullable private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; + @javax.annotation.Nullable private Boolean complete = false; public Order() { } - public Order id(Long id) { + public Order id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -116,11 +122,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@javax.annotation.Nullable Long petId) { this.petId = petId; return this; @@ -141,11 +147,11 @@ public Long getPetId() { @JsonProperty(JSON_PROPERTY_PET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPetId(Long petId) { + public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; return this; @@ -166,11 +172,11 @@ public Integer getQuantity() { @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setQuantity(Integer quantity) { + public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; @@ -191,11 +197,11 @@ public OffsetDateTime getShipDate() { @JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -216,11 +222,11 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } - public Order complete(Boolean complete) { + public Order complete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; return this; @@ -241,7 +247,7 @@ public Boolean getComplete() { @JsonProperty(JSON_PROPERTY_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setComplete(Boolean complete) { + public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/OuterComposite.java index 37a130288c84..0134a6b50570 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -35,18 +35,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; + @javax.annotation.Nullable private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; + @javax.annotation.Nullable private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; + @javax.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } - public OuterComposite myNumber(BigDecimal myNumber) { + public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; @@ -67,11 +70,11 @@ public BigDecimal getMyNumber() { @JsonProperty(JSON_PROPERTY_MY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyNumber(BigDecimal myNumber) { + public void setMyNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; } - public OuterComposite myString(String myString) { + public OuterComposite myString(@javax.annotation.Nullable String myString) { this.myString = myString; return this; @@ -92,11 +95,11 @@ public String getMyString() { @JsonProperty(JSON_PROPERTY_MY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyString(String myString) { + public void setMyString(@javax.annotation.Nullable String myString) { this.myString = myString; } - public OuterComposite myBoolean(Boolean myBoolean) { + public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; return this; @@ -117,7 +120,7 @@ public Boolean getMyBoolean() { @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyBoolean(Boolean myBoolean) { + public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Pet.java index 70732aa1ce55..2805d79e368d 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Pet.java @@ -45,18 +45,23 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Pet { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; + @javax.annotation.Nullable private Category category; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; + @javax.annotation.Nonnull private Set photoUrls = new LinkedHashSet<>(); public static final String JSON_PROPERTY_TAGS = "tags"; + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** @@ -97,12 +102,13 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } - public Pet id(Long id) { + public Pet id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -123,11 +129,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@javax.annotation.Nullable Category category) { this.category = category; return this; @@ -148,11 +154,11 @@ public Category getCategory() { @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCategory(Category category) { + public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; } - public Pet name(String name) { + public Pet name(@javax.annotation.Nonnull String name) { this.name = name; return this; @@ -173,11 +179,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } - public Pet photoUrls(Set photoUrls) { + public Pet photoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; return this; @@ -207,11 +213,11 @@ public Set getPhotoUrls() { @JsonDeserialize(as = LinkedHashSet.class) @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPhotoUrls(Set photoUrls) { + public void setPhotoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; } - public Pet tags(List tags) { + public Pet tags(@javax.annotation.Nullable List tags) { this.tags = tags; return this; @@ -240,11 +246,11 @@ public List getTags() { @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTags(List tags) { + public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -265,7 +271,7 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 0b012bd9c77d..b614b554c64a 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -33,9 +33,11 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; + @javax.annotation.Nullable private String baz; public ReadOnlyFirst() { @@ -65,7 +67,7 @@ public String getBar() { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { this.baz = baz; return this; @@ -86,7 +88,7 @@ public String getBaz() { @JsonProperty(JSON_PROPERTY_BAZ) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBaz(String baz) { + public void setBaz(@javax.annotation.Nullable String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/SpecialModelName.java index 313df185b5f9..8148d170cb3e 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -33,12 +33,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; + @javax.annotation.Nullable private Long $specialPropertyName; public SpecialModelName() { } - public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + public SpecialModelName $specialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; return this; @@ -59,7 +60,7 @@ public SpecialModelName() { @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void set$SpecialPropertyName(Long $specialPropertyName) { + public void set$SpecialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Tag.java index 79472451f59a..17cd5fa1190b 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Tag.java @@ -33,15 +33,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Tag { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public Tag() { } - public Tag id(Long id) { + public Tag id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -62,11 +64,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -87,7 +89,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index 0be3da1e6a09..1dfc87bc2473 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -40,24 +40,29 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class TypeHolderDefault { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; + @javax.annotation.Nonnull private String stringItem = "what"; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; + @javax.annotation.Nonnull private BigDecimal numberItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; + @javax.annotation.Nonnull private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; + @javax.annotation.Nonnull private Boolean boolItem = true; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; + @javax.annotation.Nonnull private List arrayItem = new ArrayList<>(); public TypeHolderDefault() { } - public TypeHolderDefault stringItem(String stringItem) { + public TypeHolderDefault stringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; return this; @@ -78,11 +83,11 @@ public String getStringItem() { @JsonProperty(JSON_PROPERTY_STRING_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStringItem(String stringItem) { + public void setStringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; } - public TypeHolderDefault numberItem(BigDecimal numberItem) { + public TypeHolderDefault numberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; return this; @@ -103,11 +108,11 @@ public BigDecimal getNumberItem() { @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNumberItem(BigDecimal numberItem) { + public void setNumberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; } - public TypeHolderDefault integerItem(Integer integerItem) { + public TypeHolderDefault integerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; return this; @@ -128,11 +133,11 @@ public Integer getIntegerItem() { @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setIntegerItem(Integer integerItem) { + public void setIntegerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; } - public TypeHolderDefault boolItem(Boolean boolItem) { + public TypeHolderDefault boolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; return this; @@ -153,11 +158,11 @@ public Boolean getBoolItem() { @JsonProperty(JSON_PROPERTY_BOOL_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBoolItem(Boolean boolItem) { + public void setBoolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; } - public TypeHolderDefault arrayItem(List arrayItem) { + public TypeHolderDefault arrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; return this; @@ -186,7 +191,7 @@ public List getArrayItem() { @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setArrayItem(List arrayItem) { + public void setArrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/TypeHolderExample.java index d497344ef9a6..cc75fb24f60a 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -41,27 +41,33 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class TypeHolderExample { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; + @javax.annotation.Nonnull private String stringItem; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; + @javax.annotation.Nonnull private BigDecimal numberItem; public static final String JSON_PROPERTY_FLOAT_ITEM = "float_item"; + @javax.annotation.Nonnull private Float floatItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; + @javax.annotation.Nonnull private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; + @javax.annotation.Nonnull private Boolean boolItem; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; + @javax.annotation.Nonnull private List arrayItem = new ArrayList<>(); public TypeHolderExample() { } - public TypeHolderExample stringItem(String stringItem) { + public TypeHolderExample stringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; return this; @@ -82,11 +88,11 @@ public String getStringItem() { @JsonProperty(JSON_PROPERTY_STRING_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStringItem(String stringItem) { + public void setStringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; } - public TypeHolderExample numberItem(BigDecimal numberItem) { + public TypeHolderExample numberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; return this; @@ -107,11 +113,11 @@ public BigDecimal getNumberItem() { @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNumberItem(BigDecimal numberItem) { + public void setNumberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; } - public TypeHolderExample floatItem(Float floatItem) { + public TypeHolderExample floatItem(@javax.annotation.Nonnull Float floatItem) { this.floatItem = floatItem; return this; @@ -132,11 +138,11 @@ public Float getFloatItem() { @JsonProperty(JSON_PROPERTY_FLOAT_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFloatItem(Float floatItem) { + public void setFloatItem(@javax.annotation.Nonnull Float floatItem) { this.floatItem = floatItem; } - public TypeHolderExample integerItem(Integer integerItem) { + public TypeHolderExample integerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; return this; @@ -157,11 +163,11 @@ public Integer getIntegerItem() { @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setIntegerItem(Integer integerItem) { + public void setIntegerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; } - public TypeHolderExample boolItem(Boolean boolItem) { + public TypeHolderExample boolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; return this; @@ -182,11 +188,11 @@ public Boolean getBoolItem() { @JsonProperty(JSON_PROPERTY_BOOL_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBoolItem(Boolean boolItem) { + public void setBoolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; } - public TypeHolderExample arrayItem(List arrayItem) { + public TypeHolderExample arrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; return this; @@ -215,7 +221,7 @@ public List getArrayItem() { @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setArrayItem(List arrayItem) { + public void setArrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/User.java index e6af180ceff6..26008e500259 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/User.java @@ -39,33 +39,41 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class User { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; + @javax.annotation.Nullable private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; + @javax.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; + @javax.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; + @javax.annotation.Nullable private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; + @javax.annotation.Nullable private String password; public static final String JSON_PROPERTY_PHONE = "phone"; + @javax.annotation.Nullable private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; + @javax.annotation.Nullable private Integer userStatus; public User() { } - public User id(Long id) { + public User id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -86,11 +94,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@javax.annotation.Nullable String username) { this.username = username; return this; @@ -111,11 +119,11 @@ public String getUsername() { @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsername(String username) { + public void setUsername(@javax.annotation.Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; return this; @@ -136,11 +144,11 @@ public String getFirstName() { @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFirstName(String firstName) { + public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; return this; @@ -161,11 +169,11 @@ public String getLastName() { @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLastName(String lastName) { + public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@javax.annotation.Nullable String email) { this.email = email; return this; @@ -186,11 +194,11 @@ public String getEmail() { @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEmail(String email) { + public void setEmail(@javax.annotation.Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@javax.annotation.Nullable String password) { this.password = password; return this; @@ -211,11 +219,11 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@javax.annotation.Nullable String phone) { this.phone = phone; return this; @@ -236,11 +244,11 @@ public String getPhone() { @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPhone(String phone) { + public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; return this; @@ -261,7 +269,7 @@ public Integer getUserStatus() { @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/XmlItem.java index f4de622204f6..a6656d6d7e71 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/XmlItem.java @@ -64,96 +64,125 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class XmlItem { public static final String JSON_PROPERTY_ATTRIBUTE_STRING = "attribute_string"; + @javax.annotation.Nullable private String attributeString; public static final String JSON_PROPERTY_ATTRIBUTE_NUMBER = "attribute_number"; + @javax.annotation.Nullable private BigDecimal attributeNumber; public static final String JSON_PROPERTY_ATTRIBUTE_INTEGER = "attribute_integer"; + @javax.annotation.Nullable private Integer attributeInteger; public static final String JSON_PROPERTY_ATTRIBUTE_BOOLEAN = "attribute_boolean"; + @javax.annotation.Nullable private Boolean attributeBoolean; public static final String JSON_PROPERTY_WRAPPED_ARRAY = "wrapped_array"; + @javax.annotation.Nullable private List wrappedArray = new ArrayList<>(); public static final String JSON_PROPERTY_NAME_STRING = "name_string"; + @javax.annotation.Nullable private String nameString; public static final String JSON_PROPERTY_NAME_NUMBER = "name_number"; + @javax.annotation.Nullable private BigDecimal nameNumber; public static final String JSON_PROPERTY_NAME_INTEGER = "name_integer"; + @javax.annotation.Nullable private Integer nameInteger; public static final String JSON_PROPERTY_NAME_BOOLEAN = "name_boolean"; + @javax.annotation.Nullable private Boolean nameBoolean; public static final String JSON_PROPERTY_NAME_ARRAY = "name_array"; + @javax.annotation.Nullable private List nameArray = new ArrayList<>(); public static final String JSON_PROPERTY_NAME_WRAPPED_ARRAY = "name_wrapped_array"; + @javax.annotation.Nullable private List nameWrappedArray = new ArrayList<>(); public static final String JSON_PROPERTY_PREFIX_STRING = "prefix_string"; + @javax.annotation.Nullable private String prefixString; public static final String JSON_PROPERTY_PREFIX_NUMBER = "prefix_number"; + @javax.annotation.Nullable private BigDecimal prefixNumber; public static final String JSON_PROPERTY_PREFIX_INTEGER = "prefix_integer"; + @javax.annotation.Nullable private Integer prefixInteger; public static final String JSON_PROPERTY_PREFIX_BOOLEAN = "prefix_boolean"; + @javax.annotation.Nullable private Boolean prefixBoolean; public static final String JSON_PROPERTY_PREFIX_ARRAY = "prefix_array"; + @javax.annotation.Nullable private List prefixArray = new ArrayList<>(); public static final String JSON_PROPERTY_PREFIX_WRAPPED_ARRAY = "prefix_wrapped_array"; + @javax.annotation.Nullable private List prefixWrappedArray = new ArrayList<>(); public static final String JSON_PROPERTY_NAMESPACE_STRING = "namespace_string"; + @javax.annotation.Nullable private String namespaceString; public static final String JSON_PROPERTY_NAMESPACE_NUMBER = "namespace_number"; + @javax.annotation.Nullable private BigDecimal namespaceNumber; public static final String JSON_PROPERTY_NAMESPACE_INTEGER = "namespace_integer"; + @javax.annotation.Nullable private Integer namespaceInteger; public static final String JSON_PROPERTY_NAMESPACE_BOOLEAN = "namespace_boolean"; + @javax.annotation.Nullable private Boolean namespaceBoolean; public static final String JSON_PROPERTY_NAMESPACE_ARRAY = "namespace_array"; + @javax.annotation.Nullable private List namespaceArray = new ArrayList<>(); public static final String JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY = "namespace_wrapped_array"; + @javax.annotation.Nullable private List namespaceWrappedArray = new ArrayList<>(); public static final String JSON_PROPERTY_PREFIX_NS_STRING = "prefix_ns_string"; + @javax.annotation.Nullable private String prefixNsString; public static final String JSON_PROPERTY_PREFIX_NS_NUMBER = "prefix_ns_number"; + @javax.annotation.Nullable private BigDecimal prefixNsNumber; public static final String JSON_PROPERTY_PREFIX_NS_INTEGER = "prefix_ns_integer"; + @javax.annotation.Nullable private Integer prefixNsInteger; public static final String JSON_PROPERTY_PREFIX_NS_BOOLEAN = "prefix_ns_boolean"; + @javax.annotation.Nullable private Boolean prefixNsBoolean; public static final String JSON_PROPERTY_PREFIX_NS_ARRAY = "prefix_ns_array"; + @javax.annotation.Nullable private List prefixNsArray = new ArrayList<>(); public static final String JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY = "prefix_ns_wrapped_array"; + @javax.annotation.Nullable private List prefixNsWrappedArray = new ArrayList<>(); public XmlItem() { } - public XmlItem attributeString(String attributeString) { + public XmlItem attributeString(@javax.annotation.Nullable String attributeString) { this.attributeString = attributeString; return this; @@ -174,11 +203,11 @@ public String getAttributeString() { @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttributeString(String attributeString) { + public void setAttributeString(@javax.annotation.Nullable String attributeString) { this.attributeString = attributeString; } - public XmlItem attributeNumber(BigDecimal attributeNumber) { + public XmlItem attributeNumber(@javax.annotation.Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; return this; @@ -199,11 +228,11 @@ public BigDecimal getAttributeNumber() { @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttributeNumber(BigDecimal attributeNumber) { + public void setAttributeNumber(@javax.annotation.Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } - public XmlItem attributeInteger(Integer attributeInteger) { + public XmlItem attributeInteger(@javax.annotation.Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; return this; @@ -224,11 +253,11 @@ public Integer getAttributeInteger() { @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttributeInteger(Integer attributeInteger) { + public void setAttributeInteger(@javax.annotation.Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; } - public XmlItem attributeBoolean(Boolean attributeBoolean) { + public XmlItem attributeBoolean(@javax.annotation.Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; return this; @@ -249,11 +278,11 @@ public Boolean getAttributeBoolean() { @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttributeBoolean(Boolean attributeBoolean) { + public void setAttributeBoolean(@javax.annotation.Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } - public XmlItem wrappedArray(List wrappedArray) { + public XmlItem wrappedArray(@javax.annotation.Nullable List wrappedArray) { this.wrappedArray = wrappedArray; return this; @@ -282,11 +311,11 @@ public List getWrappedArray() { @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWrappedArray(List wrappedArray) { + public void setWrappedArray(@javax.annotation.Nullable List wrappedArray) { this.wrappedArray = wrappedArray; } - public XmlItem nameString(String nameString) { + public XmlItem nameString(@javax.annotation.Nullable String nameString) { this.nameString = nameString; return this; @@ -307,11 +336,11 @@ public String getNameString() { @JsonProperty(JSON_PROPERTY_NAME_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameString(String nameString) { + public void setNameString(@javax.annotation.Nullable String nameString) { this.nameString = nameString; } - public XmlItem nameNumber(BigDecimal nameNumber) { + public XmlItem nameNumber(@javax.annotation.Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; return this; @@ -332,11 +361,11 @@ public BigDecimal getNameNumber() { @JsonProperty(JSON_PROPERTY_NAME_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameNumber(BigDecimal nameNumber) { + public void setNameNumber(@javax.annotation.Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; } - public XmlItem nameInteger(Integer nameInteger) { + public XmlItem nameInteger(@javax.annotation.Nullable Integer nameInteger) { this.nameInteger = nameInteger; return this; @@ -357,11 +386,11 @@ public Integer getNameInteger() { @JsonProperty(JSON_PROPERTY_NAME_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameInteger(Integer nameInteger) { + public void setNameInteger(@javax.annotation.Nullable Integer nameInteger) { this.nameInteger = nameInteger; } - public XmlItem nameBoolean(Boolean nameBoolean) { + public XmlItem nameBoolean(@javax.annotation.Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; return this; @@ -382,11 +411,11 @@ public Boolean getNameBoolean() { @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameBoolean(Boolean nameBoolean) { + public void setNameBoolean(@javax.annotation.Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; } - public XmlItem nameArray(List nameArray) { + public XmlItem nameArray(@javax.annotation.Nullable List nameArray) { this.nameArray = nameArray; return this; @@ -415,11 +444,11 @@ public List getNameArray() { @JsonProperty(JSON_PROPERTY_NAME_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameArray(List nameArray) { + public void setNameArray(@javax.annotation.Nullable List nameArray) { this.nameArray = nameArray; } - public XmlItem nameWrappedArray(List nameWrappedArray) { + public XmlItem nameWrappedArray(@javax.annotation.Nullable List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; return this; @@ -448,11 +477,11 @@ public List getNameWrappedArray() { @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameWrappedArray(List nameWrappedArray) { + public void setNameWrappedArray(@javax.annotation.Nullable List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } - public XmlItem prefixString(String prefixString) { + public XmlItem prefixString(@javax.annotation.Nullable String prefixString) { this.prefixString = prefixString; return this; @@ -473,11 +502,11 @@ public String getPrefixString() { @JsonProperty(JSON_PROPERTY_PREFIX_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixString(String prefixString) { + public void setPrefixString(@javax.annotation.Nullable String prefixString) { this.prefixString = prefixString; } - public XmlItem prefixNumber(BigDecimal prefixNumber) { + public XmlItem prefixNumber(@javax.annotation.Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; return this; @@ -498,11 +527,11 @@ public BigDecimal getPrefixNumber() { @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNumber(BigDecimal prefixNumber) { + public void setPrefixNumber(@javax.annotation.Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } - public XmlItem prefixInteger(Integer prefixInteger) { + public XmlItem prefixInteger(@javax.annotation.Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; return this; @@ -523,11 +552,11 @@ public Integer getPrefixInteger() { @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixInteger(Integer prefixInteger) { + public void setPrefixInteger(@javax.annotation.Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; } - public XmlItem prefixBoolean(Boolean prefixBoolean) { + public XmlItem prefixBoolean(@javax.annotation.Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; return this; @@ -548,11 +577,11 @@ public Boolean getPrefixBoolean() { @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixBoolean(Boolean prefixBoolean) { + public void setPrefixBoolean(@javax.annotation.Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } - public XmlItem prefixArray(List prefixArray) { + public XmlItem prefixArray(@javax.annotation.Nullable List prefixArray) { this.prefixArray = prefixArray; return this; @@ -581,11 +610,11 @@ public List getPrefixArray() { @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixArray(List prefixArray) { + public void setPrefixArray(@javax.annotation.Nullable List prefixArray) { this.prefixArray = prefixArray; } - public XmlItem prefixWrappedArray(List prefixWrappedArray) { + public XmlItem prefixWrappedArray(@javax.annotation.Nullable List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; return this; @@ -614,11 +643,11 @@ public List getPrefixWrappedArray() { @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixWrappedArray(List prefixWrappedArray) { + public void setPrefixWrappedArray(@javax.annotation.Nullable List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem namespaceString(String namespaceString) { + public XmlItem namespaceString(@javax.annotation.Nullable String namespaceString) { this.namespaceString = namespaceString; return this; @@ -639,11 +668,11 @@ public String getNamespaceString() { @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNamespaceString(String namespaceString) { + public void setNamespaceString(@javax.annotation.Nullable String namespaceString) { this.namespaceString = namespaceString; } - public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + public XmlItem namespaceNumber(@javax.annotation.Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; return this; @@ -664,11 +693,11 @@ public BigDecimal getNamespaceNumber() { @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNamespaceNumber(BigDecimal namespaceNumber) { + public void setNamespaceNumber(@javax.annotation.Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } - public XmlItem namespaceInteger(Integer namespaceInteger) { + public XmlItem namespaceInteger(@javax.annotation.Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; return this; @@ -689,11 +718,11 @@ public Integer getNamespaceInteger() { @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNamespaceInteger(Integer namespaceInteger) { + public void setNamespaceInteger(@javax.annotation.Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } - public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + public XmlItem namespaceBoolean(@javax.annotation.Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; return this; @@ -714,11 +743,11 @@ public Boolean getNamespaceBoolean() { @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNamespaceBoolean(Boolean namespaceBoolean) { + public void setNamespaceBoolean(@javax.annotation.Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } - public XmlItem namespaceArray(List namespaceArray) { + public XmlItem namespaceArray(@javax.annotation.Nullable List namespaceArray) { this.namespaceArray = namespaceArray; return this; @@ -747,11 +776,11 @@ public List getNamespaceArray() { @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNamespaceArray(List namespaceArray) { + public void setNamespaceArray(@javax.annotation.Nullable List namespaceArray) { this.namespaceArray = namespaceArray; } - public XmlItem namespaceWrappedArray(List namespaceWrappedArray) { + public XmlItem namespaceWrappedArray(@javax.annotation.Nullable List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; return this; @@ -780,11 +809,11 @@ public List getNamespaceWrappedArray() { @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNamespaceWrappedArray(List namespaceWrappedArray) { + public void setNamespaceWrappedArray(@javax.annotation.Nullable List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem prefixNsString(String prefixNsString) { + public XmlItem prefixNsString(@javax.annotation.Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; @@ -805,11 +834,11 @@ public String getPrefixNsString() { @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNsString(String prefixNsString) { + public void setPrefixNsString(@javax.annotation.Nullable String prefixNsString) { this.prefixNsString = prefixNsString; } - public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + public XmlItem prefixNsNumber(@javax.annotation.Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; return this; @@ -830,11 +859,11 @@ public BigDecimal getPrefixNsNumber() { @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNsNumber(BigDecimal prefixNsNumber) { + public void setPrefixNsNumber(@javax.annotation.Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } - public XmlItem prefixNsInteger(Integer prefixNsInteger) { + public XmlItem prefixNsInteger(@javax.annotation.Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; return this; @@ -855,11 +884,11 @@ public Integer getPrefixNsInteger() { @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNsInteger(Integer prefixNsInteger) { + public void setPrefixNsInteger(@javax.annotation.Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } - public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + public XmlItem prefixNsBoolean(@javax.annotation.Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; return this; @@ -880,11 +909,11 @@ public Boolean getPrefixNsBoolean() { @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNsBoolean(Boolean prefixNsBoolean) { + public void setPrefixNsBoolean(@javax.annotation.Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } - public XmlItem prefixNsArray(List prefixNsArray) { + public XmlItem prefixNsArray(@javax.annotation.Nullable List prefixNsArray) { this.prefixNsArray = prefixNsArray; return this; @@ -913,11 +942,11 @@ public List getPrefixNsArray() { @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNsArray(List prefixNsArray) { + public void setPrefixNsArray(@javax.annotation.Nullable List prefixNsArray) { this.prefixNsArray = prefixNsArray; } - public XmlItem prefixNsWrappedArray(List prefixNsWrappedArray) { + public XmlItem prefixNsWrappedArray(@javax.annotation.Nullable List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; return this; @@ -946,7 +975,7 @@ public List getPrefixNsWrappedArray() { @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { + public void setPrefixNsWrappedArray(@javax.annotation.Nullable List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index f5f3cc12f326..7e8a4a611e32 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -39,12 +39,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesAnyType { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public AdditionalPropertiesAnyType() { } - public AdditionalPropertiesAnyType name(String name) { + public AdditionalPropertiesAnyType name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -64,7 +65,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 8415bf9aa763..c3428b56017d 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -40,12 +40,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesArray { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public AdditionalPropertiesArray() { } - public AdditionalPropertiesArray name(String name) { + public AdditionalPropertiesArray name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -65,7 +66,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 3acafeb44f99..79c34b081079 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -39,12 +39,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesBoolean { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public AdditionalPropertiesBoolean() { } - public AdditionalPropertiesBoolean name(String name) { + public AdditionalPropertiesBoolean name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -64,7 +65,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index f23a1ac87750..c802fd38d5ce 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -49,42 +49,53 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_STRING = "map_string"; + @javax.annotation.Nullable private Map mapString = new HashMap<>(); public static final String JSON_PROPERTY_MAP_NUMBER = "map_number"; + @javax.annotation.Nullable private Map mapNumber = new HashMap<>(); public static final String JSON_PROPERTY_MAP_INTEGER = "map_integer"; + @javax.annotation.Nullable private Map mapInteger = new HashMap<>(); public static final String JSON_PROPERTY_MAP_BOOLEAN = "map_boolean"; + @javax.annotation.Nullable private Map mapBoolean = new HashMap<>(); public static final String JSON_PROPERTY_MAP_ARRAY_INTEGER = "map_array_integer"; + @javax.annotation.Nullable private Map> mapArrayInteger = new HashMap<>(); public static final String JSON_PROPERTY_MAP_ARRAY_ANYTYPE = "map_array_anytype"; + @javax.annotation.Nullable private Map> mapArrayAnytype = new HashMap<>(); public static final String JSON_PROPERTY_MAP_MAP_STRING = "map_map_string"; + @javax.annotation.Nullable private Map> mapMapString = new HashMap<>(); public static final String JSON_PROPERTY_MAP_MAP_ANYTYPE = "map_map_anytype"; + @javax.annotation.Nullable private Map> mapMapAnytype = new HashMap<>(); public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1"; + @javax.annotation.Nullable private Object anytype1; public static final String JSON_PROPERTY_ANYTYPE2 = "anytype_2"; + @javax.annotation.Nullable private Object anytype2; public static final String JSON_PROPERTY_ANYTYPE3 = "anytype_3"; + @javax.annotation.Nullable private Object anytype3; public AdditionalPropertiesClass() { } - public AdditionalPropertiesClass mapString(Map mapString) { + public AdditionalPropertiesClass mapString(@javax.annotation.Nullable Map mapString) { this.mapString = mapString; return this; } @@ -112,12 +123,12 @@ public Map getMapString() { @JsonProperty(JSON_PROPERTY_MAP_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapString(Map mapString) { + public void setMapString(@javax.annotation.Nullable Map mapString) { this.mapString = mapString; } - public AdditionalPropertiesClass mapNumber(Map mapNumber) { + public AdditionalPropertiesClass mapNumber(@javax.annotation.Nullable Map mapNumber) { this.mapNumber = mapNumber; return this; } @@ -145,12 +156,12 @@ public Map getMapNumber() { @JsonProperty(JSON_PROPERTY_MAP_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapNumber(Map mapNumber) { + public void setMapNumber(@javax.annotation.Nullable Map mapNumber) { this.mapNumber = mapNumber; } - public AdditionalPropertiesClass mapInteger(Map mapInteger) { + public AdditionalPropertiesClass mapInteger(@javax.annotation.Nullable Map mapInteger) { this.mapInteger = mapInteger; return this; } @@ -178,12 +189,12 @@ public Map getMapInteger() { @JsonProperty(JSON_PROPERTY_MAP_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapInteger(Map mapInteger) { + public void setMapInteger(@javax.annotation.Nullable Map mapInteger) { this.mapInteger = mapInteger; } - public AdditionalPropertiesClass mapBoolean(Map mapBoolean) { + public AdditionalPropertiesClass mapBoolean(@javax.annotation.Nullable Map mapBoolean) { this.mapBoolean = mapBoolean; return this; } @@ -211,12 +222,12 @@ public Map getMapBoolean() { @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapBoolean(Map mapBoolean) { + public void setMapBoolean(@javax.annotation.Nullable Map mapBoolean) { this.mapBoolean = mapBoolean; } - public AdditionalPropertiesClass mapArrayInteger(Map> mapArrayInteger) { + public AdditionalPropertiesClass mapArrayInteger(@javax.annotation.Nullable Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; return this; } @@ -244,12 +255,12 @@ public Map> getMapArrayInteger() { @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapArrayInteger(Map> mapArrayInteger) { + public void setMapArrayInteger(@javax.annotation.Nullable Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; } - public AdditionalPropertiesClass mapArrayAnytype(Map> mapArrayAnytype) { + public AdditionalPropertiesClass mapArrayAnytype(@javax.annotation.Nullable Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; return this; } @@ -277,12 +288,12 @@ public Map> getMapArrayAnytype() { @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapArrayAnytype(Map> mapArrayAnytype) { + public void setMapArrayAnytype(@javax.annotation.Nullable Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; } - public AdditionalPropertiesClass mapMapString(Map> mapMapString) { + public AdditionalPropertiesClass mapMapString(@javax.annotation.Nullable Map> mapMapString) { this.mapMapString = mapMapString; return this; } @@ -310,12 +321,12 @@ public Map> getMapMapString() { @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapMapString(Map> mapMapString) { + public void setMapMapString(@javax.annotation.Nullable Map> mapMapString) { this.mapMapString = mapMapString; } - public AdditionalPropertiesClass mapMapAnytype(Map> mapMapAnytype) { + public AdditionalPropertiesClass mapMapAnytype(@javax.annotation.Nullable Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; return this; } @@ -343,12 +354,12 @@ public Map> getMapMapAnytype() { @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapMapAnytype(Map> mapMapAnytype) { + public void setMapMapAnytype(@javax.annotation.Nullable Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@javax.annotation.Nullable Object anytype1) { this.anytype1 = anytype1; return this; } @@ -368,12 +379,12 @@ public Object getAnytype1() { @JsonProperty(JSON_PROPERTY_ANYTYPE1) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAnytype1(Object anytype1) { + public void setAnytype1(@javax.annotation.Nullable Object anytype1) { this.anytype1 = anytype1; } - public AdditionalPropertiesClass anytype2(Object anytype2) { + public AdditionalPropertiesClass anytype2(@javax.annotation.Nullable Object anytype2) { this.anytype2 = anytype2; return this; } @@ -393,12 +404,12 @@ public Object getAnytype2() { @JsonProperty(JSON_PROPERTY_ANYTYPE2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAnytype2(Object anytype2) { + public void setAnytype2(@javax.annotation.Nullable Object anytype2) { this.anytype2 = anytype2; } - public AdditionalPropertiesClass anytype3(Object anytype3) { + public AdditionalPropertiesClass anytype3(@javax.annotation.Nullable Object anytype3) { this.anytype3 = anytype3; return this; } @@ -418,7 +429,7 @@ public Object getAnytype3() { @JsonProperty(JSON_PROPERTY_ANYTYPE3) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAnytype3(Object anytype3) { + public void setAnytype3(@javax.annotation.Nullable Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 3ee51d2b3e0f..eb6f94f088b1 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -39,12 +39,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesInteger { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public AdditionalPropertiesInteger() { } - public AdditionalPropertiesInteger name(String name) { + public AdditionalPropertiesInteger name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -64,7 +65,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index 9b78449798b0..242c023d4382 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -40,12 +40,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesNumber { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public AdditionalPropertiesNumber() { } - public AdditionalPropertiesNumber name(String name) { + public AdditionalPropertiesNumber name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -65,7 +66,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index 311149923d86..286e8bf17c13 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -40,12 +40,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesObject { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public AdditionalPropertiesObject() { } - public AdditionalPropertiesObject name(String name) { + public AdditionalPropertiesObject name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -65,7 +66,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index faaf5f3fdf26..2e92c65cae12 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -39,12 +39,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesString { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public AdditionalPropertiesString() { } - public AdditionalPropertiesString name(String name) { + public AdditionalPropertiesString name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -64,7 +65,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Animal.java index 02afc1c37d1d..3ca4615dfada 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Animal.java @@ -50,15 +50,17 @@ public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; + @javax.annotation.Nonnull private String className; public static final String JSON_PROPERTY_COLOR = "color"; + @javax.annotation.Nullable private String color = "red"; public Animal() { } - public Animal className(String className) { + public Animal className(@javax.annotation.Nonnull String className) { this.className = className; return this; } @@ -78,12 +80,12 @@ public String getClassName() { @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setClassName(String className) { + public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; } - public Animal color(String color) { + public Animal color(@javax.annotation.Nullable String color) { this.color = color; return this; } @@ -103,7 +105,7 @@ public String getColor() { @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setColor(String color) { + public void setColor(@javax.annotation.Nullable String color) { this.color = color; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 1b3998955e4c..8bfd29af5de7 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -38,12 +38,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayOfArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; + @javax.annotation.Nullable private List> arrayArrayNumber = new ArrayList<>(); public ArrayOfArrayOfNumberOnly() { } - public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + public ArrayOfArrayOfNumberOnly arrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; return this; } @@ -71,7 +72,7 @@ public List> getArrayArrayNumber() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayNumber(List> arrayArrayNumber) { + public void setArrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index ca46dc2005f1..8dd0d6b355a9 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -38,12 +38,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; + @javax.annotation.Nullable private List arrayNumber = new ArrayList<>(); public ArrayOfNumberOnly() { } - public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + public ArrayOfNumberOnly arrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; return this; } @@ -71,7 +72,7 @@ public List getArrayNumber() { @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayNumber(List arrayNumber) { + public void setArrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ArrayTest.java index dff29850ea89..76837073093c 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -40,18 +40,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; + @javax.annotation.Nullable private List arrayOfString = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; + @javax.annotation.Nullable private List> arrayArrayOfInteger = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; + @javax.annotation.Nullable private List> arrayArrayOfModel = new ArrayList<>(); public ArrayTest() { } - public ArrayTest arrayOfString(List arrayOfString) { + public ArrayTest arrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; return this; } @@ -79,12 +82,12 @@ public List getArrayOfString() { @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayOfString(List arrayOfString) { + public void setArrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; } - public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + public ArrayTest arrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; return this; } @@ -112,12 +115,12 @@ public List> getArrayArrayOfInteger() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { + public void setArrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } - public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + public ArrayTest arrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; return this; } @@ -145,7 +148,7 @@ public List> getArrayArrayOfModel() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayOfModel(List> arrayArrayOfModel) { + public void setArrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/BigCat.java index 9b6e21630669..9bc86a83426b 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/BigCat.java @@ -84,12 +84,13 @@ public static KindEnum fromValue(String value) { } public static final String JSON_PROPERTY_KIND = "kind"; + @javax.annotation.Nullable private KindEnum kind; public BigCat() { } - public BigCat kind(KindEnum kind) { + public BigCat kind(@javax.annotation.Nullable KindEnum kind) { this.kind = kind; return this; } @@ -109,7 +110,7 @@ public KindEnum getKind() { @JsonProperty(JSON_PROPERTY_KIND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setKind(KindEnum kind) { + public void setKind(@javax.annotation.Nullable KindEnum kind) { this.kind = kind; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Capitalization.java index f3ef112bcae5..a52af42c9a76 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Capitalization.java @@ -40,27 +40,33 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Capitalization { public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; + @javax.annotation.Nullable private String smallCamel; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; + @javax.annotation.Nullable private String capitalCamel; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; + @javax.annotation.Nullable private String smallSnake; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; + @javax.annotation.Nullable private String capitalSnake; public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; + @javax.annotation.Nullable private String scAETHFlowPoints; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; + @javax.annotation.Nullable private String ATT_NAME; public Capitalization() { } - public Capitalization smallCamel(String smallCamel) { + public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; return this; } @@ -80,12 +86,12 @@ public String getSmallCamel() { @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmallCamel(String smallCamel) { + public void setSmallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; } - public Capitalization capitalCamel(String capitalCamel) { + public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; return this; } @@ -105,12 +111,12 @@ public String getCapitalCamel() { @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCapitalCamel(String capitalCamel) { + public void setCapitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; } - public Capitalization smallSnake(String smallSnake) { + public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; return this; } @@ -130,12 +136,12 @@ public String getSmallSnake() { @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmallSnake(String smallSnake) { + public void setSmallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; } - public Capitalization capitalSnake(String capitalSnake) { + public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; return this; } @@ -155,12 +161,12 @@ public String getCapitalSnake() { @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCapitalSnake(String capitalSnake) { + public void setCapitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; } - public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -180,12 +186,12 @@ public String getScAETHFlowPoints() { @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setScAETHFlowPoints(String scAETHFlowPoints) { + public void setScAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } - public Capitalization ATT_NAME(String ATT_NAME) { + public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; return this; } @@ -205,7 +211,7 @@ public String getATTNAME() { @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setATTNAME(String ATT_NAME) { + public void setATTNAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Cat.java index dbee5ffc9108..4e5000471d17 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Cat.java @@ -48,12 +48,13 @@ public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; + @javax.annotation.Nullable private Boolean declawed; public Cat() { } - public Cat declawed(Boolean declawed) { + public Cat declawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -73,7 +74,7 @@ public Boolean getDeclawed() { @JsonProperty(JSON_PROPERTY_DECLAWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Category.java index 95e3131e8415..936eab54e280 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Category.java @@ -36,15 +36,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Category { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private String name = "default-name"; public Category() { } - public Category id(Long id) { + public Category id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -64,12 +66,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@javax.annotation.Nonnull String name) { this.name = name; return this; } @@ -89,7 +91,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ClassModel.java index 494233c54e6c..d3623a71cf5c 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ClassModel.java @@ -35,12 +35,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ClassModel { public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; + @javax.annotation.Nullable private String propertyClass; public ClassModel() { } - public ClassModel propertyClass(String propertyClass) { + public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -60,7 +61,7 @@ public String getPropertyClass() { @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Client.java index 4d577e3da2b6..0f780520bab0 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Client.java @@ -35,12 +35,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Client { public static final String JSON_PROPERTY_CLIENT = "client"; + @javax.annotation.Nullable private String client; public Client() { } - public Client client(String client) { + public Client client(@javax.annotation.Nullable String client) { this.client = client; return this; } @@ -60,7 +61,7 @@ public String getClient() { @JsonProperty(JSON_PROPERTY_CLIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setClient(String client) { + public void setClient(@javax.annotation.Nullable String client) { this.client = client; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Dog.java index 0d1b1d0a1e21..3b3da968dd51 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Dog.java @@ -45,12 +45,13 @@ public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; + @javax.annotation.Nullable private String breed; public Dog() { } - public Dog breed(String breed) { + public Dog breed(@javax.annotation.Nullable String breed) { this.breed = breed; return this; } @@ -70,7 +71,7 @@ public String getBreed() { @JsonProperty(JSON_PROPERTY_BREED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBreed(String breed) { + public void setBreed(@javax.annotation.Nullable String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/EnumArrays.java index 4945e0476b52..e2e1b8803056 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -73,6 +73,7 @@ public static JustSymbolEnum fromValue(String value) { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** @@ -111,12 +112,13 @@ public static ArrayEnumEnum fromValue(String value) { } public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; + @javax.annotation.Nullable private List arrayEnum = new ArrayList<>(); public EnumArrays() { } - public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; } @@ -136,12 +138,12 @@ public JustSymbolEnum getJustSymbol() { @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJustSymbol(JustSymbolEnum justSymbol) { + public void setJustSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } - public EnumArrays arrayEnum(List arrayEnum) { + public EnumArrays arrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; return this; } @@ -169,7 +171,7 @@ public List getArrayEnum() { @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayEnum(List arrayEnum) { + public void setArrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/EnumTest.java index f25d2337822c..80665f19391b 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/EnumTest.java @@ -78,6 +78,7 @@ public static EnumStringEnum fromValue(String value) { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; + @javax.annotation.Nullable private EnumStringEnum enumString; /** @@ -118,6 +119,7 @@ public static EnumStringRequiredEnum fromValue(String value) { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** @@ -156,6 +158,7 @@ public static EnumIntegerEnum fromValue(Integer value) { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** @@ -194,15 +197,17 @@ public static EnumNumberEnum fromValue(Double value) { } public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; + @javax.annotation.Nullable private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; + @javax.annotation.Nullable private OuterEnum outerEnum; public EnumTest() { } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -222,12 +227,12 @@ public EnumStringEnum getEnumString() { @JsonProperty(JSON_PROPERTY_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumString(EnumStringEnum enumString) { + public void setEnumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; } - public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; return this; } @@ -247,12 +252,12 @@ public EnumStringRequiredEnum getEnumStringRequired() { @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public void setEnumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -272,12 +277,12 @@ public EnumIntegerEnum getEnumInteger() { @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumInteger(EnumIntegerEnum enumInteger) { + public void setEnumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } - public EnumTest enumNumber(EnumNumberEnum enumNumber) { + public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; return this; } @@ -297,12 +302,12 @@ public EnumNumberEnum getEnumNumber() { @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumNumber(EnumNumberEnum enumNumber) { + public void setEnumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } - public EnumTest outerEnum(OuterEnum outerEnum) { + public EnumTest outerEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; return this; } @@ -322,7 +327,7 @@ public OuterEnum getOuterEnum() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnum(OuterEnum outerEnum) { + public void setOuterEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index ade6ef1535b3..5172663a1be3 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -39,15 +39,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; + @javax.annotation.Nullable private ModelFile _file; public static final String JSON_PROPERTY_FILES = "files"; + @javax.annotation.Nullable private List files = new ArrayList<>(); public FileSchemaTestClass() { } - public FileSchemaTestClass _file(ModelFile _file) { + public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { this._file = _file; return this; } @@ -67,12 +69,12 @@ public ModelFile getFile() { @JsonProperty(JSON_PROPERTY_FILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFile(ModelFile _file) { + public void setFile(@javax.annotation.Nullable ModelFile _file) { this._file = _file; } - public FileSchemaTestClass files(List files) { + public FileSchemaTestClass files(@javax.annotation.Nullable List files) { this.files = files; return this; } @@ -100,7 +102,7 @@ public List getFiles() { @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFiles(List files) { + public void setFiles(@javax.annotation.Nullable List files) { this.files = files; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/FormatTest.java index cac04e1c05c5..baa98e4bfaf4 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/FormatTest.java @@ -54,51 +54,65 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; + @javax.annotation.Nullable private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; + @javax.annotation.Nullable private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; + @javax.annotation.Nullable private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; + @javax.annotation.Nonnull private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; + @javax.annotation.Nullable private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; + @javax.annotation.Nullable private Double _double; public static final String JSON_PROPERTY_STRING = "string"; + @javax.annotation.Nullable private String string; public static final String JSON_PROPERTY_BYTE = "byte"; + @javax.annotation.Nonnull private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; + @javax.annotation.Nullable private File binary; public static final String JSON_PROPERTY_DATE = "date"; + @javax.annotation.Nonnull private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; + @javax.annotation.Nullable private LocalDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; + @javax.annotation.Nonnull private String password; public static final String JSON_PROPERTY_BIG_DECIMAL = "BigDecimal"; + @javax.annotation.Nullable private BigDecimal bigDecimal; public FormatTest() { } - public FormatTest integer(Integer integer) { + public FormatTest integer(@javax.annotation.Nullable Integer integer) { this.integer = integer; return this; } @@ -120,12 +134,12 @@ public Integer getInteger() { @JsonProperty(JSON_PROPERTY_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInteger(Integer integer) { + public void setInteger(@javax.annotation.Nullable Integer integer) { this.integer = integer; } - public FormatTest int32(Integer int32) { + public FormatTest int32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; return this; } @@ -147,12 +161,12 @@ public Integer getInt32() { @JsonProperty(JSON_PROPERTY_INT32) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInt32(Integer int32) { + public void setInt32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; } - public FormatTest int64(Long int64) { + public FormatTest int64(@javax.annotation.Nullable Long int64) { this.int64 = int64; return this; } @@ -172,12 +186,12 @@ public Long getInt64() { @JsonProperty(JSON_PROPERTY_INT64) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInt64(Long int64) { + public void setInt64(@javax.annotation.Nullable Long int64) { this.int64 = int64; } - public FormatTest number(BigDecimal number) { + public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { this.number = number; return this; } @@ -199,12 +213,12 @@ public BigDecimal getNumber() { @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNumber(BigDecimal number) { + public void setNumber(@javax.annotation.Nonnull BigDecimal number) { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@javax.annotation.Nullable Float _float) { this._float = _float; return this; } @@ -226,12 +240,12 @@ public Float getFloat() { @JsonProperty(JSON_PROPERTY_FLOAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFloat(Float _float) { + public void setFloat(@javax.annotation.Nullable Float _float) { this._float = _float; } - public FormatTest _double(Double _double) { + public FormatTest _double(@javax.annotation.Nullable Double _double) { this._double = _double; return this; } @@ -253,12 +267,12 @@ public Double getDouble() { @JsonProperty(JSON_PROPERTY_DOUBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDouble(Double _double) { + public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; } - public FormatTest string(String string) { + public FormatTest string(@javax.annotation.Nullable String string) { this.string = string; return this; } @@ -278,12 +292,12 @@ public String getString() { @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setString(String string) { + public void setString(@javax.annotation.Nullable String string) { this.string = string; } - public FormatTest _byte(byte[] _byte) { + public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; return this; } @@ -303,12 +317,12 @@ public byte[] getByte() { @JsonProperty(JSON_PROPERTY_BYTE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setByte(byte[] _byte) { + public void setByte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; } - public FormatTest binary(File binary) { + public FormatTest binary(@javax.annotation.Nullable File binary) { this.binary = binary; return this; } @@ -328,12 +342,12 @@ public File getBinary() { @JsonProperty(JSON_PROPERTY_BINARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBinary(File binary) { + public void setBinary(@javax.annotation.Nullable File binary) { this.binary = binary; } - public FormatTest date(LocalDate date) { + public FormatTest date(@javax.annotation.Nonnull LocalDate date) { this.date = date; return this; } @@ -353,12 +367,12 @@ public LocalDate getDate() { @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDate(LocalDate date) { + public void setDate(@javax.annotation.Nonnull LocalDate date) { this.date = date; } - public FormatTest dateTime(LocalDateTime dateTime) { + public FormatTest dateTime(@javax.annotation.Nullable LocalDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -378,12 +392,12 @@ public LocalDateTime getDateTime() { @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateTime(LocalDateTime dateTime) { + public void setDateTime(@javax.annotation.Nullable LocalDateTime dateTime) { this.dateTime = dateTime; } - public FormatTest uuid(UUID uuid) { + public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -403,12 +417,12 @@ public UUID getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(UUID uuid) { + public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public FormatTest password(String password) { + public FormatTest password(@javax.annotation.Nonnull String password) { this.password = password; return this; } @@ -428,12 +442,12 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nonnull String password) { this.password = password; } - public FormatTest bigDecimal(BigDecimal bigDecimal) { + public FormatTest bigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; } @@ -453,7 +467,7 @@ public BigDecimal getBigDecimal() { @JsonProperty(JSON_PROPERTY_BIG_DECIMAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBigDecimal(BigDecimal bigDecimal) { + public void setBigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index eebdf013480a..149d9c92a0fe 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -37,9 +37,11 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_FOO = "foo"; + @javax.annotation.Nullable private String foo; public HasOnlyReadOnly() { diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/MapTest.java index 845b86c22c34..f85a41bf5acf 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/MapTest.java @@ -40,6 +40,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; + @javax.annotation.Nullable private Map> mapMapOfString = new HashMap<>(); /** @@ -78,18 +79,21 @@ public static InnerEnum fromValue(String value) { } public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; + @javax.annotation.Nullable private Map mapOfEnumString = new HashMap<>(); public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; + @javax.annotation.Nullable private Map directMap = new HashMap<>(); public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; + @javax.annotation.Nullable private Map indirectMap = new HashMap<>(); public MapTest() { } - public MapTest mapMapOfString(Map> mapMapOfString) { + public MapTest mapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; return this; } @@ -117,12 +121,12 @@ public Map> getMapMapOfString() { @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapMapOfString(Map> mapMapOfString) { + public void setMapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } - public MapTest mapOfEnumString(Map mapOfEnumString) { + public MapTest mapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; return this; } @@ -150,12 +154,12 @@ public Map getMapOfEnumString() { @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapOfEnumString(Map mapOfEnumString) { + public void setMapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } - public MapTest directMap(Map directMap) { + public MapTest directMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; return this; } @@ -183,12 +187,12 @@ public Map getDirectMap() { @JsonProperty(JSON_PROPERTY_DIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDirectMap(Map directMap) { + public void setDirectMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; } - public MapTest indirectMap(Map indirectMap) { + public MapTest indirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; return this; } @@ -216,7 +220,7 @@ public Map getIndirectMap() { @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIndirectMap(Map indirectMap) { + public void setIndirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 51a6aa0c7d94..5b0ad1d5c907 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -42,18 +42,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; + @javax.annotation.Nullable private LocalDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; + @javax.annotation.Nullable private Map map = new HashMap<>(); public MixedPropertiesAndAdditionalPropertiesClass() { } - public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -73,12 +76,12 @@ public UUID getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(UUID uuid) { + public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public MixedPropertiesAndAdditionalPropertiesClass dateTime(LocalDateTime dateTime) { + public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nullable LocalDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -98,12 +101,12 @@ public LocalDateTime getDateTime() { @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateTime(LocalDateTime dateTime) { + public void setDateTime(@javax.annotation.Nullable LocalDateTime dateTime) { this.dateTime = dateTime; } - public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + public MixedPropertiesAndAdditionalPropertiesClass map(@javax.annotation.Nullable Map map) { this.map = map; return this; } @@ -131,7 +134,7 @@ public Map getMap() { @JsonProperty(JSON_PROPERTY_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMap(Map map) { + public void setMap(@javax.annotation.Nullable Map map) { this.map = map; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Model200Response.java index 9969dfbbebd6..aef50b04ef33 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Model200Response.java @@ -37,15 +37,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; + @javax.annotation.Nullable private String propertyClass; public Model200Response() { } - public Model200Response name(Integer name) { + public Model200Response name(@javax.annotation.Nullable Integer name) { this.name = name; return this; } @@ -65,12 +67,12 @@ public Integer getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(Integer name) { + public void setName(@javax.annotation.Nullable Integer name) { this.name = name; } - public Model200Response propertyClass(String propertyClass) { + public Model200Response propertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -90,7 +92,7 @@ public String getPropertyClass() { @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelApiResponse.java index a41bf414803c..2e8205a694a1 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -38,18 +38,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nullable private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nullable private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; + @javax.annotation.Nullable private String message; public ModelApiResponse() { } - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@javax.annotation.Nullable Integer code) { this.code = code; return this; } @@ -69,12 +72,12 @@ public Integer getCode() { @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCode(Integer code) { + public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@javax.annotation.Nullable String type) { this.type = type; return this; } @@ -94,12 +97,12 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { + public void setType(@javax.annotation.Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@javax.annotation.Nullable String message) { this.message = message; return this; } @@ -119,7 +122,7 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelFile.java index 5e8b7dd4bf5a..a0b5e88d2ee0 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelFile.java @@ -36,12 +36,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelFile { public static final String JSON_PROPERTY_SOURCE_U_R_I = "sourceURI"; + @javax.annotation.Nullable private String sourceURI; public ModelFile() { } - public ModelFile sourceURI(String sourceURI) { + public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; return this; } @@ -61,7 +62,7 @@ public String getSourceURI() { @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSourceURI(String sourceURI) { + public void setSourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelList.java index 97b4cb7539ce..87a59ce3c747 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelList.java @@ -36,12 +36,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelList { public static final String JSON_PROPERTY_123LIST = "123-list"; + @javax.annotation.Nullable private String _123list; public ModelList() { } - public ModelList _123list(String _123list) { + public ModelList _123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; return this; } @@ -61,7 +62,7 @@ public String get123list() { @JsonProperty(JSON_PROPERTY_123LIST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void set123list(String _123list) { + public void set123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelReturn.java index 2738d6e2a99e..35441230b60f 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -36,12 +36,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; + @javax.annotation.Nullable private Integer _return; public ModelReturn() { } - public ModelReturn _return(Integer _return) { + public ModelReturn _return(@javax.annotation.Nullable Integer _return) { this._return = _return; return this; } @@ -61,7 +62,7 @@ public Integer getReturn() { @JsonProperty(JSON_PROPERTY_RETURN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setReturn(Integer _return) { + public void setReturn(@javax.annotation.Nullable Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Name.java index 726e5874186a..3702f96a2e2f 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Name.java @@ -38,15 +38,19 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Name { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; + @javax.annotation.Nullable private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; + @javax.annotation.Nullable private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; + @javax.annotation.Nullable private Integer _123number; public Name() { @@ -62,7 +66,7 @@ public Name( this._123number = _123number; } - public Name name(Integer name) { + public Name name(@javax.annotation.Nonnull Integer name) { this.name = name; return this; } @@ -82,7 +86,7 @@ public Integer getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(Integer name) { + public void setName(@javax.annotation.Nonnull Integer name) { this.name = name; } @@ -102,7 +106,7 @@ public Integer getSnakeCase() { - public Name property(String property) { + public Name property(@javax.annotation.Nullable String property) { this.property = property; return this; } @@ -122,7 +126,7 @@ public String getProperty() { @JsonProperty(JSON_PROPERTY_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProperty(String property) { + public void setProperty(@javax.annotation.Nullable String property) { this.property = property; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/NumberOnly.java index 25e8e2f725da..1ddf9e67a9d3 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -36,12 +36,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; + @javax.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } - public NumberOnly justNumber(BigDecimal justNumber) { + public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; } @@ -61,7 +62,7 @@ public BigDecimal getJustNumber() { @JsonProperty(JSON_PROPERTY_JUST_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJustNumber(BigDecimal justNumber) { + public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Order.java index 4a4175095131..648b18c2b27c 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Order.java @@ -41,15 +41,19 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Order { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; + @javax.annotation.Nullable private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; + @javax.annotation.Nullable private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; + @javax.annotation.Nullable private LocalDateTime shipDate; /** @@ -90,15 +94,17 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @javax.annotation.Nullable private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; + @javax.annotation.Nullable private Boolean complete = false; public Order() { } - public Order id(Long id) { + public Order id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -118,12 +124,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@javax.annotation.Nullable Long petId) { this.petId = petId; return this; } @@ -143,12 +149,12 @@ public Long getPetId() { @JsonProperty(JSON_PROPERTY_PET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPetId(Long petId) { + public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -168,12 +174,12 @@ public Integer getQuantity() { @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setQuantity(Integer quantity) { + public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(LocalDateTime shipDate) { + public Order shipDate(@javax.annotation.Nullable LocalDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -193,12 +199,12 @@ public LocalDateTime getShipDate() { @JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setShipDate(LocalDateTime shipDate) { + public void setShipDate(@javax.annotation.Nullable LocalDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; } @@ -218,12 +224,12 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } - public Order complete(Boolean complete) { + public Order complete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; return this; } @@ -243,7 +249,7 @@ public Boolean getComplete() { @JsonProperty(JSON_PROPERTY_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setComplete(Boolean complete) { + public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/OuterComposite.java index 9298de14bb65..448311309ac7 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -38,18 +38,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; + @javax.annotation.Nullable private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; + @javax.annotation.Nullable private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; + @javax.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } - public OuterComposite myNumber(BigDecimal myNumber) { + public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; } @@ -69,12 +72,12 @@ public BigDecimal getMyNumber() { @JsonProperty(JSON_PROPERTY_MY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyNumber(BigDecimal myNumber) { + public void setMyNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; } - public OuterComposite myString(String myString) { + public OuterComposite myString(@javax.annotation.Nullable String myString) { this.myString = myString; return this; } @@ -94,12 +97,12 @@ public String getMyString() { @JsonProperty(JSON_PROPERTY_MY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyString(String myString) { + public void setMyString(@javax.annotation.Nullable String myString) { this.myString = myString; } - public OuterComposite myBoolean(Boolean myBoolean) { + public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; return this; } @@ -119,7 +122,7 @@ public Boolean getMyBoolean() { @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyBoolean(Boolean myBoolean) { + public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Pet.java index c5d8b6caa05a..cc609ca5f170 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Pet.java @@ -47,18 +47,23 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Pet { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; + @javax.annotation.Nullable private Category category; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; + @javax.annotation.Nonnull private Set photoUrls = new LinkedHashSet<>(); public static final String JSON_PROPERTY_TAGS = "tags"; + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** @@ -99,12 +104,13 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } - public Pet id(Long id) { + public Pet id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -124,12 +130,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@javax.annotation.Nullable Category category) { this.category = category; return this; } @@ -149,12 +155,12 @@ public Category getCategory() { @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCategory(Category category) { + public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; } - public Pet name(String name) { + public Pet name(@javax.annotation.Nonnull String name) { this.name = name; return this; } @@ -174,12 +180,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } - public Pet photoUrls(Set photoUrls) { + public Pet photoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; return this; } @@ -208,12 +214,12 @@ public Set getPhotoUrls() { @JsonDeserialize(as = LinkedHashSet.class) @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPhotoUrls(Set photoUrls) { + public void setPhotoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; } - public Pet tags(List tags) { + public Pet tags(@javax.annotation.Nullable List tags) { this.tags = tags; return this; } @@ -241,12 +247,12 @@ public List getTags() { @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTags(List tags) { + public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; } @@ -266,7 +272,7 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 8e2c2b11ae6e..73ccf4eeb69d 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -36,9 +36,11 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; + @javax.annotation.Nullable private String baz; public ReadOnlyFirst() { @@ -67,7 +69,7 @@ public String getBar() { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { this.baz = baz; return this; } @@ -87,7 +89,7 @@ public String getBaz() { @JsonProperty(JSON_PROPERTY_BAZ) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBaz(String baz) { + public void setBaz(@javax.annotation.Nullable String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/SpecialModelName.java index 7130a45f47ec..43b3f5f1ddfa 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -36,12 +36,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; + @javax.annotation.Nullable private Long $specialPropertyName; public SpecialModelName() { } - public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + public SpecialModelName $specialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; return this; } @@ -61,7 +62,7 @@ public SpecialModelName() { @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void set$SpecialPropertyName(Long $specialPropertyName) { + public void set$SpecialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Tag.java index b3097bd9bf8d..bacb1fb92747 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Tag.java @@ -36,15 +36,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Tag { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public Tag() { } - public Tag id(Long id) { + public Tag id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -64,12 +66,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -89,7 +91,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index 2daf12cb584c..ec6aaf3f30a7 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -42,24 +42,29 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class TypeHolderDefault { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; + @javax.annotation.Nonnull private String stringItem = "what"; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; + @javax.annotation.Nonnull private BigDecimal numberItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; + @javax.annotation.Nonnull private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; + @javax.annotation.Nonnull private Boolean boolItem = true; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; + @javax.annotation.Nonnull private List arrayItem = new ArrayList<>(); public TypeHolderDefault() { } - public TypeHolderDefault stringItem(String stringItem) { + public TypeHolderDefault stringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; return this; } @@ -79,12 +84,12 @@ public String getStringItem() { @JsonProperty(JSON_PROPERTY_STRING_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStringItem(String stringItem) { + public void setStringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; } - public TypeHolderDefault numberItem(BigDecimal numberItem) { + public TypeHolderDefault numberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; return this; } @@ -104,12 +109,12 @@ public BigDecimal getNumberItem() { @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNumberItem(BigDecimal numberItem) { + public void setNumberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; } - public TypeHolderDefault integerItem(Integer integerItem) { + public TypeHolderDefault integerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; return this; } @@ -129,12 +134,12 @@ public Integer getIntegerItem() { @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setIntegerItem(Integer integerItem) { + public void setIntegerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; } - public TypeHolderDefault boolItem(Boolean boolItem) { + public TypeHolderDefault boolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; return this; } @@ -154,12 +159,12 @@ public Boolean getBoolItem() { @JsonProperty(JSON_PROPERTY_BOOL_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBoolItem(Boolean boolItem) { + public void setBoolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; } - public TypeHolderDefault arrayItem(List arrayItem) { + public TypeHolderDefault arrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; return this; } @@ -187,7 +192,7 @@ public List getArrayItem() { @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setArrayItem(List arrayItem) { + public void setArrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/TypeHolderExample.java index a99828e518c6..a77fd31f6a83 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -43,27 +43,33 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class TypeHolderExample { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; + @javax.annotation.Nonnull private String stringItem; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; + @javax.annotation.Nonnull private BigDecimal numberItem; public static final String JSON_PROPERTY_FLOAT_ITEM = "float_item"; + @javax.annotation.Nonnull private Float floatItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; + @javax.annotation.Nonnull private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; + @javax.annotation.Nonnull private Boolean boolItem; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; + @javax.annotation.Nonnull private List arrayItem = new ArrayList<>(); public TypeHolderExample() { } - public TypeHolderExample stringItem(String stringItem) { + public TypeHolderExample stringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; return this; } @@ -83,12 +89,12 @@ public String getStringItem() { @JsonProperty(JSON_PROPERTY_STRING_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStringItem(String stringItem) { + public void setStringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; } - public TypeHolderExample numberItem(BigDecimal numberItem) { + public TypeHolderExample numberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; return this; } @@ -108,12 +114,12 @@ public BigDecimal getNumberItem() { @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNumberItem(BigDecimal numberItem) { + public void setNumberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; } - public TypeHolderExample floatItem(Float floatItem) { + public TypeHolderExample floatItem(@javax.annotation.Nonnull Float floatItem) { this.floatItem = floatItem; return this; } @@ -133,12 +139,12 @@ public Float getFloatItem() { @JsonProperty(JSON_PROPERTY_FLOAT_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFloatItem(Float floatItem) { + public void setFloatItem(@javax.annotation.Nonnull Float floatItem) { this.floatItem = floatItem; } - public TypeHolderExample integerItem(Integer integerItem) { + public TypeHolderExample integerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; return this; } @@ -158,12 +164,12 @@ public Integer getIntegerItem() { @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setIntegerItem(Integer integerItem) { + public void setIntegerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; } - public TypeHolderExample boolItem(Boolean boolItem) { + public TypeHolderExample boolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; return this; } @@ -183,12 +189,12 @@ public Boolean getBoolItem() { @JsonProperty(JSON_PROPERTY_BOOL_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBoolItem(Boolean boolItem) { + public void setBoolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; } - public TypeHolderExample arrayItem(List arrayItem) { + public TypeHolderExample arrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; return this; } @@ -216,7 +222,7 @@ public List getArrayItem() { @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setArrayItem(List arrayItem) { + public void setArrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/User.java index a4b587b7039e..0ed15206be0b 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/User.java @@ -42,33 +42,41 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class User { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; + @javax.annotation.Nullable private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; + @javax.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; + @javax.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; + @javax.annotation.Nullable private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; + @javax.annotation.Nullable private String password; public static final String JSON_PROPERTY_PHONE = "phone"; + @javax.annotation.Nullable private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; + @javax.annotation.Nullable private Integer userStatus; public User() { } - public User id(Long id) { + public User id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -88,12 +96,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@javax.annotation.Nullable String username) { this.username = username; return this; } @@ -113,12 +121,12 @@ public String getUsername() { @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsername(String username) { + public void setUsername(@javax.annotation.Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; return this; } @@ -138,12 +146,12 @@ public String getFirstName() { @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFirstName(String firstName) { + public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; return this; } @@ -163,12 +171,12 @@ public String getLastName() { @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLastName(String lastName) { + public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@javax.annotation.Nullable String email) { this.email = email; return this; } @@ -188,12 +196,12 @@ public String getEmail() { @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEmail(String email) { + public void setEmail(@javax.annotation.Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@javax.annotation.Nullable String password) { this.password = password; return this; } @@ -213,12 +221,12 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@javax.annotation.Nullable String phone) { this.phone = phone; return this; } @@ -238,12 +246,12 @@ public String getPhone() { @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPhone(String phone) { + public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -263,7 +271,7 @@ public Integer getUserStatus() { @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/XmlItem.java index e90dca310e88..dbfc38a5ed5a 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/XmlItem.java @@ -66,96 +66,125 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class XmlItem { public static final String JSON_PROPERTY_ATTRIBUTE_STRING = "attribute_string"; + @javax.annotation.Nullable private String attributeString; public static final String JSON_PROPERTY_ATTRIBUTE_NUMBER = "attribute_number"; + @javax.annotation.Nullable private BigDecimal attributeNumber; public static final String JSON_PROPERTY_ATTRIBUTE_INTEGER = "attribute_integer"; + @javax.annotation.Nullable private Integer attributeInteger; public static final String JSON_PROPERTY_ATTRIBUTE_BOOLEAN = "attribute_boolean"; + @javax.annotation.Nullable private Boolean attributeBoolean; public static final String JSON_PROPERTY_WRAPPED_ARRAY = "wrapped_array"; + @javax.annotation.Nullable private List wrappedArray = new ArrayList<>(); public static final String JSON_PROPERTY_NAME_STRING = "name_string"; + @javax.annotation.Nullable private String nameString; public static final String JSON_PROPERTY_NAME_NUMBER = "name_number"; + @javax.annotation.Nullable private BigDecimal nameNumber; public static final String JSON_PROPERTY_NAME_INTEGER = "name_integer"; + @javax.annotation.Nullable private Integer nameInteger; public static final String JSON_PROPERTY_NAME_BOOLEAN = "name_boolean"; + @javax.annotation.Nullable private Boolean nameBoolean; public static final String JSON_PROPERTY_NAME_ARRAY = "name_array"; + @javax.annotation.Nullable private List nameArray = new ArrayList<>(); public static final String JSON_PROPERTY_NAME_WRAPPED_ARRAY = "name_wrapped_array"; + @javax.annotation.Nullable private List nameWrappedArray = new ArrayList<>(); public static final String JSON_PROPERTY_PREFIX_STRING = "prefix_string"; + @javax.annotation.Nullable private String prefixString; public static final String JSON_PROPERTY_PREFIX_NUMBER = "prefix_number"; + @javax.annotation.Nullable private BigDecimal prefixNumber; public static final String JSON_PROPERTY_PREFIX_INTEGER = "prefix_integer"; + @javax.annotation.Nullable private Integer prefixInteger; public static final String JSON_PROPERTY_PREFIX_BOOLEAN = "prefix_boolean"; + @javax.annotation.Nullable private Boolean prefixBoolean; public static final String JSON_PROPERTY_PREFIX_ARRAY = "prefix_array"; + @javax.annotation.Nullable private List prefixArray = new ArrayList<>(); public static final String JSON_PROPERTY_PREFIX_WRAPPED_ARRAY = "prefix_wrapped_array"; + @javax.annotation.Nullable private List prefixWrappedArray = new ArrayList<>(); public static final String JSON_PROPERTY_NAMESPACE_STRING = "namespace_string"; + @javax.annotation.Nullable private String namespaceString; public static final String JSON_PROPERTY_NAMESPACE_NUMBER = "namespace_number"; + @javax.annotation.Nullable private BigDecimal namespaceNumber; public static final String JSON_PROPERTY_NAMESPACE_INTEGER = "namespace_integer"; + @javax.annotation.Nullable private Integer namespaceInteger; public static final String JSON_PROPERTY_NAMESPACE_BOOLEAN = "namespace_boolean"; + @javax.annotation.Nullable private Boolean namespaceBoolean; public static final String JSON_PROPERTY_NAMESPACE_ARRAY = "namespace_array"; + @javax.annotation.Nullable private List namespaceArray = new ArrayList<>(); public static final String JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY = "namespace_wrapped_array"; + @javax.annotation.Nullable private List namespaceWrappedArray = new ArrayList<>(); public static final String JSON_PROPERTY_PREFIX_NS_STRING = "prefix_ns_string"; + @javax.annotation.Nullable private String prefixNsString; public static final String JSON_PROPERTY_PREFIX_NS_NUMBER = "prefix_ns_number"; + @javax.annotation.Nullable private BigDecimal prefixNsNumber; public static final String JSON_PROPERTY_PREFIX_NS_INTEGER = "prefix_ns_integer"; + @javax.annotation.Nullable private Integer prefixNsInteger; public static final String JSON_PROPERTY_PREFIX_NS_BOOLEAN = "prefix_ns_boolean"; + @javax.annotation.Nullable private Boolean prefixNsBoolean; public static final String JSON_PROPERTY_PREFIX_NS_ARRAY = "prefix_ns_array"; + @javax.annotation.Nullable private List prefixNsArray = new ArrayList<>(); public static final String JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY = "prefix_ns_wrapped_array"; + @javax.annotation.Nullable private List prefixNsWrappedArray = new ArrayList<>(); public XmlItem() { } - public XmlItem attributeString(String attributeString) { + public XmlItem attributeString(@javax.annotation.Nullable String attributeString) { this.attributeString = attributeString; return this; } @@ -175,12 +204,12 @@ public String getAttributeString() { @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttributeString(String attributeString) { + public void setAttributeString(@javax.annotation.Nullable String attributeString) { this.attributeString = attributeString; } - public XmlItem attributeNumber(BigDecimal attributeNumber) { + public XmlItem attributeNumber(@javax.annotation.Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; return this; } @@ -200,12 +229,12 @@ public BigDecimal getAttributeNumber() { @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttributeNumber(BigDecimal attributeNumber) { + public void setAttributeNumber(@javax.annotation.Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } - public XmlItem attributeInteger(Integer attributeInteger) { + public XmlItem attributeInteger(@javax.annotation.Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; return this; } @@ -225,12 +254,12 @@ public Integer getAttributeInteger() { @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttributeInteger(Integer attributeInteger) { + public void setAttributeInteger(@javax.annotation.Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; } - public XmlItem attributeBoolean(Boolean attributeBoolean) { + public XmlItem attributeBoolean(@javax.annotation.Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; return this; } @@ -250,12 +279,12 @@ public Boolean getAttributeBoolean() { @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttributeBoolean(Boolean attributeBoolean) { + public void setAttributeBoolean(@javax.annotation.Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } - public XmlItem wrappedArray(List wrappedArray) { + public XmlItem wrappedArray(@javax.annotation.Nullable List wrappedArray) { this.wrappedArray = wrappedArray; return this; } @@ -283,12 +312,12 @@ public List getWrappedArray() { @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWrappedArray(List wrappedArray) { + public void setWrappedArray(@javax.annotation.Nullable List wrappedArray) { this.wrappedArray = wrappedArray; } - public XmlItem nameString(String nameString) { + public XmlItem nameString(@javax.annotation.Nullable String nameString) { this.nameString = nameString; return this; } @@ -308,12 +337,12 @@ public String getNameString() { @JsonProperty(JSON_PROPERTY_NAME_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameString(String nameString) { + public void setNameString(@javax.annotation.Nullable String nameString) { this.nameString = nameString; } - public XmlItem nameNumber(BigDecimal nameNumber) { + public XmlItem nameNumber(@javax.annotation.Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; return this; } @@ -333,12 +362,12 @@ public BigDecimal getNameNumber() { @JsonProperty(JSON_PROPERTY_NAME_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameNumber(BigDecimal nameNumber) { + public void setNameNumber(@javax.annotation.Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; } - public XmlItem nameInteger(Integer nameInteger) { + public XmlItem nameInteger(@javax.annotation.Nullable Integer nameInteger) { this.nameInteger = nameInteger; return this; } @@ -358,12 +387,12 @@ public Integer getNameInteger() { @JsonProperty(JSON_PROPERTY_NAME_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameInteger(Integer nameInteger) { + public void setNameInteger(@javax.annotation.Nullable Integer nameInteger) { this.nameInteger = nameInteger; } - public XmlItem nameBoolean(Boolean nameBoolean) { + public XmlItem nameBoolean(@javax.annotation.Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; return this; } @@ -383,12 +412,12 @@ public Boolean getNameBoolean() { @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameBoolean(Boolean nameBoolean) { + public void setNameBoolean(@javax.annotation.Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; } - public XmlItem nameArray(List nameArray) { + public XmlItem nameArray(@javax.annotation.Nullable List nameArray) { this.nameArray = nameArray; return this; } @@ -416,12 +445,12 @@ public List getNameArray() { @JsonProperty(JSON_PROPERTY_NAME_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameArray(List nameArray) { + public void setNameArray(@javax.annotation.Nullable List nameArray) { this.nameArray = nameArray; } - public XmlItem nameWrappedArray(List nameWrappedArray) { + public XmlItem nameWrappedArray(@javax.annotation.Nullable List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; return this; } @@ -449,12 +478,12 @@ public List getNameWrappedArray() { @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameWrappedArray(List nameWrappedArray) { + public void setNameWrappedArray(@javax.annotation.Nullable List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } - public XmlItem prefixString(String prefixString) { + public XmlItem prefixString(@javax.annotation.Nullable String prefixString) { this.prefixString = prefixString; return this; } @@ -474,12 +503,12 @@ public String getPrefixString() { @JsonProperty(JSON_PROPERTY_PREFIX_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixString(String prefixString) { + public void setPrefixString(@javax.annotation.Nullable String prefixString) { this.prefixString = prefixString; } - public XmlItem prefixNumber(BigDecimal prefixNumber) { + public XmlItem prefixNumber(@javax.annotation.Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; return this; } @@ -499,12 +528,12 @@ public BigDecimal getPrefixNumber() { @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNumber(BigDecimal prefixNumber) { + public void setPrefixNumber(@javax.annotation.Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } - public XmlItem prefixInteger(Integer prefixInteger) { + public XmlItem prefixInteger(@javax.annotation.Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; return this; } @@ -524,12 +553,12 @@ public Integer getPrefixInteger() { @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixInteger(Integer prefixInteger) { + public void setPrefixInteger(@javax.annotation.Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; } - public XmlItem prefixBoolean(Boolean prefixBoolean) { + public XmlItem prefixBoolean(@javax.annotation.Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; return this; } @@ -549,12 +578,12 @@ public Boolean getPrefixBoolean() { @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixBoolean(Boolean prefixBoolean) { + public void setPrefixBoolean(@javax.annotation.Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } - public XmlItem prefixArray(List prefixArray) { + public XmlItem prefixArray(@javax.annotation.Nullable List prefixArray) { this.prefixArray = prefixArray; return this; } @@ -582,12 +611,12 @@ public List getPrefixArray() { @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixArray(List prefixArray) { + public void setPrefixArray(@javax.annotation.Nullable List prefixArray) { this.prefixArray = prefixArray; } - public XmlItem prefixWrappedArray(List prefixWrappedArray) { + public XmlItem prefixWrappedArray(@javax.annotation.Nullable List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; return this; } @@ -615,12 +644,12 @@ public List getPrefixWrappedArray() { @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixWrappedArray(List prefixWrappedArray) { + public void setPrefixWrappedArray(@javax.annotation.Nullable List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem namespaceString(String namespaceString) { + public XmlItem namespaceString(@javax.annotation.Nullable String namespaceString) { this.namespaceString = namespaceString; return this; } @@ -640,12 +669,12 @@ public String getNamespaceString() { @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNamespaceString(String namespaceString) { + public void setNamespaceString(@javax.annotation.Nullable String namespaceString) { this.namespaceString = namespaceString; } - public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + public XmlItem namespaceNumber(@javax.annotation.Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; return this; } @@ -665,12 +694,12 @@ public BigDecimal getNamespaceNumber() { @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNamespaceNumber(BigDecimal namespaceNumber) { + public void setNamespaceNumber(@javax.annotation.Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } - public XmlItem namespaceInteger(Integer namespaceInteger) { + public XmlItem namespaceInteger(@javax.annotation.Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; return this; } @@ -690,12 +719,12 @@ public Integer getNamespaceInteger() { @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNamespaceInteger(Integer namespaceInteger) { + public void setNamespaceInteger(@javax.annotation.Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } - public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + public XmlItem namespaceBoolean(@javax.annotation.Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; return this; } @@ -715,12 +744,12 @@ public Boolean getNamespaceBoolean() { @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNamespaceBoolean(Boolean namespaceBoolean) { + public void setNamespaceBoolean(@javax.annotation.Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } - public XmlItem namespaceArray(List namespaceArray) { + public XmlItem namespaceArray(@javax.annotation.Nullable List namespaceArray) { this.namespaceArray = namespaceArray; return this; } @@ -748,12 +777,12 @@ public List getNamespaceArray() { @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNamespaceArray(List namespaceArray) { + public void setNamespaceArray(@javax.annotation.Nullable List namespaceArray) { this.namespaceArray = namespaceArray; } - public XmlItem namespaceWrappedArray(List namespaceWrappedArray) { + public XmlItem namespaceWrappedArray(@javax.annotation.Nullable List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; return this; } @@ -781,12 +810,12 @@ public List getNamespaceWrappedArray() { @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNamespaceWrappedArray(List namespaceWrappedArray) { + public void setNamespaceWrappedArray(@javax.annotation.Nullable List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem prefixNsString(String prefixNsString) { + public XmlItem prefixNsString(@javax.annotation.Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; } @@ -806,12 +835,12 @@ public String getPrefixNsString() { @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNsString(String prefixNsString) { + public void setPrefixNsString(@javax.annotation.Nullable String prefixNsString) { this.prefixNsString = prefixNsString; } - public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + public XmlItem prefixNsNumber(@javax.annotation.Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; return this; } @@ -831,12 +860,12 @@ public BigDecimal getPrefixNsNumber() { @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNsNumber(BigDecimal prefixNsNumber) { + public void setPrefixNsNumber(@javax.annotation.Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } - public XmlItem prefixNsInteger(Integer prefixNsInteger) { + public XmlItem prefixNsInteger(@javax.annotation.Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; return this; } @@ -856,12 +885,12 @@ public Integer getPrefixNsInteger() { @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNsInteger(Integer prefixNsInteger) { + public void setPrefixNsInteger(@javax.annotation.Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } - public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + public XmlItem prefixNsBoolean(@javax.annotation.Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; return this; } @@ -881,12 +910,12 @@ public Boolean getPrefixNsBoolean() { @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNsBoolean(Boolean prefixNsBoolean) { + public void setPrefixNsBoolean(@javax.annotation.Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } - public XmlItem prefixNsArray(List prefixNsArray) { + public XmlItem prefixNsArray(@javax.annotation.Nullable List prefixNsArray) { this.prefixNsArray = prefixNsArray; return this; } @@ -914,12 +943,12 @@ public List getPrefixNsArray() { @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNsArray(List prefixNsArray) { + public void setPrefixNsArray(@javax.annotation.Nullable List prefixNsArray) { this.prefixNsArray = prefixNsArray; } - public XmlItem prefixNsWrappedArray(List prefixNsWrappedArray) { + public XmlItem prefixNsWrappedArray(@javax.annotation.Nullable List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; return this; } @@ -947,7 +976,7 @@ public List getPrefixNsWrappedArray() { @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { + public void setPrefixNsWrappedArray(@javax.annotation.Nullable List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index f5f3cc12f326..7e8a4a611e32 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -39,12 +39,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesAnyType { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public AdditionalPropertiesAnyType() { } - public AdditionalPropertiesAnyType name(String name) { + public AdditionalPropertiesAnyType name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -64,7 +65,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 8415bf9aa763..c3428b56017d 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -40,12 +40,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesArray { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public AdditionalPropertiesArray() { } - public AdditionalPropertiesArray name(String name) { + public AdditionalPropertiesArray name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -65,7 +66,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 3acafeb44f99..79c34b081079 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -39,12 +39,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesBoolean { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public AdditionalPropertiesBoolean() { } - public AdditionalPropertiesBoolean name(String name) { + public AdditionalPropertiesBoolean name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -64,7 +65,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index f23a1ac87750..c802fd38d5ce 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -49,42 +49,53 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_STRING = "map_string"; + @javax.annotation.Nullable private Map mapString = new HashMap<>(); public static final String JSON_PROPERTY_MAP_NUMBER = "map_number"; + @javax.annotation.Nullable private Map mapNumber = new HashMap<>(); public static final String JSON_PROPERTY_MAP_INTEGER = "map_integer"; + @javax.annotation.Nullable private Map mapInteger = new HashMap<>(); public static final String JSON_PROPERTY_MAP_BOOLEAN = "map_boolean"; + @javax.annotation.Nullable private Map mapBoolean = new HashMap<>(); public static final String JSON_PROPERTY_MAP_ARRAY_INTEGER = "map_array_integer"; + @javax.annotation.Nullable private Map> mapArrayInteger = new HashMap<>(); public static final String JSON_PROPERTY_MAP_ARRAY_ANYTYPE = "map_array_anytype"; + @javax.annotation.Nullable private Map> mapArrayAnytype = new HashMap<>(); public static final String JSON_PROPERTY_MAP_MAP_STRING = "map_map_string"; + @javax.annotation.Nullable private Map> mapMapString = new HashMap<>(); public static final String JSON_PROPERTY_MAP_MAP_ANYTYPE = "map_map_anytype"; + @javax.annotation.Nullable private Map> mapMapAnytype = new HashMap<>(); public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1"; + @javax.annotation.Nullable private Object anytype1; public static final String JSON_PROPERTY_ANYTYPE2 = "anytype_2"; + @javax.annotation.Nullable private Object anytype2; public static final String JSON_PROPERTY_ANYTYPE3 = "anytype_3"; + @javax.annotation.Nullable private Object anytype3; public AdditionalPropertiesClass() { } - public AdditionalPropertiesClass mapString(Map mapString) { + public AdditionalPropertiesClass mapString(@javax.annotation.Nullable Map mapString) { this.mapString = mapString; return this; } @@ -112,12 +123,12 @@ public Map getMapString() { @JsonProperty(JSON_PROPERTY_MAP_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapString(Map mapString) { + public void setMapString(@javax.annotation.Nullable Map mapString) { this.mapString = mapString; } - public AdditionalPropertiesClass mapNumber(Map mapNumber) { + public AdditionalPropertiesClass mapNumber(@javax.annotation.Nullable Map mapNumber) { this.mapNumber = mapNumber; return this; } @@ -145,12 +156,12 @@ public Map getMapNumber() { @JsonProperty(JSON_PROPERTY_MAP_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapNumber(Map mapNumber) { + public void setMapNumber(@javax.annotation.Nullable Map mapNumber) { this.mapNumber = mapNumber; } - public AdditionalPropertiesClass mapInteger(Map mapInteger) { + public AdditionalPropertiesClass mapInteger(@javax.annotation.Nullable Map mapInteger) { this.mapInteger = mapInteger; return this; } @@ -178,12 +189,12 @@ public Map getMapInteger() { @JsonProperty(JSON_PROPERTY_MAP_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapInteger(Map mapInteger) { + public void setMapInteger(@javax.annotation.Nullable Map mapInteger) { this.mapInteger = mapInteger; } - public AdditionalPropertiesClass mapBoolean(Map mapBoolean) { + public AdditionalPropertiesClass mapBoolean(@javax.annotation.Nullable Map mapBoolean) { this.mapBoolean = mapBoolean; return this; } @@ -211,12 +222,12 @@ public Map getMapBoolean() { @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapBoolean(Map mapBoolean) { + public void setMapBoolean(@javax.annotation.Nullable Map mapBoolean) { this.mapBoolean = mapBoolean; } - public AdditionalPropertiesClass mapArrayInteger(Map> mapArrayInteger) { + public AdditionalPropertiesClass mapArrayInteger(@javax.annotation.Nullable Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; return this; } @@ -244,12 +255,12 @@ public Map> getMapArrayInteger() { @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapArrayInteger(Map> mapArrayInteger) { + public void setMapArrayInteger(@javax.annotation.Nullable Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; } - public AdditionalPropertiesClass mapArrayAnytype(Map> mapArrayAnytype) { + public AdditionalPropertiesClass mapArrayAnytype(@javax.annotation.Nullable Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; return this; } @@ -277,12 +288,12 @@ public Map> getMapArrayAnytype() { @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapArrayAnytype(Map> mapArrayAnytype) { + public void setMapArrayAnytype(@javax.annotation.Nullable Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; } - public AdditionalPropertiesClass mapMapString(Map> mapMapString) { + public AdditionalPropertiesClass mapMapString(@javax.annotation.Nullable Map> mapMapString) { this.mapMapString = mapMapString; return this; } @@ -310,12 +321,12 @@ public Map> getMapMapString() { @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapMapString(Map> mapMapString) { + public void setMapMapString(@javax.annotation.Nullable Map> mapMapString) { this.mapMapString = mapMapString; } - public AdditionalPropertiesClass mapMapAnytype(Map> mapMapAnytype) { + public AdditionalPropertiesClass mapMapAnytype(@javax.annotation.Nullable Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; return this; } @@ -343,12 +354,12 @@ public Map> getMapMapAnytype() { @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapMapAnytype(Map> mapMapAnytype) { + public void setMapMapAnytype(@javax.annotation.Nullable Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@javax.annotation.Nullable Object anytype1) { this.anytype1 = anytype1; return this; } @@ -368,12 +379,12 @@ public Object getAnytype1() { @JsonProperty(JSON_PROPERTY_ANYTYPE1) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAnytype1(Object anytype1) { + public void setAnytype1(@javax.annotation.Nullable Object anytype1) { this.anytype1 = anytype1; } - public AdditionalPropertiesClass anytype2(Object anytype2) { + public AdditionalPropertiesClass anytype2(@javax.annotation.Nullable Object anytype2) { this.anytype2 = anytype2; return this; } @@ -393,12 +404,12 @@ public Object getAnytype2() { @JsonProperty(JSON_PROPERTY_ANYTYPE2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAnytype2(Object anytype2) { + public void setAnytype2(@javax.annotation.Nullable Object anytype2) { this.anytype2 = anytype2; } - public AdditionalPropertiesClass anytype3(Object anytype3) { + public AdditionalPropertiesClass anytype3(@javax.annotation.Nullable Object anytype3) { this.anytype3 = anytype3; return this; } @@ -418,7 +429,7 @@ public Object getAnytype3() { @JsonProperty(JSON_PROPERTY_ANYTYPE3) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAnytype3(Object anytype3) { + public void setAnytype3(@javax.annotation.Nullable Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 3ee51d2b3e0f..eb6f94f088b1 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -39,12 +39,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesInteger { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public AdditionalPropertiesInteger() { } - public AdditionalPropertiesInteger name(String name) { + public AdditionalPropertiesInteger name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -64,7 +65,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index 9b78449798b0..242c023d4382 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -40,12 +40,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesNumber { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public AdditionalPropertiesNumber() { } - public AdditionalPropertiesNumber name(String name) { + public AdditionalPropertiesNumber name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -65,7 +66,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index 311149923d86..286e8bf17c13 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -40,12 +40,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesObject { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public AdditionalPropertiesObject() { } - public AdditionalPropertiesObject name(String name) { + public AdditionalPropertiesObject name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -65,7 +66,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index faaf5f3fdf26..2e92c65cae12 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -39,12 +39,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesString { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public AdditionalPropertiesString() { } - public AdditionalPropertiesString name(String name) { + public AdditionalPropertiesString name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -64,7 +65,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Animal.java index 02afc1c37d1d..3ca4615dfada 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Animal.java @@ -50,15 +50,17 @@ public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; + @javax.annotation.Nonnull private String className; public static final String JSON_PROPERTY_COLOR = "color"; + @javax.annotation.Nullable private String color = "red"; public Animal() { } - public Animal className(String className) { + public Animal className(@javax.annotation.Nonnull String className) { this.className = className; return this; } @@ -78,12 +80,12 @@ public String getClassName() { @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setClassName(String className) { + public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; } - public Animal color(String color) { + public Animal color(@javax.annotation.Nullable String color) { this.color = color; return this; } @@ -103,7 +105,7 @@ public String getColor() { @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setColor(String color) { + public void setColor(@javax.annotation.Nullable String color) { this.color = color; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 1b3998955e4c..8bfd29af5de7 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -38,12 +38,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayOfArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; + @javax.annotation.Nullable private List> arrayArrayNumber = new ArrayList<>(); public ArrayOfArrayOfNumberOnly() { } - public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + public ArrayOfArrayOfNumberOnly arrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; return this; } @@ -71,7 +72,7 @@ public List> getArrayArrayNumber() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayNumber(List> arrayArrayNumber) { + public void setArrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index ca46dc2005f1..8dd0d6b355a9 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -38,12 +38,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; + @javax.annotation.Nullable private List arrayNumber = new ArrayList<>(); public ArrayOfNumberOnly() { } - public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + public ArrayOfNumberOnly arrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; return this; } @@ -71,7 +72,7 @@ public List getArrayNumber() { @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayNumber(List arrayNumber) { + public void setArrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayTest.java index dff29850ea89..76837073093c 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -40,18 +40,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; + @javax.annotation.Nullable private List arrayOfString = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; + @javax.annotation.Nullable private List> arrayArrayOfInteger = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; + @javax.annotation.Nullable private List> arrayArrayOfModel = new ArrayList<>(); public ArrayTest() { } - public ArrayTest arrayOfString(List arrayOfString) { + public ArrayTest arrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; return this; } @@ -79,12 +82,12 @@ public List getArrayOfString() { @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayOfString(List arrayOfString) { + public void setArrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; } - public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + public ArrayTest arrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; return this; } @@ -112,12 +115,12 @@ public List> getArrayArrayOfInteger() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { + public void setArrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } - public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + public ArrayTest arrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; return this; } @@ -145,7 +148,7 @@ public List> getArrayArrayOfModel() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayOfModel(List> arrayArrayOfModel) { + public void setArrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/BigCat.java index 9b6e21630669..9bc86a83426b 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/BigCat.java @@ -84,12 +84,13 @@ public static KindEnum fromValue(String value) { } public static final String JSON_PROPERTY_KIND = "kind"; + @javax.annotation.Nullable private KindEnum kind; public BigCat() { } - public BigCat kind(KindEnum kind) { + public BigCat kind(@javax.annotation.Nullable KindEnum kind) { this.kind = kind; return this; } @@ -109,7 +110,7 @@ public KindEnum getKind() { @JsonProperty(JSON_PROPERTY_KIND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setKind(KindEnum kind) { + public void setKind(@javax.annotation.Nullable KindEnum kind) { this.kind = kind; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Capitalization.java index f3ef112bcae5..a52af42c9a76 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Capitalization.java @@ -40,27 +40,33 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Capitalization { public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; + @javax.annotation.Nullable private String smallCamel; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; + @javax.annotation.Nullable private String capitalCamel; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; + @javax.annotation.Nullable private String smallSnake; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; + @javax.annotation.Nullable private String capitalSnake; public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; + @javax.annotation.Nullable private String scAETHFlowPoints; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; + @javax.annotation.Nullable private String ATT_NAME; public Capitalization() { } - public Capitalization smallCamel(String smallCamel) { + public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; return this; } @@ -80,12 +86,12 @@ public String getSmallCamel() { @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmallCamel(String smallCamel) { + public void setSmallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; } - public Capitalization capitalCamel(String capitalCamel) { + public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; return this; } @@ -105,12 +111,12 @@ public String getCapitalCamel() { @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCapitalCamel(String capitalCamel) { + public void setCapitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; } - public Capitalization smallSnake(String smallSnake) { + public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; return this; } @@ -130,12 +136,12 @@ public String getSmallSnake() { @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmallSnake(String smallSnake) { + public void setSmallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; } - public Capitalization capitalSnake(String capitalSnake) { + public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; return this; } @@ -155,12 +161,12 @@ public String getCapitalSnake() { @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCapitalSnake(String capitalSnake) { + public void setCapitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; } - public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -180,12 +186,12 @@ public String getScAETHFlowPoints() { @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setScAETHFlowPoints(String scAETHFlowPoints) { + public void setScAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } - public Capitalization ATT_NAME(String ATT_NAME) { + public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; return this; } @@ -205,7 +211,7 @@ public String getATTNAME() { @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setATTNAME(String ATT_NAME) { + public void setATTNAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Cat.java index dbee5ffc9108..4e5000471d17 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Cat.java @@ -48,12 +48,13 @@ public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; + @javax.annotation.Nullable private Boolean declawed; public Cat() { } - public Cat declawed(Boolean declawed) { + public Cat declawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -73,7 +74,7 @@ public Boolean getDeclawed() { @JsonProperty(JSON_PROPERTY_DECLAWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Category.java index 95e3131e8415..936eab54e280 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Category.java @@ -36,15 +36,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Category { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private String name = "default-name"; public Category() { } - public Category id(Long id) { + public Category id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -64,12 +66,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@javax.annotation.Nonnull String name) { this.name = name; return this; } @@ -89,7 +91,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ClassModel.java index 494233c54e6c..d3623a71cf5c 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ClassModel.java @@ -35,12 +35,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ClassModel { public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; + @javax.annotation.Nullable private String propertyClass; public ClassModel() { } - public ClassModel propertyClass(String propertyClass) { + public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -60,7 +61,7 @@ public String getPropertyClass() { @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Client.java index 4d577e3da2b6..0f780520bab0 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Client.java @@ -35,12 +35,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Client { public static final String JSON_PROPERTY_CLIENT = "client"; + @javax.annotation.Nullable private String client; public Client() { } - public Client client(String client) { + public Client client(@javax.annotation.Nullable String client) { this.client = client; return this; } @@ -60,7 +61,7 @@ public String getClient() { @JsonProperty(JSON_PROPERTY_CLIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setClient(String client) { + public void setClient(@javax.annotation.Nullable String client) { this.client = client; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Dog.java index 0d1b1d0a1e21..3b3da968dd51 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Dog.java @@ -45,12 +45,13 @@ public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; + @javax.annotation.Nullable private String breed; public Dog() { } - public Dog breed(String breed) { + public Dog breed(@javax.annotation.Nullable String breed) { this.breed = breed; return this; } @@ -70,7 +71,7 @@ public String getBreed() { @JsonProperty(JSON_PROPERTY_BREED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBreed(String breed) { + public void setBreed(@javax.annotation.Nullable String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumArrays.java index 4945e0476b52..e2e1b8803056 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -73,6 +73,7 @@ public static JustSymbolEnum fromValue(String value) { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** @@ -111,12 +112,13 @@ public static ArrayEnumEnum fromValue(String value) { } public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; + @javax.annotation.Nullable private List arrayEnum = new ArrayList<>(); public EnumArrays() { } - public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; } @@ -136,12 +138,12 @@ public JustSymbolEnum getJustSymbol() { @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJustSymbol(JustSymbolEnum justSymbol) { + public void setJustSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } - public EnumArrays arrayEnum(List arrayEnum) { + public EnumArrays arrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; return this; } @@ -169,7 +171,7 @@ public List getArrayEnum() { @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayEnum(List arrayEnum) { + public void setArrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumTest.java index f25d2337822c..80665f19391b 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumTest.java @@ -78,6 +78,7 @@ public static EnumStringEnum fromValue(String value) { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; + @javax.annotation.Nullable private EnumStringEnum enumString; /** @@ -118,6 +119,7 @@ public static EnumStringRequiredEnum fromValue(String value) { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** @@ -156,6 +158,7 @@ public static EnumIntegerEnum fromValue(Integer value) { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** @@ -194,15 +197,17 @@ public static EnumNumberEnum fromValue(Double value) { } public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; + @javax.annotation.Nullable private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; + @javax.annotation.Nullable private OuterEnum outerEnum; public EnumTest() { } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -222,12 +227,12 @@ public EnumStringEnum getEnumString() { @JsonProperty(JSON_PROPERTY_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumString(EnumStringEnum enumString) { + public void setEnumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; } - public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; return this; } @@ -247,12 +252,12 @@ public EnumStringRequiredEnum getEnumStringRequired() { @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public void setEnumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -272,12 +277,12 @@ public EnumIntegerEnum getEnumInteger() { @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumInteger(EnumIntegerEnum enumInteger) { + public void setEnumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } - public EnumTest enumNumber(EnumNumberEnum enumNumber) { + public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; return this; } @@ -297,12 +302,12 @@ public EnumNumberEnum getEnumNumber() { @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumNumber(EnumNumberEnum enumNumber) { + public void setEnumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } - public EnumTest outerEnum(OuterEnum outerEnum) { + public EnumTest outerEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; return this; } @@ -322,7 +327,7 @@ public OuterEnum getOuterEnum() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnum(OuterEnum outerEnum) { + public void setOuterEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index ade6ef1535b3..5172663a1be3 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -39,15 +39,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; + @javax.annotation.Nullable private ModelFile _file; public static final String JSON_PROPERTY_FILES = "files"; + @javax.annotation.Nullable private List files = new ArrayList<>(); public FileSchemaTestClass() { } - public FileSchemaTestClass _file(ModelFile _file) { + public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { this._file = _file; return this; } @@ -67,12 +69,12 @@ public ModelFile getFile() { @JsonProperty(JSON_PROPERTY_FILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFile(ModelFile _file) { + public void setFile(@javax.annotation.Nullable ModelFile _file) { this._file = _file; } - public FileSchemaTestClass files(List files) { + public FileSchemaTestClass files(@javax.annotation.Nullable List files) { this.files = files; return this; } @@ -100,7 +102,7 @@ public List getFiles() { @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFiles(List files) { + public void setFiles(@javax.annotation.Nullable List files) { this.files = files; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FormatTest.java index 86ba2cbddf21..843b6690bf49 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FormatTest.java @@ -54,51 +54,65 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; + @javax.annotation.Nullable private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; + @javax.annotation.Nullable private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; + @javax.annotation.Nullable private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; + @javax.annotation.Nonnull private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; + @javax.annotation.Nullable private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; + @javax.annotation.Nullable private Double _double; public static final String JSON_PROPERTY_STRING = "string"; + @javax.annotation.Nullable private String string; public static final String JSON_PROPERTY_BYTE = "byte"; + @javax.annotation.Nonnull private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; + @javax.annotation.Nullable private File binary; public static final String JSON_PROPERTY_DATE = "date"; + @javax.annotation.Nonnull private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; + @javax.annotation.Nonnull private String password; public static final String JSON_PROPERTY_BIG_DECIMAL = "BigDecimal"; + @javax.annotation.Nullable private BigDecimal bigDecimal; public FormatTest() { } - public FormatTest integer(Integer integer) { + public FormatTest integer(@javax.annotation.Nullable Integer integer) { this.integer = integer; return this; } @@ -120,12 +134,12 @@ public Integer getInteger() { @JsonProperty(JSON_PROPERTY_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInteger(Integer integer) { + public void setInteger(@javax.annotation.Nullable Integer integer) { this.integer = integer; } - public FormatTest int32(Integer int32) { + public FormatTest int32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; return this; } @@ -147,12 +161,12 @@ public Integer getInt32() { @JsonProperty(JSON_PROPERTY_INT32) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInt32(Integer int32) { + public void setInt32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; } - public FormatTest int64(Long int64) { + public FormatTest int64(@javax.annotation.Nullable Long int64) { this.int64 = int64; return this; } @@ -172,12 +186,12 @@ public Long getInt64() { @JsonProperty(JSON_PROPERTY_INT64) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInt64(Long int64) { + public void setInt64(@javax.annotation.Nullable Long int64) { this.int64 = int64; } - public FormatTest number(BigDecimal number) { + public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { this.number = number; return this; } @@ -199,12 +213,12 @@ public BigDecimal getNumber() { @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNumber(BigDecimal number) { + public void setNumber(@javax.annotation.Nonnull BigDecimal number) { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@javax.annotation.Nullable Float _float) { this._float = _float; return this; } @@ -226,12 +240,12 @@ public Float getFloat() { @JsonProperty(JSON_PROPERTY_FLOAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFloat(Float _float) { + public void setFloat(@javax.annotation.Nullable Float _float) { this._float = _float; } - public FormatTest _double(Double _double) { + public FormatTest _double(@javax.annotation.Nullable Double _double) { this._double = _double; return this; } @@ -253,12 +267,12 @@ public Double getDouble() { @JsonProperty(JSON_PROPERTY_DOUBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDouble(Double _double) { + public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; } - public FormatTest string(String string) { + public FormatTest string(@javax.annotation.Nullable String string) { this.string = string; return this; } @@ -278,12 +292,12 @@ public String getString() { @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setString(String string) { + public void setString(@javax.annotation.Nullable String string) { this.string = string; } - public FormatTest _byte(byte[] _byte) { + public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; return this; } @@ -303,12 +317,12 @@ public byte[] getByte() { @JsonProperty(JSON_PROPERTY_BYTE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setByte(byte[] _byte) { + public void setByte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; } - public FormatTest binary(File binary) { + public FormatTest binary(@javax.annotation.Nullable File binary) { this.binary = binary; return this; } @@ -328,12 +342,12 @@ public File getBinary() { @JsonProperty(JSON_PROPERTY_BINARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBinary(File binary) { + public void setBinary(@javax.annotation.Nullable File binary) { this.binary = binary; } - public FormatTest date(LocalDate date) { + public FormatTest date(@javax.annotation.Nonnull LocalDate date) { this.date = date; return this; } @@ -353,12 +367,12 @@ public LocalDate getDate() { @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDate(LocalDate date) { + public void setDate(@javax.annotation.Nonnull LocalDate date) { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -378,12 +392,12 @@ public OffsetDateTime getDateTime() { @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public FormatTest uuid(UUID uuid) { + public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -403,12 +417,12 @@ public UUID getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(UUID uuid) { + public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public FormatTest password(String password) { + public FormatTest password(@javax.annotation.Nonnull String password) { this.password = password; return this; } @@ -428,12 +442,12 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nonnull String password) { this.password = password; } - public FormatTest bigDecimal(BigDecimal bigDecimal) { + public FormatTest bigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; } @@ -453,7 +467,7 @@ public BigDecimal getBigDecimal() { @JsonProperty(JSON_PROPERTY_BIG_DECIMAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBigDecimal(BigDecimal bigDecimal) { + public void setBigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index eebdf013480a..149d9c92a0fe 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -37,9 +37,11 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_FOO = "foo"; + @javax.annotation.Nullable private String foo; public HasOnlyReadOnly() { diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MapTest.java index 845b86c22c34..f85a41bf5acf 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MapTest.java @@ -40,6 +40,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; + @javax.annotation.Nullable private Map> mapMapOfString = new HashMap<>(); /** @@ -78,18 +79,21 @@ public static InnerEnum fromValue(String value) { } public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; + @javax.annotation.Nullable private Map mapOfEnumString = new HashMap<>(); public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; + @javax.annotation.Nullable private Map directMap = new HashMap<>(); public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; + @javax.annotation.Nullable private Map indirectMap = new HashMap<>(); public MapTest() { } - public MapTest mapMapOfString(Map> mapMapOfString) { + public MapTest mapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; return this; } @@ -117,12 +121,12 @@ public Map> getMapMapOfString() { @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapMapOfString(Map> mapMapOfString) { + public void setMapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } - public MapTest mapOfEnumString(Map mapOfEnumString) { + public MapTest mapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; return this; } @@ -150,12 +154,12 @@ public Map getMapOfEnumString() { @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapOfEnumString(Map mapOfEnumString) { + public void setMapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } - public MapTest directMap(Map directMap) { + public MapTest directMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; return this; } @@ -183,12 +187,12 @@ public Map getDirectMap() { @JsonProperty(JSON_PROPERTY_DIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDirectMap(Map directMap) { + public void setDirectMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; } - public MapTest indirectMap(Map indirectMap) { + public MapTest indirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; return this; } @@ -216,7 +220,7 @@ public Map getIndirectMap() { @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIndirectMap(Map indirectMap) { + public void setIndirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 7bd878397871..1d8e79903204 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -42,18 +42,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; + @javax.annotation.Nullable private Map map = new HashMap<>(); public MixedPropertiesAndAdditionalPropertiesClass() { } - public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -73,12 +76,12 @@ public UUID getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(UUID uuid) { + public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -98,12 +101,12 @@ public OffsetDateTime getDateTime() { @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + public MixedPropertiesAndAdditionalPropertiesClass map(@javax.annotation.Nullable Map map) { this.map = map; return this; } @@ -131,7 +134,7 @@ public Map getMap() { @JsonProperty(JSON_PROPERTY_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMap(Map map) { + public void setMap(@javax.annotation.Nullable Map map) { this.map = map; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Model200Response.java index 9969dfbbebd6..aef50b04ef33 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Model200Response.java @@ -37,15 +37,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; + @javax.annotation.Nullable private String propertyClass; public Model200Response() { } - public Model200Response name(Integer name) { + public Model200Response name(@javax.annotation.Nullable Integer name) { this.name = name; return this; } @@ -65,12 +67,12 @@ public Integer getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(Integer name) { + public void setName(@javax.annotation.Nullable Integer name) { this.name = name; } - public Model200Response propertyClass(String propertyClass) { + public Model200Response propertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -90,7 +92,7 @@ public String getPropertyClass() { @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelApiResponse.java index a41bf414803c..2e8205a694a1 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -38,18 +38,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nullable private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nullable private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; + @javax.annotation.Nullable private String message; public ModelApiResponse() { } - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@javax.annotation.Nullable Integer code) { this.code = code; return this; } @@ -69,12 +72,12 @@ public Integer getCode() { @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCode(Integer code) { + public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@javax.annotation.Nullable String type) { this.type = type; return this; } @@ -94,12 +97,12 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { + public void setType(@javax.annotation.Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@javax.annotation.Nullable String message) { this.message = message; return this; } @@ -119,7 +122,7 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelFile.java index 5e8b7dd4bf5a..a0b5e88d2ee0 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelFile.java @@ -36,12 +36,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelFile { public static final String JSON_PROPERTY_SOURCE_U_R_I = "sourceURI"; + @javax.annotation.Nullable private String sourceURI; public ModelFile() { } - public ModelFile sourceURI(String sourceURI) { + public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; return this; } @@ -61,7 +62,7 @@ public String getSourceURI() { @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSourceURI(String sourceURI) { + public void setSourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelList.java index 97b4cb7539ce..87a59ce3c747 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelList.java @@ -36,12 +36,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelList { public static final String JSON_PROPERTY_123LIST = "123-list"; + @javax.annotation.Nullable private String _123list; public ModelList() { } - public ModelList _123list(String _123list) { + public ModelList _123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; return this; } @@ -61,7 +62,7 @@ public String get123list() { @JsonProperty(JSON_PROPERTY_123LIST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void set123list(String _123list) { + public void set123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelReturn.java index 2738d6e2a99e..35441230b60f 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -36,12 +36,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; + @javax.annotation.Nullable private Integer _return; public ModelReturn() { } - public ModelReturn _return(Integer _return) { + public ModelReturn _return(@javax.annotation.Nullable Integer _return) { this._return = _return; return this; } @@ -61,7 +62,7 @@ public Integer getReturn() { @JsonProperty(JSON_PROPERTY_RETURN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setReturn(Integer _return) { + public void setReturn(@javax.annotation.Nullable Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Name.java index 726e5874186a..3702f96a2e2f 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Name.java @@ -38,15 +38,19 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Name { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; + @javax.annotation.Nullable private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; + @javax.annotation.Nullable private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; + @javax.annotation.Nullable private Integer _123number; public Name() { @@ -62,7 +66,7 @@ public Name( this._123number = _123number; } - public Name name(Integer name) { + public Name name(@javax.annotation.Nonnull Integer name) { this.name = name; return this; } @@ -82,7 +86,7 @@ public Integer getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(Integer name) { + public void setName(@javax.annotation.Nonnull Integer name) { this.name = name; } @@ -102,7 +106,7 @@ public Integer getSnakeCase() { - public Name property(String property) { + public Name property(@javax.annotation.Nullable String property) { this.property = property; return this; } @@ -122,7 +126,7 @@ public String getProperty() { @JsonProperty(JSON_PROPERTY_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProperty(String property) { + public void setProperty(@javax.annotation.Nullable String property) { this.property = property; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/NumberOnly.java index 25e8e2f725da..1ddf9e67a9d3 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -36,12 +36,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; + @javax.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } - public NumberOnly justNumber(BigDecimal justNumber) { + public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; } @@ -61,7 +62,7 @@ public BigDecimal getJustNumber() { @JsonProperty(JSON_PROPERTY_JUST_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJustNumber(BigDecimal justNumber) { + public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Order.java index 038b1f9c67a9..52ce14e9b271 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Order.java @@ -41,15 +41,19 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Order { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; + @javax.annotation.Nullable private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; + @javax.annotation.Nullable private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; + @javax.annotation.Nullable private OffsetDateTime shipDate; /** @@ -90,15 +94,17 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @javax.annotation.Nullable private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; + @javax.annotation.Nullable private Boolean complete = false; public Order() { } - public Order id(Long id) { + public Order id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -118,12 +124,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@javax.annotation.Nullable Long petId) { this.petId = petId; return this; } @@ -143,12 +149,12 @@ public Long getPetId() { @JsonProperty(JSON_PROPERTY_PET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPetId(Long petId) { + public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -168,12 +174,12 @@ public Integer getQuantity() { @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setQuantity(Integer quantity) { + public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -193,12 +199,12 @@ public OffsetDateTime getShipDate() { @JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; } @@ -218,12 +224,12 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } - public Order complete(Boolean complete) { + public Order complete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; return this; } @@ -243,7 +249,7 @@ public Boolean getComplete() { @JsonProperty(JSON_PROPERTY_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setComplete(Boolean complete) { + public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/OuterComposite.java index 9298de14bb65..448311309ac7 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -38,18 +38,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; + @javax.annotation.Nullable private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; + @javax.annotation.Nullable private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; + @javax.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } - public OuterComposite myNumber(BigDecimal myNumber) { + public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; } @@ -69,12 +72,12 @@ public BigDecimal getMyNumber() { @JsonProperty(JSON_PROPERTY_MY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyNumber(BigDecimal myNumber) { + public void setMyNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; } - public OuterComposite myString(String myString) { + public OuterComposite myString(@javax.annotation.Nullable String myString) { this.myString = myString; return this; } @@ -94,12 +97,12 @@ public String getMyString() { @JsonProperty(JSON_PROPERTY_MY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyString(String myString) { + public void setMyString(@javax.annotation.Nullable String myString) { this.myString = myString; } - public OuterComposite myBoolean(Boolean myBoolean) { + public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; return this; } @@ -119,7 +122,7 @@ public Boolean getMyBoolean() { @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyBoolean(Boolean myBoolean) { + public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Pet.java index c5d8b6caa05a..cc609ca5f170 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Pet.java @@ -47,18 +47,23 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Pet { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; + @javax.annotation.Nullable private Category category; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; + @javax.annotation.Nonnull private Set photoUrls = new LinkedHashSet<>(); public static final String JSON_PROPERTY_TAGS = "tags"; + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** @@ -99,12 +104,13 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } - public Pet id(Long id) { + public Pet id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -124,12 +130,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@javax.annotation.Nullable Category category) { this.category = category; return this; } @@ -149,12 +155,12 @@ public Category getCategory() { @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCategory(Category category) { + public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; } - public Pet name(String name) { + public Pet name(@javax.annotation.Nonnull String name) { this.name = name; return this; } @@ -174,12 +180,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } - public Pet photoUrls(Set photoUrls) { + public Pet photoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; return this; } @@ -208,12 +214,12 @@ public Set getPhotoUrls() { @JsonDeserialize(as = LinkedHashSet.class) @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPhotoUrls(Set photoUrls) { + public void setPhotoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; } - public Pet tags(List tags) { + public Pet tags(@javax.annotation.Nullable List tags) { this.tags = tags; return this; } @@ -241,12 +247,12 @@ public List getTags() { @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTags(List tags) { + public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; } @@ -266,7 +272,7 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 8e2c2b11ae6e..73ccf4eeb69d 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -36,9 +36,11 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; + @javax.annotation.Nullable private String baz; public ReadOnlyFirst() { @@ -67,7 +69,7 @@ public String getBar() { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { this.baz = baz; return this; } @@ -87,7 +89,7 @@ public String getBaz() { @JsonProperty(JSON_PROPERTY_BAZ) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBaz(String baz) { + public void setBaz(@javax.annotation.Nullable String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/SpecialModelName.java index 7130a45f47ec..43b3f5f1ddfa 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -36,12 +36,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; + @javax.annotation.Nullable private Long $specialPropertyName; public SpecialModelName() { } - public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + public SpecialModelName $specialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; return this; } @@ -61,7 +62,7 @@ public SpecialModelName() { @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void set$SpecialPropertyName(Long $specialPropertyName) { + public void set$SpecialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Tag.java index b3097bd9bf8d..bacb1fb92747 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Tag.java @@ -36,15 +36,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Tag { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public Tag() { } - public Tag id(Long id) { + public Tag id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -64,12 +66,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -89,7 +91,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index 2daf12cb584c..ec6aaf3f30a7 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -42,24 +42,29 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class TypeHolderDefault { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; + @javax.annotation.Nonnull private String stringItem = "what"; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; + @javax.annotation.Nonnull private BigDecimal numberItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; + @javax.annotation.Nonnull private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; + @javax.annotation.Nonnull private Boolean boolItem = true; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; + @javax.annotation.Nonnull private List arrayItem = new ArrayList<>(); public TypeHolderDefault() { } - public TypeHolderDefault stringItem(String stringItem) { + public TypeHolderDefault stringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; return this; } @@ -79,12 +84,12 @@ public String getStringItem() { @JsonProperty(JSON_PROPERTY_STRING_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStringItem(String stringItem) { + public void setStringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; } - public TypeHolderDefault numberItem(BigDecimal numberItem) { + public TypeHolderDefault numberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; return this; } @@ -104,12 +109,12 @@ public BigDecimal getNumberItem() { @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNumberItem(BigDecimal numberItem) { + public void setNumberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; } - public TypeHolderDefault integerItem(Integer integerItem) { + public TypeHolderDefault integerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; return this; } @@ -129,12 +134,12 @@ public Integer getIntegerItem() { @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setIntegerItem(Integer integerItem) { + public void setIntegerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; } - public TypeHolderDefault boolItem(Boolean boolItem) { + public TypeHolderDefault boolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; return this; } @@ -154,12 +159,12 @@ public Boolean getBoolItem() { @JsonProperty(JSON_PROPERTY_BOOL_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBoolItem(Boolean boolItem) { + public void setBoolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; } - public TypeHolderDefault arrayItem(List arrayItem) { + public TypeHolderDefault arrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; return this; } @@ -187,7 +192,7 @@ public List getArrayItem() { @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setArrayItem(List arrayItem) { + public void setArrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TypeHolderExample.java index a99828e518c6..a77fd31f6a83 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -43,27 +43,33 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class TypeHolderExample { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; + @javax.annotation.Nonnull private String stringItem; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; + @javax.annotation.Nonnull private BigDecimal numberItem; public static final String JSON_PROPERTY_FLOAT_ITEM = "float_item"; + @javax.annotation.Nonnull private Float floatItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; + @javax.annotation.Nonnull private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; + @javax.annotation.Nonnull private Boolean boolItem; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; + @javax.annotation.Nonnull private List arrayItem = new ArrayList<>(); public TypeHolderExample() { } - public TypeHolderExample stringItem(String stringItem) { + public TypeHolderExample stringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; return this; } @@ -83,12 +89,12 @@ public String getStringItem() { @JsonProperty(JSON_PROPERTY_STRING_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStringItem(String stringItem) { + public void setStringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; } - public TypeHolderExample numberItem(BigDecimal numberItem) { + public TypeHolderExample numberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; return this; } @@ -108,12 +114,12 @@ public BigDecimal getNumberItem() { @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNumberItem(BigDecimal numberItem) { + public void setNumberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; } - public TypeHolderExample floatItem(Float floatItem) { + public TypeHolderExample floatItem(@javax.annotation.Nonnull Float floatItem) { this.floatItem = floatItem; return this; } @@ -133,12 +139,12 @@ public Float getFloatItem() { @JsonProperty(JSON_PROPERTY_FLOAT_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFloatItem(Float floatItem) { + public void setFloatItem(@javax.annotation.Nonnull Float floatItem) { this.floatItem = floatItem; } - public TypeHolderExample integerItem(Integer integerItem) { + public TypeHolderExample integerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; return this; } @@ -158,12 +164,12 @@ public Integer getIntegerItem() { @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setIntegerItem(Integer integerItem) { + public void setIntegerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; } - public TypeHolderExample boolItem(Boolean boolItem) { + public TypeHolderExample boolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; return this; } @@ -183,12 +189,12 @@ public Boolean getBoolItem() { @JsonProperty(JSON_PROPERTY_BOOL_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBoolItem(Boolean boolItem) { + public void setBoolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; } - public TypeHolderExample arrayItem(List arrayItem) { + public TypeHolderExample arrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; return this; } @@ -216,7 +222,7 @@ public List getArrayItem() { @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setArrayItem(List arrayItem) { + public void setArrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/User.java index a4b587b7039e..0ed15206be0b 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/User.java @@ -42,33 +42,41 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class User { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; + @javax.annotation.Nullable private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; + @javax.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; + @javax.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; + @javax.annotation.Nullable private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; + @javax.annotation.Nullable private String password; public static final String JSON_PROPERTY_PHONE = "phone"; + @javax.annotation.Nullable private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; + @javax.annotation.Nullable private Integer userStatus; public User() { } - public User id(Long id) { + public User id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -88,12 +96,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@javax.annotation.Nullable String username) { this.username = username; return this; } @@ -113,12 +121,12 @@ public String getUsername() { @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsername(String username) { + public void setUsername(@javax.annotation.Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; return this; } @@ -138,12 +146,12 @@ public String getFirstName() { @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFirstName(String firstName) { + public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; return this; } @@ -163,12 +171,12 @@ public String getLastName() { @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLastName(String lastName) { + public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@javax.annotation.Nullable String email) { this.email = email; return this; } @@ -188,12 +196,12 @@ public String getEmail() { @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEmail(String email) { + public void setEmail(@javax.annotation.Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@javax.annotation.Nullable String password) { this.password = password; return this; } @@ -213,12 +221,12 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@javax.annotation.Nullable String phone) { this.phone = phone; return this; } @@ -238,12 +246,12 @@ public String getPhone() { @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPhone(String phone) { + public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -263,7 +271,7 @@ public Integer getUserStatus() { @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/XmlItem.java index e90dca310e88..dbfc38a5ed5a 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/XmlItem.java @@ -66,96 +66,125 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class XmlItem { public static final String JSON_PROPERTY_ATTRIBUTE_STRING = "attribute_string"; + @javax.annotation.Nullable private String attributeString; public static final String JSON_PROPERTY_ATTRIBUTE_NUMBER = "attribute_number"; + @javax.annotation.Nullable private BigDecimal attributeNumber; public static final String JSON_PROPERTY_ATTRIBUTE_INTEGER = "attribute_integer"; + @javax.annotation.Nullable private Integer attributeInteger; public static final String JSON_PROPERTY_ATTRIBUTE_BOOLEAN = "attribute_boolean"; + @javax.annotation.Nullable private Boolean attributeBoolean; public static final String JSON_PROPERTY_WRAPPED_ARRAY = "wrapped_array"; + @javax.annotation.Nullable private List wrappedArray = new ArrayList<>(); public static final String JSON_PROPERTY_NAME_STRING = "name_string"; + @javax.annotation.Nullable private String nameString; public static final String JSON_PROPERTY_NAME_NUMBER = "name_number"; + @javax.annotation.Nullable private BigDecimal nameNumber; public static final String JSON_PROPERTY_NAME_INTEGER = "name_integer"; + @javax.annotation.Nullable private Integer nameInteger; public static final String JSON_PROPERTY_NAME_BOOLEAN = "name_boolean"; + @javax.annotation.Nullable private Boolean nameBoolean; public static final String JSON_PROPERTY_NAME_ARRAY = "name_array"; + @javax.annotation.Nullable private List nameArray = new ArrayList<>(); public static final String JSON_PROPERTY_NAME_WRAPPED_ARRAY = "name_wrapped_array"; + @javax.annotation.Nullable private List nameWrappedArray = new ArrayList<>(); public static final String JSON_PROPERTY_PREFIX_STRING = "prefix_string"; + @javax.annotation.Nullable private String prefixString; public static final String JSON_PROPERTY_PREFIX_NUMBER = "prefix_number"; + @javax.annotation.Nullable private BigDecimal prefixNumber; public static final String JSON_PROPERTY_PREFIX_INTEGER = "prefix_integer"; + @javax.annotation.Nullable private Integer prefixInteger; public static final String JSON_PROPERTY_PREFIX_BOOLEAN = "prefix_boolean"; + @javax.annotation.Nullable private Boolean prefixBoolean; public static final String JSON_PROPERTY_PREFIX_ARRAY = "prefix_array"; + @javax.annotation.Nullable private List prefixArray = new ArrayList<>(); public static final String JSON_PROPERTY_PREFIX_WRAPPED_ARRAY = "prefix_wrapped_array"; + @javax.annotation.Nullable private List prefixWrappedArray = new ArrayList<>(); public static final String JSON_PROPERTY_NAMESPACE_STRING = "namespace_string"; + @javax.annotation.Nullable private String namespaceString; public static final String JSON_PROPERTY_NAMESPACE_NUMBER = "namespace_number"; + @javax.annotation.Nullable private BigDecimal namespaceNumber; public static final String JSON_PROPERTY_NAMESPACE_INTEGER = "namespace_integer"; + @javax.annotation.Nullable private Integer namespaceInteger; public static final String JSON_PROPERTY_NAMESPACE_BOOLEAN = "namespace_boolean"; + @javax.annotation.Nullable private Boolean namespaceBoolean; public static final String JSON_PROPERTY_NAMESPACE_ARRAY = "namespace_array"; + @javax.annotation.Nullable private List namespaceArray = new ArrayList<>(); public static final String JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY = "namespace_wrapped_array"; + @javax.annotation.Nullable private List namespaceWrappedArray = new ArrayList<>(); public static final String JSON_PROPERTY_PREFIX_NS_STRING = "prefix_ns_string"; + @javax.annotation.Nullable private String prefixNsString; public static final String JSON_PROPERTY_PREFIX_NS_NUMBER = "prefix_ns_number"; + @javax.annotation.Nullable private BigDecimal prefixNsNumber; public static final String JSON_PROPERTY_PREFIX_NS_INTEGER = "prefix_ns_integer"; + @javax.annotation.Nullable private Integer prefixNsInteger; public static final String JSON_PROPERTY_PREFIX_NS_BOOLEAN = "prefix_ns_boolean"; + @javax.annotation.Nullable private Boolean prefixNsBoolean; public static final String JSON_PROPERTY_PREFIX_NS_ARRAY = "prefix_ns_array"; + @javax.annotation.Nullable private List prefixNsArray = new ArrayList<>(); public static final String JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY = "prefix_ns_wrapped_array"; + @javax.annotation.Nullable private List prefixNsWrappedArray = new ArrayList<>(); public XmlItem() { } - public XmlItem attributeString(String attributeString) { + public XmlItem attributeString(@javax.annotation.Nullable String attributeString) { this.attributeString = attributeString; return this; } @@ -175,12 +204,12 @@ public String getAttributeString() { @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttributeString(String attributeString) { + public void setAttributeString(@javax.annotation.Nullable String attributeString) { this.attributeString = attributeString; } - public XmlItem attributeNumber(BigDecimal attributeNumber) { + public XmlItem attributeNumber(@javax.annotation.Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; return this; } @@ -200,12 +229,12 @@ public BigDecimal getAttributeNumber() { @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttributeNumber(BigDecimal attributeNumber) { + public void setAttributeNumber(@javax.annotation.Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } - public XmlItem attributeInteger(Integer attributeInteger) { + public XmlItem attributeInteger(@javax.annotation.Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; return this; } @@ -225,12 +254,12 @@ public Integer getAttributeInteger() { @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttributeInteger(Integer attributeInteger) { + public void setAttributeInteger(@javax.annotation.Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; } - public XmlItem attributeBoolean(Boolean attributeBoolean) { + public XmlItem attributeBoolean(@javax.annotation.Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; return this; } @@ -250,12 +279,12 @@ public Boolean getAttributeBoolean() { @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttributeBoolean(Boolean attributeBoolean) { + public void setAttributeBoolean(@javax.annotation.Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } - public XmlItem wrappedArray(List wrappedArray) { + public XmlItem wrappedArray(@javax.annotation.Nullable List wrappedArray) { this.wrappedArray = wrappedArray; return this; } @@ -283,12 +312,12 @@ public List getWrappedArray() { @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWrappedArray(List wrappedArray) { + public void setWrappedArray(@javax.annotation.Nullable List wrappedArray) { this.wrappedArray = wrappedArray; } - public XmlItem nameString(String nameString) { + public XmlItem nameString(@javax.annotation.Nullable String nameString) { this.nameString = nameString; return this; } @@ -308,12 +337,12 @@ public String getNameString() { @JsonProperty(JSON_PROPERTY_NAME_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameString(String nameString) { + public void setNameString(@javax.annotation.Nullable String nameString) { this.nameString = nameString; } - public XmlItem nameNumber(BigDecimal nameNumber) { + public XmlItem nameNumber(@javax.annotation.Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; return this; } @@ -333,12 +362,12 @@ public BigDecimal getNameNumber() { @JsonProperty(JSON_PROPERTY_NAME_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameNumber(BigDecimal nameNumber) { + public void setNameNumber(@javax.annotation.Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; } - public XmlItem nameInteger(Integer nameInteger) { + public XmlItem nameInteger(@javax.annotation.Nullable Integer nameInteger) { this.nameInteger = nameInteger; return this; } @@ -358,12 +387,12 @@ public Integer getNameInteger() { @JsonProperty(JSON_PROPERTY_NAME_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameInteger(Integer nameInteger) { + public void setNameInteger(@javax.annotation.Nullable Integer nameInteger) { this.nameInteger = nameInteger; } - public XmlItem nameBoolean(Boolean nameBoolean) { + public XmlItem nameBoolean(@javax.annotation.Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; return this; } @@ -383,12 +412,12 @@ public Boolean getNameBoolean() { @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameBoolean(Boolean nameBoolean) { + public void setNameBoolean(@javax.annotation.Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; } - public XmlItem nameArray(List nameArray) { + public XmlItem nameArray(@javax.annotation.Nullable List nameArray) { this.nameArray = nameArray; return this; } @@ -416,12 +445,12 @@ public List getNameArray() { @JsonProperty(JSON_PROPERTY_NAME_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameArray(List nameArray) { + public void setNameArray(@javax.annotation.Nullable List nameArray) { this.nameArray = nameArray; } - public XmlItem nameWrappedArray(List nameWrappedArray) { + public XmlItem nameWrappedArray(@javax.annotation.Nullable List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; return this; } @@ -449,12 +478,12 @@ public List getNameWrappedArray() { @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameWrappedArray(List nameWrappedArray) { + public void setNameWrappedArray(@javax.annotation.Nullable List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } - public XmlItem prefixString(String prefixString) { + public XmlItem prefixString(@javax.annotation.Nullable String prefixString) { this.prefixString = prefixString; return this; } @@ -474,12 +503,12 @@ public String getPrefixString() { @JsonProperty(JSON_PROPERTY_PREFIX_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixString(String prefixString) { + public void setPrefixString(@javax.annotation.Nullable String prefixString) { this.prefixString = prefixString; } - public XmlItem prefixNumber(BigDecimal prefixNumber) { + public XmlItem prefixNumber(@javax.annotation.Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; return this; } @@ -499,12 +528,12 @@ public BigDecimal getPrefixNumber() { @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNumber(BigDecimal prefixNumber) { + public void setPrefixNumber(@javax.annotation.Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } - public XmlItem prefixInteger(Integer prefixInteger) { + public XmlItem prefixInteger(@javax.annotation.Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; return this; } @@ -524,12 +553,12 @@ public Integer getPrefixInteger() { @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixInteger(Integer prefixInteger) { + public void setPrefixInteger(@javax.annotation.Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; } - public XmlItem prefixBoolean(Boolean prefixBoolean) { + public XmlItem prefixBoolean(@javax.annotation.Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; return this; } @@ -549,12 +578,12 @@ public Boolean getPrefixBoolean() { @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixBoolean(Boolean prefixBoolean) { + public void setPrefixBoolean(@javax.annotation.Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } - public XmlItem prefixArray(List prefixArray) { + public XmlItem prefixArray(@javax.annotation.Nullable List prefixArray) { this.prefixArray = prefixArray; return this; } @@ -582,12 +611,12 @@ public List getPrefixArray() { @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixArray(List prefixArray) { + public void setPrefixArray(@javax.annotation.Nullable List prefixArray) { this.prefixArray = prefixArray; } - public XmlItem prefixWrappedArray(List prefixWrappedArray) { + public XmlItem prefixWrappedArray(@javax.annotation.Nullable List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; return this; } @@ -615,12 +644,12 @@ public List getPrefixWrappedArray() { @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixWrappedArray(List prefixWrappedArray) { + public void setPrefixWrappedArray(@javax.annotation.Nullable List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem namespaceString(String namespaceString) { + public XmlItem namespaceString(@javax.annotation.Nullable String namespaceString) { this.namespaceString = namespaceString; return this; } @@ -640,12 +669,12 @@ public String getNamespaceString() { @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNamespaceString(String namespaceString) { + public void setNamespaceString(@javax.annotation.Nullable String namespaceString) { this.namespaceString = namespaceString; } - public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + public XmlItem namespaceNumber(@javax.annotation.Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; return this; } @@ -665,12 +694,12 @@ public BigDecimal getNamespaceNumber() { @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNamespaceNumber(BigDecimal namespaceNumber) { + public void setNamespaceNumber(@javax.annotation.Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } - public XmlItem namespaceInteger(Integer namespaceInteger) { + public XmlItem namespaceInteger(@javax.annotation.Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; return this; } @@ -690,12 +719,12 @@ public Integer getNamespaceInteger() { @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNamespaceInteger(Integer namespaceInteger) { + public void setNamespaceInteger(@javax.annotation.Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } - public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + public XmlItem namespaceBoolean(@javax.annotation.Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; return this; } @@ -715,12 +744,12 @@ public Boolean getNamespaceBoolean() { @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNamespaceBoolean(Boolean namespaceBoolean) { + public void setNamespaceBoolean(@javax.annotation.Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } - public XmlItem namespaceArray(List namespaceArray) { + public XmlItem namespaceArray(@javax.annotation.Nullable List namespaceArray) { this.namespaceArray = namespaceArray; return this; } @@ -748,12 +777,12 @@ public List getNamespaceArray() { @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNamespaceArray(List namespaceArray) { + public void setNamespaceArray(@javax.annotation.Nullable List namespaceArray) { this.namespaceArray = namespaceArray; } - public XmlItem namespaceWrappedArray(List namespaceWrappedArray) { + public XmlItem namespaceWrappedArray(@javax.annotation.Nullable List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; return this; } @@ -781,12 +810,12 @@ public List getNamespaceWrappedArray() { @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNamespaceWrappedArray(List namespaceWrappedArray) { + public void setNamespaceWrappedArray(@javax.annotation.Nullable List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem prefixNsString(String prefixNsString) { + public XmlItem prefixNsString(@javax.annotation.Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; } @@ -806,12 +835,12 @@ public String getPrefixNsString() { @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNsString(String prefixNsString) { + public void setPrefixNsString(@javax.annotation.Nullable String prefixNsString) { this.prefixNsString = prefixNsString; } - public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + public XmlItem prefixNsNumber(@javax.annotation.Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; return this; } @@ -831,12 +860,12 @@ public BigDecimal getPrefixNsNumber() { @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNsNumber(BigDecimal prefixNsNumber) { + public void setPrefixNsNumber(@javax.annotation.Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } - public XmlItem prefixNsInteger(Integer prefixNsInteger) { + public XmlItem prefixNsInteger(@javax.annotation.Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; return this; } @@ -856,12 +885,12 @@ public Integer getPrefixNsInteger() { @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNsInteger(Integer prefixNsInteger) { + public void setPrefixNsInteger(@javax.annotation.Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } - public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + public XmlItem prefixNsBoolean(@javax.annotation.Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; return this; } @@ -881,12 +910,12 @@ public Boolean getPrefixNsBoolean() { @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNsBoolean(Boolean prefixNsBoolean) { + public void setPrefixNsBoolean(@javax.annotation.Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } - public XmlItem prefixNsArray(List prefixNsArray) { + public XmlItem prefixNsArray(@javax.annotation.Nullable List prefixNsArray) { this.prefixNsArray = prefixNsArray; return this; } @@ -914,12 +943,12 @@ public List getPrefixNsArray() { @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNsArray(List prefixNsArray) { + public void setPrefixNsArray(@javax.annotation.Nullable List prefixNsArray) { this.prefixNsArray = prefixNsArray; } - public XmlItem prefixNsWrappedArray(List prefixNsWrappedArray) { + public XmlItem prefixNsWrappedArray(@javax.annotation.Nullable List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; return this; } @@ -947,7 +976,7 @@ public List getPrefixNsWrappedArray() { @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { + public void setPrefixNsWrappedArray(@javax.annotation.Nullable List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 46c43552dafb..0aee59c7e1ca 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -50,33 +50,40 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_PROPERTY = "map_property"; + @jakarta.annotation.Nullable private Map mapProperty = new HashMap<>(); public static final String JSON_PROPERTY_MAP_OF_MAP_PROPERTY = "map_of_map_property"; + @jakarta.annotation.Nullable private Map> mapOfMapProperty = new HashMap<>(); public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1"; private JsonNullable anytype1 = JsonNullable.of(null); public static final String JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE1 = "map_with_undeclared_properties_anytype_1"; + @jakarta.annotation.Nullable private Object mapWithUndeclaredPropertiesAnytype1; public static final String JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE2 = "map_with_undeclared_properties_anytype_2"; + @jakarta.annotation.Nullable private Object mapWithUndeclaredPropertiesAnytype2; public static final String JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE3 = "map_with_undeclared_properties_anytype_3"; + @jakarta.annotation.Nullable private Map mapWithUndeclaredPropertiesAnytype3 = new HashMap<>(); public static final String JSON_PROPERTY_EMPTY_MAP = "empty_map"; + @jakarta.annotation.Nullable private Object emptyMap; public static final String JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_STRING = "map_with_undeclared_properties_string"; + @jakarta.annotation.Nullable private Map mapWithUndeclaredPropertiesString = new HashMap<>(); public AdditionalPropertiesClass() { } - public AdditionalPropertiesClass mapProperty(Map mapProperty) { + public AdditionalPropertiesClass mapProperty(@jakarta.annotation.Nullable Map mapProperty) { this.mapProperty = mapProperty; return this; } @@ -105,12 +112,12 @@ public Map getMapProperty() { @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapProperty(Map mapProperty) { + public void setMapProperty(@jakarta.annotation.Nullable Map mapProperty) { this.mapProperty = mapProperty; } - public AdditionalPropertiesClass mapOfMapProperty(Map> mapOfMapProperty) { + public AdditionalPropertiesClass mapOfMapProperty(@jakarta.annotation.Nullable Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; return this; } @@ -140,12 +147,12 @@ public Map> getMapOfMapProperty() { @JsonProperty(JSON_PROPERTY_MAP_OF_MAP_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapOfMapProperty(Map> mapOfMapProperty) { + public void setMapOfMapProperty(@jakarta.annotation.Nullable Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@jakarta.annotation.Nullable Object anytype1) { this.anytype1 = JsonNullable.of(anytype1); return this; } @@ -174,12 +181,12 @@ public void setAnytype1_JsonNullable(JsonNullable anytype1) { this.anytype1 = anytype1; } - public void setAnytype1(Object anytype1) { + public void setAnytype1(@jakarta.annotation.Nullable Object anytype1) { this.anytype1 = JsonNullable.of(anytype1); } - public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype1(Object mapWithUndeclaredPropertiesAnytype1) { + public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype1(@jakarta.annotation.Nullable Object mapWithUndeclaredPropertiesAnytype1) { this.mapWithUndeclaredPropertiesAnytype1 = mapWithUndeclaredPropertiesAnytype1; return this; } @@ -200,12 +207,12 @@ public Object getMapWithUndeclaredPropertiesAnytype1() { @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE1) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapWithUndeclaredPropertiesAnytype1(Object mapWithUndeclaredPropertiesAnytype1) { + public void setMapWithUndeclaredPropertiesAnytype1(@jakarta.annotation.Nullable Object mapWithUndeclaredPropertiesAnytype1) { this.mapWithUndeclaredPropertiesAnytype1 = mapWithUndeclaredPropertiesAnytype1; } - public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype2(Object mapWithUndeclaredPropertiesAnytype2) { + public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype2(@jakarta.annotation.Nullable Object mapWithUndeclaredPropertiesAnytype2) { this.mapWithUndeclaredPropertiesAnytype2 = mapWithUndeclaredPropertiesAnytype2; return this; } @@ -226,12 +233,12 @@ public Object getMapWithUndeclaredPropertiesAnytype2() { @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapWithUndeclaredPropertiesAnytype2(Object mapWithUndeclaredPropertiesAnytype2) { + public void setMapWithUndeclaredPropertiesAnytype2(@jakarta.annotation.Nullable Object mapWithUndeclaredPropertiesAnytype2) { this.mapWithUndeclaredPropertiesAnytype2 = mapWithUndeclaredPropertiesAnytype2; } - public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype3(Map mapWithUndeclaredPropertiesAnytype3) { + public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype3(@jakarta.annotation.Nullable Map mapWithUndeclaredPropertiesAnytype3) { this.mapWithUndeclaredPropertiesAnytype3 = mapWithUndeclaredPropertiesAnytype3; return this; } @@ -260,12 +267,12 @@ public Map getMapWithUndeclaredPropertiesAnytype3() { @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE3) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setMapWithUndeclaredPropertiesAnytype3(Map mapWithUndeclaredPropertiesAnytype3) { + public void setMapWithUndeclaredPropertiesAnytype3(@jakarta.annotation.Nullable Map mapWithUndeclaredPropertiesAnytype3) { this.mapWithUndeclaredPropertiesAnytype3 = mapWithUndeclaredPropertiesAnytype3; } - public AdditionalPropertiesClass emptyMap(Object emptyMap) { + public AdditionalPropertiesClass emptyMap(@jakarta.annotation.Nullable Object emptyMap) { this.emptyMap = emptyMap; return this; } @@ -286,12 +293,12 @@ public Object getEmptyMap() { @JsonProperty(JSON_PROPERTY_EMPTY_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEmptyMap(Object emptyMap) { + public void setEmptyMap(@jakarta.annotation.Nullable Object emptyMap) { this.emptyMap = emptyMap; } - public AdditionalPropertiesClass mapWithUndeclaredPropertiesString(Map mapWithUndeclaredPropertiesString) { + public AdditionalPropertiesClass mapWithUndeclaredPropertiesString(@jakarta.annotation.Nullable Map mapWithUndeclaredPropertiesString) { this.mapWithUndeclaredPropertiesString = mapWithUndeclaredPropertiesString; return this; } @@ -320,7 +327,7 @@ public Map getMapWithUndeclaredPropertiesString() { @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapWithUndeclaredPropertiesString(Map mapWithUndeclaredPropertiesString) { + public void setMapWithUndeclaredPropertiesString(@jakarta.annotation.Nullable Map mapWithUndeclaredPropertiesString) { this.mapWithUndeclaredPropertiesString = mapWithUndeclaredPropertiesString; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Animal.java index eb1180c3dada..538ca04e7df0 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Animal.java @@ -51,15 +51,17 @@ public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; + @jakarta.annotation.Nonnull private String className; public static final String JSON_PROPERTY_COLOR = "color"; + @jakarta.annotation.Nullable private String color = "red"; public Animal() { } - public Animal className(String className) { + public Animal className(@jakarta.annotation.Nonnull String className) { this.className = className; return this; } @@ -81,12 +83,12 @@ public String getClassName() { @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setClassName(String className) { + public void setClassName(@jakarta.annotation.Nonnull String className) { this.className = className; } - public Animal color(String color) { + public Animal color(@jakarta.annotation.Nullable String color) { this.color = color; return this; } @@ -107,7 +109,7 @@ public String getColor() { @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setColor(String color) { + public void setColor(@jakarta.annotation.Nullable String color) { this.color = color; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Apple.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Apple.java index 6e537e3b308b..e2725dfc6bc1 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Apple.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Apple.java @@ -39,15 +39,17 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Apple { public static final String JSON_PROPERTY_CULTIVAR = "cultivar"; + @jakarta.annotation.Nullable private String cultivar; public static final String JSON_PROPERTY_ORIGIN = "origin"; + @jakarta.annotation.Nullable private String origin; public Apple() { } - public Apple cultivar(String cultivar) { + public Apple cultivar(@jakarta.annotation.Nullable String cultivar) { this.cultivar = cultivar; return this; } @@ -68,12 +70,12 @@ public String getCultivar() { @JsonProperty(JSON_PROPERTY_CULTIVAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCultivar(String cultivar) { + public void setCultivar(@jakarta.annotation.Nullable String cultivar) { this.cultivar = cultivar; } - public Apple origin(String origin) { + public Apple origin(@jakarta.annotation.Nullable String origin) { this.origin = origin; return this; } @@ -94,7 +96,7 @@ public String getOrigin() { @JsonProperty(JSON_PROPERTY_ORIGIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOrigin(String origin) { + public void setOrigin(@jakarta.annotation.Nullable String origin) { this.origin = origin; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/AppleReq.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/AppleReq.java index 8108d2c3629e..74a3ed7ba9b9 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/AppleReq.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/AppleReq.java @@ -39,15 +39,17 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AppleReq { public static final String JSON_PROPERTY_CULTIVAR = "cultivar"; + @jakarta.annotation.Nonnull private String cultivar; public static final String JSON_PROPERTY_MEALY = "mealy"; + @jakarta.annotation.Nullable private Boolean mealy; public AppleReq() { } - public AppleReq cultivar(String cultivar) { + public AppleReq cultivar(@jakarta.annotation.Nonnull String cultivar) { this.cultivar = cultivar; return this; } @@ -69,12 +71,12 @@ public String getCultivar() { @JsonProperty(JSON_PROPERTY_CULTIVAR) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCultivar(String cultivar) { + public void setCultivar(@jakarta.annotation.Nonnull String cultivar) { this.cultivar = cultivar; } - public AppleReq mealy(Boolean mealy) { + public AppleReq mealy(@jakarta.annotation.Nullable Boolean mealy) { this.mealy = mealy; return this; } @@ -95,7 +97,7 @@ public Boolean getMealy() { @JsonProperty(JSON_PROPERTY_MEALY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMealy(Boolean mealy) { + public void setMealy(@jakarta.annotation.Nullable Boolean mealy) { this.mealy = mealy; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index bbf01987ce86..6c722f0b57c0 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -40,12 +40,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayOfArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; + @jakarta.annotation.Nullable private List> arrayArrayNumber = new ArrayList<>(); public ArrayOfArrayOfNumberOnly() { } - public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + public ArrayOfArrayOfNumberOnly arrayArrayNumber(@jakarta.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; return this; } @@ -75,7 +76,7 @@ public List> getArrayArrayNumber() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayNumber(List> arrayArrayNumber) { + public void setArrayArrayNumber(@jakarta.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 4e926459a4f7..b5b84d7169c9 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -40,12 +40,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; + @jakarta.annotation.Nullable private List arrayNumber = new ArrayList<>(); public ArrayOfNumberOnly() { } - public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + public ArrayOfNumberOnly arrayNumber(@jakarta.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; return this; } @@ -75,7 +76,7 @@ public List getArrayNumber() { @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayNumber(List arrayNumber) { + public void setArrayNumber(@jakarta.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ArrayTest.java index 6aa56352c23b..457dea9fe8e2 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -42,18 +42,21 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; + @jakarta.annotation.Nullable private List arrayOfString = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; + @jakarta.annotation.Nullable private List> arrayArrayOfInteger = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; + @jakarta.annotation.Nullable private List> arrayArrayOfModel = new ArrayList<>(); public ArrayTest() { } - public ArrayTest arrayOfString(List arrayOfString) { + public ArrayTest arrayOfString(@jakarta.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; return this; } @@ -82,12 +85,12 @@ public List getArrayOfString() { @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayOfString(List arrayOfString) { + public void setArrayOfString(@jakarta.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; } - public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + public ArrayTest arrayArrayOfInteger(@jakarta.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; return this; } @@ -117,12 +120,12 @@ public List> getArrayArrayOfInteger() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { + public void setArrayArrayOfInteger(@jakarta.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } - public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + public ArrayTest arrayArrayOfModel(@jakarta.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; return this; } @@ -152,7 +155,7 @@ public ArrayTest addArrayArrayOfModelItem(List<@Valid ReadOnlyFirst> arrayArrayO @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayOfModel(List> arrayArrayOfModel) { + public void setArrayArrayOfModel(@jakarta.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Banana.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Banana.java index 0e1a79024076..c722366b53d3 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Banana.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Banana.java @@ -39,12 +39,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Banana { public static final String JSON_PROPERTY_LENGTH_CM = "lengthCm"; + @jakarta.annotation.Nullable private BigDecimal lengthCm; public Banana() { } - public Banana lengthCm(BigDecimal lengthCm) { + public Banana lengthCm(@jakarta.annotation.Nullable BigDecimal lengthCm) { this.lengthCm = lengthCm; return this; } @@ -66,7 +67,7 @@ public BigDecimal getLengthCm() { @JsonProperty(JSON_PROPERTY_LENGTH_CM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLengthCm(BigDecimal lengthCm) { + public void setLengthCm(@jakarta.annotation.Nullable BigDecimal lengthCm) { this.lengthCm = lengthCm; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/BananaReq.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/BananaReq.java index b92d0f338df5..333ef4276186 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/BananaReq.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/BananaReq.java @@ -40,15 +40,17 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class BananaReq { public static final String JSON_PROPERTY_LENGTH_CM = "lengthCm"; + @jakarta.annotation.Nonnull private BigDecimal lengthCm; public static final String JSON_PROPERTY_SWEET = "sweet"; + @jakarta.annotation.Nullable private Boolean sweet; public BananaReq() { } - public BananaReq lengthCm(BigDecimal lengthCm) { + public BananaReq lengthCm(@jakarta.annotation.Nonnull BigDecimal lengthCm) { this.lengthCm = lengthCm; return this; } @@ -71,12 +73,12 @@ public BigDecimal getLengthCm() { @JsonProperty(JSON_PROPERTY_LENGTH_CM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLengthCm(BigDecimal lengthCm) { + public void setLengthCm(@jakarta.annotation.Nonnull BigDecimal lengthCm) { this.lengthCm = lengthCm; } - public BananaReq sweet(Boolean sweet) { + public BananaReq sweet(@jakarta.annotation.Nullable Boolean sweet) { this.sweet = sweet; return this; } @@ -97,7 +99,7 @@ public Boolean getSweet() { @JsonProperty(JSON_PROPERTY_SWEET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSweet(Boolean sweet) { + public void setSweet(@jakarta.annotation.Nullable Boolean sweet) { this.sweet = sweet; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/BasquePig.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/BasquePig.java index c02996ec0066..b4e0e49d5e6f 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/BasquePig.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/BasquePig.java @@ -37,12 +37,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class BasquePig { public static final String JSON_PROPERTY_CLASS_NAME = "className"; + @jakarta.annotation.Nonnull private String className; public BasquePig() { } - public BasquePig className(String className) { + public BasquePig className(@jakarta.annotation.Nonnull String className) { this.className = className; return this; } @@ -64,7 +65,7 @@ public String getClassName() { @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setClassName(String className) { + public void setClassName(@jakarta.annotation.Nonnull String className) { this.className = className; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Capitalization.java index e678c22d4bfc..db40132c8698 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Capitalization.java @@ -42,27 +42,33 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Capitalization { public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; + @jakarta.annotation.Nullable private String smallCamel; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; + @jakarta.annotation.Nullable private String capitalCamel; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; + @jakarta.annotation.Nullable private String smallSnake; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; + @jakarta.annotation.Nullable private String capitalSnake; public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; + @jakarta.annotation.Nullable private String scAETHFlowPoints; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; + @jakarta.annotation.Nullable private String ATT_NAME; public Capitalization() { } - public Capitalization smallCamel(String smallCamel) { + public Capitalization smallCamel(@jakarta.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; return this; } @@ -83,12 +89,12 @@ public String getSmallCamel() { @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmallCamel(String smallCamel) { + public void setSmallCamel(@jakarta.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; } - public Capitalization capitalCamel(String capitalCamel) { + public Capitalization capitalCamel(@jakarta.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; return this; } @@ -109,12 +115,12 @@ public String getCapitalCamel() { @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCapitalCamel(String capitalCamel) { + public void setCapitalCamel(@jakarta.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; } - public Capitalization smallSnake(String smallSnake) { + public Capitalization smallSnake(@jakarta.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; return this; } @@ -135,12 +141,12 @@ public String getSmallSnake() { @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmallSnake(String smallSnake) { + public void setSmallSnake(@jakarta.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; } - public Capitalization capitalSnake(String capitalSnake) { + public Capitalization capitalSnake(@jakarta.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; return this; } @@ -161,12 +167,12 @@ public String getCapitalSnake() { @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCapitalSnake(String capitalSnake) { + public void setCapitalSnake(@jakarta.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; } - public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + public Capitalization scAETHFlowPoints(@jakarta.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -187,12 +193,12 @@ public String getScAETHFlowPoints() { @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setScAETHFlowPoints(String scAETHFlowPoints) { + public void setScAETHFlowPoints(@jakarta.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } - public Capitalization ATT_NAME(String ATT_NAME) { + public Capitalization ATT_NAME(@jakarta.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; return this; } @@ -213,7 +219,7 @@ public String getATTNAME() { @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setATTNAME(String ATT_NAME) { + public void setATTNAME(@jakarta.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Cat.java index e1bd23623994..038955054040 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Cat.java @@ -52,12 +52,13 @@ public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; + @jakarta.annotation.Nullable private Boolean declawed; public Cat() { } - public Cat declawed(Boolean declawed) { + public Cat declawed(@jakarta.annotation.Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -78,7 +79,7 @@ public Boolean getDeclawed() { @JsonProperty(JSON_PROPERTY_DECLAWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@jakarta.annotation.Nullable Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Category.java index 13ad87eee477..02b430f1e69c 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Category.java @@ -38,15 +38,17 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Category { public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nonnull private String name = "default-name"; public Category() { } - public Category id(Long id) { + public Category id(@jakarta.annotation.Nullable Long id) { this.id = id; return this; } @@ -67,12 +69,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } @@ -94,7 +96,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ChildCat.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ChildCat.java index 0ddec5ce8d8b..2fb4dd247579 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ChildCat.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ChildCat.java @@ -54,15 +54,17 @@ public class ChildCat extends ParentPet { public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_PET_TYPE = "pet_type"; + @jakarta.annotation.Nullable private String petType = "ChildCat"; public ChildCat() { } - public ChildCat name(String name) { + public ChildCat name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -83,7 +85,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } @@ -92,7 +94,7 @@ public void setName(String name) { "ChildCat" )); - public ChildCat petType(String petType) { + public ChildCat petType(@jakarta.annotation.Nullable String petType) { if (!PET_TYPE_VALUES.contains(petType)) { throw new IllegalArgumentException(petType + " is invalid. Possible values for petType: " + String.join(", ", PET_TYPE_VALUES)); } @@ -117,7 +119,7 @@ public String getPetType() { @JsonProperty(JSON_PROPERTY_PET_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPetType(String petType) { + public void setPetType(@jakarta.annotation.Nullable String petType) { if (!PET_TYPE_VALUES.contains(petType)) { throw new IllegalArgumentException(petType + " is invalid. Possible values for petType: " + String.join(", ", PET_TYPE_VALUES)); } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ClassModel.java index 0b13d498dfe5..d88860a690ad 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ClassModel.java @@ -37,12 +37,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ClassModel { public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; + @jakarta.annotation.Nullable private String propertyClass; public ClassModel() { } - public ClassModel propertyClass(String propertyClass) { + public ClassModel propertyClass(@jakarta.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -63,7 +64,7 @@ public String getPropertyClass() { @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@jakarta.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Client.java index 6fdff59f6efc..bd03655b3638 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Client.java @@ -37,12 +37,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Client { public static final String JSON_PROPERTY_CLIENT = "client"; + @jakarta.annotation.Nullable private String client; public Client() { } - public Client client(String client) { + public Client client(@jakarta.annotation.Nullable String client) { this.client = client; return this; } @@ -63,7 +64,7 @@ public String getClient() { @JsonProperty(JSON_PROPERTY_CLIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setClient(String client) { + public void setClient(@jakarta.annotation.Nullable String client) { this.client = client; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java index 1ecc5aea95f2..269d88834f07 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java @@ -42,15 +42,17 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ComplexQuadrilateral { public static final String JSON_PROPERTY_SHAPE_TYPE = "shapeType"; + @jakarta.annotation.Nonnull private String shapeType; public static final String JSON_PROPERTY_QUADRILATERAL_TYPE = "quadrilateralType"; + @jakarta.annotation.Nonnull private String quadrilateralType; public ComplexQuadrilateral() { } - public ComplexQuadrilateral shapeType(String shapeType) { + public ComplexQuadrilateral shapeType(@jakarta.annotation.Nonnull String shapeType) { this.shapeType = shapeType; return this; } @@ -72,12 +74,12 @@ public String getShapeType() { @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setShapeType(String shapeType) { + public void setShapeType(@jakarta.annotation.Nonnull String shapeType) { this.shapeType = shapeType; } - public ComplexQuadrilateral quadrilateralType(String quadrilateralType) { + public ComplexQuadrilateral quadrilateralType(@jakarta.annotation.Nonnull String quadrilateralType) { this.quadrilateralType = quadrilateralType; return this; } @@ -99,7 +101,7 @@ public String getQuadrilateralType() { @JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setQuadrilateralType(String quadrilateralType) { + public void setQuadrilateralType(@jakarta.annotation.Nonnull String quadrilateralType) { this.quadrilateralType = quadrilateralType; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/DanishPig.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/DanishPig.java index 9b9608313776..ec863cb2972a 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/DanishPig.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/DanishPig.java @@ -37,12 +37,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class DanishPig { public static final String JSON_PROPERTY_CLASS_NAME = "className"; + @jakarta.annotation.Nonnull private String className; public DanishPig() { } - public DanishPig className(String className) { + public DanishPig className(@jakarta.annotation.Nonnull String className) { this.className = className; return this; } @@ -64,7 +65,7 @@ public String getClassName() { @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setClassName(String className) { + public void setClassName(@jakarta.annotation.Nonnull String className) { this.className = className; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/DeprecatedObject.java index 423061f6ad1e..b5a8382dfa85 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -39,12 +39,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class DeprecatedObject { public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private String name; public DeprecatedObject() { } - public DeprecatedObject name(String name) { + public DeprecatedObject name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -65,7 +66,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Dog.java index 407079339949..1b7312b67ecb 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Dog.java @@ -51,12 +51,13 @@ public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; + @jakarta.annotation.Nullable private String breed; public Dog() { } - public Dog breed(String breed) { + public Dog breed(@jakarta.annotation.Nullable String breed) { this.breed = breed; return this; } @@ -77,7 +78,7 @@ public String getBreed() { @JsonProperty(JSON_PROPERTY_BREED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBreed(String breed) { + public void setBreed(@jakarta.annotation.Nullable String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Drawing.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Drawing.java index 04c241ebda75..748b023140f4 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Drawing.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Drawing.java @@ -54,6 +54,7 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Drawing { public static final String JSON_PROPERTY_MAIN_SHAPE = "mainShape"; + @jakarta.annotation.Nullable private Shape mainShape; public static final String JSON_PROPERTY_SHAPE_OR_NULL = "shapeOrNull"; @@ -63,12 +64,13 @@ public class Drawing { private JsonNullable nullableShape = JsonNullable.undefined(); public static final String JSON_PROPERTY_SHAPES = "shapes"; + @jakarta.annotation.Nullable private List shapes = new ArrayList<>(); public Drawing() { } - public Drawing mainShape(Shape mainShape) { + public Drawing mainShape(@jakarta.annotation.Nullable Shape mainShape) { this.mainShape = mainShape; return this; } @@ -90,12 +92,12 @@ public Shape getMainShape() { @JsonProperty(JSON_PROPERTY_MAIN_SHAPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMainShape(Shape mainShape) { + public void setMainShape(@jakarta.annotation.Nullable Shape mainShape) { this.mainShape = mainShape; } - public Drawing shapeOrNull(ShapeOrNull shapeOrNull) { + public Drawing shapeOrNull(@jakarta.annotation.Nullable ShapeOrNull shapeOrNull) { this.shapeOrNull = JsonNullable.of(shapeOrNull); return this; } @@ -125,12 +127,12 @@ public void setShapeOrNull_JsonNullable(JsonNullable shapeOrNull) { this.shapeOrNull = shapeOrNull; } - public void setShapeOrNull(ShapeOrNull shapeOrNull) { + public void setShapeOrNull(@jakarta.annotation.Nullable ShapeOrNull shapeOrNull) { this.shapeOrNull = JsonNullable.of(shapeOrNull); } - public Drawing nullableShape(NullableShape nullableShape) { + public Drawing nullableShape(@jakarta.annotation.Nullable NullableShape nullableShape) { this.nullableShape = JsonNullable.of(nullableShape); return this; } @@ -160,12 +162,12 @@ public void setNullableShape_JsonNullable(JsonNullable nullableSh this.nullableShape = nullableShape; } - public void setNullableShape(NullableShape nullableShape) { + public void setNullableShape(@jakarta.annotation.Nullable NullableShape nullableShape) { this.nullableShape = JsonNullable.of(nullableShape); } - public Drawing shapes(List shapes) { + public Drawing shapes(@jakarta.annotation.Nullable List shapes) { this.shapes = shapes; return this; } @@ -195,7 +197,7 @@ public List getShapes() { @JsonProperty(JSON_PROPERTY_SHAPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setShapes(List shapes) { + public void setShapes(@jakarta.annotation.Nullable List shapes) { this.shapes = shapes; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EnumArrays.java index b22b41248f27..8f21c808d06b 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -75,6 +75,7 @@ public static JustSymbolEnum fromValue(String value) { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; + @jakarta.annotation.Nullable private JustSymbolEnum justSymbol; /** @@ -113,12 +114,13 @@ public static ArrayEnumEnum fromValue(String value) { } public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; + @jakarta.annotation.Nullable private List arrayEnum = new ArrayList<>(); public EnumArrays() { } - public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + public EnumArrays justSymbol(@jakarta.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; } @@ -139,12 +141,12 @@ public JustSymbolEnum getJustSymbol() { @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJustSymbol(JustSymbolEnum justSymbol) { + public void setJustSymbol(@jakarta.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } - public EnumArrays arrayEnum(List arrayEnum) { + public EnumArrays arrayEnum(@jakarta.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; return this; } @@ -173,7 +175,7 @@ public List getArrayEnum() { @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayEnum(List arrayEnum) { + public void setArrayEnum(@jakarta.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EnumTest.java index 61987d6cb72a..f33679ad5dd8 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EnumTest.java @@ -91,6 +91,7 @@ public static EnumStringEnum fromValue(String value) { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; + @jakarta.annotation.Nullable private EnumStringEnum enumString; /** @@ -131,6 +132,7 @@ public static EnumStringRequiredEnum fromValue(String value) { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; + @jakarta.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** @@ -169,6 +171,7 @@ public static EnumIntegerEnum fromValue(Integer value) { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; + @jakarta.annotation.Nullable private EnumIntegerEnum enumInteger; /** @@ -207,6 +210,7 @@ public static EnumIntegerOnlyEnum fromValue(Integer value) { } public static final String JSON_PROPERTY_ENUM_INTEGER_ONLY = "enum_integer_only"; + @jakarta.annotation.Nullable private EnumIntegerOnlyEnum enumIntegerOnly; /** @@ -245,24 +249,28 @@ public static EnumNumberEnum fromValue(Double value) { } public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; + @jakarta.annotation.Nullable private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; private JsonNullable outerEnum = JsonNullable.undefined(); public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER = "outerEnumInteger"; + @jakarta.annotation.Nullable private OuterEnumInteger outerEnumInteger; public static final String JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE = "outerEnumDefaultValue"; + @jakarta.annotation.Nullable private OuterEnumDefaultValue outerEnumDefaultValue = OuterEnumDefaultValue.PLACED; public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE = "outerEnumIntegerDefaultValue"; + @jakarta.annotation.Nullable private OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = OuterEnumIntegerDefaultValue.NUMBER_0; public EnumTest() { } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@jakarta.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -283,12 +291,12 @@ public EnumStringEnum getEnumString() { @JsonProperty(JSON_PROPERTY_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumString(EnumStringEnum enumString) { + public void setEnumString(@jakarta.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; } - public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public EnumTest enumStringRequired(@jakarta.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; return this; } @@ -310,12 +318,12 @@ public EnumStringRequiredEnum getEnumStringRequired() { @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public void setEnumStringRequired(@jakarta.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@jakarta.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -336,12 +344,12 @@ public EnumIntegerEnum getEnumInteger() { @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumInteger(EnumIntegerEnum enumInteger) { + public void setEnumInteger(@jakarta.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } - public EnumTest enumIntegerOnly(EnumIntegerOnlyEnum enumIntegerOnly) { + public EnumTest enumIntegerOnly(@jakarta.annotation.Nullable EnumIntegerOnlyEnum enumIntegerOnly) { this.enumIntegerOnly = enumIntegerOnly; return this; } @@ -362,12 +370,12 @@ public EnumIntegerOnlyEnum getEnumIntegerOnly() { @JsonProperty(JSON_PROPERTY_ENUM_INTEGER_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumIntegerOnly(EnumIntegerOnlyEnum enumIntegerOnly) { + public void setEnumIntegerOnly(@jakarta.annotation.Nullable EnumIntegerOnlyEnum enumIntegerOnly) { this.enumIntegerOnly = enumIntegerOnly; } - public EnumTest enumNumber(EnumNumberEnum enumNumber) { + public EnumTest enumNumber(@jakarta.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; return this; } @@ -388,12 +396,12 @@ public EnumNumberEnum getEnumNumber() { @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumNumber(EnumNumberEnum enumNumber) { + public void setEnumNumber(@jakarta.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } - public EnumTest outerEnum(OuterEnum outerEnum) { + public EnumTest outerEnum(@jakarta.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = JsonNullable.of(outerEnum); return this; } @@ -423,12 +431,12 @@ public void setOuterEnum_JsonNullable(JsonNullable outerEnum) { this.outerEnum = outerEnum; } - public void setOuterEnum(OuterEnum outerEnum) { + public void setOuterEnum(@jakarta.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = JsonNullable.of(outerEnum); } - public EnumTest outerEnumInteger(OuterEnumInteger outerEnumInteger) { + public EnumTest outerEnumInteger(@jakarta.annotation.Nullable OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; return this; } @@ -450,12 +458,12 @@ public OuterEnumInteger getOuterEnumInteger() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnumInteger(OuterEnumInteger outerEnumInteger) { + public void setOuterEnumInteger(@jakarta.annotation.Nullable OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; } - public EnumTest outerEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) { + public EnumTest outerEnumDefaultValue(@jakarta.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; return this; } @@ -477,12 +485,12 @@ public OuterEnumDefaultValue getOuterEnumDefaultValue() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) { + public void setOuterEnumDefaultValue(@jakarta.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; } - public EnumTest outerEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { + public EnumTest outerEnumIntegerDefaultValue(@jakarta.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; return this; } @@ -504,7 +512,7 @@ public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { + public void setOuterEnumIntegerDefaultValue(@jakarta.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EquilateralTriangle.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EquilateralTriangle.java index c320823ff753..9f97f348a083 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EquilateralTriangle.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EquilateralTriangle.java @@ -42,15 +42,17 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class EquilateralTriangle { public static final String JSON_PROPERTY_SHAPE_TYPE = "shapeType"; + @jakarta.annotation.Nonnull private String shapeType; public static final String JSON_PROPERTY_TRIANGLE_TYPE = "triangleType"; + @jakarta.annotation.Nonnull private String triangleType; public EquilateralTriangle() { } - public EquilateralTriangle shapeType(String shapeType) { + public EquilateralTriangle shapeType(@jakarta.annotation.Nonnull String shapeType) { this.shapeType = shapeType; return this; } @@ -72,12 +74,12 @@ public String getShapeType() { @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setShapeType(String shapeType) { + public void setShapeType(@jakarta.annotation.Nonnull String shapeType) { this.shapeType = shapeType; } - public EquilateralTriangle triangleType(String triangleType) { + public EquilateralTriangle triangleType(@jakarta.annotation.Nonnull String triangleType) { this.triangleType = triangleType; return this; } @@ -99,7 +101,7 @@ public String getTriangleType() { @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTriangleType(String triangleType) { + public void setTriangleType(@jakarta.annotation.Nonnull String triangleType) { this.triangleType = triangleType; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index d045cefd5561..502828f5580e 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -41,15 +41,17 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; + @jakarta.annotation.Nullable private ModelFile _file; public static final String JSON_PROPERTY_FILES = "files"; + @jakarta.annotation.Nullable private List<@Valid ModelFile> files = new ArrayList<>(); public FileSchemaTestClass() { } - public FileSchemaTestClass _file(ModelFile _file) { + public FileSchemaTestClass _file(@jakarta.annotation.Nullable ModelFile _file) { this._file = _file; return this; } @@ -71,12 +73,12 @@ public ModelFile getFile() { @JsonProperty(JSON_PROPERTY_FILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFile(ModelFile _file) { + public void setFile(@jakarta.annotation.Nullable ModelFile _file) { this._file = _file; } - public FileSchemaTestClass files(List<@Valid ModelFile> files) { + public FileSchemaTestClass files(@jakarta.annotation.Nullable List<@Valid ModelFile> files) { this.files = files; return this; } @@ -106,7 +108,7 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFiles(List<@Valid ModelFile> files) { + public void setFiles(@jakarta.annotation.Nullable List<@Valid ModelFile> files) { this.files = files; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Foo.java index 745d45775bde..2aae87944dce 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Foo.java @@ -37,12 +37,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Foo { public static final String JSON_PROPERTY_BAR = "bar"; + @jakarta.annotation.Nullable private String bar = "bar"; public Foo() { } - public Foo bar(String bar) { + public Foo bar(@jakarta.annotation.Nullable String bar) { this.bar = bar; return this; } @@ -63,7 +64,7 @@ public String getBar() { @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBar(String bar) { + public void setBar(@jakarta.annotation.Nullable String bar) { this.bar = bar; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index 85e4cabfbc8f..9881eada9026 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -39,12 +39,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FooGetDefaultResponse { public static final String JSON_PROPERTY_STRING = "string"; + @jakarta.annotation.Nullable private Foo string; public FooGetDefaultResponse() { } - public FooGetDefaultResponse string(Foo string) { + public FooGetDefaultResponse string(@jakarta.annotation.Nullable Foo string) { this.string = string; return this; } @@ -66,7 +67,7 @@ public Foo getString() { @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setString(Foo string) { + public void setString(@jakarta.annotation.Nullable Foo string) { this.string = string; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FormatTest.java index f538d9cdec0c..6a8f0d9c18da 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FormatTest.java @@ -58,57 +58,73 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; + @jakarta.annotation.Nullable private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; + @jakarta.annotation.Nullable private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; + @jakarta.annotation.Nullable private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; + @jakarta.annotation.Nonnull private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; + @jakarta.annotation.Nullable private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; + @jakarta.annotation.Nullable private Double _double; public static final String JSON_PROPERTY_DECIMAL = "decimal"; + @jakarta.annotation.Nullable private BigDecimal decimal; public static final String JSON_PROPERTY_STRING = "string"; + @jakarta.annotation.Nullable private String string; public static final String JSON_PROPERTY_BYTE = "byte"; + @jakarta.annotation.Nonnull private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; + @jakarta.annotation.Nullable private File binary; public static final String JSON_PROPERTY_DATE = "date"; + @jakarta.annotation.Nonnull private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; + @jakarta.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; + @jakarta.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; + @jakarta.annotation.Nonnull private String password; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS = "pattern_with_digits"; + @jakarta.annotation.Nullable private String patternWithDigits; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER = "pattern_with_digits_and_delimiter"; + @jakarta.annotation.Nullable private String patternWithDigitsAndDelimiter; public FormatTest() { } - public FormatTest integer(Integer integer) { + public FormatTest integer(@jakarta.annotation.Nullable Integer integer) { this.integer = integer; return this; } @@ -131,12 +147,12 @@ public Integer getInteger() { @JsonProperty(JSON_PROPERTY_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInteger(Integer integer) { + public void setInteger(@jakarta.annotation.Nullable Integer integer) { this.integer = integer; } - public FormatTest int32(Integer int32) { + public FormatTest int32(@jakarta.annotation.Nullable Integer int32) { this.int32 = int32; return this; } @@ -159,12 +175,12 @@ public Integer getInt32() { @JsonProperty(JSON_PROPERTY_INT32) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInt32(Integer int32) { + public void setInt32(@jakarta.annotation.Nullable Integer int32) { this.int32 = int32; } - public FormatTest int64(Long int64) { + public FormatTest int64(@jakarta.annotation.Nullable Long int64) { this.int64 = int64; return this; } @@ -185,12 +201,12 @@ public Long getInt64() { @JsonProperty(JSON_PROPERTY_INT64) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInt64(Long int64) { + public void setInt64(@jakarta.annotation.Nullable Long int64) { this.int64 = int64; } - public FormatTest number(BigDecimal number) { + public FormatTest number(@jakarta.annotation.Nonnull BigDecimal number) { this.number = number; return this; } @@ -215,12 +231,12 @@ public BigDecimal getNumber() { @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNumber(BigDecimal number) { + public void setNumber(@jakarta.annotation.Nonnull BigDecimal number) { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@jakarta.annotation.Nullable Float _float) { this._float = _float; return this; } @@ -243,12 +259,12 @@ public Float getFloat() { @JsonProperty(JSON_PROPERTY_FLOAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFloat(Float _float) { + public void setFloat(@jakarta.annotation.Nullable Float _float) { this._float = _float; } - public FormatTest _double(Double _double) { + public FormatTest _double(@jakarta.annotation.Nullable Double _double) { this._double = _double; return this; } @@ -271,12 +287,12 @@ public Double getDouble() { @JsonProperty(JSON_PROPERTY_DOUBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDouble(Double _double) { + public void setDouble(@jakarta.annotation.Nullable Double _double) { this._double = _double; } - public FormatTest decimal(BigDecimal decimal) { + public FormatTest decimal(@jakarta.annotation.Nullable BigDecimal decimal) { this.decimal = decimal; return this; } @@ -298,12 +314,12 @@ public BigDecimal getDecimal() { @JsonProperty(JSON_PROPERTY_DECIMAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDecimal(BigDecimal decimal) { + public void setDecimal(@jakarta.annotation.Nullable BigDecimal decimal) { this.decimal = decimal; } - public FormatTest string(String string) { + public FormatTest string(@jakarta.annotation.Nullable String string) { this.string = string; return this; } @@ -324,12 +340,12 @@ public String getString() { @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setString(String string) { + public void setString(@jakarta.annotation.Nullable String string) { this.string = string; } - public FormatTest _byte(byte[] _byte) { + public FormatTest _byte(@jakarta.annotation.Nonnull byte[] _byte) { this._byte = _byte; return this; } @@ -351,12 +367,12 @@ public byte[] getByte() { @JsonProperty(JSON_PROPERTY_BYTE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setByte(byte[] _byte) { + public void setByte(@jakarta.annotation.Nonnull byte[] _byte) { this._byte = _byte; } - public FormatTest binary(File binary) { + public FormatTest binary(@jakarta.annotation.Nullable File binary) { this.binary = binary; return this; } @@ -378,12 +394,12 @@ public File getBinary() { @JsonProperty(JSON_PROPERTY_BINARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBinary(File binary) { + public void setBinary(@jakarta.annotation.Nullable File binary) { this.binary = binary; } - public FormatTest date(LocalDate date) { + public FormatTest date(@jakarta.annotation.Nonnull LocalDate date) { this.date = date; return this; } @@ -406,12 +422,12 @@ public LocalDate getDate() { @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDate(LocalDate date) { + public void setDate(@jakarta.annotation.Nonnull LocalDate date) { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@jakarta.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -433,12 +449,12 @@ public OffsetDateTime getDateTime() { @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@jakarta.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public FormatTest uuid(UUID uuid) { + public FormatTest uuid(@jakarta.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -460,12 +476,12 @@ public UUID getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(UUID uuid) { + public void setUuid(@jakarta.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public FormatTest password(String password) { + public FormatTest password(@jakarta.annotation.Nonnull String password) { this.password = password; return this; } @@ -487,12 +503,12 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPassword(String password) { + public void setPassword(@jakarta.annotation.Nonnull String password) { this.password = password; } - public FormatTest patternWithDigits(String patternWithDigits) { + public FormatTest patternWithDigits(@jakarta.annotation.Nullable String patternWithDigits) { this.patternWithDigits = patternWithDigits; return this; } @@ -513,12 +529,12 @@ public String getPatternWithDigits() { @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPatternWithDigits(String patternWithDigits) { + public void setPatternWithDigits(@jakarta.annotation.Nullable String patternWithDigits) { this.patternWithDigits = patternWithDigits; } - public FormatTest patternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) { + public FormatTest patternWithDigitsAndDelimiter(@jakarta.annotation.Nullable String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; return this; } @@ -539,7 +555,7 @@ public String getPatternWithDigitsAndDelimiter() { @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPatternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) { + public void setPatternWithDigitsAndDelimiter(@jakarta.annotation.Nullable String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/GrandparentAnimal.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/GrandparentAnimal.java index eae309553e85..78b626f5be9a 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/GrandparentAnimal.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/GrandparentAnimal.java @@ -50,12 +50,13 @@ public class GrandparentAnimal { public static final String JSON_PROPERTY_PET_TYPE = "pet_type"; + @jakarta.annotation.Nonnull private String petType; public GrandparentAnimal() { } - public GrandparentAnimal petType(String petType) { + public GrandparentAnimal petType(@jakarta.annotation.Nonnull String petType) { this.petType = petType; return this; } @@ -77,7 +78,7 @@ public String getPetType() { @JsonProperty(JSON_PROPERTY_PET_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPetType(String petType) { + public void setPetType(@jakarta.annotation.Nonnull String petType) { this.petType = petType; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 96075e8cbbf5..c760cfa523f1 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -39,9 +39,11 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; + @jakarta.annotation.Nullable private String bar; public static final String JSON_PROPERTY_FOO = "foo"; + @jakarta.annotation.Nullable private String foo; public HasOnlyReadOnly() { diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/HealthCheckResult.java index bba217230b10..4108614a816d 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -46,7 +46,7 @@ public class HealthCheckResult { public HealthCheckResult() { } - public HealthCheckResult nullableMessage(String nullableMessage) { + public HealthCheckResult nullableMessage(@jakarta.annotation.Nullable String nullableMessage) { this.nullableMessage = JsonNullable.of(nullableMessage); return this; } @@ -75,7 +75,7 @@ public void setNullableMessage_JsonNullable(JsonNullable nullableMessage this.nullableMessage = nullableMessage; } - public void setNullableMessage(String nullableMessage) { + public void setNullableMessage(@jakarta.annotation.Nullable String nullableMessage) { this.nullableMessage = JsonNullable.of(nullableMessage); } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java index f9ca92d663ee..77505f972422 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java @@ -38,15 +38,17 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class IsoscelesTriangle { public static final String JSON_PROPERTY_SHAPE_TYPE = "shapeType"; + @jakarta.annotation.Nonnull private String shapeType; public static final String JSON_PROPERTY_TRIANGLE_TYPE = "triangleType"; + @jakarta.annotation.Nonnull private String triangleType; public IsoscelesTriangle() { } - public IsoscelesTriangle shapeType(String shapeType) { + public IsoscelesTriangle shapeType(@jakarta.annotation.Nonnull String shapeType) { this.shapeType = shapeType; return this; } @@ -68,12 +70,12 @@ public String getShapeType() { @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setShapeType(String shapeType) { + public void setShapeType(@jakarta.annotation.Nonnull String shapeType) { this.shapeType = shapeType; } - public IsoscelesTriangle triangleType(String triangleType) { + public IsoscelesTriangle triangleType(@jakarta.annotation.Nonnull String triangleType) { this.triangleType = triangleType; return this; } @@ -95,7 +97,7 @@ public String getTriangleType() { @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTriangleType(String triangleType) { + public void setTriangleType(@jakarta.annotation.Nonnull String triangleType) { this.triangleType = triangleType; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/MapTest.java index c2991fbe6b89..61c90ddd5520 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/MapTest.java @@ -42,6 +42,7 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; + @jakarta.annotation.Nullable private Map> mapMapOfString = new HashMap<>(); /** @@ -80,18 +81,21 @@ public static InnerEnum fromValue(String value) { } public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; + @jakarta.annotation.Nullable private Map mapOfEnumString = new HashMap<>(); public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; + @jakarta.annotation.Nullable private Map directMap = new HashMap<>(); public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; + @jakarta.annotation.Nullable private Map indirectMap = new HashMap<>(); public MapTest() { } - public MapTest mapMapOfString(Map> mapMapOfString) { + public MapTest mapMapOfString(@jakarta.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; return this; } @@ -121,12 +125,12 @@ public Map> getMapMapOfString() { @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapMapOfString(Map> mapMapOfString) { + public void setMapMapOfString(@jakarta.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } - public MapTest mapOfEnumString(Map mapOfEnumString) { + public MapTest mapOfEnumString(@jakarta.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; return this; } @@ -155,12 +159,12 @@ public Map getMapOfEnumString() { @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapOfEnumString(Map mapOfEnumString) { + public void setMapOfEnumString(@jakarta.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } - public MapTest directMap(Map directMap) { + public MapTest directMap(@jakarta.annotation.Nullable Map directMap) { this.directMap = directMap; return this; } @@ -189,12 +193,12 @@ public Map getDirectMap() { @JsonProperty(JSON_PROPERTY_DIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDirectMap(Map directMap) { + public void setDirectMap(@jakarta.annotation.Nullable Map directMap) { this.directMap = directMap; } - public MapTest indirectMap(Map indirectMap) { + public MapTest indirectMap(@jakarta.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; return this; } @@ -223,7 +227,7 @@ public Map getIndirectMap() { @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIndirectMap(Map indirectMap) { + public void setIndirectMap(@jakarta.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 0b95d926f6a7..c1f714e5a939 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -44,18 +44,21 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; + @jakarta.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; + @jakarta.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; + @jakarta.annotation.Nullable private Map map = new HashMap<>(); public MixedPropertiesAndAdditionalPropertiesClass() { } - public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClass uuid(@jakarta.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -77,12 +80,12 @@ public UUID getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(UUID uuid) { + public void setUuid(@jakarta.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + public MixedPropertiesAndAdditionalPropertiesClass dateTime(@jakarta.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -104,12 +107,12 @@ public OffsetDateTime getDateTime() { @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@jakarta.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + public MixedPropertiesAndAdditionalPropertiesClass map(@jakarta.annotation.Nullable Map map) { this.map = map; return this; } @@ -139,7 +142,7 @@ public Map getMap() { @JsonProperty(JSON_PROPERTY_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMap(Map map) { + public void setMap(@jakarta.annotation.Nullable Map map) { this.map = map; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Model200Response.java index 275e0e08102d..32d62ccac8ae 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Model200Response.java @@ -39,15 +39,17 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; + @jakarta.annotation.Nullable private String propertyClass; public Model200Response() { } - public Model200Response name(Integer name) { + public Model200Response name(@jakarta.annotation.Nullable Integer name) { this.name = name; return this; } @@ -68,12 +70,12 @@ public Integer getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(Integer name) { + public void setName(@jakarta.annotation.Nullable Integer name) { this.name = name; } - public Model200Response propertyClass(String propertyClass) { + public Model200Response propertyClass(@jakarta.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -94,7 +96,7 @@ public String getPropertyClass() { @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@jakarta.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelApiResponse.java index ba2267b3453e..dd6355a6b9fb 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -40,18 +40,21 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; + @jakarta.annotation.Nullable private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nullable private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; + @jakarta.annotation.Nullable private String message; public ModelApiResponse() { } - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@jakarta.annotation.Nullable Integer code) { this.code = code; return this; } @@ -72,12 +75,12 @@ public Integer getCode() { @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCode(Integer code) { + public void setCode(@jakarta.annotation.Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@jakarta.annotation.Nullable String type) { this.type = type; return this; } @@ -98,12 +101,12 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } @@ -124,7 +127,7 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelFile.java index 1f5ace8b7c7b..1d45a5385bcf 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelFile.java @@ -38,12 +38,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelFile { public static final String JSON_PROPERTY_SOURCE_U_R_I = "sourceURI"; + @jakarta.annotation.Nullable private String sourceURI; public ModelFile() { } - public ModelFile sourceURI(String sourceURI) { + public ModelFile sourceURI(@jakarta.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; return this; } @@ -64,7 +65,7 @@ public String getSourceURI() { @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSourceURI(String sourceURI) { + public void setSourceURI(@jakarta.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelList.java index ee493e5d7d95..37fb3eff5daf 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelList.java @@ -38,12 +38,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelList { public static final String JSON_PROPERTY_123LIST = "123-list"; + @jakarta.annotation.Nullable private String _123list; public ModelList() { } - public ModelList _123list(String _123list) { + public ModelList _123list(@jakarta.annotation.Nullable String _123list) { this._123list = _123list; return this; } @@ -64,7 +65,7 @@ public String get123list() { @JsonProperty(JSON_PROPERTY_123LIST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void set123list(String _123list) { + public void set123list(@jakarta.annotation.Nullable String _123list) { this._123list = _123list; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelReturn.java index e8f2e028b247..7e1055b66a9a 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -38,12 +38,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; + @jakarta.annotation.Nullable private Integer _return; public ModelReturn() { } - public ModelReturn _return(Integer _return) { + public ModelReturn _return(@jakarta.annotation.Nullable Integer _return) { this._return = _return; return this; } @@ -64,7 +65,7 @@ public Integer getReturn() { @JsonProperty(JSON_PROPERTY_RETURN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setReturn(Integer _return) { + public void setReturn(@jakarta.annotation.Nullable Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Name.java index 3e10afc3e878..d68227753e79 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Name.java @@ -40,15 +40,19 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Name { public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nonnull private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; + @jakarta.annotation.Nullable private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; + @jakarta.annotation.Nullable private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; + @jakarta.annotation.Nullable private Integer _123number; public Name() { @@ -64,7 +68,7 @@ public Name( this._123number = _123number; } - public Name name(Integer name) { + public Name name(@jakarta.annotation.Nonnull Integer name) { this.name = name; return this; } @@ -86,7 +90,7 @@ public Integer getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(Integer name) { + public void setName(@jakarta.annotation.Nonnull Integer name) { this.name = name; } @@ -107,7 +111,7 @@ public Integer getSnakeCase() { - public Name property(String property) { + public Name property(@jakarta.annotation.Nullable String property) { this.property = property; return this; } @@ -128,7 +132,7 @@ public String getProperty() { @JsonProperty(JSON_PROPERTY_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProperty(String property) { + public void setProperty(@jakarta.annotation.Nullable String property) { this.property = property; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/NullableClass.java index ec03592ec2b6..0ae2432e8722 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/NullableClass.java @@ -87,6 +87,7 @@ public class NullableClass { private JsonNullable> arrayAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_ITEMS_NULLABLE = "array_items_nullable"; + @jakarta.annotation.Nullable private List arrayItemsNullable = new ArrayList<>(); public static final String JSON_PROPERTY_OBJECT_NULLABLE_PROP = "object_nullable_prop"; @@ -96,12 +97,13 @@ public class NullableClass { private JsonNullable> objectAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_OBJECT_ITEMS_NULLABLE = "object_items_nullable"; + @jakarta.annotation.Nullable private Map objectItemsNullable = new HashMap<>(); public NullableClass() { } - public NullableClass integerProp(Integer integerProp) { + public NullableClass integerProp(@jakarta.annotation.Nullable Integer integerProp) { this.integerProp = JsonNullable.of(integerProp); return this; } @@ -130,12 +132,12 @@ public void setIntegerProp_JsonNullable(JsonNullable integerProp) { this.integerProp = integerProp; } - public void setIntegerProp(Integer integerProp) { + public void setIntegerProp(@jakarta.annotation.Nullable Integer integerProp) { this.integerProp = JsonNullable.of(integerProp); } - public NullableClass numberProp(BigDecimal numberProp) { + public NullableClass numberProp(@jakarta.annotation.Nullable BigDecimal numberProp) { this.numberProp = JsonNullable.of(numberProp); return this; } @@ -165,12 +167,12 @@ public void setNumberProp_JsonNullable(JsonNullable numberProp) { this.numberProp = numberProp; } - public void setNumberProp(BigDecimal numberProp) { + public void setNumberProp(@jakarta.annotation.Nullable BigDecimal numberProp) { this.numberProp = JsonNullable.of(numberProp); } - public NullableClass booleanProp(Boolean booleanProp) { + public NullableClass booleanProp(@jakarta.annotation.Nullable Boolean booleanProp) { this.booleanProp = JsonNullable.of(booleanProp); return this; } @@ -199,12 +201,12 @@ public void setBooleanProp_JsonNullable(JsonNullable booleanProp) { this.booleanProp = booleanProp; } - public void setBooleanProp(Boolean booleanProp) { + public void setBooleanProp(@jakarta.annotation.Nullable Boolean booleanProp) { this.booleanProp = JsonNullable.of(booleanProp); } - public NullableClass stringProp(String stringProp) { + public NullableClass stringProp(@jakarta.annotation.Nullable String stringProp) { this.stringProp = JsonNullable.of(stringProp); return this; } @@ -233,12 +235,12 @@ public void setStringProp_JsonNullable(JsonNullable stringProp) { this.stringProp = stringProp; } - public void setStringProp(String stringProp) { + public void setStringProp(@jakarta.annotation.Nullable String stringProp) { this.stringProp = JsonNullable.of(stringProp); } - public NullableClass dateProp(LocalDate dateProp) { + public NullableClass dateProp(@jakarta.annotation.Nullable LocalDate dateProp) { this.dateProp = JsonNullable.of(dateProp); return this; } @@ -268,12 +270,12 @@ public void setDateProp_JsonNullable(JsonNullable dateProp) { this.dateProp = dateProp; } - public void setDateProp(LocalDate dateProp) { + public void setDateProp(@jakarta.annotation.Nullable LocalDate dateProp) { this.dateProp = JsonNullable.of(dateProp); } - public NullableClass datetimeProp(OffsetDateTime datetimeProp) { + public NullableClass datetimeProp(@jakarta.annotation.Nullable OffsetDateTime datetimeProp) { this.datetimeProp = JsonNullable.of(datetimeProp); return this; } @@ -303,12 +305,12 @@ public void setDatetimeProp_JsonNullable(JsonNullable datetimePr this.datetimeProp = datetimeProp; } - public void setDatetimeProp(OffsetDateTime datetimeProp) { + public void setDatetimeProp(@jakarta.annotation.Nullable OffsetDateTime datetimeProp) { this.datetimeProp = JsonNullable.of(datetimeProp); } - public NullableClass arrayNullableProp(List arrayNullableProp) { + public NullableClass arrayNullableProp(@jakarta.annotation.Nullable List arrayNullableProp) { this.arrayNullableProp = JsonNullable.>of(arrayNullableProp); return this; } @@ -349,12 +351,12 @@ public void setArrayNullableProp_JsonNullable(JsonNullable> arrayNu this.arrayNullableProp = arrayNullableProp; } - public void setArrayNullableProp(List arrayNullableProp) { + public void setArrayNullableProp(@jakarta.annotation.Nullable List arrayNullableProp) { this.arrayNullableProp = JsonNullable.>of(arrayNullableProp); } - public NullableClass arrayAndItemsNullableProp(List arrayAndItemsNullableProp) { + public NullableClass arrayAndItemsNullableProp(@jakarta.annotation.Nullable List arrayAndItemsNullableProp) { this.arrayAndItemsNullableProp = JsonNullable.>of(arrayAndItemsNullableProp); return this; } @@ -395,12 +397,12 @@ public void setArrayAndItemsNullableProp_JsonNullable(JsonNullable> this.arrayAndItemsNullableProp = arrayAndItemsNullableProp; } - public void setArrayAndItemsNullableProp(List arrayAndItemsNullableProp) { + public void setArrayAndItemsNullableProp(@jakarta.annotation.Nullable List arrayAndItemsNullableProp) { this.arrayAndItemsNullableProp = JsonNullable.>of(arrayAndItemsNullableProp); } - public NullableClass arrayItemsNullable(List arrayItemsNullable) { + public NullableClass arrayItemsNullable(@jakarta.annotation.Nullable List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; return this; } @@ -429,12 +431,12 @@ public List getArrayItemsNullable() { @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayItemsNullable(List arrayItemsNullable) { + public void setArrayItemsNullable(@jakarta.annotation.Nullable List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; } - public NullableClass objectNullableProp(Map objectNullableProp) { + public NullableClass objectNullableProp(@jakarta.annotation.Nullable Map objectNullableProp) { this.objectNullableProp = JsonNullable.>of(objectNullableProp); return this; } @@ -475,12 +477,12 @@ public void setObjectNullableProp_JsonNullable(JsonNullable> this.objectNullableProp = objectNullableProp; } - public void setObjectNullableProp(Map objectNullableProp) { + public void setObjectNullableProp(@jakarta.annotation.Nullable Map objectNullableProp) { this.objectNullableProp = JsonNullable.>of(objectNullableProp); } - public NullableClass objectAndItemsNullableProp(Map objectAndItemsNullableProp) { + public NullableClass objectAndItemsNullableProp(@jakarta.annotation.Nullable Map objectAndItemsNullableProp) { this.objectAndItemsNullableProp = JsonNullable.>of(objectAndItemsNullableProp); return this; } @@ -521,12 +523,12 @@ public void setObjectAndItemsNullableProp_JsonNullable(JsonNullable objectAndItemsNullableProp) { + public void setObjectAndItemsNullableProp(@jakarta.annotation.Nullable Map objectAndItemsNullableProp) { this.objectAndItemsNullableProp = JsonNullable.>of(objectAndItemsNullableProp); } - public NullableClass objectItemsNullable(Map objectItemsNullable) { + public NullableClass objectItemsNullable(@jakarta.annotation.Nullable Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; return this; } @@ -555,7 +557,7 @@ public Map getObjectItemsNullable() { @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setObjectItemsNullable(Map objectItemsNullable) { + public void setObjectItemsNullable(@jakarta.annotation.Nullable Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/NumberOnly.java index c3d85bf98a8f..a6499e4369c3 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -38,12 +38,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; + @jakarta.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } - public NumberOnly justNumber(BigDecimal justNumber) { + public NumberOnly justNumber(@jakarta.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; } @@ -65,7 +66,7 @@ public BigDecimal getJustNumber() { @JsonProperty(JSON_PROPERTY_JUST_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJustNumber(BigDecimal justNumber) { + public void setJustNumber(@jakarta.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index 40c19f4cb86b..fa1e3429b3a0 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -44,24 +44,28 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ObjectWithDeprecatedFields { public static final String JSON_PROPERTY_UUID = "uuid"; + @jakarta.annotation.Nullable private String uuid; public static final String JSON_PROPERTY_ID = "id"; @Deprecated + @jakarta.annotation.Nullable private BigDecimal id; public static final String JSON_PROPERTY_DEPRECATED_REF = "deprecatedRef"; @Deprecated + @jakarta.annotation.Nullable private DeprecatedObject deprecatedRef; public static final String JSON_PROPERTY_BARS = "bars"; @Deprecated + @jakarta.annotation.Nullable private List bars = new ArrayList<>(); public ObjectWithDeprecatedFields() { } - public ObjectWithDeprecatedFields uuid(String uuid) { + public ObjectWithDeprecatedFields uuid(@jakarta.annotation.Nullable String uuid) { this.uuid = uuid; return this; } @@ -82,13 +86,13 @@ public String getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(String uuid) { + public void setUuid(@jakarta.annotation.Nullable String uuid) { this.uuid = uuid; } @Deprecated - public ObjectWithDeprecatedFields id(BigDecimal id) { + public ObjectWithDeprecatedFields id(@jakarta.annotation.Nullable BigDecimal id) { this.id = id; return this; } @@ -113,13 +117,13 @@ public BigDecimal getId() { @Deprecated @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(BigDecimal id) { + public void setId(@jakarta.annotation.Nullable BigDecimal id) { this.id = id; } @Deprecated - public ObjectWithDeprecatedFields deprecatedRef(DeprecatedObject deprecatedRef) { + public ObjectWithDeprecatedFields deprecatedRef(@jakarta.annotation.Nullable DeprecatedObject deprecatedRef) { this.deprecatedRef = deprecatedRef; return this; } @@ -144,13 +148,13 @@ public DeprecatedObject getDeprecatedRef() { @Deprecated @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeprecatedRef(DeprecatedObject deprecatedRef) { + public void setDeprecatedRef(@jakarta.annotation.Nullable DeprecatedObject deprecatedRef) { this.deprecatedRef = deprecatedRef; } @Deprecated - public ObjectWithDeprecatedFields bars(List bars) { + public ObjectWithDeprecatedFields bars(@jakarta.annotation.Nullable List bars) { this.bars = bars; return this; } @@ -182,7 +186,7 @@ public List getBars() { @Deprecated @JsonProperty(JSON_PROPERTY_BARS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBars(List bars) { + public void setBars(@jakarta.annotation.Nullable List bars) { this.bars = bars; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Order.java index bbc05fd396b9..018a9c59a221 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Order.java @@ -43,15 +43,19 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Order { public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; + @jakarta.annotation.Nullable private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; + @jakarta.annotation.Nullable private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; + @jakarta.annotation.Nullable private OffsetDateTime shipDate; /** @@ -92,15 +96,17 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @jakarta.annotation.Nullable private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; + @jakarta.annotation.Nullable private Boolean complete = false; public Order() { } - public Order id(Long id) { + public Order id(@jakarta.annotation.Nullable Long id) { this.id = id; return this; } @@ -121,12 +127,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@jakarta.annotation.Nullable Long petId) { this.petId = petId; return this; } @@ -147,12 +153,12 @@ public Long getPetId() { @JsonProperty(JSON_PROPERTY_PET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPetId(Long petId) { + public void setPetId(@jakarta.annotation.Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@jakarta.annotation.Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -173,12 +179,12 @@ public Integer getQuantity() { @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setQuantity(Integer quantity) { + public void setQuantity(@jakarta.annotation.Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@jakarta.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -200,12 +206,12 @@ public OffsetDateTime getShipDate() { @JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@jakarta.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; return this; } @@ -226,12 +232,12 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; } - public Order complete(Boolean complete) { + public Order complete(@jakarta.annotation.Nullable Boolean complete) { this.complete = complete; return this; } @@ -252,7 +258,7 @@ public Boolean getComplete() { @JsonProperty(JSON_PROPERTY_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setComplete(Boolean complete) { + public void setComplete(@jakarta.annotation.Nullable Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/OuterComposite.java index 70d6d70d48f3..b7d31db8bd5e 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -40,18 +40,21 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; + @jakarta.annotation.Nullable private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; + @jakarta.annotation.Nullable private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; + @jakarta.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } - public OuterComposite myNumber(BigDecimal myNumber) { + public OuterComposite myNumber(@jakarta.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; } @@ -73,12 +76,12 @@ public BigDecimal getMyNumber() { @JsonProperty(JSON_PROPERTY_MY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyNumber(BigDecimal myNumber) { + public void setMyNumber(@jakarta.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; } - public OuterComposite myString(String myString) { + public OuterComposite myString(@jakarta.annotation.Nullable String myString) { this.myString = myString; return this; } @@ -99,12 +102,12 @@ public String getMyString() { @JsonProperty(JSON_PROPERTY_MY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyString(String myString) { + public void setMyString(@jakarta.annotation.Nullable String myString) { this.myString = myString; } - public OuterComposite myBoolean(Boolean myBoolean) { + public OuterComposite myBoolean(@jakarta.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; return this; } @@ -125,7 +128,7 @@ public Boolean getMyBoolean() { @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyBoolean(Boolean myBoolean) { + public void setMyBoolean(@jakarta.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Pet.java index bd16328a5774..748bf613482e 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Pet.java @@ -46,18 +46,23 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Pet { public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; + @jakarta.annotation.Nullable private Category category; public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; + @jakarta.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String JSON_PROPERTY_TAGS = "tags"; + @jakarta.annotation.Nullable private List<@Valid Tag> tags = new ArrayList<>(); /** @@ -98,12 +103,13 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @jakarta.annotation.Nullable private StatusEnum status; public Pet() { } - public Pet id(Long id) { + public Pet id(@jakarta.annotation.Nullable Long id) { this.id = id; return this; } @@ -124,12 +130,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@jakarta.annotation.Nullable Category category) { this.category = category; return this; } @@ -151,12 +157,12 @@ public Category getCategory() { @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCategory(Category category) { + public void setCategory(@jakarta.annotation.Nullable Category category) { this.category = category; } - public Pet name(String name) { + public Pet name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } @@ -178,12 +184,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public Pet photoUrls(List photoUrls) { + public Pet photoUrls(@jakarta.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; return this; } @@ -213,12 +219,12 @@ public List getPhotoUrls() { @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPhotoUrls(List photoUrls) { + public void setPhotoUrls(@jakarta.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; } - public Pet tags(List<@Valid Tag> tags) { + public Pet tags(@jakarta.annotation.Nullable List<@Valid Tag> tags) { this.tags = tags; return this; } @@ -248,12 +254,12 @@ public Pet addTagsItem(Tag tagsItem) { @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTags(List<@Valid Tag> tags) { + public void setTags(@jakarta.annotation.Nullable List<@Valid Tag> tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; return this; } @@ -274,7 +280,7 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java index 2cea67f941ce..c94f72c961ae 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java @@ -37,12 +37,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class QuadrilateralInterface { public static final String JSON_PROPERTY_QUADRILATERAL_TYPE = "quadrilateralType"; + @jakarta.annotation.Nonnull private String quadrilateralType; public QuadrilateralInterface() { } - public QuadrilateralInterface quadrilateralType(String quadrilateralType) { + public QuadrilateralInterface quadrilateralType(@jakarta.annotation.Nonnull String quadrilateralType) { this.quadrilateralType = quadrilateralType; return this; } @@ -64,7 +65,7 @@ public String getQuadrilateralType() { @JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setQuadrilateralType(String quadrilateralType) { + public void setQuadrilateralType(@jakarta.annotation.Nonnull String quadrilateralType) { this.quadrilateralType = quadrilateralType; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index f96f12455401..774c6411cefb 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -38,9 +38,11 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; + @jakarta.annotation.Nullable private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; + @jakarta.annotation.Nullable private String baz; public ReadOnlyFirst() { @@ -70,7 +72,7 @@ public String getBar() { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@jakarta.annotation.Nullable String baz) { this.baz = baz; return this; } @@ -91,7 +93,7 @@ public String getBaz() { @JsonProperty(JSON_PROPERTY_BAZ) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBaz(String baz) { + public void setBaz(@jakarta.annotation.Nullable String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ScaleneTriangle.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ScaleneTriangle.java index 108a94f53156..8707ce2ec105 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ScaleneTriangle.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ScaleneTriangle.java @@ -42,15 +42,17 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ScaleneTriangle { public static final String JSON_PROPERTY_SHAPE_TYPE = "shapeType"; + @jakarta.annotation.Nonnull private String shapeType; public static final String JSON_PROPERTY_TRIANGLE_TYPE = "triangleType"; + @jakarta.annotation.Nonnull private String triangleType; public ScaleneTriangle() { } - public ScaleneTriangle shapeType(String shapeType) { + public ScaleneTriangle shapeType(@jakarta.annotation.Nonnull String shapeType) { this.shapeType = shapeType; return this; } @@ -72,12 +74,12 @@ public String getShapeType() { @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setShapeType(String shapeType) { + public void setShapeType(@jakarta.annotation.Nonnull String shapeType) { this.shapeType = shapeType; } - public ScaleneTriangle triangleType(String triangleType) { + public ScaleneTriangle triangleType(@jakarta.annotation.Nonnull String triangleType) { this.triangleType = triangleType; return this; } @@ -99,7 +101,7 @@ public String getTriangleType() { @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTriangleType(String triangleType) { + public void setTriangleType(@jakarta.annotation.Nonnull String triangleType) { this.triangleType = triangleType; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ShapeInterface.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ShapeInterface.java index 30a02755e30f..60d1d40a2128 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ShapeInterface.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ShapeInterface.java @@ -37,12 +37,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ShapeInterface { public static final String JSON_PROPERTY_SHAPE_TYPE = "shapeType"; + @jakarta.annotation.Nonnull private String shapeType; public ShapeInterface() { } - public ShapeInterface shapeType(String shapeType) { + public ShapeInterface shapeType(@jakarta.annotation.Nonnull String shapeType) { this.shapeType = shapeType; return this; } @@ -64,7 +65,7 @@ public String getShapeType() { @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setShapeType(String shapeType) { + public void setShapeType(@jakarta.annotation.Nonnull String shapeType) { this.shapeType = shapeType; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java index ab2a11589df7..8487dbfe1ca4 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java @@ -42,15 +42,17 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class SimpleQuadrilateral { public static final String JSON_PROPERTY_SHAPE_TYPE = "shapeType"; + @jakarta.annotation.Nonnull private String shapeType; public static final String JSON_PROPERTY_QUADRILATERAL_TYPE = "quadrilateralType"; + @jakarta.annotation.Nonnull private String quadrilateralType; public SimpleQuadrilateral() { } - public SimpleQuadrilateral shapeType(String shapeType) { + public SimpleQuadrilateral shapeType(@jakarta.annotation.Nonnull String shapeType) { this.shapeType = shapeType; return this; } @@ -72,12 +74,12 @@ public String getShapeType() { @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setShapeType(String shapeType) { + public void setShapeType(@jakarta.annotation.Nonnull String shapeType) { this.shapeType = shapeType; } - public SimpleQuadrilateral quadrilateralType(String quadrilateralType) { + public SimpleQuadrilateral quadrilateralType(@jakarta.annotation.Nonnull String quadrilateralType) { this.quadrilateralType = quadrilateralType; return this; } @@ -99,7 +101,7 @@ public String getQuadrilateralType() { @JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setQuadrilateralType(String quadrilateralType) { + public void setQuadrilateralType(@jakarta.annotation.Nonnull String quadrilateralType) { this.quadrilateralType = quadrilateralType; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/SpecialModelName.java index aa1a9d92c1db..6ef2b5f4d380 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -39,15 +39,17 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; + @jakarta.annotation.Nullable private Long $specialPropertyName; public static final String JSON_PROPERTY_SPECIAL_MODEL_NAME = "_special_model.name_"; + @jakarta.annotation.Nullable private String specialModelName; public SpecialModelName() { } - public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + public SpecialModelName $specialPropertyName(@jakarta.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; return this; } @@ -68,12 +70,12 @@ public SpecialModelName() { @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void set$SpecialPropertyName(Long $specialPropertyName) { + public void set$SpecialPropertyName(@jakarta.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } - public SpecialModelName specialModelName(String specialModelName) { + public SpecialModelName specialModelName(@jakarta.annotation.Nullable String specialModelName) { this.specialModelName = specialModelName; return this; } @@ -94,7 +96,7 @@ public String getSpecialModelName() { @JsonProperty(JSON_PROPERTY_SPECIAL_MODEL_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSpecialModelName(String specialModelName) { + public void setSpecialModelName(@jakarta.annotation.Nullable String specialModelName) { this.specialModelName = specialModelName; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Tag.java index d50491449a44..e79fc973cc75 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Tag.java @@ -38,15 +38,17 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Tag { public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private String name; public Tag() { } - public Tag id(Long id) { + public Tag id(@jakarta.annotation.Nullable Long id) { this.id = id; return this; } @@ -67,12 +69,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -93,7 +95,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index d381190c71cf..4e9158f9d62a 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -42,12 +42,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class TestInlineFreeformAdditionalPropertiesRequest { public static final String JSON_PROPERTY_SOME_PROPERTY = "someProperty"; + @jakarta.annotation.Nullable private String someProperty; public TestInlineFreeformAdditionalPropertiesRequest() { } - public TestInlineFreeformAdditionalPropertiesRequest someProperty(String someProperty) { + public TestInlineFreeformAdditionalPropertiesRequest someProperty(@jakarta.annotation.Nullable String someProperty) { this.someProperty = someProperty; return this; } @@ -68,7 +69,7 @@ public String getSomeProperty() { @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSomeProperty(String someProperty) { + public void setSomeProperty(@jakarta.annotation.Nullable String someProperty) { this.someProperty = someProperty; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/TriangleInterface.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/TriangleInterface.java index 3959be31ef6b..5ba112d34e1e 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/TriangleInterface.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/TriangleInterface.java @@ -37,12 +37,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class TriangleInterface { public static final String JSON_PROPERTY_TRIANGLE_TYPE = "triangleType"; + @jakarta.annotation.Nonnull private String triangleType; public TriangleInterface() { } - public TriangleInterface triangleType(String triangleType) { + public TriangleInterface triangleType(@jakarta.annotation.Nonnull String triangleType) { this.triangleType = triangleType; return this; } @@ -64,7 +65,7 @@ public String getTriangleType() { @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTriangleType(String triangleType) { + public void setTriangleType(@jakarta.annotation.Nonnull String triangleType) { this.triangleType = triangleType; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/User.java index 72b0b9934b24..3378230fd954 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/User.java @@ -52,30 +52,39 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class User { public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; + @jakarta.annotation.Nullable private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; + @jakarta.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; + @jakarta.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; + @jakarta.annotation.Nullable private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; + @jakarta.annotation.Nullable private String password; public static final String JSON_PROPERTY_PHONE = "phone"; + @jakarta.annotation.Nullable private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; + @jakarta.annotation.Nullable private Integer userStatus; public static final String JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS = "objectWithNoDeclaredProps"; + @jakarta.annotation.Nullable private Object objectWithNoDeclaredProps; public static final String JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS_NULLABLE = "objectWithNoDeclaredPropsNullable"; @@ -90,7 +99,7 @@ public class User { public User() { } - public User id(Long id) { + public User id(@jakarta.annotation.Nullable Long id) { this.id = id; return this; } @@ -111,12 +120,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@jakarta.annotation.Nullable String username) { this.username = username; return this; } @@ -137,12 +146,12 @@ public String getUsername() { @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsername(String username) { + public void setUsername(@jakarta.annotation.Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@jakarta.annotation.Nullable String firstName) { this.firstName = firstName; return this; } @@ -163,12 +172,12 @@ public String getFirstName() { @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFirstName(String firstName) { + public void setFirstName(@jakarta.annotation.Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@jakarta.annotation.Nullable String lastName) { this.lastName = lastName; return this; } @@ -189,12 +198,12 @@ public String getLastName() { @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLastName(String lastName) { + public void setLastName(@jakarta.annotation.Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@jakarta.annotation.Nullable String email) { this.email = email; return this; } @@ -215,12 +224,12 @@ public String getEmail() { @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEmail(String email) { + public void setEmail(@jakarta.annotation.Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@jakarta.annotation.Nullable String password) { this.password = password; return this; } @@ -241,12 +250,12 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPassword(String password) { + public void setPassword(@jakarta.annotation.Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@jakarta.annotation.Nullable String phone) { this.phone = phone; return this; } @@ -267,12 +276,12 @@ public String getPhone() { @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPhone(String phone) { + public void setPhone(@jakarta.annotation.Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@jakarta.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -293,12 +302,12 @@ public Integer getUserStatus() { @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@jakarta.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; } - public User objectWithNoDeclaredProps(Object objectWithNoDeclaredProps) { + public User objectWithNoDeclaredProps(@jakarta.annotation.Nullable Object objectWithNoDeclaredProps) { this.objectWithNoDeclaredProps = objectWithNoDeclaredProps; return this; } @@ -319,12 +328,12 @@ public Object getObjectWithNoDeclaredProps() { @JsonProperty(JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setObjectWithNoDeclaredProps(Object objectWithNoDeclaredProps) { + public void setObjectWithNoDeclaredProps(@jakarta.annotation.Nullable Object objectWithNoDeclaredProps) { this.objectWithNoDeclaredProps = objectWithNoDeclaredProps; } - public User objectWithNoDeclaredPropsNullable(Object objectWithNoDeclaredPropsNullable) { + public User objectWithNoDeclaredPropsNullable(@jakarta.annotation.Nullable Object objectWithNoDeclaredPropsNullable) { this.objectWithNoDeclaredPropsNullable = JsonNullable.of(objectWithNoDeclaredPropsNullable); return this; } @@ -353,12 +362,12 @@ public void setObjectWithNoDeclaredPropsNullable_JsonNullable(JsonNullableof(objectWithNoDeclaredPropsNullable); } - public User anyTypeProp(Object anyTypeProp) { + public User anyTypeProp(@jakarta.annotation.Nullable Object anyTypeProp) { this.anyTypeProp = JsonNullable.of(anyTypeProp); return this; } @@ -387,12 +396,12 @@ public void setAnyTypeProp_JsonNullable(JsonNullable anyTypeProp) { this.anyTypeProp = anyTypeProp; } - public void setAnyTypeProp(Object anyTypeProp) { + public void setAnyTypeProp(@jakarta.annotation.Nullable Object anyTypeProp) { this.anyTypeProp = JsonNullable.of(anyTypeProp); } - public User anyTypePropNullable(Object anyTypePropNullable) { + public User anyTypePropNullable(@jakarta.annotation.Nullable Object anyTypePropNullable) { this.anyTypePropNullable = JsonNullable.of(anyTypePropNullable); return this; } @@ -421,7 +430,7 @@ public void setAnyTypePropNullable_JsonNullable(JsonNullable anyTypeProp this.anyTypePropNullable = anyTypePropNullable; } - public void setAnyTypePropNullable(Object anyTypePropNullable) { + public void setAnyTypePropNullable(@jakarta.annotation.Nullable Object anyTypePropNullable) { this.anyTypePropNullable = JsonNullable.of(anyTypePropNullable); } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Whale.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Whale.java index c8971640e8a4..1f589ec8f62d 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Whale.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Whale.java @@ -40,18 +40,21 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Whale { public static final String JSON_PROPERTY_HAS_BALEEN = "hasBaleen"; + @jakarta.annotation.Nullable private Boolean hasBaleen; public static final String JSON_PROPERTY_HAS_TEETH = "hasTeeth"; + @jakarta.annotation.Nullable private Boolean hasTeeth; public static final String JSON_PROPERTY_CLASS_NAME = "className"; + @jakarta.annotation.Nonnull private String className; public Whale() { } - public Whale hasBaleen(Boolean hasBaleen) { + public Whale hasBaleen(@jakarta.annotation.Nullable Boolean hasBaleen) { this.hasBaleen = hasBaleen; return this; } @@ -72,12 +75,12 @@ public Boolean getHasBaleen() { @JsonProperty(JSON_PROPERTY_HAS_BALEEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setHasBaleen(Boolean hasBaleen) { + public void setHasBaleen(@jakarta.annotation.Nullable Boolean hasBaleen) { this.hasBaleen = hasBaleen; } - public Whale hasTeeth(Boolean hasTeeth) { + public Whale hasTeeth(@jakarta.annotation.Nullable Boolean hasTeeth) { this.hasTeeth = hasTeeth; return this; } @@ -98,12 +101,12 @@ public Boolean getHasTeeth() { @JsonProperty(JSON_PROPERTY_HAS_TEETH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setHasTeeth(Boolean hasTeeth) { + public void setHasTeeth(@jakarta.annotation.Nullable Boolean hasTeeth) { this.hasTeeth = hasTeeth; } - public Whale className(String className) { + public Whale className(@jakarta.annotation.Nonnull String className) { this.className = className; return this; } @@ -125,7 +128,7 @@ public String getClassName() { @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setClassName(String className) { + public void setClassName(@jakarta.annotation.Nonnull String className) { this.className = className; } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Zebra.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Zebra.java index aa390ffcd2cf..194b9dd8d398 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Zebra.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Zebra.java @@ -80,15 +80,17 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nullable private TypeEnum type; public static final String JSON_PROPERTY_CLASS_NAME = "className"; + @jakarta.annotation.Nonnull private String className; public Zebra() { } - public Zebra type(TypeEnum type) { + public Zebra type(@jakarta.annotation.Nullable TypeEnum type) { this.type = type; return this; } @@ -109,12 +111,12 @@ public TypeEnum getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(TypeEnum type) { + public void setType(@jakarta.annotation.Nullable TypeEnum type) { this.type = type; } - public Zebra className(String className) { + public Zebra className(@jakarta.annotation.Nonnull String className) { this.className = className; return this; } @@ -136,7 +138,7 @@ public String getClassName() { @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setClassName(String className) { + public void setClassName(@jakarta.annotation.Nonnull String className) { this.className = className; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index ef14997d9d7c..21a2ead74a24 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -51,33 +51,40 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_PROPERTY = "map_property"; + @javax.annotation.Nullable private Map mapProperty = new HashMap<>(); public static final String JSON_PROPERTY_MAP_OF_MAP_PROPERTY = "map_of_map_property"; + @javax.annotation.Nullable private Map> mapOfMapProperty = new HashMap<>(); public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1"; private JsonNullable anytype1 = JsonNullable.of(null); public static final String JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE1 = "map_with_undeclared_properties_anytype_1"; + @javax.annotation.Nullable private Object mapWithUndeclaredPropertiesAnytype1; public static final String JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE2 = "map_with_undeclared_properties_anytype_2"; + @javax.annotation.Nullable private Object mapWithUndeclaredPropertiesAnytype2; public static final String JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE3 = "map_with_undeclared_properties_anytype_3"; + @javax.annotation.Nullable private Map mapWithUndeclaredPropertiesAnytype3 = new HashMap<>(); public static final String JSON_PROPERTY_EMPTY_MAP = "empty_map"; + @javax.annotation.Nullable private Object emptyMap; public static final String JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_STRING = "map_with_undeclared_properties_string"; + @javax.annotation.Nullable private Map mapWithUndeclaredPropertiesString = new HashMap<>(); public AdditionalPropertiesClass() { } - public AdditionalPropertiesClass mapProperty(Map mapProperty) { + public AdditionalPropertiesClass mapProperty(@javax.annotation.Nullable Map mapProperty) { this.mapProperty = mapProperty; return this; } @@ -104,12 +111,12 @@ public Map getMapProperty() { @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapProperty(Map mapProperty) { + public void setMapProperty(@javax.annotation.Nullable Map mapProperty) { this.mapProperty = mapProperty; } - public AdditionalPropertiesClass mapOfMapProperty(Map> mapOfMapProperty) { + public AdditionalPropertiesClass mapOfMapProperty(@javax.annotation.Nullable Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; return this; } @@ -136,12 +143,12 @@ public Map> getMapOfMapProperty() { @JsonProperty(JSON_PROPERTY_MAP_OF_MAP_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapOfMapProperty(Map> mapOfMapProperty) { + public void setMapOfMapProperty(@javax.annotation.Nullable Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@javax.annotation.Nullable Object anytype1) { this.anytype1 = JsonNullable.of(anytype1); return this; } @@ -168,12 +175,12 @@ public void setAnytype1_JsonNullable(JsonNullable anytype1) { this.anytype1 = anytype1; } - public void setAnytype1(Object anytype1) { + public void setAnytype1(@javax.annotation.Nullable Object anytype1) { this.anytype1 = JsonNullable.of(anytype1); } - public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype1(Object mapWithUndeclaredPropertiesAnytype1) { + public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype1(@javax.annotation.Nullable Object mapWithUndeclaredPropertiesAnytype1) { this.mapWithUndeclaredPropertiesAnytype1 = mapWithUndeclaredPropertiesAnytype1; return this; } @@ -192,12 +199,12 @@ public Object getMapWithUndeclaredPropertiesAnytype1() { @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE1) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapWithUndeclaredPropertiesAnytype1(Object mapWithUndeclaredPropertiesAnytype1) { + public void setMapWithUndeclaredPropertiesAnytype1(@javax.annotation.Nullable Object mapWithUndeclaredPropertiesAnytype1) { this.mapWithUndeclaredPropertiesAnytype1 = mapWithUndeclaredPropertiesAnytype1; } - public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype2(Object mapWithUndeclaredPropertiesAnytype2) { + public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype2(@javax.annotation.Nullable Object mapWithUndeclaredPropertiesAnytype2) { this.mapWithUndeclaredPropertiesAnytype2 = mapWithUndeclaredPropertiesAnytype2; return this; } @@ -216,12 +223,12 @@ public Object getMapWithUndeclaredPropertiesAnytype2() { @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapWithUndeclaredPropertiesAnytype2(Object mapWithUndeclaredPropertiesAnytype2) { + public void setMapWithUndeclaredPropertiesAnytype2(@javax.annotation.Nullable Object mapWithUndeclaredPropertiesAnytype2) { this.mapWithUndeclaredPropertiesAnytype2 = mapWithUndeclaredPropertiesAnytype2; } - public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype3(Map mapWithUndeclaredPropertiesAnytype3) { + public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype3(@javax.annotation.Nullable Map mapWithUndeclaredPropertiesAnytype3) { this.mapWithUndeclaredPropertiesAnytype3 = mapWithUndeclaredPropertiesAnytype3; return this; } @@ -248,12 +255,12 @@ public Map getMapWithUndeclaredPropertiesAnytype3() { @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE3) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setMapWithUndeclaredPropertiesAnytype3(Map mapWithUndeclaredPropertiesAnytype3) { + public void setMapWithUndeclaredPropertiesAnytype3(@javax.annotation.Nullable Map mapWithUndeclaredPropertiesAnytype3) { this.mapWithUndeclaredPropertiesAnytype3 = mapWithUndeclaredPropertiesAnytype3; } - public AdditionalPropertiesClass emptyMap(Object emptyMap) { + public AdditionalPropertiesClass emptyMap(@javax.annotation.Nullable Object emptyMap) { this.emptyMap = emptyMap; return this; } @@ -272,12 +279,12 @@ public Object getEmptyMap() { @JsonProperty(JSON_PROPERTY_EMPTY_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEmptyMap(Object emptyMap) { + public void setEmptyMap(@javax.annotation.Nullable Object emptyMap) { this.emptyMap = emptyMap; } - public AdditionalPropertiesClass mapWithUndeclaredPropertiesString(Map mapWithUndeclaredPropertiesString) { + public AdditionalPropertiesClass mapWithUndeclaredPropertiesString(@javax.annotation.Nullable Map mapWithUndeclaredPropertiesString) { this.mapWithUndeclaredPropertiesString = mapWithUndeclaredPropertiesString; return this; } @@ -304,7 +311,7 @@ public Map getMapWithUndeclaredPropertiesString() { @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapWithUndeclaredPropertiesString(Map mapWithUndeclaredPropertiesString) { + public void setMapWithUndeclaredPropertiesString(@javax.annotation.Nullable Map mapWithUndeclaredPropertiesString) { this.mapWithUndeclaredPropertiesString = mapWithUndeclaredPropertiesString; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Animal.java index f7d96f7f0a6f..7187fb58c7da 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Animal.java @@ -53,15 +53,17 @@ public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; + @javax.annotation.Nonnull private String className; public static final String JSON_PROPERTY_COLOR = "color"; + @javax.annotation.Nullable private String color = "red"; public Animal() { } - public Animal className(String className) { + public Animal className(@javax.annotation.Nonnull String className) { this.className = className; return this; } @@ -80,12 +82,12 @@ public String getClassName() { @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setClassName(String className) { + public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; } - public Animal color(String color) { + public Animal color(@javax.annotation.Nullable String color) { this.color = color; return this; } @@ -104,7 +106,7 @@ public String getColor() { @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setColor(String color) { + public void setColor(@javax.annotation.Nullable String color) { this.color = color; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Apple.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Apple.java index ded4b1660d05..df1f19b4bb86 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Apple.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Apple.java @@ -39,15 +39,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Apple { public static final String JSON_PROPERTY_CULTIVAR = "cultivar"; + @javax.annotation.Nullable private String cultivar; public static final String JSON_PROPERTY_ORIGIN = "origin"; + @javax.annotation.Nullable private String origin; public Apple() { } - public Apple cultivar(String cultivar) { + public Apple cultivar(@javax.annotation.Nullable String cultivar) { this.cultivar = cultivar; return this; } @@ -66,12 +68,12 @@ public String getCultivar() { @JsonProperty(JSON_PROPERTY_CULTIVAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCultivar(String cultivar) { + public void setCultivar(@javax.annotation.Nullable String cultivar) { this.cultivar = cultivar; } - public Apple origin(String origin) { + public Apple origin(@javax.annotation.Nullable String origin) { this.origin = origin; return this; } @@ -90,7 +92,7 @@ public String getOrigin() { @JsonProperty(JSON_PROPERTY_ORIGIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOrigin(String origin) { + public void setOrigin(@javax.annotation.Nullable String origin) { this.origin = origin; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AppleReq.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AppleReq.java index d5f6bb44fc4d..78c002088af4 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AppleReq.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AppleReq.java @@ -39,15 +39,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AppleReq { public static final String JSON_PROPERTY_CULTIVAR = "cultivar"; + @javax.annotation.Nonnull private String cultivar; public static final String JSON_PROPERTY_MEALY = "mealy"; + @javax.annotation.Nullable private Boolean mealy; public AppleReq() { } - public AppleReq cultivar(String cultivar) { + public AppleReq cultivar(@javax.annotation.Nonnull String cultivar) { this.cultivar = cultivar; return this; } @@ -66,12 +68,12 @@ public String getCultivar() { @JsonProperty(JSON_PROPERTY_CULTIVAR) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCultivar(String cultivar) { + public void setCultivar(@javax.annotation.Nonnull String cultivar) { this.cultivar = cultivar; } - public AppleReq mealy(Boolean mealy) { + public AppleReq mealy(@javax.annotation.Nullable Boolean mealy) { this.mealy = mealy; return this; } @@ -90,7 +92,7 @@ public Boolean getMealy() { @JsonProperty(JSON_PROPERTY_MEALY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMealy(Boolean mealy) { + public void setMealy(@javax.annotation.Nullable Boolean mealy) { this.mealy = mealy; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 06be317744b8..f4f5e5d4e96f 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -41,12 +41,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayOfArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; + @javax.annotation.Nullable private List> arrayArrayNumber = new ArrayList<>(); public ArrayOfArrayOfNumberOnly() { } - public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + public ArrayOfArrayOfNumberOnly arrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; return this; } @@ -73,7 +74,7 @@ public List> getArrayArrayNumber() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayNumber(List> arrayArrayNumber) { + public void setArrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index a20170b2842e..4e5643803e86 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -41,12 +41,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; + @javax.annotation.Nullable private List arrayNumber = new ArrayList<>(); public ArrayOfNumberOnly() { } - public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + public ArrayOfNumberOnly arrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; return this; } @@ -73,7 +74,7 @@ public List getArrayNumber() { @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayNumber(List arrayNumber) { + public void setArrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ArrayTest.java index f3dafe5b516f..4b32e9365d55 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -43,18 +43,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; + @javax.annotation.Nullable private List arrayOfString = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; + @javax.annotation.Nullable private List> arrayArrayOfInteger = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; + @javax.annotation.Nullable private List> arrayArrayOfModel = new ArrayList<>(); public ArrayTest() { } - public ArrayTest arrayOfString(List arrayOfString) { + public ArrayTest arrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; return this; } @@ -81,12 +84,12 @@ public List getArrayOfString() { @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayOfString(List arrayOfString) { + public void setArrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; } - public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + public ArrayTest arrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; return this; } @@ -113,12 +116,12 @@ public List> getArrayArrayOfInteger() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { + public void setArrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } - public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + public ArrayTest arrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; return this; } @@ -145,7 +148,7 @@ public List> getArrayArrayOfModel() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayOfModel(List> arrayArrayOfModel) { + public void setArrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Banana.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Banana.java index bee4c8129be6..348f2eef6f80 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Banana.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Banana.java @@ -39,12 +39,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Banana { public static final String JSON_PROPERTY_LENGTH_CM = "lengthCm"; + @javax.annotation.Nullable private BigDecimal lengthCm; public Banana() { } - public Banana lengthCm(BigDecimal lengthCm) { + public Banana lengthCm(@javax.annotation.Nullable BigDecimal lengthCm) { this.lengthCm = lengthCm; return this; } @@ -63,7 +64,7 @@ public BigDecimal getLengthCm() { @JsonProperty(JSON_PROPERTY_LENGTH_CM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLengthCm(BigDecimal lengthCm) { + public void setLengthCm(@javax.annotation.Nullable BigDecimal lengthCm) { this.lengthCm = lengthCm; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/BananaReq.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/BananaReq.java index 03d01c2e92ed..707f73cee549 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/BananaReq.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/BananaReq.java @@ -40,15 +40,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class BananaReq { public static final String JSON_PROPERTY_LENGTH_CM = "lengthCm"; + @javax.annotation.Nonnull private BigDecimal lengthCm; public static final String JSON_PROPERTY_SWEET = "sweet"; + @javax.annotation.Nullable private Boolean sweet; public BananaReq() { } - public BananaReq lengthCm(BigDecimal lengthCm) { + public BananaReq lengthCm(@javax.annotation.Nonnull BigDecimal lengthCm) { this.lengthCm = lengthCm; return this; } @@ -67,12 +69,12 @@ public BigDecimal getLengthCm() { @JsonProperty(JSON_PROPERTY_LENGTH_CM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLengthCm(BigDecimal lengthCm) { + public void setLengthCm(@javax.annotation.Nonnull BigDecimal lengthCm) { this.lengthCm = lengthCm; } - public BananaReq sweet(Boolean sweet) { + public BananaReq sweet(@javax.annotation.Nullable Boolean sweet) { this.sweet = sweet; return this; } @@ -91,7 +93,7 @@ public Boolean getSweet() { @JsonProperty(JSON_PROPERTY_SWEET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSweet(Boolean sweet) { + public void setSweet(@javax.annotation.Nullable Boolean sweet) { this.sweet = sweet; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/BasquePig.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/BasquePig.java index cdd910f1ab46..8c4ce52920c3 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/BasquePig.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/BasquePig.java @@ -38,12 +38,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class BasquePig { public static final String JSON_PROPERTY_CLASS_NAME = "className"; + @javax.annotation.Nonnull private String className; public BasquePig() { } - public BasquePig className(String className) { + public BasquePig className(@javax.annotation.Nonnull String className) { this.className = className; return this; } @@ -62,7 +63,7 @@ public String getClassName() { @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setClassName(String className) { + public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Capitalization.java index 4f817eb0336c..8399941c7662 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Capitalization.java @@ -43,27 +43,33 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Capitalization { public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; + @javax.annotation.Nullable private String smallCamel; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; + @javax.annotation.Nullable private String capitalCamel; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; + @javax.annotation.Nullable private String smallSnake; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; + @javax.annotation.Nullable private String capitalSnake; public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; + @javax.annotation.Nullable private String scAETHFlowPoints; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; + @javax.annotation.Nullable private String ATT_NAME; public Capitalization() { } - public Capitalization smallCamel(String smallCamel) { + public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; return this; } @@ -82,12 +88,12 @@ public String getSmallCamel() { @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmallCamel(String smallCamel) { + public void setSmallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; } - public Capitalization capitalCamel(String capitalCamel) { + public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; return this; } @@ -106,12 +112,12 @@ public String getCapitalCamel() { @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCapitalCamel(String capitalCamel) { + public void setCapitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; } - public Capitalization smallSnake(String smallSnake) { + public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; return this; } @@ -130,12 +136,12 @@ public String getSmallSnake() { @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmallSnake(String smallSnake) { + public void setSmallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; } - public Capitalization capitalSnake(String capitalSnake) { + public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; return this; } @@ -154,12 +160,12 @@ public String getCapitalSnake() { @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCapitalSnake(String capitalSnake) { + public void setCapitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; } - public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -178,12 +184,12 @@ public String getScAETHFlowPoints() { @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setScAETHFlowPoints(String scAETHFlowPoints) { + public void setScAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } - public Capitalization ATT_NAME(String ATT_NAME) { + public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; return this; } @@ -202,7 +208,7 @@ public String getATTNAME() { @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setATTNAME(String ATT_NAME) { + public void setATTNAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Cat.java index 0e5bff484d0b..9f3ae6514cd5 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Cat.java @@ -50,12 +50,13 @@ public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; + @javax.annotation.Nullable private Boolean declawed; public Cat() { } - public Cat declawed(Boolean declawed) { + public Cat declawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -74,19 +75,19 @@ public Boolean getDeclawed() { @JsonProperty(JSON_PROPERTY_DECLAWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; } @Override - public Cat className(String className) { + public Cat className(@javax.annotation.Nonnull String className) { this.setClassName(className); return this; } @Override - public Cat color(String color) { + public Cat color(@javax.annotation.Nullable String color) { this.setColor(color); return this; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Category.java index 8c73f48e5dd5..324802c51baa 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Category.java @@ -39,15 +39,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Category { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private String name = "default-name"; public Category() { } - public Category id(Long id) { + public Category id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -66,12 +68,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@javax.annotation.Nonnull String name) { this.name = name; return this; } @@ -90,7 +92,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ChildCat.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ChildCat.java index f62af72833db..da1346f926bd 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ChildCat.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ChildCat.java @@ -52,15 +52,17 @@ public class ChildCat extends ParentPet { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public static final String JSON_PROPERTY_PET_TYPE = "pet_type"; + @javax.annotation.Nullable private String petType = "ChildCat"; public ChildCat() { } - public ChildCat name(String name) { + public ChildCat name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -79,7 +81,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } @@ -88,7 +90,7 @@ public void setName(String name) { "ChildCat" )); - public ChildCat petType(String petType) { + public ChildCat petType(@javax.annotation.Nullable String petType) { if (!PET_TYPE_VALUES.contains(petType)) { throw new IllegalArgumentException(petType + " is invalid. Possible values for petType: " + String.join(", ", PET_TYPE_VALUES)); } @@ -111,7 +113,7 @@ public String getPetType() { @JsonProperty(JSON_PROPERTY_PET_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPetType(String petType) { + public void setPetType(@javax.annotation.Nullable String petType) { if (!PET_TYPE_VALUES.contains(petType)) { throw new IllegalArgumentException(petType + " is invalid. Possible values for petType: " + String.join(", ", PET_TYPE_VALUES)); } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ClassModel.java index a84e6cf4b40a..9b307d4c0004 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ClassModel.java @@ -38,12 +38,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ClassModel { public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; + @javax.annotation.Nullable private String propertyClass; public ClassModel() { } - public ClassModel propertyClass(String propertyClass) { + public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -62,7 +63,7 @@ public String getPropertyClass() { @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Client.java index 6bb01094e535..12bb044c69f2 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Client.java @@ -38,12 +38,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Client { public static final String JSON_PROPERTY_CLIENT = "client"; + @javax.annotation.Nullable private String client; public Client() { } - public Client client(String client) { + public Client client(@javax.annotation.Nullable String client) { this.client = client; return this; } @@ -62,7 +63,7 @@ public String getClient() { @JsonProperty(JSON_PROPERTY_CLIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setClient(String client) { + public void setClient(@javax.annotation.Nullable String client) { this.client = client; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java index 516edb098fbb..d0bee6c7d210 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java @@ -39,15 +39,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ComplexQuadrilateral { public static final String JSON_PROPERTY_SHAPE_TYPE = "shapeType"; + @javax.annotation.Nonnull private String shapeType; public static final String JSON_PROPERTY_QUADRILATERAL_TYPE = "quadrilateralType"; + @javax.annotation.Nonnull private String quadrilateralType; public ComplexQuadrilateral() { } - public ComplexQuadrilateral shapeType(String shapeType) { + public ComplexQuadrilateral shapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; return this; } @@ -66,12 +68,12 @@ public String getShapeType() { @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setShapeType(String shapeType) { + public void setShapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; } - public ComplexQuadrilateral quadrilateralType(String quadrilateralType) { + public ComplexQuadrilateral quadrilateralType(@javax.annotation.Nonnull String quadrilateralType) { this.quadrilateralType = quadrilateralType; return this; } @@ -90,7 +92,7 @@ public String getQuadrilateralType() { @JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setQuadrilateralType(String quadrilateralType) { + public void setQuadrilateralType(@javax.annotation.Nonnull String quadrilateralType) { this.quadrilateralType = quadrilateralType; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/DanishPig.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/DanishPig.java index 81fc7a380cb4..f5fbc8e273a0 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/DanishPig.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/DanishPig.java @@ -38,12 +38,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class DanishPig { public static final String JSON_PROPERTY_CLASS_NAME = "className"; + @javax.annotation.Nonnull private String className; public DanishPig() { } - public DanishPig className(String className) { + public DanishPig className(@javax.annotation.Nonnull String className) { this.className = className; return this; } @@ -62,7 +63,7 @@ public String getClassName() { @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setClassName(String className) { + public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/DeprecatedObject.java index 2eab9e5f88ce..54fee040d32c 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -40,12 +40,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class DeprecatedObject { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public DeprecatedObject() { } - public DeprecatedObject name(String name) { + public DeprecatedObject name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -64,7 +65,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Dog.java index 81e4dde04e43..abbc2525dd62 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Dog.java @@ -49,12 +49,13 @@ public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; + @javax.annotation.Nullable private String breed; public Dog() { } - public Dog breed(String breed) { + public Dog breed(@javax.annotation.Nullable String breed) { this.breed = breed; return this; } @@ -73,19 +74,19 @@ public String getBreed() { @JsonProperty(JSON_PROPERTY_BREED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBreed(String breed) { + public void setBreed(@javax.annotation.Nullable String breed) { this.breed = breed; } @Override - public Dog className(String className) { + public Dog className(@javax.annotation.Nonnull String className) { this.setClassName(className); return this; } @Override - public Dog color(String color) { + public Dog color(@javax.annotation.Nullable String color) { this.setColor(color); return this; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Drawing.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Drawing.java index fe7de5c28b01..95b13fe01ece 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Drawing.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Drawing.java @@ -57,21 +57,24 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Drawing extends HashMap { public static final String JSON_PROPERTY_MAIN_SHAPE = "mainShape"; + @javax.annotation.Nullable private Shape mainShape; public static final String JSON_PROPERTY_SHAPE_OR_NULL = "shapeOrNull"; + @javax.annotation.Nullable private ShapeOrNull shapeOrNull; public static final String JSON_PROPERTY_NULLABLE_SHAPE = "nullableShape"; private JsonNullable nullableShape = JsonNullable.undefined(); public static final String JSON_PROPERTY_SHAPES = "shapes"; + @javax.annotation.Nullable private List shapes = new ArrayList<>(); public Drawing() { } - public Drawing mainShape(Shape mainShape) { + public Drawing mainShape(@javax.annotation.Nullable Shape mainShape) { this.mainShape = mainShape; return this; } @@ -90,12 +93,12 @@ public Shape getMainShape() { @JsonProperty(JSON_PROPERTY_MAIN_SHAPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMainShape(Shape mainShape) { + public void setMainShape(@javax.annotation.Nullable Shape mainShape) { this.mainShape = mainShape; } - public Drawing shapeOrNull(ShapeOrNull shapeOrNull) { + public Drawing shapeOrNull(@javax.annotation.Nullable ShapeOrNull shapeOrNull) { this.shapeOrNull = shapeOrNull; return this; } @@ -114,12 +117,12 @@ public ShapeOrNull getShapeOrNull() { @JsonProperty(JSON_PROPERTY_SHAPE_OR_NULL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setShapeOrNull(ShapeOrNull shapeOrNull) { + public void setShapeOrNull(@javax.annotation.Nullable ShapeOrNull shapeOrNull) { this.shapeOrNull = shapeOrNull; } - public Drawing nullableShape(NullableShape nullableShape) { + public Drawing nullableShape(@javax.annotation.Nullable NullableShape nullableShape) { this.nullableShape = JsonNullable.of(nullableShape); return this; } @@ -146,12 +149,12 @@ public void setNullableShape_JsonNullable(JsonNullable nullableSh this.nullableShape = nullableShape; } - public void setNullableShape(NullableShape nullableShape) { + public void setNullableShape(@javax.annotation.Nullable NullableShape nullableShape) { this.nullableShape = JsonNullable.of(nullableShape); } - public Drawing shapes(List shapes) { + public Drawing shapes(@javax.annotation.Nullable List shapes) { this.shapes = shapes; return this; } @@ -178,7 +181,7 @@ public List getShapes() { @JsonProperty(JSON_PROPERTY_SHAPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setShapes(List shapes) { + public void setShapes(@javax.annotation.Nullable List shapes) { this.shapes = shapes; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/EnumArrays.java index dab1aca38763..595e5f6034f5 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -76,6 +76,7 @@ public static JustSymbolEnum fromValue(String value) { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** @@ -114,12 +115,13 @@ public static ArrayEnumEnum fromValue(String value) { } public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; + @javax.annotation.Nullable private List arrayEnum = new ArrayList<>(); public EnumArrays() { } - public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; } @@ -138,12 +140,12 @@ public JustSymbolEnum getJustSymbol() { @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJustSymbol(JustSymbolEnum justSymbol) { + public void setJustSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } - public EnumArrays arrayEnum(List arrayEnum) { + public EnumArrays arrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; return this; } @@ -170,7 +172,7 @@ public List getArrayEnum() { @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayEnum(List arrayEnum) { + public void setArrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/EnumTest.java index f317018d0fd0..0b43ddb5a1d1 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/EnumTest.java @@ -91,6 +91,7 @@ public static EnumStringEnum fromValue(String value) { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; + @javax.annotation.Nullable private EnumStringEnum enumString; /** @@ -131,6 +132,7 @@ public static EnumStringRequiredEnum fromValue(String value) { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** @@ -169,6 +171,7 @@ public static EnumIntegerEnum fromValue(Integer value) { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** @@ -207,6 +210,7 @@ public static EnumIntegerOnlyEnum fromValue(Integer value) { } public static final String JSON_PROPERTY_ENUM_INTEGER_ONLY = "enum_integer_only"; + @javax.annotation.Nullable private EnumIntegerOnlyEnum enumIntegerOnly; /** @@ -245,24 +249,28 @@ public static EnumNumberEnum fromValue(Double value) { } public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; + @javax.annotation.Nullable private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; private JsonNullable outerEnum = JsonNullable.undefined(); public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER = "outerEnumInteger"; + @javax.annotation.Nullable private OuterEnumInteger outerEnumInteger; public static final String JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE = "outerEnumDefaultValue"; + @javax.annotation.Nullable private OuterEnumDefaultValue outerEnumDefaultValue = OuterEnumDefaultValue.PLACED; public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE = "outerEnumIntegerDefaultValue"; + @javax.annotation.Nullable private OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = OuterEnumIntegerDefaultValue.NUMBER_0; public EnumTest() { } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -281,12 +289,12 @@ public EnumStringEnum getEnumString() { @JsonProperty(JSON_PROPERTY_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumString(EnumStringEnum enumString) { + public void setEnumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; } - public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; return this; } @@ -305,12 +313,12 @@ public EnumStringRequiredEnum getEnumStringRequired() { @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public void setEnumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -329,12 +337,12 @@ public EnumIntegerEnum getEnumInteger() { @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumInteger(EnumIntegerEnum enumInteger) { + public void setEnumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } - public EnumTest enumIntegerOnly(EnumIntegerOnlyEnum enumIntegerOnly) { + public EnumTest enumIntegerOnly(@javax.annotation.Nullable EnumIntegerOnlyEnum enumIntegerOnly) { this.enumIntegerOnly = enumIntegerOnly; return this; } @@ -353,12 +361,12 @@ public EnumIntegerOnlyEnum getEnumIntegerOnly() { @JsonProperty(JSON_PROPERTY_ENUM_INTEGER_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumIntegerOnly(EnumIntegerOnlyEnum enumIntegerOnly) { + public void setEnumIntegerOnly(@javax.annotation.Nullable EnumIntegerOnlyEnum enumIntegerOnly) { this.enumIntegerOnly = enumIntegerOnly; } - public EnumTest enumNumber(EnumNumberEnum enumNumber) { + public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; return this; } @@ -377,12 +385,12 @@ public EnumNumberEnum getEnumNumber() { @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumNumber(EnumNumberEnum enumNumber) { + public void setEnumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } - public EnumTest outerEnum(OuterEnum outerEnum) { + public EnumTest outerEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = JsonNullable.of(outerEnum); return this; } @@ -409,12 +417,12 @@ public void setOuterEnum_JsonNullable(JsonNullable outerEnum) { this.outerEnum = outerEnum; } - public void setOuterEnum(OuterEnum outerEnum) { + public void setOuterEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = JsonNullable.of(outerEnum); } - public EnumTest outerEnumInteger(OuterEnumInteger outerEnumInteger) { + public EnumTest outerEnumInteger(@javax.annotation.Nullable OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; return this; } @@ -433,12 +441,12 @@ public OuterEnumInteger getOuterEnumInteger() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnumInteger(OuterEnumInteger outerEnumInteger) { + public void setOuterEnumInteger(@javax.annotation.Nullable OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; } - public EnumTest outerEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) { + public EnumTest outerEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; return this; } @@ -457,12 +465,12 @@ public OuterEnumDefaultValue getOuterEnumDefaultValue() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) { + public void setOuterEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; } - public EnumTest outerEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { + public EnumTest outerEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; return this; } @@ -481,7 +489,7 @@ public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { + public void setOuterEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/EquilateralTriangle.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/EquilateralTriangle.java index 8301bab8e78f..7fc403d15ad3 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/EquilateralTriangle.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/EquilateralTriangle.java @@ -39,15 +39,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class EquilateralTriangle { public static final String JSON_PROPERTY_SHAPE_TYPE = "shapeType"; + @javax.annotation.Nonnull private String shapeType; public static final String JSON_PROPERTY_TRIANGLE_TYPE = "triangleType"; + @javax.annotation.Nonnull private String triangleType; public EquilateralTriangle() { } - public EquilateralTriangle shapeType(String shapeType) { + public EquilateralTriangle shapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; return this; } @@ -66,12 +68,12 @@ public String getShapeType() { @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setShapeType(String shapeType) { + public void setShapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; } - public EquilateralTriangle triangleType(String triangleType) { + public EquilateralTriangle triangleType(@javax.annotation.Nonnull String triangleType) { this.triangleType = triangleType; return this; } @@ -90,7 +92,7 @@ public String getTriangleType() { @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTriangleType(String triangleType) { + public void setTriangleType(@javax.annotation.Nonnull String triangleType) { this.triangleType = triangleType; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java index 937797e44207..e721be6ef412 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java @@ -42,15 +42,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FakeBigDecimalMap200Response { public static final String JSON_PROPERTY_SOME_ID = "someId"; + @javax.annotation.Nullable private BigDecimal someId; public static final String JSON_PROPERTY_SOME_MAP = "someMap"; + @javax.annotation.Nullable private Map someMap = new HashMap<>(); public FakeBigDecimalMap200Response() { } - public FakeBigDecimalMap200Response someId(BigDecimal someId) { + public FakeBigDecimalMap200Response someId(@javax.annotation.Nullable BigDecimal someId) { this.someId = someId; return this; } @@ -69,12 +71,12 @@ public BigDecimal getSomeId() { @JsonProperty(JSON_PROPERTY_SOME_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSomeId(BigDecimal someId) { + public void setSomeId(@javax.annotation.Nullable BigDecimal someId) { this.someId = someId; } - public FakeBigDecimalMap200Response someMap(Map someMap) { + public FakeBigDecimalMap200Response someMap(@javax.annotation.Nullable Map someMap) { this.someMap = someMap; return this; } @@ -101,7 +103,7 @@ public Map getSomeMap() { @JsonProperty(JSON_PROPERTY_SOME_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSomeMap(Map someMap) { + public void setSomeMap(@javax.annotation.Nullable Map someMap) { this.someMap = someMap; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 57705558b815..f2e6ff8f2471 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -42,15 +42,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; + @javax.annotation.Nullable private ModelFile _file; public static final String JSON_PROPERTY_FILES = "files"; + @javax.annotation.Nullable private List files = new ArrayList<>(); public FileSchemaTestClass() { } - public FileSchemaTestClass _file(ModelFile _file) { + public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { this._file = _file; return this; } @@ -69,12 +71,12 @@ public ModelFile getFile() { @JsonProperty(JSON_PROPERTY_FILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFile(ModelFile _file) { + public void setFile(@javax.annotation.Nullable ModelFile _file) { this._file = _file; } - public FileSchemaTestClass files(List files) { + public FileSchemaTestClass files(@javax.annotation.Nullable List files) { this.files = files; return this; } @@ -101,7 +103,7 @@ public List getFiles() { @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFiles(List files) { + public void setFiles(@javax.annotation.Nullable List files) { this.files = files; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Foo.java index d41f44d9adbc..a8f88d9641fc 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Foo.java @@ -38,12 +38,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Foo { public static final String JSON_PROPERTY_BAR = "bar"; + @javax.annotation.Nullable private String bar = "bar"; public Foo() { } - public Foo bar(String bar) { + public Foo bar(@javax.annotation.Nullable String bar) { this.bar = bar; return this; } @@ -62,7 +63,7 @@ public String getBar() { @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBar(String bar) { + public void setBar(@javax.annotation.Nullable String bar) { this.bar = bar; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index aa2420425f5b..aaa157b3dd33 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -39,12 +39,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FooGetDefaultResponse { public static final String JSON_PROPERTY_STRING = "string"; + @javax.annotation.Nullable private Foo string; public FooGetDefaultResponse() { } - public FooGetDefaultResponse string(Foo string) { + public FooGetDefaultResponse string(@javax.annotation.Nullable Foo string) { this.string = string; return this; } @@ -63,7 +64,7 @@ public Foo getString() { @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setString(Foo string) { + public void setString(@javax.annotation.Nullable Foo string) { this.string = string; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FormatTest.java index 9e5485386fbf..2720d11e6ede 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FormatTest.java @@ -58,57 +58,73 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; + @javax.annotation.Nullable private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; + @javax.annotation.Nullable private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; + @javax.annotation.Nullable private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; + @javax.annotation.Nonnull private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; + @javax.annotation.Nullable private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; + @javax.annotation.Nullable private Double _double; public static final String JSON_PROPERTY_DECIMAL = "decimal"; + @javax.annotation.Nullable private BigDecimal decimal; public static final String JSON_PROPERTY_STRING = "string"; + @javax.annotation.Nullable private String string; public static final String JSON_PROPERTY_BYTE = "byte"; + @javax.annotation.Nonnull private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; + @javax.annotation.Nullable private File binary; public static final String JSON_PROPERTY_DATE = "date"; + @javax.annotation.Nonnull private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; + @javax.annotation.Nonnull private String password; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS = "pattern_with_digits"; + @javax.annotation.Nullable private String patternWithDigits; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER = "pattern_with_digits_and_delimiter"; + @javax.annotation.Nullable private String patternWithDigitsAndDelimiter; public FormatTest() { } - public FormatTest integer(Integer integer) { + public FormatTest integer(@javax.annotation.Nullable Integer integer) { this.integer = integer; return this; } @@ -129,12 +145,12 @@ public Integer getInteger() { @JsonProperty(JSON_PROPERTY_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInteger(Integer integer) { + public void setInteger(@javax.annotation.Nullable Integer integer) { this.integer = integer; } - public FormatTest int32(Integer int32) { + public FormatTest int32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; return this; } @@ -155,12 +171,12 @@ public Integer getInt32() { @JsonProperty(JSON_PROPERTY_INT32) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInt32(Integer int32) { + public void setInt32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; } - public FormatTest int64(Long int64) { + public FormatTest int64(@javax.annotation.Nullable Long int64) { this.int64 = int64; return this; } @@ -179,12 +195,12 @@ public Long getInt64() { @JsonProperty(JSON_PROPERTY_INT64) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInt64(Long int64) { + public void setInt64(@javax.annotation.Nullable Long int64) { this.int64 = int64; } - public FormatTest number(BigDecimal number) { + public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { this.number = number; return this; } @@ -205,12 +221,12 @@ public BigDecimal getNumber() { @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNumber(BigDecimal number) { + public void setNumber(@javax.annotation.Nonnull BigDecimal number) { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@javax.annotation.Nullable Float _float) { this._float = _float; return this; } @@ -231,12 +247,12 @@ public Float getFloat() { @JsonProperty(JSON_PROPERTY_FLOAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFloat(Float _float) { + public void setFloat(@javax.annotation.Nullable Float _float) { this._float = _float; } - public FormatTest _double(Double _double) { + public FormatTest _double(@javax.annotation.Nullable Double _double) { this._double = _double; return this; } @@ -257,12 +273,12 @@ public Double getDouble() { @JsonProperty(JSON_PROPERTY_DOUBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDouble(Double _double) { + public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; } - public FormatTest decimal(BigDecimal decimal) { + public FormatTest decimal(@javax.annotation.Nullable BigDecimal decimal) { this.decimal = decimal; return this; } @@ -281,12 +297,12 @@ public BigDecimal getDecimal() { @JsonProperty(JSON_PROPERTY_DECIMAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDecimal(BigDecimal decimal) { + public void setDecimal(@javax.annotation.Nullable BigDecimal decimal) { this.decimal = decimal; } - public FormatTest string(String string) { + public FormatTest string(@javax.annotation.Nullable String string) { this.string = string; return this; } @@ -305,12 +321,12 @@ public String getString() { @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setString(String string) { + public void setString(@javax.annotation.Nullable String string) { this.string = string; } - public FormatTest _byte(byte[] _byte) { + public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; return this; } @@ -329,12 +345,12 @@ public byte[] getByte() { @JsonProperty(JSON_PROPERTY_BYTE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setByte(byte[] _byte) { + public void setByte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; } - public FormatTest binary(File binary) { + public FormatTest binary(@javax.annotation.Nullable File binary) { this.binary = binary; return this; } @@ -353,12 +369,12 @@ public File getBinary() { @JsonProperty(JSON_PROPERTY_BINARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBinary(File binary) { + public void setBinary(@javax.annotation.Nullable File binary) { this.binary = binary; } - public FormatTest date(LocalDate date) { + public FormatTest date(@javax.annotation.Nonnull LocalDate date) { this.date = date; return this; } @@ -377,12 +393,12 @@ public LocalDate getDate() { @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDate(LocalDate date) { + public void setDate(@javax.annotation.Nonnull LocalDate date) { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -401,12 +417,12 @@ public OffsetDateTime getDateTime() { @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public FormatTest uuid(UUID uuid) { + public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -425,12 +441,12 @@ public UUID getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(UUID uuid) { + public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public FormatTest password(String password) { + public FormatTest password(@javax.annotation.Nonnull String password) { this.password = password; return this; } @@ -449,12 +465,12 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nonnull String password) { this.password = password; } - public FormatTest patternWithDigits(String patternWithDigits) { + public FormatTest patternWithDigits(@javax.annotation.Nullable String patternWithDigits) { this.patternWithDigits = patternWithDigits; return this; } @@ -473,12 +489,12 @@ public String getPatternWithDigits() { @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPatternWithDigits(String patternWithDigits) { + public void setPatternWithDigits(@javax.annotation.Nullable String patternWithDigits) { this.patternWithDigits = patternWithDigits; } - public FormatTest patternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) { + public FormatTest patternWithDigitsAndDelimiter(@javax.annotation.Nullable String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; return this; } @@ -497,7 +513,7 @@ public String getPatternWithDigitsAndDelimiter() { @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPatternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) { + public void setPatternWithDigitsAndDelimiter(@javax.annotation.Nullable String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/GrandparentAnimal.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/GrandparentAnimal.java index 6ef3c578d6ac..b9d502b22e0a 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/GrandparentAnimal.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/GrandparentAnimal.java @@ -52,12 +52,13 @@ public class GrandparentAnimal { public static final String JSON_PROPERTY_PET_TYPE = "pet_type"; + @javax.annotation.Nonnull private String petType; public GrandparentAnimal() { } - public GrandparentAnimal petType(String petType) { + public GrandparentAnimal petType(@javax.annotation.Nonnull String petType) { this.petType = petType; return this; } @@ -76,7 +77,7 @@ public String getPetType() { @JsonProperty(JSON_PROPERTY_PET_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPetType(String petType) { + public void setPetType(@javax.annotation.Nonnull String petType) { this.petType = petType; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index c5279e35a56d..52d2ac7bd697 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -39,9 +39,11 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_FOO = "foo"; + @javax.annotation.Nullable private String foo; public HasOnlyReadOnly() { diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/HealthCheckResult.java index 0114c025cf47..7e2cc3cb637d 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -47,7 +47,7 @@ public class HealthCheckResult { public HealthCheckResult() { } - public HealthCheckResult nullableMessage(String nullableMessage) { + public HealthCheckResult nullableMessage(@javax.annotation.Nullable String nullableMessage) { this.nullableMessage = JsonNullable.of(nullableMessage); return this; } @@ -74,7 +74,7 @@ public void setNullableMessage_JsonNullable(JsonNullable nullableMessage this.nullableMessage = nullableMessage; } - public void setNullableMessage(String nullableMessage) { + public void setNullableMessage(@javax.annotation.Nullable String nullableMessage) { this.nullableMessage = JsonNullable.of(nullableMessage); } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java index 49ff8eaf83ef..dee519779f3f 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java @@ -39,15 +39,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class IsoscelesTriangle { public static final String JSON_PROPERTY_SHAPE_TYPE = "shapeType"; + @javax.annotation.Nonnull private String shapeType; public static final String JSON_PROPERTY_TRIANGLE_TYPE = "triangleType"; + @javax.annotation.Nonnull private String triangleType; public IsoscelesTriangle() { } - public IsoscelesTriangle shapeType(String shapeType) { + public IsoscelesTriangle shapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; return this; } @@ -66,12 +68,12 @@ public String getShapeType() { @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setShapeType(String shapeType) { + public void setShapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; } - public IsoscelesTriangle triangleType(String triangleType) { + public IsoscelesTriangle triangleType(@javax.annotation.Nonnull String triangleType) { this.triangleType = triangleType; return this; } @@ -90,7 +92,7 @@ public String getTriangleType() { @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTriangleType(String triangleType) { + public void setTriangleType(@javax.annotation.Nonnull String triangleType) { this.triangleType = triangleType; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/MapTest.java index e21c6c592213..5a16e0530b64 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/MapTest.java @@ -43,6 +43,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; + @javax.annotation.Nullable private Map> mapMapOfString = new HashMap<>(); /** @@ -81,18 +82,21 @@ public static InnerEnum fromValue(String value) { } public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; + @javax.annotation.Nullable private Map mapOfEnumString = new HashMap<>(); public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; + @javax.annotation.Nullable private Map directMap = new HashMap<>(); public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; + @javax.annotation.Nullable private Map indirectMap = new HashMap<>(); public MapTest() { } - public MapTest mapMapOfString(Map> mapMapOfString) { + public MapTest mapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; return this; } @@ -119,12 +123,12 @@ public Map> getMapMapOfString() { @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapMapOfString(Map> mapMapOfString) { + public void setMapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } - public MapTest mapOfEnumString(Map mapOfEnumString) { + public MapTest mapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; return this; } @@ -151,12 +155,12 @@ public Map getMapOfEnumString() { @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapOfEnumString(Map mapOfEnumString) { + public void setMapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } - public MapTest directMap(Map directMap) { + public MapTest directMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; return this; } @@ -183,12 +187,12 @@ public Map getDirectMap() { @JsonProperty(JSON_PROPERTY_DIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDirectMap(Map directMap) { + public void setDirectMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; } - public MapTest indirectMap(Map indirectMap) { + public MapTest indirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; return this; } @@ -215,7 +219,7 @@ public Map getIndirectMap() { @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIndirectMap(Map indirectMap) { + public void setIndirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index b2104aaf08e6..e5dc19f0c8e9 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -45,18 +45,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; + @javax.annotation.Nullable private Map map = new HashMap<>(); public MixedPropertiesAndAdditionalPropertiesClass() { } - public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -75,12 +78,12 @@ public UUID getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(UUID uuid) { + public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -99,12 +102,12 @@ public OffsetDateTime getDateTime() { @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + public MixedPropertiesAndAdditionalPropertiesClass map(@javax.annotation.Nullable Map map) { this.map = map; return this; } @@ -131,7 +134,7 @@ public Map getMap() { @JsonProperty(JSON_PROPERTY_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMap(Map map) { + public void setMap(@javax.annotation.Nullable Map map) { this.map = map; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Model200Response.java index 05c14c40c9ab..2d298cbbb6f0 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Model200Response.java @@ -39,15 +39,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; + @javax.annotation.Nullable private String propertyClass; public Model200Response() { } - public Model200Response name(Integer name) { + public Model200Response name(@javax.annotation.Nullable Integer name) { this.name = name; return this; } @@ -66,12 +68,12 @@ public Integer getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(Integer name) { + public void setName(@javax.annotation.Nullable Integer name) { this.name = name; } - public Model200Response propertyClass(String propertyClass) { + public Model200Response propertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -90,7 +92,7 @@ public String getPropertyClass() { @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 51e30a740ba8..e9bb2e092ce7 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -40,18 +40,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nullable private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nullable private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; + @javax.annotation.Nullable private String message; public ModelApiResponse() { } - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@javax.annotation.Nullable Integer code) { this.code = code; return this; } @@ -70,12 +73,12 @@ public Integer getCode() { @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCode(Integer code) { + public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@javax.annotation.Nullable String type) { this.type = type; return this; } @@ -94,12 +97,12 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { + public void setType(@javax.annotation.Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@javax.annotation.Nullable String message) { this.message = message; return this; } @@ -118,7 +121,7 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelFile.java index bb31986c2325..07d21fb672fd 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelFile.java @@ -38,12 +38,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelFile { public static final String JSON_PROPERTY_SOURCE_U_R_I = "sourceURI"; + @javax.annotation.Nullable private String sourceURI; public ModelFile() { } - public ModelFile sourceURI(String sourceURI) { + public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; return this; } @@ -62,7 +63,7 @@ public String getSourceURI() { @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSourceURI(String sourceURI) { + public void setSourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelList.java index 3d74837c4e41..2405b6ef0088 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelList.java @@ -38,12 +38,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelList { public static final String JSON_PROPERTY_123LIST = "123-list"; + @javax.annotation.Nullable private String _123list; public ModelList() { } - public ModelList _123list(String _123list) { + public ModelList _123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; return this; } @@ -62,7 +63,7 @@ public String get123list() { @JsonProperty(JSON_PROPERTY_123LIST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void set123list(String _123list) { + public void set123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelReturn.java index 0d9c9b0b08f5..b6c194605de6 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -38,12 +38,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; + @javax.annotation.Nullable private Integer _return; public ModelReturn() { } - public ModelReturn _return(Integer _return) { + public ModelReturn _return(@javax.annotation.Nullable Integer _return) { this._return = _return; return this; } @@ -62,7 +63,7 @@ public Integer getReturn() { @JsonProperty(JSON_PROPERTY_RETURN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setReturn(Integer _return) { + public void setReturn(@javax.annotation.Nullable Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Name.java index 499a17a33bd5..e7516000aa2f 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Name.java @@ -41,15 +41,19 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Name { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; + @javax.annotation.Nullable private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; + @javax.annotation.Nullable private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; + @javax.annotation.Nullable private Integer _123number; public Name() { @@ -65,7 +69,7 @@ public Name( this._123number = _123number; } - public Name name(Integer name) { + public Name name(@javax.annotation.Nonnull Integer name) { this.name = name; return this; } @@ -84,7 +88,7 @@ public Integer getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(Integer name) { + public void setName(@javax.annotation.Nonnull Integer name) { this.name = name; } @@ -103,7 +107,7 @@ public Integer getSnakeCase() { - public Name property(String property) { + public Name property(@javax.annotation.Nullable String property) { this.property = property; return this; } @@ -122,7 +126,7 @@ public String getProperty() { @JsonProperty(JSON_PROPERTY_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProperty(String property) { + public void setProperty(@javax.annotation.Nullable String property) { this.property = property; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/NullableClass.java index 3ebd53c4edb5..d4ceb4a1b13c 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/NullableClass.java @@ -88,6 +88,7 @@ public class NullableClass extends HashMap { private JsonNullable> arrayAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_ITEMS_NULLABLE = "array_items_nullable"; + @javax.annotation.Nullable private List arrayItemsNullable = new ArrayList<>(); public static final String JSON_PROPERTY_OBJECT_NULLABLE_PROP = "object_nullable_prop"; @@ -97,12 +98,13 @@ public class NullableClass extends HashMap { private JsonNullable> objectAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_OBJECT_ITEMS_NULLABLE = "object_items_nullable"; + @javax.annotation.Nullable private Map objectItemsNullable = new HashMap<>(); public NullableClass() { } - public NullableClass integerProp(Integer integerProp) { + public NullableClass integerProp(@javax.annotation.Nullable Integer integerProp) { this.integerProp = JsonNullable.of(integerProp); return this; } @@ -129,12 +131,12 @@ public void setIntegerProp_JsonNullable(JsonNullable integerProp) { this.integerProp = integerProp; } - public void setIntegerProp(Integer integerProp) { + public void setIntegerProp(@javax.annotation.Nullable Integer integerProp) { this.integerProp = JsonNullable.of(integerProp); } - public NullableClass numberProp(BigDecimal numberProp) { + public NullableClass numberProp(@javax.annotation.Nullable BigDecimal numberProp) { this.numberProp = JsonNullable.of(numberProp); return this; } @@ -161,12 +163,12 @@ public void setNumberProp_JsonNullable(JsonNullable numberProp) { this.numberProp = numberProp; } - public void setNumberProp(BigDecimal numberProp) { + public void setNumberProp(@javax.annotation.Nullable BigDecimal numberProp) { this.numberProp = JsonNullable.of(numberProp); } - public NullableClass booleanProp(Boolean booleanProp) { + public NullableClass booleanProp(@javax.annotation.Nullable Boolean booleanProp) { this.booleanProp = JsonNullable.of(booleanProp); return this; } @@ -193,12 +195,12 @@ public void setBooleanProp_JsonNullable(JsonNullable booleanProp) { this.booleanProp = booleanProp; } - public void setBooleanProp(Boolean booleanProp) { + public void setBooleanProp(@javax.annotation.Nullable Boolean booleanProp) { this.booleanProp = JsonNullable.of(booleanProp); } - public NullableClass stringProp(String stringProp) { + public NullableClass stringProp(@javax.annotation.Nullable String stringProp) { this.stringProp = JsonNullable.of(stringProp); return this; } @@ -225,12 +227,12 @@ public void setStringProp_JsonNullable(JsonNullable stringProp) { this.stringProp = stringProp; } - public void setStringProp(String stringProp) { + public void setStringProp(@javax.annotation.Nullable String stringProp) { this.stringProp = JsonNullable.of(stringProp); } - public NullableClass dateProp(LocalDate dateProp) { + public NullableClass dateProp(@javax.annotation.Nullable LocalDate dateProp) { this.dateProp = JsonNullable.of(dateProp); return this; } @@ -257,12 +259,12 @@ public void setDateProp_JsonNullable(JsonNullable dateProp) { this.dateProp = dateProp; } - public void setDateProp(LocalDate dateProp) { + public void setDateProp(@javax.annotation.Nullable LocalDate dateProp) { this.dateProp = JsonNullable.of(dateProp); } - public NullableClass datetimeProp(OffsetDateTime datetimeProp) { + public NullableClass datetimeProp(@javax.annotation.Nullable OffsetDateTime datetimeProp) { this.datetimeProp = JsonNullable.of(datetimeProp); return this; } @@ -289,12 +291,12 @@ public void setDatetimeProp_JsonNullable(JsonNullable datetimePr this.datetimeProp = datetimeProp; } - public void setDatetimeProp(OffsetDateTime datetimeProp) { + public void setDatetimeProp(@javax.annotation.Nullable OffsetDateTime datetimeProp) { this.datetimeProp = JsonNullable.of(datetimeProp); } - public NullableClass arrayNullableProp(List arrayNullableProp) { + public NullableClass arrayNullableProp(@javax.annotation.Nullable List arrayNullableProp) { this.arrayNullableProp = JsonNullable.>of(arrayNullableProp); return this; } @@ -333,12 +335,12 @@ public void setArrayNullableProp_JsonNullable(JsonNullable> arrayNu this.arrayNullableProp = arrayNullableProp; } - public void setArrayNullableProp(List arrayNullableProp) { + public void setArrayNullableProp(@javax.annotation.Nullable List arrayNullableProp) { this.arrayNullableProp = JsonNullable.>of(arrayNullableProp); } - public NullableClass arrayAndItemsNullableProp(List arrayAndItemsNullableProp) { + public NullableClass arrayAndItemsNullableProp(@javax.annotation.Nullable List arrayAndItemsNullableProp) { this.arrayAndItemsNullableProp = JsonNullable.>of(arrayAndItemsNullableProp); return this; } @@ -377,12 +379,12 @@ public void setArrayAndItemsNullableProp_JsonNullable(JsonNullable> this.arrayAndItemsNullableProp = arrayAndItemsNullableProp; } - public void setArrayAndItemsNullableProp(List arrayAndItemsNullableProp) { + public void setArrayAndItemsNullableProp(@javax.annotation.Nullable List arrayAndItemsNullableProp) { this.arrayAndItemsNullableProp = JsonNullable.>of(arrayAndItemsNullableProp); } - public NullableClass arrayItemsNullable(List arrayItemsNullable) { + public NullableClass arrayItemsNullable(@javax.annotation.Nullable List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; return this; } @@ -409,12 +411,12 @@ public List getArrayItemsNullable() { @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayItemsNullable(List arrayItemsNullable) { + public void setArrayItemsNullable(@javax.annotation.Nullable List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; } - public NullableClass objectNullableProp(Map objectNullableProp) { + public NullableClass objectNullableProp(@javax.annotation.Nullable Map objectNullableProp) { this.objectNullableProp = JsonNullable.>of(objectNullableProp); return this; } @@ -453,12 +455,12 @@ public void setObjectNullableProp_JsonNullable(JsonNullable> this.objectNullableProp = objectNullableProp; } - public void setObjectNullableProp(Map objectNullableProp) { + public void setObjectNullableProp(@javax.annotation.Nullable Map objectNullableProp) { this.objectNullableProp = JsonNullable.>of(objectNullableProp); } - public NullableClass objectAndItemsNullableProp(Map objectAndItemsNullableProp) { + public NullableClass objectAndItemsNullableProp(@javax.annotation.Nullable Map objectAndItemsNullableProp) { this.objectAndItemsNullableProp = JsonNullable.>of(objectAndItemsNullableProp); return this; } @@ -497,12 +499,12 @@ public void setObjectAndItemsNullableProp_JsonNullable(JsonNullable objectAndItemsNullableProp) { + public void setObjectAndItemsNullableProp(@javax.annotation.Nullable Map objectAndItemsNullableProp) { this.objectAndItemsNullableProp = JsonNullable.>of(objectAndItemsNullableProp); } - public NullableClass objectItemsNullable(Map objectItemsNullable) { + public NullableClass objectItemsNullable(@javax.annotation.Nullable Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; return this; } @@ -529,7 +531,7 @@ public Map getObjectItemsNullable() { @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setObjectItemsNullable(Map objectItemsNullable) { + public void setObjectItemsNullable(@javax.annotation.Nullable Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/NumberOnly.java index ffae40646786..e1b5a351eade 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -39,12 +39,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; + @javax.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } - public NumberOnly justNumber(BigDecimal justNumber) { + public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; } @@ -63,7 +64,7 @@ public BigDecimal getJustNumber() { @JsonProperty(JSON_PROPERTY_JUST_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJustNumber(BigDecimal justNumber) { + public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index 1f2a5e981d3d..a0250d376a26 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -45,21 +45,25 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ObjectWithDeprecatedFields { public static final String JSON_PROPERTY_UUID = "uuid"; + @javax.annotation.Nullable private String uuid; public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private BigDecimal id; public static final String JSON_PROPERTY_DEPRECATED_REF = "deprecatedRef"; + @javax.annotation.Nullable private DeprecatedObject deprecatedRef; public static final String JSON_PROPERTY_BARS = "bars"; + @javax.annotation.Nullable private List bars = new ArrayList<>(); public ObjectWithDeprecatedFields() { } - public ObjectWithDeprecatedFields uuid(String uuid) { + public ObjectWithDeprecatedFields uuid(@javax.annotation.Nullable String uuid) { this.uuid = uuid; return this; } @@ -78,12 +82,12 @@ public String getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(String uuid) { + public void setUuid(@javax.annotation.Nullable String uuid) { this.uuid = uuid; } - public ObjectWithDeprecatedFields id(BigDecimal id) { + public ObjectWithDeprecatedFields id(@javax.annotation.Nullable BigDecimal id) { this.id = id; return this; } @@ -104,12 +108,12 @@ public BigDecimal getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(BigDecimal id) { + public void setId(@javax.annotation.Nullable BigDecimal id) { this.id = id; } - public ObjectWithDeprecatedFields deprecatedRef(DeprecatedObject deprecatedRef) { + public ObjectWithDeprecatedFields deprecatedRef(@javax.annotation.Nullable DeprecatedObject deprecatedRef) { this.deprecatedRef = deprecatedRef; return this; } @@ -130,12 +134,12 @@ public DeprecatedObject getDeprecatedRef() { @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeprecatedRef(DeprecatedObject deprecatedRef) { + public void setDeprecatedRef(@javax.annotation.Nullable DeprecatedObject deprecatedRef) { this.deprecatedRef = deprecatedRef; } - public ObjectWithDeprecatedFields bars(List bars) { + public ObjectWithDeprecatedFields bars(@javax.annotation.Nullable List bars) { this.bars = bars; return this; } @@ -164,7 +168,7 @@ public List getBars() { @JsonProperty(JSON_PROPERTY_BARS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBars(List bars) { + public void setBars(@javax.annotation.Nullable List bars) { this.bars = bars; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Order.java index 50d849a4dbe3..016ecca20e93 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Order.java @@ -44,15 +44,19 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Order { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; + @javax.annotation.Nullable private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; + @javax.annotation.Nullable private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; + @javax.annotation.Nullable private OffsetDateTime shipDate; /** @@ -93,15 +97,17 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @javax.annotation.Nullable private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; + @javax.annotation.Nullable private Boolean complete = false; public Order() { } - public Order id(Long id) { + public Order id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -120,12 +126,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@javax.annotation.Nullable Long petId) { this.petId = petId; return this; } @@ -144,12 +150,12 @@ public Long getPetId() { @JsonProperty(JSON_PROPERTY_PET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPetId(Long petId) { + public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -168,12 +174,12 @@ public Integer getQuantity() { @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setQuantity(Integer quantity) { + public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -192,12 +198,12 @@ public OffsetDateTime getShipDate() { @JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; } @@ -216,12 +222,12 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } - public Order complete(Boolean complete) { + public Order complete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; return this; } @@ -240,7 +246,7 @@ public Boolean getComplete() { @JsonProperty(JSON_PROPERTY_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setComplete(Boolean complete) { + public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/OuterComposite.java index dcab4a9f8359..c11a5272d813 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -41,18 +41,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; + @javax.annotation.Nullable private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; + @javax.annotation.Nullable private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; + @javax.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } - public OuterComposite myNumber(BigDecimal myNumber) { + public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; } @@ -71,12 +74,12 @@ public BigDecimal getMyNumber() { @JsonProperty(JSON_PROPERTY_MY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyNumber(BigDecimal myNumber) { + public void setMyNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; } - public OuterComposite myString(String myString) { + public OuterComposite myString(@javax.annotation.Nullable String myString) { this.myString = myString; return this; } @@ -95,12 +98,12 @@ public String getMyString() { @JsonProperty(JSON_PROPERTY_MY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyString(String myString) { + public void setMyString(@javax.annotation.Nullable String myString) { this.myString = myString; } - public OuterComposite myBoolean(Boolean myBoolean) { + public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; return this; } @@ -119,7 +122,7 @@ public Boolean getMyBoolean() { @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyBoolean(Boolean myBoolean) { + public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ParentPet.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ParentPet.java index e6a7c93274ba..6fcd021fab8b 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ParentPet.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ParentPet.java @@ -54,7 +54,7 @@ public ParentPet() { } @Override - public ParentPet petType(String petType) { + public ParentPet petType(@javax.annotation.Nonnull String petType) { this.setPetType(petType); return this; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Pet.java index 43a3002eb0c1..0f2660c73613 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Pet.java @@ -47,18 +47,23 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Pet { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; + @javax.annotation.Nullable private Category category; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; + @javax.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String JSON_PROPERTY_TAGS = "tags"; + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** @@ -99,12 +104,13 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } - public Pet id(Long id) { + public Pet id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -123,12 +129,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@javax.annotation.Nullable Category category) { this.category = category; return this; } @@ -147,12 +153,12 @@ public Category getCategory() { @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCategory(Category category) { + public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; } - public Pet name(String name) { + public Pet name(@javax.annotation.Nonnull String name) { this.name = name; return this; } @@ -171,12 +177,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } - public Pet photoUrls(List photoUrls) { + public Pet photoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; return this; } @@ -203,12 +209,12 @@ public List getPhotoUrls() { @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPhotoUrls(List photoUrls) { + public void setPhotoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; } - public Pet tags(List tags) { + public Pet tags(@javax.annotation.Nullable List tags) { this.tags = tags; return this; } @@ -235,12 +241,12 @@ public List getTags() { @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTags(List tags) { + public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; } @@ -259,7 +265,7 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java index 10d843c7b4a6..d19009b75eee 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java @@ -38,12 +38,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class QuadrilateralInterface { public static final String JSON_PROPERTY_QUADRILATERAL_TYPE = "quadrilateralType"; + @javax.annotation.Nonnull private String quadrilateralType; public QuadrilateralInterface() { } - public QuadrilateralInterface quadrilateralType(String quadrilateralType) { + public QuadrilateralInterface quadrilateralType(@javax.annotation.Nonnull String quadrilateralType) { this.quadrilateralType = quadrilateralType; return this; } @@ -62,7 +63,7 @@ public String getQuadrilateralType() { @JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setQuadrilateralType(String quadrilateralType) { + public void setQuadrilateralType(@javax.annotation.Nonnull String quadrilateralType) { this.quadrilateralType = quadrilateralType; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index b85dfe8ce7ba..e48892036454 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -39,9 +39,11 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; + @javax.annotation.Nullable private String baz; public ReadOnlyFirst() { @@ -69,7 +71,7 @@ public String getBar() { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { this.baz = baz; return this; } @@ -88,7 +90,7 @@ public String getBaz() { @JsonProperty(JSON_PROPERTY_BAZ) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBaz(String baz) { + public void setBaz(@javax.annotation.Nullable String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ScaleneTriangle.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ScaleneTriangle.java index f9bebd6c432c..2513b9a1b9ee 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ScaleneTriangle.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ScaleneTriangle.java @@ -39,15 +39,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ScaleneTriangle { public static final String JSON_PROPERTY_SHAPE_TYPE = "shapeType"; + @javax.annotation.Nonnull private String shapeType; public static final String JSON_PROPERTY_TRIANGLE_TYPE = "triangleType"; + @javax.annotation.Nonnull private String triangleType; public ScaleneTriangle() { } - public ScaleneTriangle shapeType(String shapeType) { + public ScaleneTriangle shapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; return this; } @@ -66,12 +68,12 @@ public String getShapeType() { @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setShapeType(String shapeType) { + public void setShapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; } - public ScaleneTriangle triangleType(String triangleType) { + public ScaleneTriangle triangleType(@javax.annotation.Nonnull String triangleType) { this.triangleType = triangleType; return this; } @@ -90,7 +92,7 @@ public String getTriangleType() { @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTriangleType(String triangleType) { + public void setTriangleType(@javax.annotation.Nonnull String triangleType) { this.triangleType = triangleType; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ShapeInterface.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ShapeInterface.java index 1e489fad854d..b4b51e12b40b 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ShapeInterface.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ShapeInterface.java @@ -38,12 +38,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ShapeInterface { public static final String JSON_PROPERTY_SHAPE_TYPE = "shapeType"; + @javax.annotation.Nonnull private String shapeType; public ShapeInterface() { } - public ShapeInterface shapeType(String shapeType) { + public ShapeInterface shapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; return this; } @@ -62,7 +63,7 @@ public String getShapeType() { @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setShapeType(String shapeType) { + public void setShapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java index e758fe4ea5ab..80f3045aa867 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java @@ -39,15 +39,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class SimpleQuadrilateral { public static final String JSON_PROPERTY_SHAPE_TYPE = "shapeType"; + @javax.annotation.Nonnull private String shapeType; public static final String JSON_PROPERTY_QUADRILATERAL_TYPE = "quadrilateralType"; + @javax.annotation.Nonnull private String quadrilateralType; public SimpleQuadrilateral() { } - public SimpleQuadrilateral shapeType(String shapeType) { + public SimpleQuadrilateral shapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; return this; } @@ -66,12 +68,12 @@ public String getShapeType() { @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setShapeType(String shapeType) { + public void setShapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; } - public SimpleQuadrilateral quadrilateralType(String quadrilateralType) { + public SimpleQuadrilateral quadrilateralType(@javax.annotation.Nonnull String quadrilateralType) { this.quadrilateralType = quadrilateralType; return this; } @@ -90,7 +92,7 @@ public String getQuadrilateralType() { @JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setQuadrilateralType(String quadrilateralType) { + public void setQuadrilateralType(@javax.annotation.Nonnull String quadrilateralType) { this.quadrilateralType = quadrilateralType; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/SpecialModelName.java index 77b67979fbd7..9404097e28cf 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -39,15 +39,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; + @javax.annotation.Nullable private Long $specialPropertyName; public static final String JSON_PROPERTY_SPECIAL_MODEL_NAME = "_special_model.name_"; + @javax.annotation.Nullable private String specialModelName; public SpecialModelName() { } - public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + public SpecialModelName $specialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; return this; } @@ -66,12 +68,12 @@ public SpecialModelName() { @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void set$SpecialPropertyName(Long $specialPropertyName) { + public void set$SpecialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } - public SpecialModelName specialModelName(String specialModelName) { + public SpecialModelName specialModelName(@javax.annotation.Nullable String specialModelName) { this.specialModelName = specialModelName; return this; } @@ -90,7 +92,7 @@ public String getSpecialModelName() { @JsonProperty(JSON_PROPERTY_SPECIAL_MODEL_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSpecialModelName(String specialModelName) { + public void setSpecialModelName(@javax.annotation.Nullable String specialModelName) { this.specialModelName = specialModelName; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Tag.java index 6352daef0389..8a45b90356b3 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Tag.java @@ -39,15 +39,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Tag { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public Tag() { } - public Tag id(Long id) { + public Tag id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -66,12 +68,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -90,7 +92,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index de3df1710678..076a32da8ed5 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -44,12 +44,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class TestInlineFreeformAdditionalPropertiesRequest extends HashMap { public static final String JSON_PROPERTY_SOME_PROPERTY = "someProperty"; + @javax.annotation.Nullable private String someProperty; public TestInlineFreeformAdditionalPropertiesRequest() { } - public TestInlineFreeformAdditionalPropertiesRequest someProperty(String someProperty) { + public TestInlineFreeformAdditionalPropertiesRequest someProperty(@javax.annotation.Nullable String someProperty) { this.someProperty = someProperty; return this; } @@ -68,7 +69,7 @@ public String getSomeProperty() { @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSomeProperty(String someProperty) { + public void setSomeProperty(@javax.annotation.Nullable String someProperty) { this.someProperty = someProperty; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/TriangleInterface.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/TriangleInterface.java index b8f64c5a8092..2c7b380a2219 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/TriangleInterface.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/TriangleInterface.java @@ -38,12 +38,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class TriangleInterface { public static final String JSON_PROPERTY_TRIANGLE_TYPE = "triangleType"; + @javax.annotation.Nonnull private String triangleType; public TriangleInterface() { } - public TriangleInterface triangleType(String triangleType) { + public TriangleInterface triangleType(@javax.annotation.Nonnull String triangleType) { this.triangleType = triangleType; return this; } @@ -62,7 +63,7 @@ public String getTriangleType() { @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTriangleType(String triangleType) { + public void setTriangleType(@javax.annotation.Nonnull String triangleType) { this.triangleType = triangleType; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/User.java index 1babb7a73120..84497a3087db 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/User.java @@ -53,30 +53,39 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class User { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; + @javax.annotation.Nullable private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; + @javax.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; + @javax.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; + @javax.annotation.Nullable private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; + @javax.annotation.Nullable private String password; public static final String JSON_PROPERTY_PHONE = "phone"; + @javax.annotation.Nullable private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; + @javax.annotation.Nullable private Integer userStatus; public static final String JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS = "objectWithNoDeclaredProps"; + @javax.annotation.Nullable private Object objectWithNoDeclaredProps; public static final String JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS_NULLABLE = "objectWithNoDeclaredPropsNullable"; @@ -91,7 +100,7 @@ public class User { public User() { } - public User id(Long id) { + public User id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -110,12 +119,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@javax.annotation.Nullable String username) { this.username = username; return this; } @@ -134,12 +143,12 @@ public String getUsername() { @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsername(String username) { + public void setUsername(@javax.annotation.Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; return this; } @@ -158,12 +167,12 @@ public String getFirstName() { @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFirstName(String firstName) { + public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; return this; } @@ -182,12 +191,12 @@ public String getLastName() { @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLastName(String lastName) { + public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@javax.annotation.Nullable String email) { this.email = email; return this; } @@ -206,12 +215,12 @@ public String getEmail() { @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEmail(String email) { + public void setEmail(@javax.annotation.Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@javax.annotation.Nullable String password) { this.password = password; return this; } @@ -230,12 +239,12 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@javax.annotation.Nullable String phone) { this.phone = phone; return this; } @@ -254,12 +263,12 @@ public String getPhone() { @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPhone(String phone) { + public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -278,12 +287,12 @@ public Integer getUserStatus() { @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; } - public User objectWithNoDeclaredProps(Object objectWithNoDeclaredProps) { + public User objectWithNoDeclaredProps(@javax.annotation.Nullable Object objectWithNoDeclaredProps) { this.objectWithNoDeclaredProps = objectWithNoDeclaredProps; return this; } @@ -302,12 +311,12 @@ public Object getObjectWithNoDeclaredProps() { @JsonProperty(JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setObjectWithNoDeclaredProps(Object objectWithNoDeclaredProps) { + public void setObjectWithNoDeclaredProps(@javax.annotation.Nullable Object objectWithNoDeclaredProps) { this.objectWithNoDeclaredProps = objectWithNoDeclaredProps; } - public User objectWithNoDeclaredPropsNullable(Object objectWithNoDeclaredPropsNullable) { + public User objectWithNoDeclaredPropsNullable(@javax.annotation.Nullable Object objectWithNoDeclaredPropsNullable) { this.objectWithNoDeclaredPropsNullable = JsonNullable.of(objectWithNoDeclaredPropsNullable); return this; } @@ -334,12 +343,12 @@ public void setObjectWithNoDeclaredPropsNullable_JsonNullable(JsonNullableof(objectWithNoDeclaredPropsNullable); } - public User anyTypeProp(Object anyTypeProp) { + public User anyTypeProp(@javax.annotation.Nullable Object anyTypeProp) { this.anyTypeProp = JsonNullable.of(anyTypeProp); return this; } @@ -366,12 +375,12 @@ public void setAnyTypeProp_JsonNullable(JsonNullable anyTypeProp) { this.anyTypeProp = anyTypeProp; } - public void setAnyTypeProp(Object anyTypeProp) { + public void setAnyTypeProp(@javax.annotation.Nullable Object anyTypeProp) { this.anyTypeProp = JsonNullable.of(anyTypeProp); } - public User anyTypePropNullable(Object anyTypePropNullable) { + public User anyTypePropNullable(@javax.annotation.Nullable Object anyTypePropNullable) { this.anyTypePropNullable = JsonNullable.of(anyTypePropNullable); return this; } @@ -398,7 +407,7 @@ public void setAnyTypePropNullable_JsonNullable(JsonNullable anyTypeProp this.anyTypePropNullable = anyTypePropNullable; } - public void setAnyTypePropNullable(Object anyTypePropNullable) { + public void setAnyTypePropNullable(@javax.annotation.Nullable Object anyTypePropNullable) { this.anyTypePropNullable = JsonNullable.of(anyTypePropNullable); } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Whale.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Whale.java index f5d1cbd13e23..9a6ecebf84b5 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Whale.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Whale.java @@ -40,18 +40,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Whale { public static final String JSON_PROPERTY_HAS_BALEEN = "hasBaleen"; + @javax.annotation.Nullable private Boolean hasBaleen; public static final String JSON_PROPERTY_HAS_TEETH = "hasTeeth"; + @javax.annotation.Nullable private Boolean hasTeeth; public static final String JSON_PROPERTY_CLASS_NAME = "className"; + @javax.annotation.Nonnull private String className; public Whale() { } - public Whale hasBaleen(Boolean hasBaleen) { + public Whale hasBaleen(@javax.annotation.Nullable Boolean hasBaleen) { this.hasBaleen = hasBaleen; return this; } @@ -70,12 +73,12 @@ public Boolean getHasBaleen() { @JsonProperty(JSON_PROPERTY_HAS_BALEEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setHasBaleen(Boolean hasBaleen) { + public void setHasBaleen(@javax.annotation.Nullable Boolean hasBaleen) { this.hasBaleen = hasBaleen; } - public Whale hasTeeth(Boolean hasTeeth) { + public Whale hasTeeth(@javax.annotation.Nullable Boolean hasTeeth) { this.hasTeeth = hasTeeth; return this; } @@ -94,12 +97,12 @@ public Boolean getHasTeeth() { @JsonProperty(JSON_PROPERTY_HAS_TEETH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setHasTeeth(Boolean hasTeeth) { + public void setHasTeeth(@javax.annotation.Nullable Boolean hasTeeth) { this.hasTeeth = hasTeeth; } - public Whale className(String className) { + public Whale className(@javax.annotation.Nonnull String className) { this.className = className; return this; } @@ -118,7 +121,7 @@ public String getClassName() { @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setClassName(String className) { + public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Zebra.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Zebra.java index 677c4a1461b7..a9ef44312fb6 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Zebra.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Zebra.java @@ -82,15 +82,17 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nullable private TypeEnum type; public static final String JSON_PROPERTY_CLASS_NAME = "className"; + @javax.annotation.Nonnull private String className; public Zebra() { } - public Zebra type(TypeEnum type) { + public Zebra type(@javax.annotation.Nullable TypeEnum type) { this.type = type; return this; } @@ -109,12 +111,12 @@ public TypeEnum getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(TypeEnum type) { + public void setType(@javax.annotation.Nullable TypeEnum type) { this.type = type; } - public Zebra className(String className) { + public Zebra className(@javax.annotation.Nonnull String className) { this.className = className; return this; } @@ -133,7 +135,7 @@ public String getClassName() { @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setClassName(String className) { + public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; } diff --git a/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Category.java index 8697942be2b1..ed159971fae8 100644 --- a/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Category.java @@ -39,15 +39,17 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Category { public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private String name; public Category() { } - public Category id(Long id) { + public Category id(@jakarta.annotation.Nullable Long id) { this.id = id; return this; } @@ -66,12 +68,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -90,7 +92,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 49d4d2b416b0..7b6789f4d1e5 100644 --- a/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -40,18 +40,21 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; + @jakarta.annotation.Nullable private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nullable private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; + @jakarta.annotation.Nullable private String message; public ModelApiResponse() { } - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@jakarta.annotation.Nullable Integer code) { this.code = code; return this; } @@ -70,12 +73,12 @@ public Integer getCode() { @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCode(Integer code) { + public void setCode(@jakarta.annotation.Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@jakarta.annotation.Nullable String type) { this.type = type; return this; } @@ -94,12 +97,12 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } @@ -118,7 +121,7 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } diff --git a/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Order.java index 5e7e0778960a..249c5e50a81d 100644 --- a/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Order.java @@ -44,15 +44,19 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Order { public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; + @jakarta.annotation.Nullable private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; + @jakarta.annotation.Nullable private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; + @jakarta.annotation.Nullable private OffsetDateTime shipDate; /** @@ -93,15 +97,17 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @jakarta.annotation.Nullable private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; + @jakarta.annotation.Nullable private Boolean complete = false; public Order() { } - public Order id(Long id) { + public Order id(@jakarta.annotation.Nullable Long id) { this.id = id; return this; } @@ -120,12 +126,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@jakarta.annotation.Nullable Long petId) { this.petId = petId; return this; } @@ -144,12 +150,12 @@ public Long getPetId() { @JsonProperty(JSON_PROPERTY_PET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPetId(Long petId) { + public void setPetId(@jakarta.annotation.Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@jakarta.annotation.Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -168,12 +174,12 @@ public Integer getQuantity() { @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setQuantity(Integer quantity) { + public void setQuantity(@jakarta.annotation.Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@jakarta.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -192,12 +198,12 @@ public OffsetDateTime getShipDate() { @JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@jakarta.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; return this; } @@ -216,12 +222,12 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; } - public Order complete(Boolean complete) { + public Order complete(@jakarta.annotation.Nullable Boolean complete) { this.complete = complete; return this; } @@ -240,7 +246,7 @@ public Boolean getComplete() { @JsonProperty(JSON_PROPERTY_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setComplete(Boolean complete) { + public void setComplete(@jakarta.annotation.Nullable Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Pet.java index 36b109f2786c..94179dc4e0fd 100644 --- a/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Pet.java @@ -47,18 +47,23 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Pet { public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; + @jakarta.annotation.Nullable private Category category; public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; + @jakarta.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String JSON_PROPERTY_TAGS = "tags"; + @jakarta.annotation.Nullable private List tags = new ArrayList<>(); /** @@ -99,12 +104,13 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @jakarta.annotation.Nullable private StatusEnum status; public Pet() { } - public Pet id(Long id) { + public Pet id(@jakarta.annotation.Nullable Long id) { this.id = id; return this; } @@ -123,12 +129,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@jakarta.annotation.Nullable Category category) { this.category = category; return this; } @@ -147,12 +153,12 @@ public Category getCategory() { @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCategory(Category category) { + public void setCategory(@jakarta.annotation.Nullable Category category) { this.category = category; } - public Pet name(String name) { + public Pet name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } @@ -171,12 +177,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public Pet photoUrls(List photoUrls) { + public Pet photoUrls(@jakarta.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; return this; } @@ -203,12 +209,12 @@ public List getPhotoUrls() { @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPhotoUrls(List photoUrls) { + public void setPhotoUrls(@jakarta.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; } - public Pet tags(List tags) { + public Pet tags(@jakarta.annotation.Nullable List tags) { this.tags = tags; return this; } @@ -235,12 +241,12 @@ public List getTags() { @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTags(List tags) { + public void setTags(@jakarta.annotation.Nullable List tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; return this; } @@ -261,7 +267,7 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Tag.java index b10f5c4a9c5a..f3b67c78b52a 100644 --- a/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Tag.java @@ -39,15 +39,17 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Tag { public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private String name; public Tag() { } - public Tag id(Long id) { + public Tag id(@jakarta.annotation.Nullable Long id) { this.id = id; return this; } @@ -66,12 +68,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -90,7 +92,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/User.java index b273308d5314..a37f8a945294 100644 --- a/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/User.java @@ -45,33 +45,41 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class User { public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; + @jakarta.annotation.Nullable private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; + @jakarta.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; + @jakarta.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; + @jakarta.annotation.Nullable private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; + @jakarta.annotation.Nullable private String password; public static final String JSON_PROPERTY_PHONE = "phone"; + @jakarta.annotation.Nullable private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; + @jakarta.annotation.Nullable private Integer userStatus; public User() { } - public User id(Long id) { + public User id(@jakarta.annotation.Nullable Long id) { this.id = id; return this; } @@ -90,12 +98,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@jakarta.annotation.Nullable String username) { this.username = username; return this; } @@ -114,12 +122,12 @@ public String getUsername() { @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsername(String username) { + public void setUsername(@jakarta.annotation.Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@jakarta.annotation.Nullable String firstName) { this.firstName = firstName; return this; } @@ -138,12 +146,12 @@ public String getFirstName() { @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFirstName(String firstName) { + public void setFirstName(@jakarta.annotation.Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@jakarta.annotation.Nullable String lastName) { this.lastName = lastName; return this; } @@ -162,12 +170,12 @@ public String getLastName() { @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLastName(String lastName) { + public void setLastName(@jakarta.annotation.Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@jakarta.annotation.Nullable String email) { this.email = email; return this; } @@ -186,12 +194,12 @@ public String getEmail() { @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEmail(String email) { + public void setEmail(@jakarta.annotation.Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@jakarta.annotation.Nullable String password) { this.password = password; return this; } @@ -210,12 +218,12 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPassword(String password) { + public void setPassword(@jakarta.annotation.Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@jakarta.annotation.Nullable String phone) { this.phone = phone; return this; } @@ -234,12 +242,12 @@ public String getPhone() { @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPhone(String phone) { + public void setPhone(@jakarta.annotation.Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@jakarta.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -258,7 +266,7 @@ public Integer getUserStatus() { @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@jakarta.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index fa85646a19b4..e12cdc074317 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -51,33 +51,40 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_PROPERTY = "map_property"; + @javax.annotation.Nullable private Map mapProperty = new HashMap<>(); public static final String JSON_PROPERTY_MAP_OF_MAP_PROPERTY = "map_of_map_property"; + @javax.annotation.Nullable private Map> mapOfMapProperty = new HashMap<>(); public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1"; private JsonNullable anytype1 = JsonNullable.of(null); public static final String JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE1 = "map_with_undeclared_properties_anytype_1"; + @javax.annotation.Nullable private Object mapWithUndeclaredPropertiesAnytype1; public static final String JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE2 = "map_with_undeclared_properties_anytype_2"; + @javax.annotation.Nullable private Object mapWithUndeclaredPropertiesAnytype2; public static final String JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE3 = "map_with_undeclared_properties_anytype_3"; + @javax.annotation.Nullable private Map mapWithUndeclaredPropertiesAnytype3 = new HashMap<>(); public static final String JSON_PROPERTY_EMPTY_MAP = "empty_map"; + @javax.annotation.Nullable private Object emptyMap; public static final String JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_STRING = "map_with_undeclared_properties_string"; + @javax.annotation.Nullable private Map mapWithUndeclaredPropertiesString = new HashMap<>(); public AdditionalPropertiesClass() { } - public AdditionalPropertiesClass mapProperty(Map mapProperty) { + public AdditionalPropertiesClass mapProperty(@javax.annotation.Nullable Map mapProperty) { this.mapProperty = mapProperty; return this; } @@ -104,12 +111,12 @@ public Map getMapProperty() { @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapProperty(Map mapProperty) { + public void setMapProperty(@javax.annotation.Nullable Map mapProperty) { this.mapProperty = mapProperty; } - public AdditionalPropertiesClass mapOfMapProperty(Map> mapOfMapProperty) { + public AdditionalPropertiesClass mapOfMapProperty(@javax.annotation.Nullable Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; return this; } @@ -136,12 +143,12 @@ public Map> getMapOfMapProperty() { @JsonProperty(JSON_PROPERTY_MAP_OF_MAP_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapOfMapProperty(Map> mapOfMapProperty) { + public void setMapOfMapProperty(@javax.annotation.Nullable Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@javax.annotation.Nullable Object anytype1) { this.anytype1 = JsonNullable.of(anytype1); return this; } @@ -168,12 +175,12 @@ public void setAnytype1_JsonNullable(JsonNullable anytype1) { this.anytype1 = anytype1; } - public void setAnytype1(Object anytype1) { + public void setAnytype1(@javax.annotation.Nullable Object anytype1) { this.anytype1 = JsonNullable.of(anytype1); } - public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype1(Object mapWithUndeclaredPropertiesAnytype1) { + public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype1(@javax.annotation.Nullable Object mapWithUndeclaredPropertiesAnytype1) { this.mapWithUndeclaredPropertiesAnytype1 = mapWithUndeclaredPropertiesAnytype1; return this; } @@ -192,12 +199,12 @@ public Object getMapWithUndeclaredPropertiesAnytype1() { @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE1) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapWithUndeclaredPropertiesAnytype1(Object mapWithUndeclaredPropertiesAnytype1) { + public void setMapWithUndeclaredPropertiesAnytype1(@javax.annotation.Nullable Object mapWithUndeclaredPropertiesAnytype1) { this.mapWithUndeclaredPropertiesAnytype1 = mapWithUndeclaredPropertiesAnytype1; } - public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype2(Object mapWithUndeclaredPropertiesAnytype2) { + public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype2(@javax.annotation.Nullable Object mapWithUndeclaredPropertiesAnytype2) { this.mapWithUndeclaredPropertiesAnytype2 = mapWithUndeclaredPropertiesAnytype2; return this; } @@ -216,12 +223,12 @@ public Object getMapWithUndeclaredPropertiesAnytype2() { @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapWithUndeclaredPropertiesAnytype2(Object mapWithUndeclaredPropertiesAnytype2) { + public void setMapWithUndeclaredPropertiesAnytype2(@javax.annotation.Nullable Object mapWithUndeclaredPropertiesAnytype2) { this.mapWithUndeclaredPropertiesAnytype2 = mapWithUndeclaredPropertiesAnytype2; } - public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype3(Map mapWithUndeclaredPropertiesAnytype3) { + public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype3(@javax.annotation.Nullable Map mapWithUndeclaredPropertiesAnytype3) { this.mapWithUndeclaredPropertiesAnytype3 = mapWithUndeclaredPropertiesAnytype3; return this; } @@ -248,12 +255,12 @@ public Map getMapWithUndeclaredPropertiesAnytype3() { @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE3) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setMapWithUndeclaredPropertiesAnytype3(Map mapWithUndeclaredPropertiesAnytype3) { + public void setMapWithUndeclaredPropertiesAnytype3(@javax.annotation.Nullable Map mapWithUndeclaredPropertiesAnytype3) { this.mapWithUndeclaredPropertiesAnytype3 = mapWithUndeclaredPropertiesAnytype3; } - public AdditionalPropertiesClass emptyMap(Object emptyMap) { + public AdditionalPropertiesClass emptyMap(@javax.annotation.Nullable Object emptyMap) { this.emptyMap = emptyMap; return this; } @@ -272,12 +279,12 @@ public Object getEmptyMap() { @JsonProperty(JSON_PROPERTY_EMPTY_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEmptyMap(Object emptyMap) { + public void setEmptyMap(@javax.annotation.Nullable Object emptyMap) { this.emptyMap = emptyMap; } - public AdditionalPropertiesClass mapWithUndeclaredPropertiesString(Map mapWithUndeclaredPropertiesString) { + public AdditionalPropertiesClass mapWithUndeclaredPropertiesString(@javax.annotation.Nullable Map mapWithUndeclaredPropertiesString) { this.mapWithUndeclaredPropertiesString = mapWithUndeclaredPropertiesString; return this; } @@ -304,7 +311,7 @@ public Map getMapWithUndeclaredPropertiesString() { @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapWithUndeclaredPropertiesString(Map mapWithUndeclaredPropertiesString) { + public void setMapWithUndeclaredPropertiesString(@javax.annotation.Nullable Map mapWithUndeclaredPropertiesString) { this.mapWithUndeclaredPropertiesString = mapWithUndeclaredPropertiesString; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Animal.java index 26e4195d46f1..4ba8cb46c08c 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Animal.java @@ -53,15 +53,17 @@ public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; + @javax.annotation.Nonnull private String className; public static final String JSON_PROPERTY_COLOR = "color"; + @javax.annotation.Nullable private String color = "red"; public Animal() { } - public Animal className(String className) { + public Animal className(@javax.annotation.Nonnull String className) { this.className = className; return this; } @@ -80,12 +82,12 @@ public String getClassName() { @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setClassName(String className) { + public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; } - public Animal color(String color) { + public Animal color(@javax.annotation.Nullable String color) { this.color = color; return this; } @@ -104,7 +106,7 @@ public String getColor() { @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setColor(String color) { + public void setColor(@javax.annotation.Nullable String color) { this.color = color; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Apple.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Apple.java index 7347175ed94e..34945e9565ab 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Apple.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Apple.java @@ -39,15 +39,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Apple { public static final String JSON_PROPERTY_CULTIVAR = "cultivar"; + @javax.annotation.Nullable private String cultivar; public static final String JSON_PROPERTY_ORIGIN = "origin"; + @javax.annotation.Nullable private String origin; public Apple() { } - public Apple cultivar(String cultivar) { + public Apple cultivar(@javax.annotation.Nullable String cultivar) { this.cultivar = cultivar; return this; } @@ -66,12 +68,12 @@ public String getCultivar() { @JsonProperty(JSON_PROPERTY_CULTIVAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCultivar(String cultivar) { + public void setCultivar(@javax.annotation.Nullable String cultivar) { this.cultivar = cultivar; } - public Apple origin(String origin) { + public Apple origin(@javax.annotation.Nullable String origin) { this.origin = origin; return this; } @@ -90,7 +92,7 @@ public String getOrigin() { @JsonProperty(JSON_PROPERTY_ORIGIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOrigin(String origin) { + public void setOrigin(@javax.annotation.Nullable String origin) { this.origin = origin; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AppleReq.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AppleReq.java index 59dd9cdc3f91..189ee1caa93b 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AppleReq.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AppleReq.java @@ -39,15 +39,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AppleReq { public static final String JSON_PROPERTY_CULTIVAR = "cultivar"; + @javax.annotation.Nonnull private String cultivar; public static final String JSON_PROPERTY_MEALY = "mealy"; + @javax.annotation.Nullable private Boolean mealy; public AppleReq() { } - public AppleReq cultivar(String cultivar) { + public AppleReq cultivar(@javax.annotation.Nonnull String cultivar) { this.cultivar = cultivar; return this; } @@ -66,12 +68,12 @@ public String getCultivar() { @JsonProperty(JSON_PROPERTY_CULTIVAR) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCultivar(String cultivar) { + public void setCultivar(@javax.annotation.Nonnull String cultivar) { this.cultivar = cultivar; } - public AppleReq mealy(Boolean mealy) { + public AppleReq mealy(@javax.annotation.Nullable Boolean mealy) { this.mealy = mealy; return this; } @@ -90,7 +92,7 @@ public Boolean getMealy() { @JsonProperty(JSON_PROPERTY_MEALY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMealy(Boolean mealy) { + public void setMealy(@javax.annotation.Nullable Boolean mealy) { this.mealy = mealy; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 5f0c32792852..1a80525c7247 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -41,12 +41,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayOfArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; + @javax.annotation.Nullable private List> arrayArrayNumber = new ArrayList<>(); public ArrayOfArrayOfNumberOnly() { } - public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + public ArrayOfArrayOfNumberOnly arrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; return this; } @@ -73,7 +74,7 @@ public List> getArrayArrayNumber() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayNumber(List> arrayArrayNumber) { + public void setArrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 784a907aabd6..1a9f8ae8630d 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -41,12 +41,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; + @javax.annotation.Nullable private List arrayNumber = new ArrayList<>(); public ArrayOfNumberOnly() { } - public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + public ArrayOfNumberOnly arrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; return this; } @@ -73,7 +74,7 @@ public List getArrayNumber() { @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayNumber(List arrayNumber) { + public void setArrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayTest.java index bb96880411c5..cd38b8d001eb 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -43,18 +43,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; + @javax.annotation.Nullable private List arrayOfString = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; + @javax.annotation.Nullable private List> arrayArrayOfInteger = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; + @javax.annotation.Nullable private List> arrayArrayOfModel = new ArrayList<>(); public ArrayTest() { } - public ArrayTest arrayOfString(List arrayOfString) { + public ArrayTest arrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; return this; } @@ -81,12 +84,12 @@ public List getArrayOfString() { @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayOfString(List arrayOfString) { + public void setArrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; } - public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + public ArrayTest arrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; return this; } @@ -113,12 +116,12 @@ public List> getArrayArrayOfInteger() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { + public void setArrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } - public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + public ArrayTest arrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; return this; } @@ -145,7 +148,7 @@ public List> getArrayArrayOfModel() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayOfModel(List> arrayArrayOfModel) { + public void setArrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Banana.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Banana.java index dcf1b678feeb..a26a979caaa9 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Banana.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Banana.java @@ -39,12 +39,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Banana { public static final String JSON_PROPERTY_LENGTH_CM = "lengthCm"; + @javax.annotation.Nullable private BigDecimal lengthCm; public Banana() { } - public Banana lengthCm(BigDecimal lengthCm) { + public Banana lengthCm(@javax.annotation.Nullable BigDecimal lengthCm) { this.lengthCm = lengthCm; return this; } @@ -63,7 +64,7 @@ public BigDecimal getLengthCm() { @JsonProperty(JSON_PROPERTY_LENGTH_CM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLengthCm(BigDecimal lengthCm) { + public void setLengthCm(@javax.annotation.Nullable BigDecimal lengthCm) { this.lengthCm = lengthCm; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/BananaReq.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/BananaReq.java index eaeb0563c978..de104a482765 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/BananaReq.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/BananaReq.java @@ -40,15 +40,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class BananaReq { public static final String JSON_PROPERTY_LENGTH_CM = "lengthCm"; + @javax.annotation.Nonnull private BigDecimal lengthCm; public static final String JSON_PROPERTY_SWEET = "sweet"; + @javax.annotation.Nullable private Boolean sweet; public BananaReq() { } - public BananaReq lengthCm(BigDecimal lengthCm) { + public BananaReq lengthCm(@javax.annotation.Nonnull BigDecimal lengthCm) { this.lengthCm = lengthCm; return this; } @@ -67,12 +69,12 @@ public BigDecimal getLengthCm() { @JsonProperty(JSON_PROPERTY_LENGTH_CM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLengthCm(BigDecimal lengthCm) { + public void setLengthCm(@javax.annotation.Nonnull BigDecimal lengthCm) { this.lengthCm = lengthCm; } - public BananaReq sweet(Boolean sweet) { + public BananaReq sweet(@javax.annotation.Nullable Boolean sweet) { this.sweet = sweet; return this; } @@ -91,7 +93,7 @@ public Boolean getSweet() { @JsonProperty(JSON_PROPERTY_SWEET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSweet(Boolean sweet) { + public void setSweet(@javax.annotation.Nullable Boolean sweet) { this.sweet = sweet; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/BasquePig.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/BasquePig.java index e1f3c1e88447..505dfb4a0583 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/BasquePig.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/BasquePig.java @@ -38,12 +38,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class BasquePig { public static final String JSON_PROPERTY_CLASS_NAME = "className"; + @javax.annotation.Nonnull private String className; public BasquePig() { } - public BasquePig className(String className) { + public BasquePig className(@javax.annotation.Nonnull String className) { this.className = className; return this; } @@ -62,7 +63,7 @@ public String getClassName() { @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setClassName(String className) { + public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Capitalization.java index 8e1d29f3e561..1379eb65f1ae 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Capitalization.java @@ -43,27 +43,33 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Capitalization { public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; + @javax.annotation.Nullable private String smallCamel; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; + @javax.annotation.Nullable private String capitalCamel; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; + @javax.annotation.Nullable private String smallSnake; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; + @javax.annotation.Nullable private String capitalSnake; public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; + @javax.annotation.Nullable private String scAETHFlowPoints; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; + @javax.annotation.Nullable private String ATT_NAME; public Capitalization() { } - public Capitalization smallCamel(String smallCamel) { + public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; return this; } @@ -82,12 +88,12 @@ public String getSmallCamel() { @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmallCamel(String smallCamel) { + public void setSmallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; } - public Capitalization capitalCamel(String capitalCamel) { + public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; return this; } @@ -106,12 +112,12 @@ public String getCapitalCamel() { @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCapitalCamel(String capitalCamel) { + public void setCapitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; } - public Capitalization smallSnake(String smallSnake) { + public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; return this; } @@ -130,12 +136,12 @@ public String getSmallSnake() { @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmallSnake(String smallSnake) { + public void setSmallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; } - public Capitalization capitalSnake(String capitalSnake) { + public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; return this; } @@ -154,12 +160,12 @@ public String getCapitalSnake() { @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCapitalSnake(String capitalSnake) { + public void setCapitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; } - public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -178,12 +184,12 @@ public String getScAETHFlowPoints() { @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setScAETHFlowPoints(String scAETHFlowPoints) { + public void setScAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } - public Capitalization ATT_NAME(String ATT_NAME) { + public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; return this; } @@ -202,7 +208,7 @@ public String getATTNAME() { @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setATTNAME(String ATT_NAME) { + public void setATTNAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Cat.java index 07616cc338d7..01d6a046b3a9 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Cat.java @@ -50,12 +50,13 @@ public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; + @javax.annotation.Nullable private Boolean declawed; public Cat() { } - public Cat declawed(Boolean declawed) { + public Cat declawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -74,19 +75,19 @@ public Boolean getDeclawed() { @JsonProperty(JSON_PROPERTY_DECLAWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; } @Override - public Cat className(String className) { + public Cat className(@javax.annotation.Nonnull String className) { this.setClassName(className); return this; } @Override - public Cat color(String color) { + public Cat color(@javax.annotation.Nullable String color) { this.setColor(color); return this; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Category.java index 186ba55e4496..daa8d90bfecb 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Category.java @@ -39,15 +39,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Category { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private String name = "default-name"; public Category() { } - public Category id(Long id) { + public Category id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -66,12 +68,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@javax.annotation.Nonnull String name) { this.name = name; return this; } @@ -90,7 +92,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ChildCat.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ChildCat.java index b6e56b230668..4260508bdfa1 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ChildCat.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ChildCat.java @@ -52,15 +52,17 @@ public class ChildCat extends ParentPet { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public static final String JSON_PROPERTY_PET_TYPE = "pet_type"; + @javax.annotation.Nullable private String petType = "ChildCat"; public ChildCat() { } - public ChildCat name(String name) { + public ChildCat name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -79,7 +81,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } @@ -88,7 +90,7 @@ public void setName(String name) { "ChildCat" )); - public ChildCat petType(String petType) { + public ChildCat petType(@javax.annotation.Nullable String petType) { if (!PET_TYPE_VALUES.contains(petType)) { throw new IllegalArgumentException(petType + " is invalid. Possible values for petType: " + String.join(", ", PET_TYPE_VALUES)); } @@ -111,7 +113,7 @@ public String getPetType() { @JsonProperty(JSON_PROPERTY_PET_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPetType(String petType) { + public void setPetType(@javax.annotation.Nullable String petType) { if (!PET_TYPE_VALUES.contains(petType)) { throw new IllegalArgumentException(petType + " is invalid. Possible values for petType: " + String.join(", ", PET_TYPE_VALUES)); } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ClassModel.java index 3c1d66b8969b..016d0cf1bd26 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ClassModel.java @@ -38,12 +38,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ClassModel { public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; + @javax.annotation.Nullable private String propertyClass; public ClassModel() { } - public ClassModel propertyClass(String propertyClass) { + public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -62,7 +63,7 @@ public String getPropertyClass() { @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Client.java index 292a1e7e9af7..c68687ad9a78 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Client.java @@ -38,12 +38,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Client { public static final String JSON_PROPERTY_CLIENT = "client"; + @javax.annotation.Nullable private String client; public Client() { } - public Client client(String client) { + public Client client(@javax.annotation.Nullable String client) { this.client = client; return this; } @@ -62,7 +63,7 @@ public String getClient() { @JsonProperty(JSON_PROPERTY_CLIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setClient(String client) { + public void setClient(@javax.annotation.Nullable String client) { this.client = client; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java index f0673fa112ee..4c63cfaa0ae3 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java @@ -39,15 +39,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ComplexQuadrilateral { public static final String JSON_PROPERTY_SHAPE_TYPE = "shapeType"; + @javax.annotation.Nonnull private String shapeType; public static final String JSON_PROPERTY_QUADRILATERAL_TYPE = "quadrilateralType"; + @javax.annotation.Nonnull private String quadrilateralType; public ComplexQuadrilateral() { } - public ComplexQuadrilateral shapeType(String shapeType) { + public ComplexQuadrilateral shapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; return this; } @@ -66,12 +68,12 @@ public String getShapeType() { @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setShapeType(String shapeType) { + public void setShapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; } - public ComplexQuadrilateral quadrilateralType(String quadrilateralType) { + public ComplexQuadrilateral quadrilateralType(@javax.annotation.Nonnull String quadrilateralType) { this.quadrilateralType = quadrilateralType; return this; } @@ -90,7 +92,7 @@ public String getQuadrilateralType() { @JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setQuadrilateralType(String quadrilateralType) { + public void setQuadrilateralType(@javax.annotation.Nonnull String quadrilateralType) { this.quadrilateralType = quadrilateralType; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/DanishPig.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/DanishPig.java index 62fcabbffc4d..50e622cf126b 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/DanishPig.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/DanishPig.java @@ -38,12 +38,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class DanishPig { public static final String JSON_PROPERTY_CLASS_NAME = "className"; + @javax.annotation.Nonnull private String className; public DanishPig() { } - public DanishPig className(String className) { + public DanishPig className(@javax.annotation.Nonnull String className) { this.className = className; return this; } @@ -62,7 +63,7 @@ public String getClassName() { @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setClassName(String className) { + public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/DeprecatedObject.java index 15587dec25b3..b07adffd492c 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -40,12 +40,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class DeprecatedObject { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public DeprecatedObject() { } - public DeprecatedObject name(String name) { + public DeprecatedObject name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -64,7 +65,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Dog.java index 4c30c521ec0a..c0e840744f24 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Dog.java @@ -49,12 +49,13 @@ public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; + @javax.annotation.Nullable private String breed; public Dog() { } - public Dog breed(String breed) { + public Dog breed(@javax.annotation.Nullable String breed) { this.breed = breed; return this; } @@ -73,19 +74,19 @@ public String getBreed() { @JsonProperty(JSON_PROPERTY_BREED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBreed(String breed) { + public void setBreed(@javax.annotation.Nullable String breed) { this.breed = breed; } @Override - public Dog className(String className) { + public Dog className(@javax.annotation.Nonnull String className) { this.setClassName(className); return this; } @Override - public Dog color(String color) { + public Dog color(@javax.annotation.Nullable String color) { this.setColor(color); return this; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Drawing.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Drawing.java index 38987124189c..0e8975282edc 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Drawing.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Drawing.java @@ -57,21 +57,24 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Drawing extends HashMap { public static final String JSON_PROPERTY_MAIN_SHAPE = "mainShape"; + @javax.annotation.Nullable private Shape mainShape; public static final String JSON_PROPERTY_SHAPE_OR_NULL = "shapeOrNull"; + @javax.annotation.Nullable private ShapeOrNull shapeOrNull; public static final String JSON_PROPERTY_NULLABLE_SHAPE = "nullableShape"; private JsonNullable nullableShape = JsonNullable.undefined(); public static final String JSON_PROPERTY_SHAPES = "shapes"; + @javax.annotation.Nullable private List shapes = new ArrayList<>(); public Drawing() { } - public Drawing mainShape(Shape mainShape) { + public Drawing mainShape(@javax.annotation.Nullable Shape mainShape) { this.mainShape = mainShape; return this; } @@ -90,12 +93,12 @@ public Shape getMainShape() { @JsonProperty(JSON_PROPERTY_MAIN_SHAPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMainShape(Shape mainShape) { + public void setMainShape(@javax.annotation.Nullable Shape mainShape) { this.mainShape = mainShape; } - public Drawing shapeOrNull(ShapeOrNull shapeOrNull) { + public Drawing shapeOrNull(@javax.annotation.Nullable ShapeOrNull shapeOrNull) { this.shapeOrNull = shapeOrNull; return this; } @@ -114,12 +117,12 @@ public ShapeOrNull getShapeOrNull() { @JsonProperty(JSON_PROPERTY_SHAPE_OR_NULL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setShapeOrNull(ShapeOrNull shapeOrNull) { + public void setShapeOrNull(@javax.annotation.Nullable ShapeOrNull shapeOrNull) { this.shapeOrNull = shapeOrNull; } - public Drawing nullableShape(NullableShape nullableShape) { + public Drawing nullableShape(@javax.annotation.Nullable NullableShape nullableShape) { this.nullableShape = JsonNullable.of(nullableShape); return this; } @@ -146,12 +149,12 @@ public void setNullableShape_JsonNullable(JsonNullable nullableSh this.nullableShape = nullableShape; } - public void setNullableShape(NullableShape nullableShape) { + public void setNullableShape(@javax.annotation.Nullable NullableShape nullableShape) { this.nullableShape = JsonNullable.of(nullableShape); } - public Drawing shapes(List shapes) { + public Drawing shapes(@javax.annotation.Nullable List shapes) { this.shapes = shapes; return this; } @@ -178,7 +181,7 @@ public List getShapes() { @JsonProperty(JSON_PROPERTY_SHAPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setShapes(List shapes) { + public void setShapes(@javax.annotation.Nullable List shapes) { this.shapes = shapes; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/EnumArrays.java index c713d8ae40de..3a9bb6c95aaa 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -76,6 +76,7 @@ public static JustSymbolEnum fromValue(String value) { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** @@ -114,12 +115,13 @@ public static ArrayEnumEnum fromValue(String value) { } public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; + @javax.annotation.Nullable private List arrayEnum = new ArrayList<>(); public EnumArrays() { } - public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; } @@ -138,12 +140,12 @@ public JustSymbolEnum getJustSymbol() { @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJustSymbol(JustSymbolEnum justSymbol) { + public void setJustSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } - public EnumArrays arrayEnum(List arrayEnum) { + public EnumArrays arrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; return this; } @@ -170,7 +172,7 @@ public List getArrayEnum() { @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayEnum(List arrayEnum) { + public void setArrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/EnumTest.java index cdb411064b3e..27d4528f8373 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/EnumTest.java @@ -91,6 +91,7 @@ public static EnumStringEnum fromValue(String value) { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; + @javax.annotation.Nullable private EnumStringEnum enumString; /** @@ -131,6 +132,7 @@ public static EnumStringRequiredEnum fromValue(String value) { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** @@ -169,6 +171,7 @@ public static EnumIntegerEnum fromValue(Integer value) { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** @@ -207,6 +210,7 @@ public static EnumIntegerOnlyEnum fromValue(Integer value) { } public static final String JSON_PROPERTY_ENUM_INTEGER_ONLY = "enum_integer_only"; + @javax.annotation.Nullable private EnumIntegerOnlyEnum enumIntegerOnly; /** @@ -245,24 +249,28 @@ public static EnumNumberEnum fromValue(Double value) { } public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; + @javax.annotation.Nullable private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; private JsonNullable outerEnum = JsonNullable.undefined(); public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER = "outerEnumInteger"; + @javax.annotation.Nullable private OuterEnumInteger outerEnumInteger; public static final String JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE = "outerEnumDefaultValue"; + @javax.annotation.Nullable private OuterEnumDefaultValue outerEnumDefaultValue = OuterEnumDefaultValue.PLACED; public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE = "outerEnumIntegerDefaultValue"; + @javax.annotation.Nullable private OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = OuterEnumIntegerDefaultValue.NUMBER_0; public EnumTest() { } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -281,12 +289,12 @@ public EnumStringEnum getEnumString() { @JsonProperty(JSON_PROPERTY_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumString(EnumStringEnum enumString) { + public void setEnumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; } - public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; return this; } @@ -305,12 +313,12 @@ public EnumStringRequiredEnum getEnumStringRequired() { @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public void setEnumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -329,12 +337,12 @@ public EnumIntegerEnum getEnumInteger() { @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumInteger(EnumIntegerEnum enumInteger) { + public void setEnumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } - public EnumTest enumIntegerOnly(EnumIntegerOnlyEnum enumIntegerOnly) { + public EnumTest enumIntegerOnly(@javax.annotation.Nullable EnumIntegerOnlyEnum enumIntegerOnly) { this.enumIntegerOnly = enumIntegerOnly; return this; } @@ -353,12 +361,12 @@ public EnumIntegerOnlyEnum getEnumIntegerOnly() { @JsonProperty(JSON_PROPERTY_ENUM_INTEGER_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumIntegerOnly(EnumIntegerOnlyEnum enumIntegerOnly) { + public void setEnumIntegerOnly(@javax.annotation.Nullable EnumIntegerOnlyEnum enumIntegerOnly) { this.enumIntegerOnly = enumIntegerOnly; } - public EnumTest enumNumber(EnumNumberEnum enumNumber) { + public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; return this; } @@ -377,12 +385,12 @@ public EnumNumberEnum getEnumNumber() { @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumNumber(EnumNumberEnum enumNumber) { + public void setEnumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } - public EnumTest outerEnum(OuterEnum outerEnum) { + public EnumTest outerEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = JsonNullable.of(outerEnum); return this; } @@ -409,12 +417,12 @@ public void setOuterEnum_JsonNullable(JsonNullable outerEnum) { this.outerEnum = outerEnum; } - public void setOuterEnum(OuterEnum outerEnum) { + public void setOuterEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = JsonNullable.of(outerEnum); } - public EnumTest outerEnumInteger(OuterEnumInteger outerEnumInteger) { + public EnumTest outerEnumInteger(@javax.annotation.Nullable OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; return this; } @@ -433,12 +441,12 @@ public OuterEnumInteger getOuterEnumInteger() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnumInteger(OuterEnumInteger outerEnumInteger) { + public void setOuterEnumInteger(@javax.annotation.Nullable OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; } - public EnumTest outerEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) { + public EnumTest outerEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; return this; } @@ -457,12 +465,12 @@ public OuterEnumDefaultValue getOuterEnumDefaultValue() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) { + public void setOuterEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; } - public EnumTest outerEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { + public EnumTest outerEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; return this; } @@ -481,7 +489,7 @@ public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { + public void setOuterEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/EquilateralTriangle.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/EquilateralTriangle.java index f3f815729e55..6e689943cd5f 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/EquilateralTriangle.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/EquilateralTriangle.java @@ -39,15 +39,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class EquilateralTriangle { public static final String JSON_PROPERTY_SHAPE_TYPE = "shapeType"; + @javax.annotation.Nonnull private String shapeType; public static final String JSON_PROPERTY_TRIANGLE_TYPE = "triangleType"; + @javax.annotation.Nonnull private String triangleType; public EquilateralTriangle() { } - public EquilateralTriangle shapeType(String shapeType) { + public EquilateralTriangle shapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; return this; } @@ -66,12 +68,12 @@ public String getShapeType() { @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setShapeType(String shapeType) { + public void setShapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; } - public EquilateralTriangle triangleType(String triangleType) { + public EquilateralTriangle triangleType(@javax.annotation.Nonnull String triangleType) { this.triangleType = triangleType; return this; } @@ -90,7 +92,7 @@ public String getTriangleType() { @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTriangleType(String triangleType) { + public void setTriangleType(@javax.annotation.Nonnull String triangleType) { this.triangleType = triangleType; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java index a2f6e6b03d14..4cdbb3c32ca8 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java @@ -42,15 +42,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FakeBigDecimalMap200Response { public static final String JSON_PROPERTY_SOME_ID = "someId"; + @javax.annotation.Nullable private BigDecimal someId; public static final String JSON_PROPERTY_SOME_MAP = "someMap"; + @javax.annotation.Nullable private Map someMap = new HashMap<>(); public FakeBigDecimalMap200Response() { } - public FakeBigDecimalMap200Response someId(BigDecimal someId) { + public FakeBigDecimalMap200Response someId(@javax.annotation.Nullable BigDecimal someId) { this.someId = someId; return this; } @@ -69,12 +71,12 @@ public BigDecimal getSomeId() { @JsonProperty(JSON_PROPERTY_SOME_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSomeId(BigDecimal someId) { + public void setSomeId(@javax.annotation.Nullable BigDecimal someId) { this.someId = someId; } - public FakeBigDecimalMap200Response someMap(Map someMap) { + public FakeBigDecimalMap200Response someMap(@javax.annotation.Nullable Map someMap) { this.someMap = someMap; return this; } @@ -101,7 +103,7 @@ public Map getSomeMap() { @JsonProperty(JSON_PROPERTY_SOME_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSomeMap(Map someMap) { + public void setSomeMap(@javax.annotation.Nullable Map someMap) { this.someMap = someMap; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 60164e97394f..9bbacae24ea2 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -42,15 +42,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; + @javax.annotation.Nullable private ModelFile _file; public static final String JSON_PROPERTY_FILES = "files"; + @javax.annotation.Nullable private List files = new ArrayList<>(); public FileSchemaTestClass() { } - public FileSchemaTestClass _file(ModelFile _file) { + public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { this._file = _file; return this; } @@ -69,12 +71,12 @@ public ModelFile getFile() { @JsonProperty(JSON_PROPERTY_FILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFile(ModelFile _file) { + public void setFile(@javax.annotation.Nullable ModelFile _file) { this._file = _file; } - public FileSchemaTestClass files(List files) { + public FileSchemaTestClass files(@javax.annotation.Nullable List files) { this.files = files; return this; } @@ -101,7 +103,7 @@ public List getFiles() { @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFiles(List files) { + public void setFiles(@javax.annotation.Nullable List files) { this.files = files; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Foo.java index f82209e0a33d..fd8db418a49a 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Foo.java @@ -38,12 +38,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Foo { public static final String JSON_PROPERTY_BAR = "bar"; + @javax.annotation.Nullable private String bar = "bar"; public Foo() { } - public Foo bar(String bar) { + public Foo bar(@javax.annotation.Nullable String bar) { this.bar = bar; return this; } @@ -62,7 +63,7 @@ public String getBar() { @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBar(String bar) { + public void setBar(@javax.annotation.Nullable String bar) { this.bar = bar; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index b18350f203b9..7f82bfaf67d5 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -39,12 +39,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FooGetDefaultResponse { public static final String JSON_PROPERTY_STRING = "string"; + @javax.annotation.Nullable private Foo string; public FooGetDefaultResponse() { } - public FooGetDefaultResponse string(Foo string) { + public FooGetDefaultResponse string(@javax.annotation.Nullable Foo string) { this.string = string; return this; } @@ -63,7 +64,7 @@ public Foo getString() { @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setString(Foo string) { + public void setString(@javax.annotation.Nullable Foo string) { this.string = string; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FormatTest.java index 7d141ac262e2..b26c79f84bcd 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FormatTest.java @@ -58,57 +58,73 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; + @javax.annotation.Nullable private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; + @javax.annotation.Nullable private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; + @javax.annotation.Nullable private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; + @javax.annotation.Nonnull private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; + @javax.annotation.Nullable private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; + @javax.annotation.Nullable private Double _double; public static final String JSON_PROPERTY_DECIMAL = "decimal"; + @javax.annotation.Nullable private BigDecimal decimal; public static final String JSON_PROPERTY_STRING = "string"; + @javax.annotation.Nullable private String string; public static final String JSON_PROPERTY_BYTE = "byte"; + @javax.annotation.Nonnull private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; + @javax.annotation.Nullable private File binary; public static final String JSON_PROPERTY_DATE = "date"; + @javax.annotation.Nonnull private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; + @javax.annotation.Nonnull private String password; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS = "pattern_with_digits"; + @javax.annotation.Nullable private String patternWithDigits; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER = "pattern_with_digits_and_delimiter"; + @javax.annotation.Nullable private String patternWithDigitsAndDelimiter; public FormatTest() { } - public FormatTest integer(Integer integer) { + public FormatTest integer(@javax.annotation.Nullable Integer integer) { this.integer = integer; return this; } @@ -129,12 +145,12 @@ public Integer getInteger() { @JsonProperty(JSON_PROPERTY_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInteger(Integer integer) { + public void setInteger(@javax.annotation.Nullable Integer integer) { this.integer = integer; } - public FormatTest int32(Integer int32) { + public FormatTest int32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; return this; } @@ -155,12 +171,12 @@ public Integer getInt32() { @JsonProperty(JSON_PROPERTY_INT32) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInt32(Integer int32) { + public void setInt32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; } - public FormatTest int64(Long int64) { + public FormatTest int64(@javax.annotation.Nullable Long int64) { this.int64 = int64; return this; } @@ -179,12 +195,12 @@ public Long getInt64() { @JsonProperty(JSON_PROPERTY_INT64) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInt64(Long int64) { + public void setInt64(@javax.annotation.Nullable Long int64) { this.int64 = int64; } - public FormatTest number(BigDecimal number) { + public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { this.number = number; return this; } @@ -205,12 +221,12 @@ public BigDecimal getNumber() { @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNumber(BigDecimal number) { + public void setNumber(@javax.annotation.Nonnull BigDecimal number) { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@javax.annotation.Nullable Float _float) { this._float = _float; return this; } @@ -231,12 +247,12 @@ public Float getFloat() { @JsonProperty(JSON_PROPERTY_FLOAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFloat(Float _float) { + public void setFloat(@javax.annotation.Nullable Float _float) { this._float = _float; } - public FormatTest _double(Double _double) { + public FormatTest _double(@javax.annotation.Nullable Double _double) { this._double = _double; return this; } @@ -257,12 +273,12 @@ public Double getDouble() { @JsonProperty(JSON_PROPERTY_DOUBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDouble(Double _double) { + public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; } - public FormatTest decimal(BigDecimal decimal) { + public FormatTest decimal(@javax.annotation.Nullable BigDecimal decimal) { this.decimal = decimal; return this; } @@ -281,12 +297,12 @@ public BigDecimal getDecimal() { @JsonProperty(JSON_PROPERTY_DECIMAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDecimal(BigDecimal decimal) { + public void setDecimal(@javax.annotation.Nullable BigDecimal decimal) { this.decimal = decimal; } - public FormatTest string(String string) { + public FormatTest string(@javax.annotation.Nullable String string) { this.string = string; return this; } @@ -305,12 +321,12 @@ public String getString() { @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setString(String string) { + public void setString(@javax.annotation.Nullable String string) { this.string = string; } - public FormatTest _byte(byte[] _byte) { + public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; return this; } @@ -329,12 +345,12 @@ public byte[] getByte() { @JsonProperty(JSON_PROPERTY_BYTE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setByte(byte[] _byte) { + public void setByte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; } - public FormatTest binary(File binary) { + public FormatTest binary(@javax.annotation.Nullable File binary) { this.binary = binary; return this; } @@ -353,12 +369,12 @@ public File getBinary() { @JsonProperty(JSON_PROPERTY_BINARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBinary(File binary) { + public void setBinary(@javax.annotation.Nullable File binary) { this.binary = binary; } - public FormatTest date(LocalDate date) { + public FormatTest date(@javax.annotation.Nonnull LocalDate date) { this.date = date; return this; } @@ -377,12 +393,12 @@ public LocalDate getDate() { @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDate(LocalDate date) { + public void setDate(@javax.annotation.Nonnull LocalDate date) { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -401,12 +417,12 @@ public OffsetDateTime getDateTime() { @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public FormatTest uuid(UUID uuid) { + public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -425,12 +441,12 @@ public UUID getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(UUID uuid) { + public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public FormatTest password(String password) { + public FormatTest password(@javax.annotation.Nonnull String password) { this.password = password; return this; } @@ -449,12 +465,12 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nonnull String password) { this.password = password; } - public FormatTest patternWithDigits(String patternWithDigits) { + public FormatTest patternWithDigits(@javax.annotation.Nullable String patternWithDigits) { this.patternWithDigits = patternWithDigits; return this; } @@ -473,12 +489,12 @@ public String getPatternWithDigits() { @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPatternWithDigits(String patternWithDigits) { + public void setPatternWithDigits(@javax.annotation.Nullable String patternWithDigits) { this.patternWithDigits = patternWithDigits; } - public FormatTest patternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) { + public FormatTest patternWithDigitsAndDelimiter(@javax.annotation.Nullable String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; return this; } @@ -497,7 +513,7 @@ public String getPatternWithDigitsAndDelimiter() { @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPatternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) { + public void setPatternWithDigitsAndDelimiter(@javax.annotation.Nullable String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/GrandparentAnimal.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/GrandparentAnimal.java index e8c06182158d..113a20f6817f 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/GrandparentAnimal.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/GrandparentAnimal.java @@ -52,12 +52,13 @@ public class GrandparentAnimal { public static final String JSON_PROPERTY_PET_TYPE = "pet_type"; + @javax.annotation.Nonnull private String petType; public GrandparentAnimal() { } - public GrandparentAnimal petType(String petType) { + public GrandparentAnimal petType(@javax.annotation.Nonnull String petType) { this.petType = petType; return this; } @@ -76,7 +77,7 @@ public String getPetType() { @JsonProperty(JSON_PROPERTY_PET_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPetType(String petType) { + public void setPetType(@javax.annotation.Nonnull String petType) { this.petType = petType; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 3eae4880f936..bcd4c31602b6 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -39,9 +39,11 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_FOO = "foo"; + @javax.annotation.Nullable private String foo; public HasOnlyReadOnly() { diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/HealthCheckResult.java index b12e65d2cfa6..e3f9d581cd7e 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -47,7 +47,7 @@ public class HealthCheckResult { public HealthCheckResult() { } - public HealthCheckResult nullableMessage(String nullableMessage) { + public HealthCheckResult nullableMessage(@javax.annotation.Nullable String nullableMessage) { this.nullableMessage = JsonNullable.of(nullableMessage); return this; } @@ -74,7 +74,7 @@ public void setNullableMessage_JsonNullable(JsonNullable nullableMessage this.nullableMessage = nullableMessage; } - public void setNullableMessage(String nullableMessage) { + public void setNullableMessage(@javax.annotation.Nullable String nullableMessage) { this.nullableMessage = JsonNullable.of(nullableMessage); } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java index bd53d18f04cc..02b804a8cf45 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java @@ -39,15 +39,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class IsoscelesTriangle { public static final String JSON_PROPERTY_SHAPE_TYPE = "shapeType"; + @javax.annotation.Nonnull private String shapeType; public static final String JSON_PROPERTY_TRIANGLE_TYPE = "triangleType"; + @javax.annotation.Nonnull private String triangleType; public IsoscelesTriangle() { } - public IsoscelesTriangle shapeType(String shapeType) { + public IsoscelesTriangle shapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; return this; } @@ -66,12 +68,12 @@ public String getShapeType() { @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setShapeType(String shapeType) { + public void setShapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; } - public IsoscelesTriangle triangleType(String triangleType) { + public IsoscelesTriangle triangleType(@javax.annotation.Nonnull String triangleType) { this.triangleType = triangleType; return this; } @@ -90,7 +92,7 @@ public String getTriangleType() { @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTriangleType(String triangleType) { + public void setTriangleType(@javax.annotation.Nonnull String triangleType) { this.triangleType = triangleType; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/MapTest.java index c4a6b2dcb374..014adec8bd90 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/MapTest.java @@ -43,6 +43,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; + @javax.annotation.Nullable private Map> mapMapOfString = new HashMap<>(); /** @@ -81,18 +82,21 @@ public static InnerEnum fromValue(String value) { } public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; + @javax.annotation.Nullable private Map mapOfEnumString = new HashMap<>(); public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; + @javax.annotation.Nullable private Map directMap = new HashMap<>(); public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; + @javax.annotation.Nullable private Map indirectMap = new HashMap<>(); public MapTest() { } - public MapTest mapMapOfString(Map> mapMapOfString) { + public MapTest mapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; return this; } @@ -119,12 +123,12 @@ public Map> getMapMapOfString() { @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapMapOfString(Map> mapMapOfString) { + public void setMapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } - public MapTest mapOfEnumString(Map mapOfEnumString) { + public MapTest mapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; return this; } @@ -151,12 +155,12 @@ public Map getMapOfEnumString() { @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapOfEnumString(Map mapOfEnumString) { + public void setMapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } - public MapTest directMap(Map directMap) { + public MapTest directMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; return this; } @@ -183,12 +187,12 @@ public Map getDirectMap() { @JsonProperty(JSON_PROPERTY_DIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDirectMap(Map directMap) { + public void setDirectMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; } - public MapTest indirectMap(Map indirectMap) { + public MapTest indirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; return this; } @@ -215,7 +219,7 @@ public Map getIndirectMap() { @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIndirectMap(Map indirectMap) { + public void setIndirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index b32214369e02..796fbf7ba034 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -45,18 +45,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; + @javax.annotation.Nullable private Map map = new HashMap<>(); public MixedPropertiesAndAdditionalPropertiesClass() { } - public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -75,12 +78,12 @@ public UUID getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(UUID uuid) { + public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -99,12 +102,12 @@ public OffsetDateTime getDateTime() { @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + public MixedPropertiesAndAdditionalPropertiesClass map(@javax.annotation.Nullable Map map) { this.map = map; return this; } @@ -131,7 +134,7 @@ public Map getMap() { @JsonProperty(JSON_PROPERTY_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMap(Map map) { + public void setMap(@javax.annotation.Nullable Map map) { this.map = map; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Model200Response.java index f81e40e3d225..60c76feebd19 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Model200Response.java @@ -39,15 +39,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; + @javax.annotation.Nullable private String propertyClass; public Model200Response() { } - public Model200Response name(Integer name) { + public Model200Response name(@javax.annotation.Nullable Integer name) { this.name = name; return this; } @@ -66,12 +68,12 @@ public Integer getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(Integer name) { + public void setName(@javax.annotation.Nullable Integer name) { this.name = name; } - public Model200Response propertyClass(String propertyClass) { + public Model200Response propertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -90,7 +92,7 @@ public String getPropertyClass() { @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelApiResponse.java index ba33ea4dc29d..a452c14d7c5a 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -40,18 +40,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nullable private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nullable private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; + @javax.annotation.Nullable private String message; public ModelApiResponse() { } - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@javax.annotation.Nullable Integer code) { this.code = code; return this; } @@ -70,12 +73,12 @@ public Integer getCode() { @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCode(Integer code) { + public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@javax.annotation.Nullable String type) { this.type = type; return this; } @@ -94,12 +97,12 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { + public void setType(@javax.annotation.Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@javax.annotation.Nullable String message) { this.message = message; return this; } @@ -118,7 +121,7 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelFile.java index 8833e537f4f8..abfba3a8e6f8 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelFile.java @@ -38,12 +38,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelFile { public static final String JSON_PROPERTY_SOURCE_U_R_I = "sourceURI"; + @javax.annotation.Nullable private String sourceURI; public ModelFile() { } - public ModelFile sourceURI(String sourceURI) { + public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; return this; } @@ -62,7 +63,7 @@ public String getSourceURI() { @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSourceURI(String sourceURI) { + public void setSourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelList.java index 7df775bc6228..61c669434b8f 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelList.java @@ -38,12 +38,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelList { public static final String JSON_PROPERTY_123LIST = "123-list"; + @javax.annotation.Nullable private String _123list; public ModelList() { } - public ModelList _123list(String _123list) { + public ModelList _123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; return this; } @@ -62,7 +63,7 @@ public String get123list() { @JsonProperty(JSON_PROPERTY_123LIST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void set123list(String _123list) { + public void set123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelReturn.java index d1579418bc82..853da6eae220 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -38,12 +38,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; + @javax.annotation.Nullable private Integer _return; public ModelReturn() { } - public ModelReturn _return(Integer _return) { + public ModelReturn _return(@javax.annotation.Nullable Integer _return) { this._return = _return; return this; } @@ -62,7 +63,7 @@ public Integer getReturn() { @JsonProperty(JSON_PROPERTY_RETURN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setReturn(Integer _return) { + public void setReturn(@javax.annotation.Nullable Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Name.java index e8a59d798600..9f16d4273ce2 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Name.java @@ -41,15 +41,19 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Name { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; + @javax.annotation.Nullable private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; + @javax.annotation.Nullable private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; + @javax.annotation.Nullable private Integer _123number; public Name() { @@ -65,7 +69,7 @@ public Name( this._123number = _123number; } - public Name name(Integer name) { + public Name name(@javax.annotation.Nonnull Integer name) { this.name = name; return this; } @@ -84,7 +88,7 @@ public Integer getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(Integer name) { + public void setName(@javax.annotation.Nonnull Integer name) { this.name = name; } @@ -103,7 +107,7 @@ public Integer getSnakeCase() { - public Name property(String property) { + public Name property(@javax.annotation.Nullable String property) { this.property = property; return this; } @@ -122,7 +126,7 @@ public String getProperty() { @JsonProperty(JSON_PROPERTY_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProperty(String property) { + public void setProperty(@javax.annotation.Nullable String property) { this.property = property; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/NullableClass.java index 2686955545e1..84b5fe49bb3b 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/NullableClass.java @@ -88,6 +88,7 @@ public class NullableClass extends HashMap { private JsonNullable> arrayAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_ITEMS_NULLABLE = "array_items_nullable"; + @javax.annotation.Nullable private List arrayItemsNullable = new ArrayList<>(); public static final String JSON_PROPERTY_OBJECT_NULLABLE_PROP = "object_nullable_prop"; @@ -97,12 +98,13 @@ public class NullableClass extends HashMap { private JsonNullable> objectAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_OBJECT_ITEMS_NULLABLE = "object_items_nullable"; + @javax.annotation.Nullable private Map objectItemsNullable = new HashMap<>(); public NullableClass() { } - public NullableClass integerProp(Integer integerProp) { + public NullableClass integerProp(@javax.annotation.Nullable Integer integerProp) { this.integerProp = JsonNullable.of(integerProp); return this; } @@ -129,12 +131,12 @@ public void setIntegerProp_JsonNullable(JsonNullable integerProp) { this.integerProp = integerProp; } - public void setIntegerProp(Integer integerProp) { + public void setIntegerProp(@javax.annotation.Nullable Integer integerProp) { this.integerProp = JsonNullable.of(integerProp); } - public NullableClass numberProp(BigDecimal numberProp) { + public NullableClass numberProp(@javax.annotation.Nullable BigDecimal numberProp) { this.numberProp = JsonNullable.of(numberProp); return this; } @@ -161,12 +163,12 @@ public void setNumberProp_JsonNullable(JsonNullable numberProp) { this.numberProp = numberProp; } - public void setNumberProp(BigDecimal numberProp) { + public void setNumberProp(@javax.annotation.Nullable BigDecimal numberProp) { this.numberProp = JsonNullable.of(numberProp); } - public NullableClass booleanProp(Boolean booleanProp) { + public NullableClass booleanProp(@javax.annotation.Nullable Boolean booleanProp) { this.booleanProp = JsonNullable.of(booleanProp); return this; } @@ -193,12 +195,12 @@ public void setBooleanProp_JsonNullable(JsonNullable booleanProp) { this.booleanProp = booleanProp; } - public void setBooleanProp(Boolean booleanProp) { + public void setBooleanProp(@javax.annotation.Nullable Boolean booleanProp) { this.booleanProp = JsonNullable.of(booleanProp); } - public NullableClass stringProp(String stringProp) { + public NullableClass stringProp(@javax.annotation.Nullable String stringProp) { this.stringProp = JsonNullable.of(stringProp); return this; } @@ -225,12 +227,12 @@ public void setStringProp_JsonNullable(JsonNullable stringProp) { this.stringProp = stringProp; } - public void setStringProp(String stringProp) { + public void setStringProp(@javax.annotation.Nullable String stringProp) { this.stringProp = JsonNullable.of(stringProp); } - public NullableClass dateProp(LocalDate dateProp) { + public NullableClass dateProp(@javax.annotation.Nullable LocalDate dateProp) { this.dateProp = JsonNullable.of(dateProp); return this; } @@ -257,12 +259,12 @@ public void setDateProp_JsonNullable(JsonNullable dateProp) { this.dateProp = dateProp; } - public void setDateProp(LocalDate dateProp) { + public void setDateProp(@javax.annotation.Nullable LocalDate dateProp) { this.dateProp = JsonNullable.of(dateProp); } - public NullableClass datetimeProp(OffsetDateTime datetimeProp) { + public NullableClass datetimeProp(@javax.annotation.Nullable OffsetDateTime datetimeProp) { this.datetimeProp = JsonNullable.of(datetimeProp); return this; } @@ -289,12 +291,12 @@ public void setDatetimeProp_JsonNullable(JsonNullable datetimePr this.datetimeProp = datetimeProp; } - public void setDatetimeProp(OffsetDateTime datetimeProp) { + public void setDatetimeProp(@javax.annotation.Nullable OffsetDateTime datetimeProp) { this.datetimeProp = JsonNullable.of(datetimeProp); } - public NullableClass arrayNullableProp(List arrayNullableProp) { + public NullableClass arrayNullableProp(@javax.annotation.Nullable List arrayNullableProp) { this.arrayNullableProp = JsonNullable.>of(arrayNullableProp); return this; } @@ -333,12 +335,12 @@ public void setArrayNullableProp_JsonNullable(JsonNullable> arrayNu this.arrayNullableProp = arrayNullableProp; } - public void setArrayNullableProp(List arrayNullableProp) { + public void setArrayNullableProp(@javax.annotation.Nullable List arrayNullableProp) { this.arrayNullableProp = JsonNullable.>of(arrayNullableProp); } - public NullableClass arrayAndItemsNullableProp(List arrayAndItemsNullableProp) { + public NullableClass arrayAndItemsNullableProp(@javax.annotation.Nullable List arrayAndItemsNullableProp) { this.arrayAndItemsNullableProp = JsonNullable.>of(arrayAndItemsNullableProp); return this; } @@ -377,12 +379,12 @@ public void setArrayAndItemsNullableProp_JsonNullable(JsonNullable> this.arrayAndItemsNullableProp = arrayAndItemsNullableProp; } - public void setArrayAndItemsNullableProp(List arrayAndItemsNullableProp) { + public void setArrayAndItemsNullableProp(@javax.annotation.Nullable List arrayAndItemsNullableProp) { this.arrayAndItemsNullableProp = JsonNullable.>of(arrayAndItemsNullableProp); } - public NullableClass arrayItemsNullable(List arrayItemsNullable) { + public NullableClass arrayItemsNullable(@javax.annotation.Nullable List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; return this; } @@ -409,12 +411,12 @@ public List getArrayItemsNullable() { @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayItemsNullable(List arrayItemsNullable) { + public void setArrayItemsNullable(@javax.annotation.Nullable List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; } - public NullableClass objectNullableProp(Map objectNullableProp) { + public NullableClass objectNullableProp(@javax.annotation.Nullable Map objectNullableProp) { this.objectNullableProp = JsonNullable.>of(objectNullableProp); return this; } @@ -453,12 +455,12 @@ public void setObjectNullableProp_JsonNullable(JsonNullable> this.objectNullableProp = objectNullableProp; } - public void setObjectNullableProp(Map objectNullableProp) { + public void setObjectNullableProp(@javax.annotation.Nullable Map objectNullableProp) { this.objectNullableProp = JsonNullable.>of(objectNullableProp); } - public NullableClass objectAndItemsNullableProp(Map objectAndItemsNullableProp) { + public NullableClass objectAndItemsNullableProp(@javax.annotation.Nullable Map objectAndItemsNullableProp) { this.objectAndItemsNullableProp = JsonNullable.>of(objectAndItemsNullableProp); return this; } @@ -497,12 +499,12 @@ public void setObjectAndItemsNullableProp_JsonNullable(JsonNullable objectAndItemsNullableProp) { + public void setObjectAndItemsNullableProp(@javax.annotation.Nullable Map objectAndItemsNullableProp) { this.objectAndItemsNullableProp = JsonNullable.>of(objectAndItemsNullableProp); } - public NullableClass objectItemsNullable(Map objectItemsNullable) { + public NullableClass objectItemsNullable(@javax.annotation.Nullable Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; return this; } @@ -529,7 +531,7 @@ public Map getObjectItemsNullable() { @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setObjectItemsNullable(Map objectItemsNullable) { + public void setObjectItemsNullable(@javax.annotation.Nullable Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/NumberOnly.java index 912cd01e5af6..08a2c4da363b 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -39,12 +39,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; + @javax.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } - public NumberOnly justNumber(BigDecimal justNumber) { + public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; } @@ -63,7 +64,7 @@ public BigDecimal getJustNumber() { @JsonProperty(JSON_PROPERTY_JUST_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJustNumber(BigDecimal justNumber) { + public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index e11a05c2a6df..f6e9a85e7c59 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -45,21 +45,25 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ObjectWithDeprecatedFields { public static final String JSON_PROPERTY_UUID = "uuid"; + @javax.annotation.Nullable private String uuid; public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private BigDecimal id; public static final String JSON_PROPERTY_DEPRECATED_REF = "deprecatedRef"; + @javax.annotation.Nullable private DeprecatedObject deprecatedRef; public static final String JSON_PROPERTY_BARS = "bars"; + @javax.annotation.Nullable private List bars = new ArrayList<>(); public ObjectWithDeprecatedFields() { } - public ObjectWithDeprecatedFields uuid(String uuid) { + public ObjectWithDeprecatedFields uuid(@javax.annotation.Nullable String uuid) { this.uuid = uuid; return this; } @@ -78,12 +82,12 @@ public String getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(String uuid) { + public void setUuid(@javax.annotation.Nullable String uuid) { this.uuid = uuid; } - public ObjectWithDeprecatedFields id(BigDecimal id) { + public ObjectWithDeprecatedFields id(@javax.annotation.Nullable BigDecimal id) { this.id = id; return this; } @@ -104,12 +108,12 @@ public BigDecimal getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(BigDecimal id) { + public void setId(@javax.annotation.Nullable BigDecimal id) { this.id = id; } - public ObjectWithDeprecatedFields deprecatedRef(DeprecatedObject deprecatedRef) { + public ObjectWithDeprecatedFields deprecatedRef(@javax.annotation.Nullable DeprecatedObject deprecatedRef) { this.deprecatedRef = deprecatedRef; return this; } @@ -130,12 +134,12 @@ public DeprecatedObject getDeprecatedRef() { @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeprecatedRef(DeprecatedObject deprecatedRef) { + public void setDeprecatedRef(@javax.annotation.Nullable DeprecatedObject deprecatedRef) { this.deprecatedRef = deprecatedRef; } - public ObjectWithDeprecatedFields bars(List bars) { + public ObjectWithDeprecatedFields bars(@javax.annotation.Nullable List bars) { this.bars = bars; return this; } @@ -164,7 +168,7 @@ public List getBars() { @JsonProperty(JSON_PROPERTY_BARS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBars(List bars) { + public void setBars(@javax.annotation.Nullable List bars) { this.bars = bars; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Order.java index a3ded57ab34d..31e638afd6e0 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Order.java @@ -44,15 +44,19 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Order { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; + @javax.annotation.Nullable private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; + @javax.annotation.Nullable private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; + @javax.annotation.Nullable private OffsetDateTime shipDate; /** @@ -93,15 +97,17 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @javax.annotation.Nullable private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; + @javax.annotation.Nullable private Boolean complete = false; public Order() { } - public Order id(Long id) { + public Order id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -120,12 +126,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@javax.annotation.Nullable Long petId) { this.petId = petId; return this; } @@ -144,12 +150,12 @@ public Long getPetId() { @JsonProperty(JSON_PROPERTY_PET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPetId(Long petId) { + public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -168,12 +174,12 @@ public Integer getQuantity() { @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setQuantity(Integer quantity) { + public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -192,12 +198,12 @@ public OffsetDateTime getShipDate() { @JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; } @@ -216,12 +222,12 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } - public Order complete(Boolean complete) { + public Order complete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; return this; } @@ -240,7 +246,7 @@ public Boolean getComplete() { @JsonProperty(JSON_PROPERTY_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setComplete(Boolean complete) { + public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/OuterComposite.java index fb6633a51811..e05c0b50349e 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -41,18 +41,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; + @javax.annotation.Nullable private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; + @javax.annotation.Nullable private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; + @javax.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } - public OuterComposite myNumber(BigDecimal myNumber) { + public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; } @@ -71,12 +74,12 @@ public BigDecimal getMyNumber() { @JsonProperty(JSON_PROPERTY_MY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyNumber(BigDecimal myNumber) { + public void setMyNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; } - public OuterComposite myString(String myString) { + public OuterComposite myString(@javax.annotation.Nullable String myString) { this.myString = myString; return this; } @@ -95,12 +98,12 @@ public String getMyString() { @JsonProperty(JSON_PROPERTY_MY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyString(String myString) { + public void setMyString(@javax.annotation.Nullable String myString) { this.myString = myString; } - public OuterComposite myBoolean(Boolean myBoolean) { + public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; return this; } @@ -119,7 +122,7 @@ public Boolean getMyBoolean() { @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyBoolean(Boolean myBoolean) { + public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ParentPet.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ParentPet.java index b8a9be8900f0..ee8918ec4473 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ParentPet.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ParentPet.java @@ -54,7 +54,7 @@ public ParentPet() { } @Override - public ParentPet petType(String petType) { + public ParentPet petType(@javax.annotation.Nonnull String petType) { this.setPetType(petType); return this; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Pet.java index 49c7f7622ef5..73c6ce60e03d 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Pet.java @@ -47,18 +47,23 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Pet { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; + @javax.annotation.Nullable private Category category; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; + @javax.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String JSON_PROPERTY_TAGS = "tags"; + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** @@ -99,12 +104,13 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } - public Pet id(Long id) { + public Pet id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -123,12 +129,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@javax.annotation.Nullable Category category) { this.category = category; return this; } @@ -147,12 +153,12 @@ public Category getCategory() { @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCategory(Category category) { + public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; } - public Pet name(String name) { + public Pet name(@javax.annotation.Nonnull String name) { this.name = name; return this; } @@ -171,12 +177,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } - public Pet photoUrls(List photoUrls) { + public Pet photoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; return this; } @@ -203,12 +209,12 @@ public List getPhotoUrls() { @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPhotoUrls(List photoUrls) { + public void setPhotoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; } - public Pet tags(List tags) { + public Pet tags(@javax.annotation.Nullable List tags) { this.tags = tags; return this; } @@ -235,12 +241,12 @@ public List getTags() { @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTags(List tags) { + public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; } @@ -259,7 +265,7 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java index 73bfb0a6a6a2..e1e04c7991bf 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java @@ -38,12 +38,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class QuadrilateralInterface { public static final String JSON_PROPERTY_QUADRILATERAL_TYPE = "quadrilateralType"; + @javax.annotation.Nonnull private String quadrilateralType; public QuadrilateralInterface() { } - public QuadrilateralInterface quadrilateralType(String quadrilateralType) { + public QuadrilateralInterface quadrilateralType(@javax.annotation.Nonnull String quadrilateralType) { this.quadrilateralType = quadrilateralType; return this; } @@ -62,7 +63,7 @@ public String getQuadrilateralType() { @JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setQuadrilateralType(String quadrilateralType) { + public void setQuadrilateralType(@javax.annotation.Nonnull String quadrilateralType) { this.quadrilateralType = quadrilateralType; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index b429178d7a71..3819bfe7f18d 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -39,9 +39,11 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; + @javax.annotation.Nullable private String baz; public ReadOnlyFirst() { @@ -69,7 +71,7 @@ public String getBar() { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { this.baz = baz; return this; } @@ -88,7 +90,7 @@ public String getBaz() { @JsonProperty(JSON_PROPERTY_BAZ) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBaz(String baz) { + public void setBaz(@javax.annotation.Nullable String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ScaleneTriangle.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ScaleneTriangle.java index ed2355e026ea..65d2c4433d7b 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ScaleneTriangle.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ScaleneTriangle.java @@ -39,15 +39,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ScaleneTriangle { public static final String JSON_PROPERTY_SHAPE_TYPE = "shapeType"; + @javax.annotation.Nonnull private String shapeType; public static final String JSON_PROPERTY_TRIANGLE_TYPE = "triangleType"; + @javax.annotation.Nonnull private String triangleType; public ScaleneTriangle() { } - public ScaleneTriangle shapeType(String shapeType) { + public ScaleneTriangle shapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; return this; } @@ -66,12 +68,12 @@ public String getShapeType() { @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setShapeType(String shapeType) { + public void setShapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; } - public ScaleneTriangle triangleType(String triangleType) { + public ScaleneTriangle triangleType(@javax.annotation.Nonnull String triangleType) { this.triangleType = triangleType; return this; } @@ -90,7 +92,7 @@ public String getTriangleType() { @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTriangleType(String triangleType) { + public void setTriangleType(@javax.annotation.Nonnull String triangleType) { this.triangleType = triangleType; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ShapeInterface.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ShapeInterface.java index 5b339886b01f..972d47e99ac7 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ShapeInterface.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ShapeInterface.java @@ -38,12 +38,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ShapeInterface { public static final String JSON_PROPERTY_SHAPE_TYPE = "shapeType"; + @javax.annotation.Nonnull private String shapeType; public ShapeInterface() { } - public ShapeInterface shapeType(String shapeType) { + public ShapeInterface shapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; return this; } @@ -62,7 +63,7 @@ public String getShapeType() { @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setShapeType(String shapeType) { + public void setShapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java index 3b06051c423e..66868b78d46a 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java @@ -39,15 +39,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class SimpleQuadrilateral { public static final String JSON_PROPERTY_SHAPE_TYPE = "shapeType"; + @javax.annotation.Nonnull private String shapeType; public static final String JSON_PROPERTY_QUADRILATERAL_TYPE = "quadrilateralType"; + @javax.annotation.Nonnull private String quadrilateralType; public SimpleQuadrilateral() { } - public SimpleQuadrilateral shapeType(String shapeType) { + public SimpleQuadrilateral shapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; return this; } @@ -66,12 +68,12 @@ public String getShapeType() { @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setShapeType(String shapeType) { + public void setShapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; } - public SimpleQuadrilateral quadrilateralType(String quadrilateralType) { + public SimpleQuadrilateral quadrilateralType(@javax.annotation.Nonnull String quadrilateralType) { this.quadrilateralType = quadrilateralType; return this; } @@ -90,7 +92,7 @@ public String getQuadrilateralType() { @JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setQuadrilateralType(String quadrilateralType) { + public void setQuadrilateralType(@javax.annotation.Nonnull String quadrilateralType) { this.quadrilateralType = quadrilateralType; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/SpecialModelName.java index 7497770e34e4..9f5b396a2dfb 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -39,15 +39,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; + @javax.annotation.Nullable private Long $specialPropertyName; public static final String JSON_PROPERTY_SPECIAL_MODEL_NAME = "_special_model.name_"; + @javax.annotation.Nullable private String specialModelName; public SpecialModelName() { } - public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + public SpecialModelName $specialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; return this; } @@ -66,12 +68,12 @@ public SpecialModelName() { @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void set$SpecialPropertyName(Long $specialPropertyName) { + public void set$SpecialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } - public SpecialModelName specialModelName(String specialModelName) { + public SpecialModelName specialModelName(@javax.annotation.Nullable String specialModelName) { this.specialModelName = specialModelName; return this; } @@ -90,7 +92,7 @@ public String getSpecialModelName() { @JsonProperty(JSON_PROPERTY_SPECIAL_MODEL_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSpecialModelName(String specialModelName) { + public void setSpecialModelName(@javax.annotation.Nullable String specialModelName) { this.specialModelName = specialModelName; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Tag.java index 48d578c19bc8..1ee511763165 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Tag.java @@ -39,15 +39,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Tag { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public Tag() { } - public Tag id(Long id) { + public Tag id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -66,12 +68,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -90,7 +92,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index f718cd6b1771..06abf20fdedd 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -44,12 +44,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class TestInlineFreeformAdditionalPropertiesRequest extends HashMap { public static final String JSON_PROPERTY_SOME_PROPERTY = "someProperty"; + @javax.annotation.Nullable private String someProperty; public TestInlineFreeformAdditionalPropertiesRequest() { } - public TestInlineFreeformAdditionalPropertiesRequest someProperty(String someProperty) { + public TestInlineFreeformAdditionalPropertiesRequest someProperty(@javax.annotation.Nullable String someProperty) { this.someProperty = someProperty; return this; } @@ -68,7 +69,7 @@ public String getSomeProperty() { @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSomeProperty(String someProperty) { + public void setSomeProperty(@javax.annotation.Nullable String someProperty) { this.someProperty = someProperty; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/TriangleInterface.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/TriangleInterface.java index a8bbcd59d44f..92cb1c05b6fa 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/TriangleInterface.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/TriangleInterface.java @@ -38,12 +38,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class TriangleInterface { public static final String JSON_PROPERTY_TRIANGLE_TYPE = "triangleType"; + @javax.annotation.Nonnull private String triangleType; public TriangleInterface() { } - public TriangleInterface triangleType(String triangleType) { + public TriangleInterface triangleType(@javax.annotation.Nonnull String triangleType) { this.triangleType = triangleType; return this; } @@ -62,7 +63,7 @@ public String getTriangleType() { @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTriangleType(String triangleType) { + public void setTriangleType(@javax.annotation.Nonnull String triangleType) { this.triangleType = triangleType; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/User.java index b57ac08899a4..3e08bede876a 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/User.java @@ -53,30 +53,39 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class User { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; + @javax.annotation.Nullable private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; + @javax.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; + @javax.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; + @javax.annotation.Nullable private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; + @javax.annotation.Nullable private String password; public static final String JSON_PROPERTY_PHONE = "phone"; + @javax.annotation.Nullable private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; + @javax.annotation.Nullable private Integer userStatus; public static final String JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS = "objectWithNoDeclaredProps"; + @javax.annotation.Nullable private Object objectWithNoDeclaredProps; public static final String JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS_NULLABLE = "objectWithNoDeclaredPropsNullable"; @@ -91,7 +100,7 @@ public class User { public User() { } - public User id(Long id) { + public User id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -110,12 +119,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@javax.annotation.Nullable String username) { this.username = username; return this; } @@ -134,12 +143,12 @@ public String getUsername() { @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsername(String username) { + public void setUsername(@javax.annotation.Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; return this; } @@ -158,12 +167,12 @@ public String getFirstName() { @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFirstName(String firstName) { + public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; return this; } @@ -182,12 +191,12 @@ public String getLastName() { @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLastName(String lastName) { + public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@javax.annotation.Nullable String email) { this.email = email; return this; } @@ -206,12 +215,12 @@ public String getEmail() { @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEmail(String email) { + public void setEmail(@javax.annotation.Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@javax.annotation.Nullable String password) { this.password = password; return this; } @@ -230,12 +239,12 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@javax.annotation.Nullable String phone) { this.phone = phone; return this; } @@ -254,12 +263,12 @@ public String getPhone() { @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPhone(String phone) { + public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -278,12 +287,12 @@ public Integer getUserStatus() { @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; } - public User objectWithNoDeclaredProps(Object objectWithNoDeclaredProps) { + public User objectWithNoDeclaredProps(@javax.annotation.Nullable Object objectWithNoDeclaredProps) { this.objectWithNoDeclaredProps = objectWithNoDeclaredProps; return this; } @@ -302,12 +311,12 @@ public Object getObjectWithNoDeclaredProps() { @JsonProperty(JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setObjectWithNoDeclaredProps(Object objectWithNoDeclaredProps) { + public void setObjectWithNoDeclaredProps(@javax.annotation.Nullable Object objectWithNoDeclaredProps) { this.objectWithNoDeclaredProps = objectWithNoDeclaredProps; } - public User objectWithNoDeclaredPropsNullable(Object objectWithNoDeclaredPropsNullable) { + public User objectWithNoDeclaredPropsNullable(@javax.annotation.Nullable Object objectWithNoDeclaredPropsNullable) { this.objectWithNoDeclaredPropsNullable = JsonNullable.of(objectWithNoDeclaredPropsNullable); return this; } @@ -334,12 +343,12 @@ public void setObjectWithNoDeclaredPropsNullable_JsonNullable(JsonNullableof(objectWithNoDeclaredPropsNullable); } - public User anyTypeProp(Object anyTypeProp) { + public User anyTypeProp(@javax.annotation.Nullable Object anyTypeProp) { this.anyTypeProp = JsonNullable.of(anyTypeProp); return this; } @@ -366,12 +375,12 @@ public void setAnyTypeProp_JsonNullable(JsonNullable anyTypeProp) { this.anyTypeProp = anyTypeProp; } - public void setAnyTypeProp(Object anyTypeProp) { + public void setAnyTypeProp(@javax.annotation.Nullable Object anyTypeProp) { this.anyTypeProp = JsonNullable.of(anyTypeProp); } - public User anyTypePropNullable(Object anyTypePropNullable) { + public User anyTypePropNullable(@javax.annotation.Nullable Object anyTypePropNullable) { this.anyTypePropNullable = JsonNullable.of(anyTypePropNullable); return this; } @@ -398,7 +407,7 @@ public void setAnyTypePropNullable_JsonNullable(JsonNullable anyTypeProp this.anyTypePropNullable = anyTypePropNullable; } - public void setAnyTypePropNullable(Object anyTypePropNullable) { + public void setAnyTypePropNullable(@javax.annotation.Nullable Object anyTypePropNullable) { this.anyTypePropNullable = JsonNullable.of(anyTypePropNullable); } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Whale.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Whale.java index 9bfb79950d50..7aa5dda4f316 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Whale.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Whale.java @@ -40,18 +40,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Whale { public static final String JSON_PROPERTY_HAS_BALEEN = "hasBaleen"; + @javax.annotation.Nullable private Boolean hasBaleen; public static final String JSON_PROPERTY_HAS_TEETH = "hasTeeth"; + @javax.annotation.Nullable private Boolean hasTeeth; public static final String JSON_PROPERTY_CLASS_NAME = "className"; + @javax.annotation.Nonnull private String className; public Whale() { } - public Whale hasBaleen(Boolean hasBaleen) { + public Whale hasBaleen(@javax.annotation.Nullable Boolean hasBaleen) { this.hasBaleen = hasBaleen; return this; } @@ -70,12 +73,12 @@ public Boolean getHasBaleen() { @JsonProperty(JSON_PROPERTY_HAS_BALEEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setHasBaleen(Boolean hasBaleen) { + public void setHasBaleen(@javax.annotation.Nullable Boolean hasBaleen) { this.hasBaleen = hasBaleen; } - public Whale hasTeeth(Boolean hasTeeth) { + public Whale hasTeeth(@javax.annotation.Nullable Boolean hasTeeth) { this.hasTeeth = hasTeeth; return this; } @@ -94,12 +97,12 @@ public Boolean getHasTeeth() { @JsonProperty(JSON_PROPERTY_HAS_TEETH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setHasTeeth(Boolean hasTeeth) { + public void setHasTeeth(@javax.annotation.Nullable Boolean hasTeeth) { this.hasTeeth = hasTeeth; } - public Whale className(String className) { + public Whale className(@javax.annotation.Nonnull String className) { this.className = className; return this; } @@ -118,7 +121,7 @@ public String getClassName() { @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setClassName(String className) { + public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Zebra.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Zebra.java index ce4a58c4682f..459fb48974af 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Zebra.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Zebra.java @@ -82,15 +82,17 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nullable private TypeEnum type; public static final String JSON_PROPERTY_CLASS_NAME = "className"; + @javax.annotation.Nonnull private String className; public Zebra() { } - public Zebra type(TypeEnum type) { + public Zebra type(@javax.annotation.Nullable TypeEnum type) { this.type = type; return this; } @@ -109,12 +111,12 @@ public TypeEnum getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(TypeEnum type) { + public void setType(@javax.annotation.Nullable TypeEnum type) { this.type = type; } - public Zebra className(String className) { + public Zebra className(@javax.annotation.Nonnull String className) { this.className = className; return this; } @@ -133,7 +135,7 @@ public String getClassName() { @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setClassName(String className) { + public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; } diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/AllOfSimpleModel.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/AllOfSimpleModel.java index 9dc4cc49e844..e48b837cdcad 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/AllOfSimpleModel.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/AllOfSimpleModel.java @@ -54,12 +54,13 @@ public class AllOfSimpleModel { public static final String SERIALIZED_NAME_ARRAY_OF_STRINGS = "arrayOfStrings"; @SerializedName(SERIALIZED_NAME_ARRAY_OF_STRINGS) + @javax.annotation.Nonnull private List arrayOfStrings = new ArrayList<>(); public AllOfSimpleModel() { } - public AllOfSimpleModel arrayOfStrings(List arrayOfStrings) { + public AllOfSimpleModel arrayOfStrings(@javax.annotation.Nonnull List arrayOfStrings) { this.arrayOfStrings = arrayOfStrings; return this; } @@ -81,7 +82,7 @@ public List getArrayOfStrings() { return arrayOfStrings; } - public void setArrayOfStrings(List arrayOfStrings) { + public void setArrayOfStrings(@javax.annotation.Nonnull List arrayOfStrings) { this.arrayOfStrings = arrayOfStrings; } diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Animal.java index 301f2ae55818..811beed94f2a 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Animal.java @@ -52,17 +52,19 @@ public class Animal { public static final String SERIALIZED_NAME_CLASS_NAME = "className"; @SerializedName(SERIALIZED_NAME_CLASS_NAME) + @javax.annotation.Nonnull protected String className; public static final String SERIALIZED_NAME_COLOR = "color"; @SerializedName(SERIALIZED_NAME_COLOR) + @javax.annotation.Nullable private String color = "red"; public Animal() { this.className = this.getClass().getSimpleName(); } - public Animal className(String className) { + public Animal className(@javax.annotation.Nonnull String className) { this.className = className; return this; } @@ -76,12 +78,12 @@ public String getClassName() { return className; } - public void setClassName(String className) { + public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; } - public Animal color(String color) { + public Animal color(@javax.annotation.Nullable String color) { this.color = color; return this; } @@ -95,7 +97,7 @@ public String getColor() { return color; } - public void setColor(String color) { + public void setColor(@javax.annotation.Nullable String color) { this.color = color; } diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/AnyTypeTest.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/AnyTypeTest.java index 5c5bfd2d8003..a04299d9bc91 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/AnyTypeTest.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/AnyTypeTest.java @@ -55,20 +55,23 @@ public class AnyTypeTest { public static final String SERIALIZED_NAME_ANY_TYPE_PROPERTY = "any_type_property"; @SerializedName(SERIALIZED_NAME_ANY_TYPE_PROPERTY) + @javax.annotation.Nullable private Object anyTypeProperty = null; public static final String SERIALIZED_NAME_ARRAY_PROP = "array_prop"; @SerializedName(SERIALIZED_NAME_ARRAY_PROP) + @javax.annotation.Nullable private List arrayProp = new ArrayList<>(); public static final String SERIALIZED_NAME_REF_ARRAY_PREFIX_ITEMS = "ref_array_prefix_items"; @SerializedName(SERIALIZED_NAME_REF_ARRAY_PREFIX_ITEMS) + @javax.annotation.Nullable private List refArrayPrefixItems = new ArrayList<>(); public AnyTypeTest() { } - public AnyTypeTest anyTypeProperty(Object anyTypeProperty) { + public AnyTypeTest anyTypeProperty(@javax.annotation.Nullable Object anyTypeProperty) { this.anyTypeProperty = anyTypeProperty; return this; } @@ -82,12 +85,12 @@ public Object getAnyTypeProperty() { return anyTypeProperty; } - public void setAnyTypeProperty(Object anyTypeProperty) { + public void setAnyTypeProperty(@javax.annotation.Nullable Object anyTypeProperty) { this.anyTypeProperty = anyTypeProperty; } - public AnyTypeTest arrayProp(List arrayProp) { + public AnyTypeTest arrayProp(@javax.annotation.Nullable List arrayProp) { this.arrayProp = arrayProp; return this; } @@ -109,12 +112,12 @@ public List getArrayProp() { return arrayProp; } - public void setArrayProp(List arrayProp) { + public void setArrayProp(@javax.annotation.Nullable List arrayProp) { this.arrayProp = arrayProp; } - public AnyTypeTest refArrayPrefixItems(List refArrayPrefixItems) { + public AnyTypeTest refArrayPrefixItems(@javax.annotation.Nullable List refArrayPrefixItems) { this.refArrayPrefixItems = refArrayPrefixItems; return this; } @@ -136,7 +139,7 @@ public List getRefArrayPrefixItems() { return refArrayPrefixItems; } - public void setRefArrayPrefixItems(List refArrayPrefixItems) { + public void setRefArrayPrefixItems(@javax.annotation.Nullable List refArrayPrefixItems) { this.refArrayPrefixItems = refArrayPrefixItems; } diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/ArrayOfSameRef.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/ArrayOfSameRef.java index 3de3c5745021..9e134f73dee1 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/ArrayOfSameRef.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/ArrayOfSameRef.java @@ -55,20 +55,23 @@ public class ArrayOfSameRef { public static final String SERIALIZED_NAME_ARRAY_FOO_ONE = "arrayFooOne"; @SerializedName(SERIALIZED_NAME_ARRAY_FOO_ONE) + @javax.annotation.Nullable private List arrayFooOne = new ArrayList<>(); public static final String SERIALIZED_NAME_ARRAY_FOO_TWO = "arrayFooTwo"; @SerializedName(SERIALIZED_NAME_ARRAY_FOO_TWO) + @javax.annotation.Nullable private List arrayFooTwo = new ArrayList<>(); public static final String SERIALIZED_NAME_ARRAY_FOO_THREE = "arrayFooThree"; @SerializedName(SERIALIZED_NAME_ARRAY_FOO_THREE) + @javax.annotation.Nullable private List arrayFooThree = new ArrayList<>(); public ArrayOfSameRef() { } - public ArrayOfSameRef arrayFooOne(List arrayFooOne) { + public ArrayOfSameRef arrayFooOne(@javax.annotation.Nullable List arrayFooOne) { this.arrayFooOne = arrayFooOne; return this; } @@ -90,12 +93,12 @@ public List getArrayFooOne() { return arrayFooOne; } - public void setArrayFooOne(List arrayFooOne) { + public void setArrayFooOne(@javax.annotation.Nullable List arrayFooOne) { this.arrayFooOne = arrayFooOne; } - public ArrayOfSameRef arrayFooTwo(List arrayFooTwo) { + public ArrayOfSameRef arrayFooTwo(@javax.annotation.Nullable List arrayFooTwo) { this.arrayFooTwo = arrayFooTwo; return this; } @@ -117,12 +120,12 @@ public List getArrayFooTwo() { return arrayFooTwo; } - public void setArrayFooTwo(List arrayFooTwo) { + public void setArrayFooTwo(@javax.annotation.Nullable List arrayFooTwo) { this.arrayFooTwo = arrayFooTwo; } - public ArrayOfSameRef arrayFooThree(List arrayFooThree) { + public ArrayOfSameRef arrayFooThree(@javax.annotation.Nullable List arrayFooThree) { this.arrayFooThree = arrayFooThree; return this; } @@ -144,7 +147,7 @@ public List getArrayFooThree() { return arrayFooThree; } - public void setArrayFooThree(List arrayFooThree) { + public void setArrayFooThree(@javax.annotation.Nullable List arrayFooThree) { this.arrayFooThree = arrayFooThree; } diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Cat.java index 04b3bd403235..2ab3347a2033 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Cat.java @@ -53,13 +53,14 @@ public class Cat extends Animal { public static final String SERIALIZED_NAME_DECLAWED = "declawed"; @SerializedName(SERIALIZED_NAME_DECLAWED) + @javax.annotation.Nullable private Boolean declawed; public Cat() { this.className = this.getClass().getSimpleName(); } - public Cat declawed(Boolean declawed) { + public Cat declawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -73,7 +74,7 @@ public Boolean getDeclawed() { return declawed; } - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Category.java index 86a8a954b77d..048605dddfa7 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Category.java @@ -52,16 +52,18 @@ public class Category { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public Category() { } - public Category id(Long id) { + public Category id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -75,12 +77,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -94,7 +96,7 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference1.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference1.java index ef93573113a6..03920e55a8a5 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference1.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference1.java @@ -53,12 +53,13 @@ public class CircularReference1 { public static final String SERIALIZED_NAME_PROP1 = "prop1"; @SerializedName(SERIALIZED_NAME_PROP1) + @javax.annotation.Nullable private CircularReference2 prop1; public CircularReference1() { } - public CircularReference1 prop1(CircularReference2 prop1) { + public CircularReference1 prop1(@javax.annotation.Nullable CircularReference2 prop1) { this.prop1 = prop1; return this; } @@ -72,7 +73,7 @@ public CircularReference2 getProp1() { return prop1; } - public void setProp1(CircularReference2 prop1) { + public void setProp1(@javax.annotation.Nullable CircularReference2 prop1) { this.prop1 = prop1; } diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference2.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference2.java index c85f14f335aa..bbfcd9d6c024 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference2.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference2.java @@ -53,12 +53,13 @@ public class CircularReference2 { public static final String SERIALIZED_NAME_PROP1 = "prop1"; @SerializedName(SERIALIZED_NAME_PROP1) + @javax.annotation.Nullable private CircularReference3 prop1; public CircularReference2() { } - public CircularReference2 prop1(CircularReference3 prop1) { + public CircularReference2 prop1(@javax.annotation.Nullable CircularReference3 prop1) { this.prop1 = prop1; return this; } @@ -72,7 +73,7 @@ public CircularReference3 getProp1() { return prop1; } - public void setProp1(CircularReference3 prop1) { + public void setProp1(@javax.annotation.Nullable CircularReference3 prop1) { this.prop1 = prop1; } diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference3.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference3.java index 343d9580c1b8..ffe05f2e6a30 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference3.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference3.java @@ -53,12 +53,13 @@ public class CircularReference3 { public static final String SERIALIZED_NAME_PROP1 = "prop1"; @SerializedName(SERIALIZED_NAME_PROP1) + @javax.annotation.Nullable private CircularReference1 prop1; public CircularReference3() { } - public CircularReference3 prop1(CircularReference1 prop1) { + public CircularReference3 prop1(@javax.annotation.Nullable CircularReference1 prop1) { this.prop1 = prop1; return this; } @@ -72,7 +73,7 @@ public CircularReference1 getProp1() { return prop1; } - public void setProp1(CircularReference1 prop1) { + public void setProp1(@javax.annotation.Nullable CircularReference1 prop1) { this.prop1 = prop1; } diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Dog.java index 3f4d28ed40e8..cbb119066106 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Dog.java @@ -53,13 +53,14 @@ public class Dog extends Animal { public static final String SERIALIZED_NAME_BREED = "breed"; @SerializedName(SERIALIZED_NAME_BREED) + @javax.annotation.Nullable private String breed; public Dog() { this.className = this.getClass().getSimpleName(); } - public Dog breed(String breed) { + public Dog breed(@javax.annotation.Nullable String breed) { this.breed = breed; return this; } @@ -73,7 +74,7 @@ public String getBreed() { return breed; } - public void setBreed(String breed) { + public void setBreed(@javax.annotation.Nullable String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 11a4141a974e..d2a27c6c6837 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -52,20 +52,23 @@ public class ModelApiResponse { public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) + @javax.annotation.Nullable private Integer code; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @javax.annotation.Nullable private String type; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable private String message; public ModelApiResponse() { } - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@javax.annotation.Nullable Integer code) { this.code = code; return this; } @@ -79,12 +82,12 @@ public Integer getCode() { return code; } - public void setCode(Integer code) { + public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@javax.annotation.Nullable String type) { this.type = type; return this; } @@ -98,12 +101,12 @@ public String getType() { return type; } - public void setType(String type) { + public void setType(@javax.annotation.Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@javax.annotation.Nullable String message) { this.message = message; return this; } @@ -117,7 +120,7 @@ public String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Order.java index 3fcd7b3d46c2..9628ffe11739 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Order.java @@ -53,18 +53,22 @@ public class Order { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_PET_ID = "petId"; @SerializedName(SERIALIZED_NAME_PET_ID) + @javax.annotation.Nullable private Long petId; public static final String SERIALIZED_NAME_QUANTITY = "quantity"; @SerializedName(SERIALIZED_NAME_QUANTITY) + @javax.annotation.Nullable private Integer quantity; public static final String SERIALIZED_NAME_SHIP_DATE = "shipDate"; @SerializedName(SERIALIZED_NAME_SHIP_DATE) + @javax.annotation.Nullable private OffsetDateTime shipDate; /** @@ -123,16 +127,18 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable private StatusEnum status; public static final String SERIALIZED_NAME_COMPLETE = "complete"; @SerializedName(SERIALIZED_NAME_COMPLETE) + @javax.annotation.Nullable private Boolean complete = false; public Order() { } - public Order id(Long id) { + public Order id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -146,12 +152,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@javax.annotation.Nullable Long petId) { this.petId = petId; return this; } @@ -165,12 +171,12 @@ public Long getPetId() { return petId; } - public void setPetId(Long petId) { + public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -184,12 +190,12 @@ public Integer getQuantity() { return quantity; } - public void setQuantity(Integer quantity) { + public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -203,12 +209,12 @@ public OffsetDateTime getShipDate() { return shipDate; } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; } @@ -222,12 +228,12 @@ public StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } - public Order complete(Boolean complete) { + public Order complete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; return this; } @@ -241,7 +247,7 @@ public Boolean getComplete() { return complete; } - public void setComplete(Boolean complete) { + public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Pet.java index 257977207f2c..601ef1b527ea 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Pet.java @@ -56,22 +56,27 @@ public class Pet { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_CATEGORY = "category"; @SerializedName(SERIALIZED_NAME_CATEGORY) + @javax.annotation.Nullable private Category category; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; @SerializedName(SERIALIZED_NAME_PHOTO_URLS) + @javax.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** @@ -131,12 +136,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_STATUS = "status"; @Deprecated @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable private StatusEnum status; public Pet() { } - public Pet id(Long id) { + public Pet id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -150,12 +156,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@javax.annotation.Nullable Category category) { this.category = category; return this; } @@ -169,12 +175,12 @@ public Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; } - public Pet name(String name) { + public Pet name(@javax.annotation.Nonnull String name) { this.name = name; return this; } @@ -188,12 +194,12 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } - public Pet photoUrls(List photoUrls) { + public Pet photoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; return this; } @@ -215,12 +221,12 @@ public List getPhotoUrls() { return photoUrls; } - public void setPhotoUrls(List photoUrls) { + public void setPhotoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; } - public Pet tags(List tags) { + public Pet tags(@javax.annotation.Nullable List tags) { this.tags = tags; return this; } @@ -242,13 +248,13 @@ public List getTags() { return tags; } - public void setTags(List tags) { + public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; } @Deprecated - public Pet status(StatusEnum status) { + public Pet status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; } @@ -265,7 +271,7 @@ public StatusEnum getStatus() { } @Deprecated - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/SimpleModelWithArrayProperty.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/SimpleModelWithArrayProperty.java index ed23e15635a2..ea2064b30c4c 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/SimpleModelWithArrayProperty.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/SimpleModelWithArrayProperty.java @@ -54,12 +54,13 @@ public class SimpleModelWithArrayProperty { public static final String SERIALIZED_NAME_ARRAY_OF_STRINGS = "arrayOfStrings"; @SerializedName(SERIALIZED_NAME_ARRAY_OF_STRINGS) + @javax.annotation.Nonnull private List arrayOfStrings = new ArrayList<>(); public SimpleModelWithArrayProperty() { } - public SimpleModelWithArrayProperty arrayOfStrings(List arrayOfStrings) { + public SimpleModelWithArrayProperty arrayOfStrings(@javax.annotation.Nonnull List arrayOfStrings) { this.arrayOfStrings = arrayOfStrings; return this; } @@ -81,7 +82,7 @@ public List getArrayOfStrings() { return arrayOfStrings; } - public void setArrayOfStrings(List arrayOfStrings) { + public void setArrayOfStrings(@javax.annotation.Nonnull List arrayOfStrings) { this.arrayOfStrings = arrayOfStrings; } diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Tag.java index c3c7cb4c7f6d..813926b4eb7b 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Tag.java @@ -52,16 +52,18 @@ public class Tag { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public Tag() { } - public Tag id(Long id) { + public Tag id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -75,12 +77,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -94,7 +96,7 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/User.java index bf055dc30d78..27676f95456e 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/User.java @@ -52,40 +52,48 @@ public class User { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_USERNAME = "username"; @SerializedName(SERIALIZED_NAME_USERNAME) + @javax.annotation.Nullable private String username; public static final String SERIALIZED_NAME_FIRST_NAME = "firstName"; @SerializedName(SERIALIZED_NAME_FIRST_NAME) + @javax.annotation.Nullable private String firstName; public static final String SERIALIZED_NAME_LAST_NAME = "lastName"; @SerializedName(SERIALIZED_NAME_LAST_NAME) + @javax.annotation.Nullable private String lastName; public static final String SERIALIZED_NAME_EMAIL = "email"; @SerializedName(SERIALIZED_NAME_EMAIL) + @javax.annotation.Nullable private String email; public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) + @javax.annotation.Nullable private String password; public static final String SERIALIZED_NAME_PHONE = "phone"; @SerializedName(SERIALIZED_NAME_PHONE) + @javax.annotation.Nullable private String phone; public static final String SERIALIZED_NAME_USER_STATUS = "userStatus"; @SerializedName(SERIALIZED_NAME_USER_STATUS) + @javax.annotation.Nullable private Integer userStatus; public User() { } - public User id(Long id) { + public User id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -99,12 +107,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@javax.annotation.Nullable String username) { this.username = username; return this; } @@ -118,12 +126,12 @@ public String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@javax.annotation.Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; return this; } @@ -137,12 +145,12 @@ public String getFirstName() { return firstName; } - public void setFirstName(String firstName) { + public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; return this; } @@ -156,12 +164,12 @@ public String getLastName() { return lastName; } - public void setLastName(String lastName) { + public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@javax.annotation.Nullable String email) { this.email = email; return this; } @@ -175,12 +183,12 @@ public String getEmail() { return email; } - public void setEmail(String email) { + public void setEmail(@javax.annotation.Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@javax.annotation.Nullable String password) { this.password = password; return this; } @@ -194,12 +202,12 @@ public String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@javax.annotation.Nullable String phone) { this.phone = phone; return this; } @@ -213,12 +221,12 @@ public String getPhone() { return phone; } - public void setPhone(String phone) { + public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -232,7 +240,7 @@ public Integer getUserStatus() { return userStatus; } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Category.java index 86a8a954b77d..048605dddfa7 100644 --- a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Category.java @@ -52,16 +52,18 @@ public class Category { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public Category() { } - public Category id(Long id) { + public Category id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -75,12 +77,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -94,7 +96,7 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 11a4141a974e..d2a27c6c6837 100644 --- a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -52,20 +52,23 @@ public class ModelApiResponse { public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) + @javax.annotation.Nullable private Integer code; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @javax.annotation.Nullable private String type; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable private String message; public ModelApiResponse() { } - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@javax.annotation.Nullable Integer code) { this.code = code; return this; } @@ -79,12 +82,12 @@ public Integer getCode() { return code; } - public void setCode(Integer code) { + public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@javax.annotation.Nullable String type) { this.type = type; return this; } @@ -98,12 +101,12 @@ public String getType() { return type; } - public void setType(String type) { + public void setType(@javax.annotation.Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@javax.annotation.Nullable String message) { this.message = message; return this; } @@ -117,7 +120,7 @@ public String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } diff --git a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Order.java index 3fcd7b3d46c2..9628ffe11739 100644 --- a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Order.java @@ -53,18 +53,22 @@ public class Order { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_PET_ID = "petId"; @SerializedName(SERIALIZED_NAME_PET_ID) + @javax.annotation.Nullable private Long petId; public static final String SERIALIZED_NAME_QUANTITY = "quantity"; @SerializedName(SERIALIZED_NAME_QUANTITY) + @javax.annotation.Nullable private Integer quantity; public static final String SERIALIZED_NAME_SHIP_DATE = "shipDate"; @SerializedName(SERIALIZED_NAME_SHIP_DATE) + @javax.annotation.Nullable private OffsetDateTime shipDate; /** @@ -123,16 +127,18 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable private StatusEnum status; public static final String SERIALIZED_NAME_COMPLETE = "complete"; @SerializedName(SERIALIZED_NAME_COMPLETE) + @javax.annotation.Nullable private Boolean complete = false; public Order() { } - public Order id(Long id) { + public Order id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -146,12 +152,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@javax.annotation.Nullable Long petId) { this.petId = petId; return this; } @@ -165,12 +171,12 @@ public Long getPetId() { return petId; } - public void setPetId(Long petId) { + public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -184,12 +190,12 @@ public Integer getQuantity() { return quantity; } - public void setQuantity(Integer quantity) { + public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -203,12 +209,12 @@ public OffsetDateTime getShipDate() { return shipDate; } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; } @@ -222,12 +228,12 @@ public StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } - public Order complete(Boolean complete) { + public Order complete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; return this; } @@ -241,7 +247,7 @@ public Boolean getComplete() { return complete; } - public void setComplete(Boolean complete) { + public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Pet.java index 257977207f2c..601ef1b527ea 100644 --- a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Pet.java @@ -56,22 +56,27 @@ public class Pet { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_CATEGORY = "category"; @SerializedName(SERIALIZED_NAME_CATEGORY) + @javax.annotation.Nullable private Category category; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; @SerializedName(SERIALIZED_NAME_PHOTO_URLS) + @javax.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** @@ -131,12 +136,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_STATUS = "status"; @Deprecated @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable private StatusEnum status; public Pet() { } - public Pet id(Long id) { + public Pet id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -150,12 +156,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@javax.annotation.Nullable Category category) { this.category = category; return this; } @@ -169,12 +175,12 @@ public Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; } - public Pet name(String name) { + public Pet name(@javax.annotation.Nonnull String name) { this.name = name; return this; } @@ -188,12 +194,12 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } - public Pet photoUrls(List photoUrls) { + public Pet photoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; return this; } @@ -215,12 +221,12 @@ public List getPhotoUrls() { return photoUrls; } - public void setPhotoUrls(List photoUrls) { + public void setPhotoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; } - public Pet tags(List tags) { + public Pet tags(@javax.annotation.Nullable List tags) { this.tags = tags; return this; } @@ -242,13 +248,13 @@ public List getTags() { return tags; } - public void setTags(List tags) { + public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; } @Deprecated - public Pet status(StatusEnum status) { + public Pet status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; } @@ -265,7 +271,7 @@ public StatusEnum getStatus() { } @Deprecated - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Tag.java index c3c7cb4c7f6d..813926b4eb7b 100644 --- a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Tag.java @@ -52,16 +52,18 @@ public class Tag { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public Tag() { } - public Tag id(Long id) { + public Tag id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -75,12 +77,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -94,7 +96,7 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/User.java index bf055dc30d78..27676f95456e 100644 --- a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/User.java @@ -52,40 +52,48 @@ public class User { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_USERNAME = "username"; @SerializedName(SERIALIZED_NAME_USERNAME) + @javax.annotation.Nullable private String username; public static final String SERIALIZED_NAME_FIRST_NAME = "firstName"; @SerializedName(SERIALIZED_NAME_FIRST_NAME) + @javax.annotation.Nullable private String firstName; public static final String SERIALIZED_NAME_LAST_NAME = "lastName"; @SerializedName(SERIALIZED_NAME_LAST_NAME) + @javax.annotation.Nullable private String lastName; public static final String SERIALIZED_NAME_EMAIL = "email"; @SerializedName(SERIALIZED_NAME_EMAIL) + @javax.annotation.Nullable private String email; public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) + @javax.annotation.Nullable private String password; public static final String SERIALIZED_NAME_PHONE = "phone"; @SerializedName(SERIALIZED_NAME_PHONE) + @javax.annotation.Nullable private String phone; public static final String SERIALIZED_NAME_USER_STATUS = "userStatus"; @SerializedName(SERIALIZED_NAME_USER_STATUS) + @javax.annotation.Nullable private Integer userStatus; public User() { } - public User id(Long id) { + public User id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -99,12 +107,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@javax.annotation.Nullable String username) { this.username = username; return this; } @@ -118,12 +126,12 @@ public String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@javax.annotation.Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; return this; } @@ -137,12 +145,12 @@ public String getFirstName() { return firstName; } - public void setFirstName(String firstName) { + public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; return this; } @@ -156,12 +164,12 @@ public String getLastName() { return lastName; } - public void setLastName(String lastName) { + public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@javax.annotation.Nullable String email) { this.email = email; return this; } @@ -175,12 +183,12 @@ public String getEmail() { return email; } - public void setEmail(String email) { + public void setEmail(@javax.annotation.Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@javax.annotation.Nullable String password) { this.password = password; return this; } @@ -194,12 +202,12 @@ public String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@javax.annotation.Nullable String phone) { this.phone = phone; return this; } @@ -213,12 +221,12 @@ public String getPhone() { return phone; } - public void setPhone(String phone) { + public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -232,7 +240,7 @@ public Integer getUserStatus() { return userStatus; } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index 9ad82e0aff10..be8adfb02b02 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -52,12 +52,13 @@ public class AdditionalPropertiesAnyType { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public AdditionalPropertiesAnyType() { } - public AdditionalPropertiesAnyType name(String name) { + public AdditionalPropertiesAnyType name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -71,7 +72,7 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index bcd2555c8e7d..fe9a89b6dec0 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -53,12 +53,13 @@ public class AdditionalPropertiesArray { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public AdditionalPropertiesArray() { } - public AdditionalPropertiesArray name(String name) { + public AdditionalPropertiesArray name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -72,7 +73,7 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 9ee3ad40d789..eab8e0740290 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -52,12 +52,13 @@ public class AdditionalPropertiesBoolean { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public AdditionalPropertiesBoolean() { } - public AdditionalPropertiesBoolean name(String name) { + public AdditionalPropertiesBoolean name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -71,7 +72,7 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index ccb1aebb5903..79f2cce26f9b 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -56,52 +56,63 @@ public class AdditionalPropertiesClass { public static final String SERIALIZED_NAME_MAP_STRING = "map_string"; @SerializedName(SERIALIZED_NAME_MAP_STRING) + @javax.annotation.Nullable private Map mapString = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_NUMBER = "map_number"; @SerializedName(SERIALIZED_NAME_MAP_NUMBER) + @javax.annotation.Nullable private Map mapNumber = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_INTEGER = "map_integer"; @SerializedName(SERIALIZED_NAME_MAP_INTEGER) + @javax.annotation.Nullable private Map mapInteger = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_BOOLEAN = "map_boolean"; @SerializedName(SERIALIZED_NAME_MAP_BOOLEAN) + @javax.annotation.Nullable private Map mapBoolean = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_ARRAY_INTEGER = "map_array_integer"; @SerializedName(SERIALIZED_NAME_MAP_ARRAY_INTEGER) + @javax.annotation.Nullable private Map> mapArrayInteger = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_ARRAY_ANYTYPE = "map_array_anytype"; @SerializedName(SERIALIZED_NAME_MAP_ARRAY_ANYTYPE) + @javax.annotation.Nullable private Map> mapArrayAnytype = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_MAP_STRING = "map_map_string"; @SerializedName(SERIALIZED_NAME_MAP_MAP_STRING) + @javax.annotation.Nullable private Map> mapMapString = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_MAP_ANYTYPE = "map_map_anytype"; @SerializedName(SERIALIZED_NAME_MAP_MAP_ANYTYPE) + @javax.annotation.Nullable private Map> mapMapAnytype = new HashMap<>(); public static final String SERIALIZED_NAME_ANYTYPE1 = "anytype_1"; @SerializedName(SERIALIZED_NAME_ANYTYPE1) + @javax.annotation.Nullable private Object anytype1; public static final String SERIALIZED_NAME_ANYTYPE2 = "anytype_2"; @SerializedName(SERIALIZED_NAME_ANYTYPE2) + @javax.annotation.Nullable private Object anytype2; public static final String SERIALIZED_NAME_ANYTYPE3 = "anytype_3"; @SerializedName(SERIALIZED_NAME_ANYTYPE3) + @javax.annotation.Nullable private Object anytype3; public AdditionalPropertiesClass() { } - public AdditionalPropertiesClass mapString(Map mapString) { + public AdditionalPropertiesClass mapString(@javax.annotation.Nullable Map mapString) { this.mapString = mapString; return this; } @@ -123,12 +134,12 @@ public Map getMapString() { return mapString; } - public void setMapString(Map mapString) { + public void setMapString(@javax.annotation.Nullable Map mapString) { this.mapString = mapString; } - public AdditionalPropertiesClass mapNumber(Map mapNumber) { + public AdditionalPropertiesClass mapNumber(@javax.annotation.Nullable Map mapNumber) { this.mapNumber = mapNumber; return this; } @@ -150,12 +161,12 @@ public Map getMapNumber() { return mapNumber; } - public void setMapNumber(Map mapNumber) { + public void setMapNumber(@javax.annotation.Nullable Map mapNumber) { this.mapNumber = mapNumber; } - public AdditionalPropertiesClass mapInteger(Map mapInteger) { + public AdditionalPropertiesClass mapInteger(@javax.annotation.Nullable Map mapInteger) { this.mapInteger = mapInteger; return this; } @@ -177,12 +188,12 @@ public Map getMapInteger() { return mapInteger; } - public void setMapInteger(Map mapInteger) { + public void setMapInteger(@javax.annotation.Nullable Map mapInteger) { this.mapInteger = mapInteger; } - public AdditionalPropertiesClass mapBoolean(Map mapBoolean) { + public AdditionalPropertiesClass mapBoolean(@javax.annotation.Nullable Map mapBoolean) { this.mapBoolean = mapBoolean; return this; } @@ -204,12 +215,12 @@ public Map getMapBoolean() { return mapBoolean; } - public void setMapBoolean(Map mapBoolean) { + public void setMapBoolean(@javax.annotation.Nullable Map mapBoolean) { this.mapBoolean = mapBoolean; } - public AdditionalPropertiesClass mapArrayInteger(Map> mapArrayInteger) { + public AdditionalPropertiesClass mapArrayInteger(@javax.annotation.Nullable Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; return this; } @@ -231,12 +242,12 @@ public Map> getMapArrayInteger() { return mapArrayInteger; } - public void setMapArrayInteger(Map> mapArrayInteger) { + public void setMapArrayInteger(@javax.annotation.Nullable Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; } - public AdditionalPropertiesClass mapArrayAnytype(Map> mapArrayAnytype) { + public AdditionalPropertiesClass mapArrayAnytype(@javax.annotation.Nullable Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; return this; } @@ -258,12 +269,12 @@ public Map> getMapArrayAnytype() { return mapArrayAnytype; } - public void setMapArrayAnytype(Map> mapArrayAnytype) { + public void setMapArrayAnytype(@javax.annotation.Nullable Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; } - public AdditionalPropertiesClass mapMapString(Map> mapMapString) { + public AdditionalPropertiesClass mapMapString(@javax.annotation.Nullable Map> mapMapString) { this.mapMapString = mapMapString; return this; } @@ -285,12 +296,12 @@ public Map> getMapMapString() { return mapMapString; } - public void setMapMapString(Map> mapMapString) { + public void setMapMapString(@javax.annotation.Nullable Map> mapMapString) { this.mapMapString = mapMapString; } - public AdditionalPropertiesClass mapMapAnytype(Map> mapMapAnytype) { + public AdditionalPropertiesClass mapMapAnytype(@javax.annotation.Nullable Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; return this; } @@ -312,12 +323,12 @@ public Map> getMapMapAnytype() { return mapMapAnytype; } - public void setMapMapAnytype(Map> mapMapAnytype) { + public void setMapMapAnytype(@javax.annotation.Nullable Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@javax.annotation.Nullable Object anytype1) { this.anytype1 = anytype1; return this; } @@ -331,12 +342,12 @@ public Object getAnytype1() { return anytype1; } - public void setAnytype1(Object anytype1) { + public void setAnytype1(@javax.annotation.Nullable Object anytype1) { this.anytype1 = anytype1; } - public AdditionalPropertiesClass anytype2(Object anytype2) { + public AdditionalPropertiesClass anytype2(@javax.annotation.Nullable Object anytype2) { this.anytype2 = anytype2; return this; } @@ -350,12 +361,12 @@ public Object getAnytype2() { return anytype2; } - public void setAnytype2(Object anytype2) { + public void setAnytype2(@javax.annotation.Nullable Object anytype2) { this.anytype2 = anytype2; } - public AdditionalPropertiesClass anytype3(Object anytype3) { + public AdditionalPropertiesClass anytype3(@javax.annotation.Nullable Object anytype3) { this.anytype3 = anytype3; return this; } @@ -369,7 +380,7 @@ public Object getAnytype3() { return anytype3; } - public void setAnytype3(Object anytype3) { + public void setAnytype3(@javax.annotation.Nullable Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 5f5b15863358..89bdd253100f 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -52,12 +52,13 @@ public class AdditionalPropertiesInteger { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public AdditionalPropertiesInteger() { } - public AdditionalPropertiesInteger name(String name) { + public AdditionalPropertiesInteger name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -71,7 +72,7 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index a628f51b1c14..3139ead0807e 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -53,12 +53,13 @@ public class AdditionalPropertiesNumber { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public AdditionalPropertiesNumber() { } - public AdditionalPropertiesNumber name(String name) { + public AdditionalPropertiesNumber name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -72,7 +73,7 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index fd5d58cd7959..b4136c78eb88 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -53,12 +53,13 @@ public class AdditionalPropertiesObject { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public AdditionalPropertiesObject() { } - public AdditionalPropertiesObject name(String name) { + public AdditionalPropertiesObject name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -72,7 +73,7 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index e1954e1d18af..7956a44310b7 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -52,12 +52,13 @@ public class AdditionalPropertiesString { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public AdditionalPropertiesString() { } - public AdditionalPropertiesString name(String name) { + public AdditionalPropertiesString name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -71,7 +72,7 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Animal.java index dbc1a0d4a658..834ba9808720 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Animal.java @@ -52,17 +52,19 @@ public class Animal { public static final String SERIALIZED_NAME_CLASS_NAME = "className"; @SerializedName(SERIALIZED_NAME_CLASS_NAME) + @javax.annotation.Nonnull protected String className; public static final String SERIALIZED_NAME_COLOR = "color"; @SerializedName(SERIALIZED_NAME_COLOR) + @javax.annotation.Nullable private String color = "red"; public Animal() { this.className = this.getClass().getSimpleName(); } - public Animal className(String className) { + public Animal className(@javax.annotation.Nonnull String className) { this.className = className; return this; } @@ -76,12 +78,12 @@ public String getClassName() { return className; } - public void setClassName(String className) { + public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; } - public Animal color(String color) { + public Animal color(@javax.annotation.Nullable String color) { this.color = color; return this; } @@ -95,7 +97,7 @@ public String getColor() { return color; } - public void setColor(String color) { + public void setColor(@javax.annotation.Nullable String color) { this.color = color; } diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 3acaeba7cb57..434849e4beb8 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -55,12 +55,13 @@ public class ArrayOfArrayOfNumberOnly { public static final String SERIALIZED_NAME_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_NUMBER) + @javax.annotation.Nullable private List> arrayArrayNumber = new ArrayList<>(); public ArrayOfArrayOfNumberOnly() { } - public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + public ArrayOfArrayOfNumberOnly arrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; return this; } @@ -82,7 +83,7 @@ public List> getArrayArrayNumber() { return arrayArrayNumber; } - public void setArrayArrayNumber(List> arrayArrayNumber) { + public void setArrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index dd8b793f2669..74438b4f8c55 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -55,12 +55,13 @@ public class ArrayOfNumberOnly { public static final String SERIALIZED_NAME_ARRAY_NUMBER = "ArrayNumber"; @SerializedName(SERIALIZED_NAME_ARRAY_NUMBER) + @javax.annotation.Nullable private List arrayNumber = new ArrayList<>(); public ArrayOfNumberOnly() { } - public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + public ArrayOfNumberOnly arrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; return this; } @@ -82,7 +83,7 @@ public List getArrayNumber() { return arrayNumber; } - public void setArrayNumber(List arrayNumber) { + public void setArrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ArrayTest.java index e1b0e22a140f..e4a43bc954fd 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -55,20 +55,23 @@ public class ArrayTest { public static final String SERIALIZED_NAME_ARRAY_OF_STRING = "array_of_string"; @SerializedName(SERIALIZED_NAME_ARRAY_OF_STRING) + @javax.annotation.Nullable private List arrayOfString = new ArrayList<>(); public static final String SERIALIZED_NAME_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_OF_INTEGER) + @javax.annotation.Nullable private List> arrayArrayOfInteger = new ArrayList<>(); public static final String SERIALIZED_NAME_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_OF_MODEL) + @javax.annotation.Nullable private List> arrayArrayOfModel = new ArrayList<>(); public ArrayTest() { } - public ArrayTest arrayOfString(List arrayOfString) { + public ArrayTest arrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; return this; } @@ -90,12 +93,12 @@ public List getArrayOfString() { return arrayOfString; } - public void setArrayOfString(List arrayOfString) { + public void setArrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; } - public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + public ArrayTest arrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; return this; } @@ -117,12 +120,12 @@ public List> getArrayArrayOfInteger() { return arrayArrayOfInteger; } - public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { + public void setArrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } - public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + public ArrayTest arrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; return this; } @@ -144,7 +147,7 @@ public List> getArrayArrayOfModel() { return arrayArrayOfModel; } - public void setArrayArrayOfModel(List> arrayArrayOfModel) { + public void setArrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/BigCat.java index 0d1cbbc0fa3e..1f6baf7b2e90 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/BigCat.java @@ -109,13 +109,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @javax.annotation.Nullable private KindEnum kind; public BigCat() { this.className = this.getClass().getSimpleName(); } - public BigCat kind(KindEnum kind) { + public BigCat kind(@javax.annotation.Nullable KindEnum kind) { this.kind = kind; return this; } @@ -129,7 +130,7 @@ public KindEnum getKind() { return kind; } - public void setKind(KindEnum kind) { + public void setKind(@javax.annotation.Nullable KindEnum kind) { this.kind = kind; } diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Capitalization.java index 05e669e0ee33..356ea5010c49 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Capitalization.java @@ -52,32 +52,38 @@ public class Capitalization { public static final String SERIALIZED_NAME_SMALL_CAMEL = "smallCamel"; @SerializedName(SERIALIZED_NAME_SMALL_CAMEL) + @javax.annotation.Nullable private String smallCamel; public static final String SERIALIZED_NAME_CAPITAL_CAMEL = "CapitalCamel"; @SerializedName(SERIALIZED_NAME_CAPITAL_CAMEL) + @javax.annotation.Nullable private String capitalCamel; public static final String SERIALIZED_NAME_SMALL_SNAKE = "small_Snake"; @SerializedName(SERIALIZED_NAME_SMALL_SNAKE) + @javax.annotation.Nullable private String smallSnake; public static final String SERIALIZED_NAME_CAPITAL_SNAKE = "Capital_Snake"; @SerializedName(SERIALIZED_NAME_CAPITAL_SNAKE) + @javax.annotation.Nullable private String capitalSnake; public static final String SERIALIZED_NAME_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; @SerializedName(SERIALIZED_NAME_SC_A_E_T_H_FLOW_POINTS) + @javax.annotation.Nullable private String scAETHFlowPoints; public static final String SERIALIZED_NAME_A_T_T_N_A_M_E = "ATT_NAME"; @SerializedName(SERIALIZED_NAME_A_T_T_N_A_M_E) + @javax.annotation.Nullable private String ATT_NAME; public Capitalization() { } - public Capitalization smallCamel(String smallCamel) { + public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; return this; } @@ -91,12 +97,12 @@ public String getSmallCamel() { return smallCamel; } - public void setSmallCamel(String smallCamel) { + public void setSmallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; } - public Capitalization capitalCamel(String capitalCamel) { + public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; return this; } @@ -110,12 +116,12 @@ public String getCapitalCamel() { return capitalCamel; } - public void setCapitalCamel(String capitalCamel) { + public void setCapitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; } - public Capitalization smallSnake(String smallSnake) { + public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; return this; } @@ -129,12 +135,12 @@ public String getSmallSnake() { return smallSnake; } - public void setSmallSnake(String smallSnake) { + public void setSmallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; } - public Capitalization capitalSnake(String capitalSnake) { + public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; return this; } @@ -148,12 +154,12 @@ public String getCapitalSnake() { return capitalSnake; } - public void setCapitalSnake(String capitalSnake) { + public void setCapitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; } - public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -167,12 +173,12 @@ public String getScAETHFlowPoints() { return scAETHFlowPoints; } - public void setScAETHFlowPoints(String scAETHFlowPoints) { + public void setScAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } - public Capitalization ATT_NAME(String ATT_NAME) { + public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; return this; } @@ -186,7 +192,7 @@ public String getATTNAME() { return ATT_NAME; } - public void setATTNAME(String ATT_NAME) { + public void setATTNAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Cat.java index de9625c004cb..6001a7bae44b 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Cat.java @@ -53,13 +53,14 @@ public class Cat extends Animal { public static final String SERIALIZED_NAME_DECLAWED = "declawed"; @SerializedName(SERIALIZED_NAME_DECLAWED) + @javax.annotation.Nullable private Boolean declawed; public Cat() { this.className = this.getClass().getSimpleName(); } - public Cat declawed(Boolean declawed) { + public Cat declawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -73,7 +74,7 @@ public Boolean getDeclawed() { return declawed; } - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Category.java index c16ac5124f1e..0c0e48c00501 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Category.java @@ -52,16 +52,18 @@ public class Category { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull private String name = "default-name"; public Category() { } - public Category id(Long id) { + public Category id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -75,12 +77,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@javax.annotation.Nonnull String name) { this.name = name; return this; } @@ -94,7 +96,7 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ClassModel.java index 5d6753894fc1..cb8fc82e2b41 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ClassModel.java @@ -52,12 +52,13 @@ public class ClassModel { public static final String SERIALIZED_NAME_PROPERTY_CLASS = "_class"; @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) + @javax.annotation.Nullable private String propertyClass; public ClassModel() { } - public ClassModel propertyClass(String propertyClass) { + public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -71,7 +72,7 @@ public String getPropertyClass() { return propertyClass; } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Client.java index 771ad09d1f0e..01328e508f06 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Client.java @@ -52,12 +52,13 @@ public class Client { public static final String SERIALIZED_NAME_CLIENT = "client"; @SerializedName(SERIALIZED_NAME_CLIENT) + @javax.annotation.Nullable private String client; public Client() { } - public Client client(String client) { + public Client client(@javax.annotation.Nullable String client) { this.client = client; return this; } @@ -71,7 +72,7 @@ public String getClient() { return client; } - public void setClient(String client) { + public void setClient(@javax.annotation.Nullable String client) { this.client = client; } diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Dog.java index 833fd608e79d..4f674e37a445 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Dog.java @@ -53,13 +53,14 @@ public class Dog extends Animal { public static final String SERIALIZED_NAME_BREED = "breed"; @SerializedName(SERIALIZED_NAME_BREED) + @javax.annotation.Nullable private String breed; public Dog() { this.className = this.getClass().getSimpleName(); } - public Dog breed(String breed) { + public Dog breed(@javax.annotation.Nullable String breed) { this.breed = breed; return this; } @@ -73,7 +74,7 @@ public String getBreed() { return breed; } - public void setBreed(String breed) { + public void setBreed(@javax.annotation.Nullable String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/EnumArrays.java index 02ac66a26a5b..fd66218fc3a8 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -106,6 +106,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_JUST_SYMBOL = "just_symbol"; @SerializedName(SERIALIZED_NAME_JUST_SYMBOL) + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** @@ -162,12 +163,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_ARRAY_ENUM = "array_enum"; @SerializedName(SERIALIZED_NAME_ARRAY_ENUM) + @javax.annotation.Nullable private List arrayEnum = new ArrayList<>(); public EnumArrays() { } - public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; } @@ -181,12 +183,12 @@ public JustSymbolEnum getJustSymbol() { return justSymbol; } - public void setJustSymbol(JustSymbolEnum justSymbol) { + public void setJustSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } - public EnumArrays arrayEnum(List arrayEnum) { + public EnumArrays arrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; return this; } @@ -208,7 +210,7 @@ public List getArrayEnum() { return arrayEnum; } - public void setArrayEnum(List arrayEnum) { + public void setArrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/EnumTest.java index a5792b1582b0..9e3bf9202922 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/EnumTest.java @@ -107,6 +107,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_ENUM_STRING = "enum_string"; @SerializedName(SERIALIZED_NAME_ENUM_STRING) + @javax.annotation.Nullable private EnumStringEnum enumString; /** @@ -165,6 +166,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_ENUM_STRING_REQUIRED = "enum_string_required"; @SerializedName(SERIALIZED_NAME_ENUM_STRING_REQUIRED) + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** @@ -221,6 +223,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_ENUM_INTEGER = "enum_integer"; @SerializedName(SERIALIZED_NAME_ENUM_INTEGER) + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** @@ -277,16 +280,18 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_ENUM_NUMBER = "enum_number"; @SerializedName(SERIALIZED_NAME_ENUM_NUMBER) + @javax.annotation.Nullable private EnumNumberEnum enumNumber; public static final String SERIALIZED_NAME_OUTER_ENUM = "outerEnum"; @SerializedName(SERIALIZED_NAME_OUTER_ENUM) + @javax.annotation.Nullable private OuterEnum outerEnum; public EnumTest() { } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -300,12 +305,12 @@ public EnumStringEnum getEnumString() { return enumString; } - public void setEnumString(EnumStringEnum enumString) { + public void setEnumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; } - public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; return this; } @@ -319,12 +324,12 @@ public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; } - public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public void setEnumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -338,12 +343,12 @@ public EnumIntegerEnum getEnumInteger() { return enumInteger; } - public void setEnumInteger(EnumIntegerEnum enumInteger) { + public void setEnumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } - public EnumTest enumNumber(EnumNumberEnum enumNumber) { + public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; return this; } @@ -357,12 +362,12 @@ public EnumNumberEnum getEnumNumber() { return enumNumber; } - public void setEnumNumber(EnumNumberEnum enumNumber) { + public void setEnumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } - public EnumTest outerEnum(OuterEnum outerEnum) { + public EnumTest outerEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; return this; } @@ -376,7 +381,7 @@ public OuterEnum getOuterEnum() { return outerEnum; } - public void setOuterEnum(OuterEnum outerEnum) { + public void setOuterEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 269c7cea1218..8f036fc79627 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -55,16 +55,18 @@ public class FileSchemaTestClass { public static final String SERIALIZED_NAME_FILE = "file"; @SerializedName(SERIALIZED_NAME_FILE) + @javax.annotation.Nullable private ModelFile _file; public static final String SERIALIZED_NAME_FILES = "files"; @SerializedName(SERIALIZED_NAME_FILES) + @javax.annotation.Nullable private List files = new ArrayList<>(); public FileSchemaTestClass() { } - public FileSchemaTestClass _file(ModelFile _file) { + public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { this._file = _file; return this; } @@ -78,12 +80,12 @@ public ModelFile getFile() { return _file; } - public void setFile(ModelFile _file) { + public void setFile(@javax.annotation.Nullable ModelFile _file) { this._file = _file; } - public FileSchemaTestClass files(List files) { + public FileSchemaTestClass files(@javax.annotation.Nullable List files) { this.files = files; return this; } @@ -105,7 +107,7 @@ public List getFiles() { return files; } - public void setFiles(List files) { + public void setFiles(@javax.annotation.Nullable List files) { this.files = files; } diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/FormatTest.java index 312e2f6d6306..51e6db9c84a5 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/FormatTest.java @@ -57,64 +57,78 @@ public class FormatTest { public static final String SERIALIZED_NAME_INTEGER = "integer"; @SerializedName(SERIALIZED_NAME_INTEGER) + @javax.annotation.Nullable private Integer integer; public static final String SERIALIZED_NAME_INT32 = "int32"; @SerializedName(SERIALIZED_NAME_INT32) + @javax.annotation.Nullable private Integer int32; public static final String SERIALIZED_NAME_INT64 = "int64"; @SerializedName(SERIALIZED_NAME_INT64) + @javax.annotation.Nullable private Long int64; public static final String SERIALIZED_NAME_NUMBER = "number"; @SerializedName(SERIALIZED_NAME_NUMBER) + @javax.annotation.Nonnull private BigDecimal number; public static final String SERIALIZED_NAME_FLOAT = "float"; @SerializedName(SERIALIZED_NAME_FLOAT) + @javax.annotation.Nullable private Float _float; public static final String SERIALIZED_NAME_DOUBLE = "double"; @SerializedName(SERIALIZED_NAME_DOUBLE) + @javax.annotation.Nullable private Double _double; public static final String SERIALIZED_NAME_STRING = "string"; @SerializedName(SERIALIZED_NAME_STRING) + @javax.annotation.Nullable private String string; public static final String SERIALIZED_NAME_BYTE = "byte"; @SerializedName(SERIALIZED_NAME_BYTE) + @javax.annotation.Nonnull private byte[] _byte; public static final String SERIALIZED_NAME_BINARY = "binary"; @SerializedName(SERIALIZED_NAME_BINARY) + @javax.annotation.Nullable private File binary; public static final String SERIALIZED_NAME_DATE = "date"; @SerializedName(SERIALIZED_NAME_DATE) + @javax.annotation.Nonnull private LocalDate date; public static final String SERIALIZED_NAME_DATE_TIME = "dateTime"; @SerializedName(SERIALIZED_NAME_DATE_TIME) + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) + @javax.annotation.Nullable private UUID uuid; public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) + @javax.annotation.Nonnull private String password; public static final String SERIALIZED_NAME_BIG_DECIMAL = "BigDecimal"; @SerializedName(SERIALIZED_NAME_BIG_DECIMAL) + @javax.annotation.Nullable private BigDecimal bigDecimal; public FormatTest() { } - public FormatTest integer(Integer integer) { + public FormatTest integer(@javax.annotation.Nullable Integer integer) { this.integer = integer; return this; } @@ -130,12 +144,12 @@ public Integer getInteger() { return integer; } - public void setInteger(Integer integer) { + public void setInteger(@javax.annotation.Nullable Integer integer) { this.integer = integer; } - public FormatTest int32(Integer int32) { + public FormatTest int32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; return this; } @@ -151,12 +165,12 @@ public Integer getInt32() { return int32; } - public void setInt32(Integer int32) { + public void setInt32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; } - public FormatTest int64(Long int64) { + public FormatTest int64(@javax.annotation.Nullable Long int64) { this.int64 = int64; return this; } @@ -170,12 +184,12 @@ public Long getInt64() { return int64; } - public void setInt64(Long int64) { + public void setInt64(@javax.annotation.Nullable Long int64) { this.int64 = int64; } - public FormatTest number(BigDecimal number) { + public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { this.number = number; return this; } @@ -191,12 +205,12 @@ public BigDecimal getNumber() { return number; } - public void setNumber(BigDecimal number) { + public void setNumber(@javax.annotation.Nonnull BigDecimal number) { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@javax.annotation.Nullable Float _float) { this._float = _float; return this; } @@ -212,12 +226,12 @@ public Float getFloat() { return _float; } - public void setFloat(Float _float) { + public void setFloat(@javax.annotation.Nullable Float _float) { this._float = _float; } - public FormatTest _double(Double _double) { + public FormatTest _double(@javax.annotation.Nullable Double _double) { this._double = _double; return this; } @@ -233,12 +247,12 @@ public Double getDouble() { return _double; } - public void setDouble(Double _double) { + public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; } - public FormatTest string(String string) { + public FormatTest string(@javax.annotation.Nullable String string) { this.string = string; return this; } @@ -252,12 +266,12 @@ public String getString() { return string; } - public void setString(String string) { + public void setString(@javax.annotation.Nullable String string) { this.string = string; } - public FormatTest _byte(byte[] _byte) { + public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; return this; } @@ -271,12 +285,12 @@ public byte[] getByte() { return _byte; } - public void setByte(byte[] _byte) { + public void setByte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; } - public FormatTest binary(File binary) { + public FormatTest binary(@javax.annotation.Nullable File binary) { this.binary = binary; return this; } @@ -290,12 +304,12 @@ public File getBinary() { return binary; } - public void setBinary(File binary) { + public void setBinary(@javax.annotation.Nullable File binary) { this.binary = binary; } - public FormatTest date(LocalDate date) { + public FormatTest date(@javax.annotation.Nonnull LocalDate date) { this.date = date; return this; } @@ -309,12 +323,12 @@ public LocalDate getDate() { return date; } - public void setDate(LocalDate date) { + public void setDate(@javax.annotation.Nonnull LocalDate date) { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -328,12 +342,12 @@ public OffsetDateTime getDateTime() { return dateTime; } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public FormatTest uuid(UUID uuid) { + public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -347,12 +361,12 @@ public UUID getUuid() { return uuid; } - public void setUuid(UUID uuid) { + public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public FormatTest password(String password) { + public FormatTest password(@javax.annotation.Nonnull String password) { this.password = password; return this; } @@ -366,12 +380,12 @@ public String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nonnull String password) { this.password = password; } - public FormatTest bigDecimal(BigDecimal bigDecimal) { + public FormatTest bigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; } @@ -385,7 +399,7 @@ public BigDecimal getBigDecimal() { return bigDecimal; } - public void setBigDecimal(BigDecimal bigDecimal) { + public void setBigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index ab4695400ea3..dba9cb5ff3c8 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -52,10 +52,12 @@ public class HasOnlyReadOnly { public static final String SERIALIZED_NAME_BAR = "bar"; @SerializedName(SERIALIZED_NAME_BAR) + @javax.annotation.Nullable private String bar; public static final String SERIALIZED_NAME_FOO = "foo"; @SerializedName(SERIALIZED_NAME_FOO) + @javax.annotation.Nullable private String foo; public HasOnlyReadOnly() { diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/MapTest.java index b8d9cdfbe8dd..5d70a1e40bc7 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/MapTest.java @@ -54,6 +54,7 @@ public class MapTest { public static final String SERIALIZED_NAME_MAP_MAP_OF_STRING = "map_map_of_string"; @SerializedName(SERIALIZED_NAME_MAP_MAP_OF_STRING) + @javax.annotation.Nullable private Map> mapMapOfString = new HashMap<>(); /** @@ -110,20 +111,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_MAP_OF_ENUM_STRING = "map_of_enum_string"; @SerializedName(SERIALIZED_NAME_MAP_OF_ENUM_STRING) + @javax.annotation.Nullable private Map mapOfEnumString = new HashMap<>(); public static final String SERIALIZED_NAME_DIRECT_MAP = "direct_map"; @SerializedName(SERIALIZED_NAME_DIRECT_MAP) + @javax.annotation.Nullable private Map directMap = new HashMap<>(); public static final String SERIALIZED_NAME_INDIRECT_MAP = "indirect_map"; @SerializedName(SERIALIZED_NAME_INDIRECT_MAP) + @javax.annotation.Nullable private Map indirectMap = new HashMap<>(); public MapTest() { } - public MapTest mapMapOfString(Map> mapMapOfString) { + public MapTest mapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; return this; } @@ -145,12 +149,12 @@ public Map> getMapMapOfString() { return mapMapOfString; } - public void setMapMapOfString(Map> mapMapOfString) { + public void setMapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } - public MapTest mapOfEnumString(Map mapOfEnumString) { + public MapTest mapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; return this; } @@ -172,12 +176,12 @@ public Map getMapOfEnumString() { return mapOfEnumString; } - public void setMapOfEnumString(Map mapOfEnumString) { + public void setMapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } - public MapTest directMap(Map directMap) { + public MapTest directMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; return this; } @@ -199,12 +203,12 @@ public Map getDirectMap() { return directMap; } - public void setDirectMap(Map directMap) { + public void setDirectMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; } - public MapTest indirectMap(Map indirectMap) { + public MapTest indirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; return this; } @@ -226,7 +230,7 @@ public Map getIndirectMap() { return indirectMap; } - public void setIndirectMap(Map indirectMap) { + public void setIndirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 7337705e1fed..162c720a6b6f 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -57,20 +57,23 @@ public class MixedPropertiesAndAdditionalPropertiesClass { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) + @javax.annotation.Nullable private UUID uuid; public static final String SERIALIZED_NAME_DATE_TIME = "dateTime"; @SerializedName(SERIALIZED_NAME_DATE_TIME) + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String SERIALIZED_NAME_MAP = "map"; @SerializedName(SERIALIZED_NAME_MAP) + @javax.annotation.Nullable private Map map = new HashMap<>(); public MixedPropertiesAndAdditionalPropertiesClass() { } - public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -84,12 +87,12 @@ public UUID getUuid() { return uuid; } - public void setUuid(UUID uuid) { + public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -103,12 +106,12 @@ public OffsetDateTime getDateTime() { return dateTime; } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + public MixedPropertiesAndAdditionalPropertiesClass map(@javax.annotation.Nullable Map map) { this.map = map; return this; } @@ -130,7 +133,7 @@ public Map getMap() { return map; } - public void setMap(Map map) { + public void setMap(@javax.annotation.Nullable Map map) { this.map = map; } diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Model200Response.java index 0478351f2bfa..f1f0b1ad4812 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Model200Response.java @@ -52,16 +52,18 @@ public class Model200Response { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private Integer name; public static final String SERIALIZED_NAME_PROPERTY_CLASS = "class"; @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) + @javax.annotation.Nullable private String propertyClass; public Model200Response() { } - public Model200Response name(Integer name) { + public Model200Response name(@javax.annotation.Nullable Integer name) { this.name = name; return this; } @@ -75,12 +77,12 @@ public Integer getName() { return name; } - public void setName(Integer name) { + public void setName(@javax.annotation.Nullable Integer name) { this.name = name; } - public Model200Response propertyClass(String propertyClass) { + public Model200Response propertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -94,7 +96,7 @@ public String getPropertyClass() { return propertyClass; } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ModelApiResponse.java index be1f50aa67c8..5cc41b9c2ae0 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -52,20 +52,23 @@ public class ModelApiResponse { public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) + @javax.annotation.Nullable private Integer code; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @javax.annotation.Nullable private String type; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable private String message; public ModelApiResponse() { } - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@javax.annotation.Nullable Integer code) { this.code = code; return this; } @@ -79,12 +82,12 @@ public Integer getCode() { return code; } - public void setCode(Integer code) { + public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@javax.annotation.Nullable String type) { this.type = type; return this; } @@ -98,12 +101,12 @@ public String getType() { return type; } - public void setType(String type) { + public void setType(@javax.annotation.Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@javax.annotation.Nullable String message) { this.message = message; return this; } @@ -117,7 +120,7 @@ public String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ModelFile.java index 1f6540dc7332..aff52d3058d8 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ModelFile.java @@ -52,12 +52,13 @@ public class ModelFile { public static final String SERIALIZED_NAME_SOURCE_U_R_I = "sourceURI"; @SerializedName(SERIALIZED_NAME_SOURCE_U_R_I) + @javax.annotation.Nullable private String sourceURI; public ModelFile() { } - public ModelFile sourceURI(String sourceURI) { + public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; return this; } @@ -71,7 +72,7 @@ public String getSourceURI() { return sourceURI; } - public void setSourceURI(String sourceURI) { + public void setSourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; } diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ModelList.java index 7c5ea7397c26..fb7ff8a55f24 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ModelList.java @@ -52,12 +52,13 @@ public class ModelList { public static final String SERIALIZED_NAME_123LIST = "123-list"; @SerializedName(SERIALIZED_NAME_123LIST) + @javax.annotation.Nullable private String _123list; public ModelList() { } - public ModelList _123list(String _123list) { + public ModelList _123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; return this; } @@ -71,7 +72,7 @@ public String get123list() { return _123list; } - public void set123list(String _123list) { + public void set123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; } diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ModelReturn.java index 4b0815567467..812b98ed5d1b 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -52,12 +52,13 @@ public class ModelReturn { public static final String SERIALIZED_NAME_RETURN = "return"; @SerializedName(SERIALIZED_NAME_RETURN) + @javax.annotation.Nullable private Integer _return; public ModelReturn() { } - public ModelReturn _return(Integer _return) { + public ModelReturn _return(@javax.annotation.Nullable Integer _return) { this._return = _return; return this; } @@ -71,7 +72,7 @@ public Integer getReturn() { return _return; } - public void setReturn(Integer _return) { + public void setReturn(@javax.annotation.Nullable Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Name.java index 020a164e54b9..82d61135ee97 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Name.java @@ -52,18 +52,22 @@ public class Name { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull private Integer name; public static final String SERIALIZED_NAME_SNAKE_CASE = "snake_case"; @SerializedName(SERIALIZED_NAME_SNAKE_CASE) + @javax.annotation.Nullable private Integer snakeCase; public static final String SERIALIZED_NAME_PROPERTY = "property"; @SerializedName(SERIALIZED_NAME_PROPERTY) + @javax.annotation.Nullable private String property; public static final String SERIALIZED_NAME_123NUMBER = "123Number"; @SerializedName(SERIALIZED_NAME_123NUMBER) + @javax.annotation.Nullable private Integer _123number; public Name() { @@ -78,7 +82,7 @@ public Name( this._123number = _123number; } - public Name name(Integer name) { + public Name name(@javax.annotation.Nonnull Integer name) { this.name = name; return this; } @@ -92,7 +96,7 @@ public Integer getName() { return name; } - public void setName(Integer name) { + public void setName(@javax.annotation.Nonnull Integer name) { this.name = name; } @@ -108,7 +112,7 @@ public Integer getSnakeCase() { - public Name property(String property) { + public Name property(@javax.annotation.Nullable String property) { this.property = property; return this; } @@ -122,7 +126,7 @@ public String getProperty() { return property; } - public void setProperty(String property) { + public void setProperty(@javax.annotation.Nullable String property) { this.property = property; } diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/NumberOnly.java index 25a54766b724..e7324ae91b63 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -53,12 +53,13 @@ public class NumberOnly { public static final String SERIALIZED_NAME_JUST_NUMBER = "JustNumber"; @SerializedName(SERIALIZED_NAME_JUST_NUMBER) + @javax.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } - public NumberOnly justNumber(BigDecimal justNumber) { + public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; } @@ -72,7 +73,7 @@ public BigDecimal getJustNumber() { return justNumber; } - public void setJustNumber(BigDecimal justNumber) { + public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Order.java index d02576c296c5..05da6adf70b5 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Order.java @@ -53,18 +53,22 @@ public class Order { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_PET_ID = "petId"; @SerializedName(SERIALIZED_NAME_PET_ID) + @javax.annotation.Nullable private Long petId; public static final String SERIALIZED_NAME_QUANTITY = "quantity"; @SerializedName(SERIALIZED_NAME_QUANTITY) + @javax.annotation.Nullable private Integer quantity; public static final String SERIALIZED_NAME_SHIP_DATE = "shipDate"; @SerializedName(SERIALIZED_NAME_SHIP_DATE) + @javax.annotation.Nullable private OffsetDateTime shipDate; /** @@ -123,16 +127,18 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable private StatusEnum status; public static final String SERIALIZED_NAME_COMPLETE = "complete"; @SerializedName(SERIALIZED_NAME_COMPLETE) + @javax.annotation.Nullable private Boolean complete = false; public Order() { } - public Order id(Long id) { + public Order id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -146,12 +152,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@javax.annotation.Nullable Long petId) { this.petId = petId; return this; } @@ -165,12 +171,12 @@ public Long getPetId() { return petId; } - public void setPetId(Long petId) { + public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -184,12 +190,12 @@ public Integer getQuantity() { return quantity; } - public void setQuantity(Integer quantity) { + public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -203,12 +209,12 @@ public OffsetDateTime getShipDate() { return shipDate; } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; } @@ -222,12 +228,12 @@ public StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } - public Order complete(Boolean complete) { + public Order complete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; return this; } @@ -241,7 +247,7 @@ public Boolean getComplete() { return complete; } - public void setComplete(Boolean complete) { + public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/OuterComposite.java index e9a2f4e09c2f..6898d7e63e1d 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -53,20 +53,23 @@ public class OuterComposite { public static final String SERIALIZED_NAME_MY_NUMBER = "my_number"; @SerializedName(SERIALIZED_NAME_MY_NUMBER) + @javax.annotation.Nullable private BigDecimal myNumber; public static final String SERIALIZED_NAME_MY_STRING = "my_string"; @SerializedName(SERIALIZED_NAME_MY_STRING) + @javax.annotation.Nullable private String myString; public static final String SERIALIZED_NAME_MY_BOOLEAN = "my_boolean"; @SerializedName(SERIALIZED_NAME_MY_BOOLEAN) + @javax.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } - public OuterComposite myNumber(BigDecimal myNumber) { + public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; } @@ -80,12 +83,12 @@ public BigDecimal getMyNumber() { return myNumber; } - public void setMyNumber(BigDecimal myNumber) { + public void setMyNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; } - public OuterComposite myString(String myString) { + public OuterComposite myString(@javax.annotation.Nullable String myString) { this.myString = myString; return this; } @@ -99,12 +102,12 @@ public String getMyString() { return myString; } - public void setMyString(String myString) { + public void setMyString(@javax.annotation.Nullable String myString) { this.myString = myString; } - public OuterComposite myBoolean(Boolean myBoolean) { + public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; return this; } @@ -118,7 +121,7 @@ public Boolean getMyBoolean() { return myBoolean; } - public void setMyBoolean(Boolean myBoolean) { + public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Pet.java index 8a1d56dd7ce3..8e2a2f7bf00a 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Pet.java @@ -58,22 +58,27 @@ public class Pet { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_CATEGORY = "category"; @SerializedName(SERIALIZED_NAME_CATEGORY) + @javax.annotation.Nullable private Category category; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; @SerializedName(SERIALIZED_NAME_PHOTO_URLS) + @javax.annotation.Nonnull private Set photoUrls = new LinkedHashSet<>(); public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** @@ -132,12 +137,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable private StatusEnum status; public Pet() { } - public Pet id(Long id) { + public Pet id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -151,12 +157,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@javax.annotation.Nullable Category category) { this.category = category; return this; } @@ -170,12 +176,12 @@ public Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; } - public Pet name(String name) { + public Pet name(@javax.annotation.Nonnull String name) { this.name = name; return this; } @@ -189,12 +195,12 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } - public Pet photoUrls(Set photoUrls) { + public Pet photoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; return this; } @@ -216,12 +222,12 @@ public Set getPhotoUrls() { return photoUrls; } - public void setPhotoUrls(Set photoUrls) { + public void setPhotoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; } - public Pet tags(List tags) { + public Pet tags(@javax.annotation.Nullable List tags) { this.tags = tags; return this; } @@ -243,12 +249,12 @@ public List getTags() { return tags; } - public void setTags(List tags) { + public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; } @@ -262,7 +268,7 @@ public StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 15199bdce700..63a16df115df 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -52,10 +52,12 @@ public class ReadOnlyFirst { public static final String SERIALIZED_NAME_BAR = "bar"; @SerializedName(SERIALIZED_NAME_BAR) + @javax.annotation.Nullable private String bar; public static final String SERIALIZED_NAME_BAZ = "baz"; @SerializedName(SERIALIZED_NAME_BAZ) + @javax.annotation.Nullable private String baz; public ReadOnlyFirst() { @@ -79,7 +81,7 @@ public String getBar() { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { this.baz = baz; return this; } @@ -93,7 +95,7 @@ public String getBaz() { return baz; } - public void setBaz(String baz) { + public void setBaz(@javax.annotation.Nullable String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/SpecialModelName.java index 008c028987a0..8713cd1e2aab 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -52,12 +52,13 @@ public class SpecialModelName { public static final String SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; @SerializedName(SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME) + @javax.annotation.Nullable private Long $specialPropertyName; public SpecialModelName() { } - public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + public SpecialModelName $specialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; return this; } @@ -71,7 +72,7 @@ public SpecialModelName() { return $specialPropertyName; } - public void set$SpecialPropertyName(Long $specialPropertyName) { + public void set$SpecialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Tag.java index 2d6000db9955..bac464a7f543 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Tag.java @@ -52,16 +52,18 @@ public class Tag { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public Tag() { } - public Tag id(Long id) { + public Tag id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -75,12 +77,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -94,7 +96,7 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index af7e91f1a0f6..e29bff80869d 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -55,28 +55,33 @@ public class TypeHolderDefault { public static final String SERIALIZED_NAME_STRING_ITEM = "string_item"; @SerializedName(SERIALIZED_NAME_STRING_ITEM) + @javax.annotation.Nonnull private String stringItem = "what"; public static final String SERIALIZED_NAME_NUMBER_ITEM = "number_item"; @SerializedName(SERIALIZED_NAME_NUMBER_ITEM) + @javax.annotation.Nonnull private BigDecimal numberItem; public static final String SERIALIZED_NAME_INTEGER_ITEM = "integer_item"; @SerializedName(SERIALIZED_NAME_INTEGER_ITEM) + @javax.annotation.Nonnull private Integer integerItem; public static final String SERIALIZED_NAME_BOOL_ITEM = "bool_item"; @SerializedName(SERIALIZED_NAME_BOOL_ITEM) + @javax.annotation.Nonnull private Boolean boolItem = true; public static final String SERIALIZED_NAME_ARRAY_ITEM = "array_item"; @SerializedName(SERIALIZED_NAME_ARRAY_ITEM) + @javax.annotation.Nonnull private List arrayItem = new ArrayList<>(); public TypeHolderDefault() { } - public TypeHolderDefault stringItem(String stringItem) { + public TypeHolderDefault stringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; return this; } @@ -90,12 +95,12 @@ public String getStringItem() { return stringItem; } - public void setStringItem(String stringItem) { + public void setStringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; } - public TypeHolderDefault numberItem(BigDecimal numberItem) { + public TypeHolderDefault numberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; return this; } @@ -109,12 +114,12 @@ public BigDecimal getNumberItem() { return numberItem; } - public void setNumberItem(BigDecimal numberItem) { + public void setNumberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; } - public TypeHolderDefault integerItem(Integer integerItem) { + public TypeHolderDefault integerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; return this; } @@ -128,12 +133,12 @@ public Integer getIntegerItem() { return integerItem; } - public void setIntegerItem(Integer integerItem) { + public void setIntegerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; } - public TypeHolderDefault boolItem(Boolean boolItem) { + public TypeHolderDefault boolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; return this; } @@ -147,12 +152,12 @@ public Boolean getBoolItem() { return boolItem; } - public void setBoolItem(Boolean boolItem) { + public void setBoolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; } - public TypeHolderDefault arrayItem(List arrayItem) { + public TypeHolderDefault arrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; return this; } @@ -174,7 +179,7 @@ public List getArrayItem() { return arrayItem; } - public void setArrayItem(List arrayItem) { + public void setArrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/TypeHolderExample.java index 603715e150a5..9fcd1be7d3ac 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -55,32 +55,38 @@ public class TypeHolderExample { public static final String SERIALIZED_NAME_STRING_ITEM = "string_item"; @SerializedName(SERIALIZED_NAME_STRING_ITEM) + @javax.annotation.Nonnull private String stringItem; public static final String SERIALIZED_NAME_NUMBER_ITEM = "number_item"; @SerializedName(SERIALIZED_NAME_NUMBER_ITEM) + @javax.annotation.Nonnull private BigDecimal numberItem; public static final String SERIALIZED_NAME_FLOAT_ITEM = "float_item"; @SerializedName(SERIALIZED_NAME_FLOAT_ITEM) + @javax.annotation.Nonnull private Float floatItem; public static final String SERIALIZED_NAME_INTEGER_ITEM = "integer_item"; @SerializedName(SERIALIZED_NAME_INTEGER_ITEM) + @javax.annotation.Nonnull private Integer integerItem; public static final String SERIALIZED_NAME_BOOL_ITEM = "bool_item"; @SerializedName(SERIALIZED_NAME_BOOL_ITEM) + @javax.annotation.Nonnull private Boolean boolItem; public static final String SERIALIZED_NAME_ARRAY_ITEM = "array_item"; @SerializedName(SERIALIZED_NAME_ARRAY_ITEM) + @javax.annotation.Nonnull private List arrayItem = new ArrayList<>(); public TypeHolderExample() { } - public TypeHolderExample stringItem(String stringItem) { + public TypeHolderExample stringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; return this; } @@ -94,12 +100,12 @@ public String getStringItem() { return stringItem; } - public void setStringItem(String stringItem) { + public void setStringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; } - public TypeHolderExample numberItem(BigDecimal numberItem) { + public TypeHolderExample numberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; return this; } @@ -113,12 +119,12 @@ public BigDecimal getNumberItem() { return numberItem; } - public void setNumberItem(BigDecimal numberItem) { + public void setNumberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; } - public TypeHolderExample floatItem(Float floatItem) { + public TypeHolderExample floatItem(@javax.annotation.Nonnull Float floatItem) { this.floatItem = floatItem; return this; } @@ -132,12 +138,12 @@ public Float getFloatItem() { return floatItem; } - public void setFloatItem(Float floatItem) { + public void setFloatItem(@javax.annotation.Nonnull Float floatItem) { this.floatItem = floatItem; } - public TypeHolderExample integerItem(Integer integerItem) { + public TypeHolderExample integerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; return this; } @@ -151,12 +157,12 @@ public Integer getIntegerItem() { return integerItem; } - public void setIntegerItem(Integer integerItem) { + public void setIntegerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; } - public TypeHolderExample boolItem(Boolean boolItem) { + public TypeHolderExample boolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; return this; } @@ -170,12 +176,12 @@ public Boolean getBoolItem() { return boolItem; } - public void setBoolItem(Boolean boolItem) { + public void setBoolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; } - public TypeHolderExample arrayItem(List arrayItem) { + public TypeHolderExample arrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; return this; } @@ -197,7 +203,7 @@ public List getArrayItem() { return arrayItem; } - public void setArrayItem(List arrayItem) { + public void setArrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/User.java index 391643f95f27..04edf93f9ca6 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/User.java @@ -52,40 +52,48 @@ public class User { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_USERNAME = "username"; @SerializedName(SERIALIZED_NAME_USERNAME) + @javax.annotation.Nullable private String username; public static final String SERIALIZED_NAME_FIRST_NAME = "firstName"; @SerializedName(SERIALIZED_NAME_FIRST_NAME) + @javax.annotation.Nullable private String firstName; public static final String SERIALIZED_NAME_LAST_NAME = "lastName"; @SerializedName(SERIALIZED_NAME_LAST_NAME) + @javax.annotation.Nullable private String lastName; public static final String SERIALIZED_NAME_EMAIL = "email"; @SerializedName(SERIALIZED_NAME_EMAIL) + @javax.annotation.Nullable private String email; public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) + @javax.annotation.Nullable private String password; public static final String SERIALIZED_NAME_PHONE = "phone"; @SerializedName(SERIALIZED_NAME_PHONE) + @javax.annotation.Nullable private String phone; public static final String SERIALIZED_NAME_USER_STATUS = "userStatus"; @SerializedName(SERIALIZED_NAME_USER_STATUS) + @javax.annotation.Nullable private Integer userStatus; public User() { } - public User id(Long id) { + public User id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -99,12 +107,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@javax.annotation.Nullable String username) { this.username = username; return this; } @@ -118,12 +126,12 @@ public String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@javax.annotation.Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; return this; } @@ -137,12 +145,12 @@ public String getFirstName() { return firstName; } - public void setFirstName(String firstName) { + public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; return this; } @@ -156,12 +164,12 @@ public String getLastName() { return lastName; } - public void setLastName(String lastName) { + public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@javax.annotation.Nullable String email) { this.email = email; return this; } @@ -175,12 +183,12 @@ public String getEmail() { return email; } - public void setEmail(String email) { + public void setEmail(@javax.annotation.Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@javax.annotation.Nullable String password) { this.password = password; return this; } @@ -194,12 +202,12 @@ public String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@javax.annotation.Nullable String phone) { this.phone = phone; return this; } @@ -213,12 +221,12 @@ public String getPhone() { return phone; } - public void setPhone(String phone) { + public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -232,7 +240,7 @@ public Integer getUserStatus() { return userStatus; } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/XmlItem.java index 89117fe70f99..97c65d88e9e6 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/XmlItem.java @@ -55,124 +55,153 @@ public class XmlItem { public static final String SERIALIZED_NAME_ATTRIBUTE_STRING = "attribute_string"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_STRING) + @javax.annotation.Nullable private String attributeString; public static final String SERIALIZED_NAME_ATTRIBUTE_NUMBER = "attribute_number"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_NUMBER) + @javax.annotation.Nullable private BigDecimal attributeNumber; public static final String SERIALIZED_NAME_ATTRIBUTE_INTEGER = "attribute_integer"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_INTEGER) + @javax.annotation.Nullable private Integer attributeInteger; public static final String SERIALIZED_NAME_ATTRIBUTE_BOOLEAN = "attribute_boolean"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_BOOLEAN) + @javax.annotation.Nullable private Boolean attributeBoolean; public static final String SERIALIZED_NAME_WRAPPED_ARRAY = "wrapped_array"; @SerializedName(SERIALIZED_NAME_WRAPPED_ARRAY) + @javax.annotation.Nullable private List wrappedArray = new ArrayList<>(); public static final String SERIALIZED_NAME_NAME_STRING = "name_string"; @SerializedName(SERIALIZED_NAME_NAME_STRING) + @javax.annotation.Nullable private String nameString; public static final String SERIALIZED_NAME_NAME_NUMBER = "name_number"; @SerializedName(SERIALIZED_NAME_NAME_NUMBER) + @javax.annotation.Nullable private BigDecimal nameNumber; public static final String SERIALIZED_NAME_NAME_INTEGER = "name_integer"; @SerializedName(SERIALIZED_NAME_NAME_INTEGER) + @javax.annotation.Nullable private Integer nameInteger; public static final String SERIALIZED_NAME_NAME_BOOLEAN = "name_boolean"; @SerializedName(SERIALIZED_NAME_NAME_BOOLEAN) + @javax.annotation.Nullable private Boolean nameBoolean; public static final String SERIALIZED_NAME_NAME_ARRAY = "name_array"; @SerializedName(SERIALIZED_NAME_NAME_ARRAY) + @javax.annotation.Nullable private List nameArray = new ArrayList<>(); public static final String SERIALIZED_NAME_NAME_WRAPPED_ARRAY = "name_wrapped_array"; @SerializedName(SERIALIZED_NAME_NAME_WRAPPED_ARRAY) + @javax.annotation.Nullable private List nameWrappedArray = new ArrayList<>(); public static final String SERIALIZED_NAME_PREFIX_STRING = "prefix_string"; @SerializedName(SERIALIZED_NAME_PREFIX_STRING) + @javax.annotation.Nullable private String prefixString; public static final String SERIALIZED_NAME_PREFIX_NUMBER = "prefix_number"; @SerializedName(SERIALIZED_NAME_PREFIX_NUMBER) + @javax.annotation.Nullable private BigDecimal prefixNumber; public static final String SERIALIZED_NAME_PREFIX_INTEGER = "prefix_integer"; @SerializedName(SERIALIZED_NAME_PREFIX_INTEGER) + @javax.annotation.Nullable private Integer prefixInteger; public static final String SERIALIZED_NAME_PREFIX_BOOLEAN = "prefix_boolean"; @SerializedName(SERIALIZED_NAME_PREFIX_BOOLEAN) + @javax.annotation.Nullable private Boolean prefixBoolean; public static final String SERIALIZED_NAME_PREFIX_ARRAY = "prefix_array"; @SerializedName(SERIALIZED_NAME_PREFIX_ARRAY) + @javax.annotation.Nullable private List prefixArray = new ArrayList<>(); public static final String SERIALIZED_NAME_PREFIX_WRAPPED_ARRAY = "prefix_wrapped_array"; @SerializedName(SERIALIZED_NAME_PREFIX_WRAPPED_ARRAY) + @javax.annotation.Nullable private List prefixWrappedArray = new ArrayList<>(); public static final String SERIALIZED_NAME_NAMESPACE_STRING = "namespace_string"; @SerializedName(SERIALIZED_NAME_NAMESPACE_STRING) + @javax.annotation.Nullable private String namespaceString; public static final String SERIALIZED_NAME_NAMESPACE_NUMBER = "namespace_number"; @SerializedName(SERIALIZED_NAME_NAMESPACE_NUMBER) + @javax.annotation.Nullable private BigDecimal namespaceNumber; public static final String SERIALIZED_NAME_NAMESPACE_INTEGER = "namespace_integer"; @SerializedName(SERIALIZED_NAME_NAMESPACE_INTEGER) + @javax.annotation.Nullable private Integer namespaceInteger; public static final String SERIALIZED_NAME_NAMESPACE_BOOLEAN = "namespace_boolean"; @SerializedName(SERIALIZED_NAME_NAMESPACE_BOOLEAN) + @javax.annotation.Nullable private Boolean namespaceBoolean; public static final String SERIALIZED_NAME_NAMESPACE_ARRAY = "namespace_array"; @SerializedName(SERIALIZED_NAME_NAMESPACE_ARRAY) + @javax.annotation.Nullable private List namespaceArray = new ArrayList<>(); public static final String SERIALIZED_NAME_NAMESPACE_WRAPPED_ARRAY = "namespace_wrapped_array"; @SerializedName(SERIALIZED_NAME_NAMESPACE_WRAPPED_ARRAY) + @javax.annotation.Nullable private List namespaceWrappedArray = new ArrayList<>(); public static final String SERIALIZED_NAME_PREFIX_NS_STRING = "prefix_ns_string"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_STRING) + @javax.annotation.Nullable private String prefixNsString; public static final String SERIALIZED_NAME_PREFIX_NS_NUMBER = "prefix_ns_number"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_NUMBER) + @javax.annotation.Nullable private BigDecimal prefixNsNumber; public static final String SERIALIZED_NAME_PREFIX_NS_INTEGER = "prefix_ns_integer"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_INTEGER) + @javax.annotation.Nullable private Integer prefixNsInteger; public static final String SERIALIZED_NAME_PREFIX_NS_BOOLEAN = "prefix_ns_boolean"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_BOOLEAN) + @javax.annotation.Nullable private Boolean prefixNsBoolean; public static final String SERIALIZED_NAME_PREFIX_NS_ARRAY = "prefix_ns_array"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_ARRAY) + @javax.annotation.Nullable private List prefixNsArray = new ArrayList<>(); public static final String SERIALIZED_NAME_PREFIX_NS_WRAPPED_ARRAY = "prefix_ns_wrapped_array"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_WRAPPED_ARRAY) + @javax.annotation.Nullable private List prefixNsWrappedArray = new ArrayList<>(); public XmlItem() { } - public XmlItem attributeString(String attributeString) { + public XmlItem attributeString(@javax.annotation.Nullable String attributeString) { this.attributeString = attributeString; return this; } @@ -186,12 +215,12 @@ public String getAttributeString() { return attributeString; } - public void setAttributeString(String attributeString) { + public void setAttributeString(@javax.annotation.Nullable String attributeString) { this.attributeString = attributeString; } - public XmlItem attributeNumber(BigDecimal attributeNumber) { + public XmlItem attributeNumber(@javax.annotation.Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; return this; } @@ -205,12 +234,12 @@ public BigDecimal getAttributeNumber() { return attributeNumber; } - public void setAttributeNumber(BigDecimal attributeNumber) { + public void setAttributeNumber(@javax.annotation.Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } - public XmlItem attributeInteger(Integer attributeInteger) { + public XmlItem attributeInteger(@javax.annotation.Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; return this; } @@ -224,12 +253,12 @@ public Integer getAttributeInteger() { return attributeInteger; } - public void setAttributeInteger(Integer attributeInteger) { + public void setAttributeInteger(@javax.annotation.Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; } - public XmlItem attributeBoolean(Boolean attributeBoolean) { + public XmlItem attributeBoolean(@javax.annotation.Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; return this; } @@ -243,12 +272,12 @@ public Boolean getAttributeBoolean() { return attributeBoolean; } - public void setAttributeBoolean(Boolean attributeBoolean) { + public void setAttributeBoolean(@javax.annotation.Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } - public XmlItem wrappedArray(List wrappedArray) { + public XmlItem wrappedArray(@javax.annotation.Nullable List wrappedArray) { this.wrappedArray = wrappedArray; return this; } @@ -270,12 +299,12 @@ public List getWrappedArray() { return wrappedArray; } - public void setWrappedArray(List wrappedArray) { + public void setWrappedArray(@javax.annotation.Nullable List wrappedArray) { this.wrappedArray = wrappedArray; } - public XmlItem nameString(String nameString) { + public XmlItem nameString(@javax.annotation.Nullable String nameString) { this.nameString = nameString; return this; } @@ -289,12 +318,12 @@ public String getNameString() { return nameString; } - public void setNameString(String nameString) { + public void setNameString(@javax.annotation.Nullable String nameString) { this.nameString = nameString; } - public XmlItem nameNumber(BigDecimal nameNumber) { + public XmlItem nameNumber(@javax.annotation.Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; return this; } @@ -308,12 +337,12 @@ public BigDecimal getNameNumber() { return nameNumber; } - public void setNameNumber(BigDecimal nameNumber) { + public void setNameNumber(@javax.annotation.Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; } - public XmlItem nameInteger(Integer nameInteger) { + public XmlItem nameInteger(@javax.annotation.Nullable Integer nameInteger) { this.nameInteger = nameInteger; return this; } @@ -327,12 +356,12 @@ public Integer getNameInteger() { return nameInteger; } - public void setNameInteger(Integer nameInteger) { + public void setNameInteger(@javax.annotation.Nullable Integer nameInteger) { this.nameInteger = nameInteger; } - public XmlItem nameBoolean(Boolean nameBoolean) { + public XmlItem nameBoolean(@javax.annotation.Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; return this; } @@ -346,12 +375,12 @@ public Boolean getNameBoolean() { return nameBoolean; } - public void setNameBoolean(Boolean nameBoolean) { + public void setNameBoolean(@javax.annotation.Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; } - public XmlItem nameArray(List nameArray) { + public XmlItem nameArray(@javax.annotation.Nullable List nameArray) { this.nameArray = nameArray; return this; } @@ -373,12 +402,12 @@ public List getNameArray() { return nameArray; } - public void setNameArray(List nameArray) { + public void setNameArray(@javax.annotation.Nullable List nameArray) { this.nameArray = nameArray; } - public XmlItem nameWrappedArray(List nameWrappedArray) { + public XmlItem nameWrappedArray(@javax.annotation.Nullable List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; return this; } @@ -400,12 +429,12 @@ public List getNameWrappedArray() { return nameWrappedArray; } - public void setNameWrappedArray(List nameWrappedArray) { + public void setNameWrappedArray(@javax.annotation.Nullable List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } - public XmlItem prefixString(String prefixString) { + public XmlItem prefixString(@javax.annotation.Nullable String prefixString) { this.prefixString = prefixString; return this; } @@ -419,12 +448,12 @@ public String getPrefixString() { return prefixString; } - public void setPrefixString(String prefixString) { + public void setPrefixString(@javax.annotation.Nullable String prefixString) { this.prefixString = prefixString; } - public XmlItem prefixNumber(BigDecimal prefixNumber) { + public XmlItem prefixNumber(@javax.annotation.Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; return this; } @@ -438,12 +467,12 @@ public BigDecimal getPrefixNumber() { return prefixNumber; } - public void setPrefixNumber(BigDecimal prefixNumber) { + public void setPrefixNumber(@javax.annotation.Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } - public XmlItem prefixInteger(Integer prefixInteger) { + public XmlItem prefixInteger(@javax.annotation.Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; return this; } @@ -457,12 +486,12 @@ public Integer getPrefixInteger() { return prefixInteger; } - public void setPrefixInteger(Integer prefixInteger) { + public void setPrefixInteger(@javax.annotation.Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; } - public XmlItem prefixBoolean(Boolean prefixBoolean) { + public XmlItem prefixBoolean(@javax.annotation.Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; return this; } @@ -476,12 +505,12 @@ public Boolean getPrefixBoolean() { return prefixBoolean; } - public void setPrefixBoolean(Boolean prefixBoolean) { + public void setPrefixBoolean(@javax.annotation.Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } - public XmlItem prefixArray(List prefixArray) { + public XmlItem prefixArray(@javax.annotation.Nullable List prefixArray) { this.prefixArray = prefixArray; return this; } @@ -503,12 +532,12 @@ public List getPrefixArray() { return prefixArray; } - public void setPrefixArray(List prefixArray) { + public void setPrefixArray(@javax.annotation.Nullable List prefixArray) { this.prefixArray = prefixArray; } - public XmlItem prefixWrappedArray(List prefixWrappedArray) { + public XmlItem prefixWrappedArray(@javax.annotation.Nullable List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; return this; } @@ -530,12 +559,12 @@ public List getPrefixWrappedArray() { return prefixWrappedArray; } - public void setPrefixWrappedArray(List prefixWrappedArray) { + public void setPrefixWrappedArray(@javax.annotation.Nullable List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem namespaceString(String namespaceString) { + public XmlItem namespaceString(@javax.annotation.Nullable String namespaceString) { this.namespaceString = namespaceString; return this; } @@ -549,12 +578,12 @@ public String getNamespaceString() { return namespaceString; } - public void setNamespaceString(String namespaceString) { + public void setNamespaceString(@javax.annotation.Nullable String namespaceString) { this.namespaceString = namespaceString; } - public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + public XmlItem namespaceNumber(@javax.annotation.Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; return this; } @@ -568,12 +597,12 @@ public BigDecimal getNamespaceNumber() { return namespaceNumber; } - public void setNamespaceNumber(BigDecimal namespaceNumber) { + public void setNamespaceNumber(@javax.annotation.Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } - public XmlItem namespaceInteger(Integer namespaceInteger) { + public XmlItem namespaceInteger(@javax.annotation.Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; return this; } @@ -587,12 +616,12 @@ public Integer getNamespaceInteger() { return namespaceInteger; } - public void setNamespaceInteger(Integer namespaceInteger) { + public void setNamespaceInteger(@javax.annotation.Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } - public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + public XmlItem namespaceBoolean(@javax.annotation.Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; return this; } @@ -606,12 +635,12 @@ public Boolean getNamespaceBoolean() { return namespaceBoolean; } - public void setNamespaceBoolean(Boolean namespaceBoolean) { + public void setNamespaceBoolean(@javax.annotation.Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } - public XmlItem namespaceArray(List namespaceArray) { + public XmlItem namespaceArray(@javax.annotation.Nullable List namespaceArray) { this.namespaceArray = namespaceArray; return this; } @@ -633,12 +662,12 @@ public List getNamespaceArray() { return namespaceArray; } - public void setNamespaceArray(List namespaceArray) { + public void setNamespaceArray(@javax.annotation.Nullable List namespaceArray) { this.namespaceArray = namespaceArray; } - public XmlItem namespaceWrappedArray(List namespaceWrappedArray) { + public XmlItem namespaceWrappedArray(@javax.annotation.Nullable List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; return this; } @@ -660,12 +689,12 @@ public List getNamespaceWrappedArray() { return namespaceWrappedArray; } - public void setNamespaceWrappedArray(List namespaceWrappedArray) { + public void setNamespaceWrappedArray(@javax.annotation.Nullable List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem prefixNsString(String prefixNsString) { + public XmlItem prefixNsString(@javax.annotation.Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; } @@ -679,12 +708,12 @@ public String getPrefixNsString() { return prefixNsString; } - public void setPrefixNsString(String prefixNsString) { + public void setPrefixNsString(@javax.annotation.Nullable String prefixNsString) { this.prefixNsString = prefixNsString; } - public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + public XmlItem prefixNsNumber(@javax.annotation.Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; return this; } @@ -698,12 +727,12 @@ public BigDecimal getPrefixNsNumber() { return prefixNsNumber; } - public void setPrefixNsNumber(BigDecimal prefixNsNumber) { + public void setPrefixNsNumber(@javax.annotation.Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } - public XmlItem prefixNsInteger(Integer prefixNsInteger) { + public XmlItem prefixNsInteger(@javax.annotation.Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; return this; } @@ -717,12 +746,12 @@ public Integer getPrefixNsInteger() { return prefixNsInteger; } - public void setPrefixNsInteger(Integer prefixNsInteger) { + public void setPrefixNsInteger(@javax.annotation.Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } - public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + public XmlItem prefixNsBoolean(@javax.annotation.Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; return this; } @@ -736,12 +765,12 @@ public Boolean getPrefixNsBoolean() { return prefixNsBoolean; } - public void setPrefixNsBoolean(Boolean prefixNsBoolean) { + public void setPrefixNsBoolean(@javax.annotation.Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } - public XmlItem prefixNsArray(List prefixNsArray) { + public XmlItem prefixNsArray(@javax.annotation.Nullable List prefixNsArray) { this.prefixNsArray = prefixNsArray; return this; } @@ -763,12 +792,12 @@ public List getPrefixNsArray() { return prefixNsArray; } - public void setPrefixNsArray(List prefixNsArray) { + public void setPrefixNsArray(@javax.annotation.Nullable List prefixNsArray) { this.prefixNsArray = prefixNsArray; } - public XmlItem prefixNsWrappedArray(List prefixNsWrappedArray) { + public XmlItem prefixNsWrappedArray(@javax.annotation.Nullable List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; return this; } @@ -790,7 +819,7 @@ public List getPrefixNsWrappedArray() { return prefixNsWrappedArray; } - public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { + public void setPrefixNsWrappedArray(@javax.annotation.Nullable List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Category.java index 86a8a954b77d..048605dddfa7 100644 --- a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Category.java @@ -52,16 +52,18 @@ public class Category { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public Category() { } - public Category id(Long id) { + public Category id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -75,12 +77,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -94,7 +96,7 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 11a4141a974e..d2a27c6c6837 100644 --- a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -52,20 +52,23 @@ public class ModelApiResponse { public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) + @javax.annotation.Nullable private Integer code; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @javax.annotation.Nullable private String type; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable private String message; public ModelApiResponse() { } - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@javax.annotation.Nullable Integer code) { this.code = code; return this; } @@ -79,12 +82,12 @@ public Integer getCode() { return code; } - public void setCode(Integer code) { + public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@javax.annotation.Nullable String type) { this.type = type; return this; } @@ -98,12 +101,12 @@ public String getType() { return type; } - public void setType(String type) { + public void setType(@javax.annotation.Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@javax.annotation.Nullable String message) { this.message = message; return this; } @@ -117,7 +120,7 @@ public String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } diff --git a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Order.java index 3fcd7b3d46c2..9628ffe11739 100644 --- a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Order.java @@ -53,18 +53,22 @@ public class Order { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_PET_ID = "petId"; @SerializedName(SERIALIZED_NAME_PET_ID) + @javax.annotation.Nullable private Long petId; public static final String SERIALIZED_NAME_QUANTITY = "quantity"; @SerializedName(SERIALIZED_NAME_QUANTITY) + @javax.annotation.Nullable private Integer quantity; public static final String SERIALIZED_NAME_SHIP_DATE = "shipDate"; @SerializedName(SERIALIZED_NAME_SHIP_DATE) + @javax.annotation.Nullable private OffsetDateTime shipDate; /** @@ -123,16 +127,18 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable private StatusEnum status; public static final String SERIALIZED_NAME_COMPLETE = "complete"; @SerializedName(SERIALIZED_NAME_COMPLETE) + @javax.annotation.Nullable private Boolean complete = false; public Order() { } - public Order id(Long id) { + public Order id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -146,12 +152,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@javax.annotation.Nullable Long petId) { this.petId = petId; return this; } @@ -165,12 +171,12 @@ public Long getPetId() { return petId; } - public void setPetId(Long petId) { + public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -184,12 +190,12 @@ public Integer getQuantity() { return quantity; } - public void setQuantity(Integer quantity) { + public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -203,12 +209,12 @@ public OffsetDateTime getShipDate() { return shipDate; } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; } @@ -222,12 +228,12 @@ public StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } - public Order complete(Boolean complete) { + public Order complete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; return this; } @@ -241,7 +247,7 @@ public Boolean getComplete() { return complete; } - public void setComplete(Boolean complete) { + public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Pet.java index 257977207f2c..601ef1b527ea 100644 --- a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Pet.java @@ -56,22 +56,27 @@ public class Pet { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_CATEGORY = "category"; @SerializedName(SERIALIZED_NAME_CATEGORY) + @javax.annotation.Nullable private Category category; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; @SerializedName(SERIALIZED_NAME_PHOTO_URLS) + @javax.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** @@ -131,12 +136,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_STATUS = "status"; @Deprecated @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable private StatusEnum status; public Pet() { } - public Pet id(Long id) { + public Pet id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -150,12 +156,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@javax.annotation.Nullable Category category) { this.category = category; return this; } @@ -169,12 +175,12 @@ public Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; } - public Pet name(String name) { + public Pet name(@javax.annotation.Nonnull String name) { this.name = name; return this; } @@ -188,12 +194,12 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } - public Pet photoUrls(List photoUrls) { + public Pet photoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; return this; } @@ -215,12 +221,12 @@ public List getPhotoUrls() { return photoUrls; } - public void setPhotoUrls(List photoUrls) { + public void setPhotoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; } - public Pet tags(List tags) { + public Pet tags(@javax.annotation.Nullable List tags) { this.tags = tags; return this; } @@ -242,13 +248,13 @@ public List getTags() { return tags; } - public void setTags(List tags) { + public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; } @Deprecated - public Pet status(StatusEnum status) { + public Pet status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; } @@ -265,7 +271,7 @@ public StatusEnum getStatus() { } @Deprecated - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Tag.java index c3c7cb4c7f6d..813926b4eb7b 100644 --- a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Tag.java @@ -52,16 +52,18 @@ public class Tag { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public Tag() { } - public Tag id(Long id) { + public Tag id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -75,12 +77,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -94,7 +96,7 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/User.java index bf055dc30d78..27676f95456e 100644 --- a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/User.java @@ -52,40 +52,48 @@ public class User { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_USERNAME = "username"; @SerializedName(SERIALIZED_NAME_USERNAME) + @javax.annotation.Nullable private String username; public static final String SERIALIZED_NAME_FIRST_NAME = "firstName"; @SerializedName(SERIALIZED_NAME_FIRST_NAME) + @javax.annotation.Nullable private String firstName; public static final String SERIALIZED_NAME_LAST_NAME = "lastName"; @SerializedName(SERIALIZED_NAME_LAST_NAME) + @javax.annotation.Nullable private String lastName; public static final String SERIALIZED_NAME_EMAIL = "email"; @SerializedName(SERIALIZED_NAME_EMAIL) + @javax.annotation.Nullable private String email; public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) + @javax.annotation.Nullable private String password; public static final String SERIALIZED_NAME_PHONE = "phone"; @SerializedName(SERIALIZED_NAME_PHONE) + @javax.annotation.Nullable private String phone; public static final String SERIALIZED_NAME_USER_STATUS = "userStatus"; @SerializedName(SERIALIZED_NAME_USER_STATUS) + @javax.annotation.Nullable private Integer userStatus; public User() { } - public User id(Long id) { + public User id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -99,12 +107,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@javax.annotation.Nullable String username) { this.username = username; return this; } @@ -118,12 +126,12 @@ public String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@javax.annotation.Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; return this; } @@ -137,12 +145,12 @@ public String getFirstName() { return firstName; } - public void setFirstName(String firstName) { + public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; return this; } @@ -156,12 +164,12 @@ public String getLastName() { return lastName; } - public void setLastName(String lastName) { + public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@javax.annotation.Nullable String email) { this.email = email; return this; } @@ -175,12 +183,12 @@ public String getEmail() { return email; } - public void setEmail(String email) { + public void setEmail(@javax.annotation.Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@javax.annotation.Nullable String password) { this.password = password; return this; } @@ -194,12 +202,12 @@ public String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@javax.annotation.Nullable String phone) { this.phone = phone; return this; } @@ -213,12 +221,12 @@ public String getPhone() { return phone; } - public void setPhone(String phone) { + public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -232,7 +240,7 @@ public Integer getUserStatus() { return userStatus; } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Category.java index 86a8a954b77d..048605dddfa7 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Category.java @@ -52,16 +52,18 @@ public class Category { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public Category() { } - public Category id(Long id) { + public Category id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -75,12 +77,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -94,7 +96,7 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 11a4141a974e..d2a27c6c6837 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -52,20 +52,23 @@ public class ModelApiResponse { public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) + @javax.annotation.Nullable private Integer code; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @javax.annotation.Nullable private String type; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable private String message; public ModelApiResponse() { } - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@javax.annotation.Nullable Integer code) { this.code = code; return this; } @@ -79,12 +82,12 @@ public Integer getCode() { return code; } - public void setCode(Integer code) { + public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@javax.annotation.Nullable String type) { this.type = type; return this; } @@ -98,12 +101,12 @@ public String getType() { return type; } - public void setType(String type) { + public void setType(@javax.annotation.Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@javax.annotation.Nullable String message) { this.message = message; return this; } @@ -117,7 +120,7 @@ public String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Order.java index 3fcd7b3d46c2..9628ffe11739 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Order.java @@ -53,18 +53,22 @@ public class Order { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_PET_ID = "petId"; @SerializedName(SERIALIZED_NAME_PET_ID) + @javax.annotation.Nullable private Long petId; public static final String SERIALIZED_NAME_QUANTITY = "quantity"; @SerializedName(SERIALIZED_NAME_QUANTITY) + @javax.annotation.Nullable private Integer quantity; public static final String SERIALIZED_NAME_SHIP_DATE = "shipDate"; @SerializedName(SERIALIZED_NAME_SHIP_DATE) + @javax.annotation.Nullable private OffsetDateTime shipDate; /** @@ -123,16 +127,18 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable private StatusEnum status; public static final String SERIALIZED_NAME_COMPLETE = "complete"; @SerializedName(SERIALIZED_NAME_COMPLETE) + @javax.annotation.Nullable private Boolean complete = false; public Order() { } - public Order id(Long id) { + public Order id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -146,12 +152,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@javax.annotation.Nullable Long petId) { this.petId = petId; return this; } @@ -165,12 +171,12 @@ public Long getPetId() { return petId; } - public void setPetId(Long petId) { + public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -184,12 +190,12 @@ public Integer getQuantity() { return quantity; } - public void setQuantity(Integer quantity) { + public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -203,12 +209,12 @@ public OffsetDateTime getShipDate() { return shipDate; } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; } @@ -222,12 +228,12 @@ public StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } - public Order complete(Boolean complete) { + public Order complete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; return this; } @@ -241,7 +247,7 @@ public Boolean getComplete() { return complete; } - public void setComplete(Boolean complete) { + public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Pet.java index 257977207f2c..601ef1b527ea 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Pet.java @@ -56,22 +56,27 @@ public class Pet { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_CATEGORY = "category"; @SerializedName(SERIALIZED_NAME_CATEGORY) + @javax.annotation.Nullable private Category category; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; @SerializedName(SERIALIZED_NAME_PHOTO_URLS) + @javax.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** @@ -131,12 +136,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_STATUS = "status"; @Deprecated @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable private StatusEnum status; public Pet() { } - public Pet id(Long id) { + public Pet id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -150,12 +156,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@javax.annotation.Nullable Category category) { this.category = category; return this; } @@ -169,12 +175,12 @@ public Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; } - public Pet name(String name) { + public Pet name(@javax.annotation.Nonnull String name) { this.name = name; return this; } @@ -188,12 +194,12 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } - public Pet photoUrls(List photoUrls) { + public Pet photoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; return this; } @@ -215,12 +221,12 @@ public List getPhotoUrls() { return photoUrls; } - public void setPhotoUrls(List photoUrls) { + public void setPhotoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; } - public Pet tags(List tags) { + public Pet tags(@javax.annotation.Nullable List tags) { this.tags = tags; return this; } @@ -242,13 +248,13 @@ public List getTags() { return tags; } - public void setTags(List tags) { + public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; } @Deprecated - public Pet status(StatusEnum status) { + public Pet status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; } @@ -265,7 +271,7 @@ public StatusEnum getStatus() { } @Deprecated - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/PetWithRequiredNullableCases1.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/PetWithRequiredNullableCases1.java index bfd4e30850a0..835554ca527b 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/PetWithRequiredNullableCases1.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/PetWithRequiredNullableCases1.java @@ -57,22 +57,27 @@ public class PetWithRequiredNullableCases1 { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_CATEGORY = "category"; @SerializedName(SERIALIZED_NAME_CATEGORY) + @javax.annotation.Nullable private Category category; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; @SerializedName(SERIALIZED_NAME_PHOTO_URLS) + @javax.annotation.Nullable private List photoUrls; public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) + @javax.annotation.Nullable private List tags; /** @@ -132,12 +137,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_STATUS = "status"; @Deprecated @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable private StatusEnum status; public PetWithRequiredNullableCases1() { } - public PetWithRequiredNullableCases1 id(Long id) { + public PetWithRequiredNullableCases1 id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -151,12 +157,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public PetWithRequiredNullableCases1 category(Category category) { + public PetWithRequiredNullableCases1 category(@javax.annotation.Nullable Category category) { this.category = category; return this; } @@ -170,12 +176,12 @@ public Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; } - public PetWithRequiredNullableCases1 name(String name) { + public PetWithRequiredNullableCases1 name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -189,12 +195,12 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } - public PetWithRequiredNullableCases1 photoUrls(List photoUrls) { + public PetWithRequiredNullableCases1 photoUrls(@javax.annotation.Nullable List photoUrls) { this.photoUrls = photoUrls; return this; } @@ -216,12 +222,12 @@ public List getPhotoUrls() { return photoUrls; } - public void setPhotoUrls(List photoUrls) { + public void setPhotoUrls(@javax.annotation.Nullable List photoUrls) { this.photoUrls = photoUrls; } - public PetWithRequiredNullableCases1 tags(List tags) { + public PetWithRequiredNullableCases1 tags(@javax.annotation.Nullable List tags) { this.tags = tags; return this; } @@ -243,13 +249,13 @@ public List getTags() { return tags; } - public void setTags(List tags) { + public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; } @Deprecated - public PetWithRequiredNullableCases1 status(StatusEnum status) { + public PetWithRequiredNullableCases1 status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; } @@ -266,7 +272,7 @@ public StatusEnum getStatus() { } @Deprecated - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/PetWithRequiredNullableCases2.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/PetWithRequiredNullableCases2.java index 9ab4724a4d0d..98d795875e93 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/PetWithRequiredNullableCases2.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/PetWithRequiredNullableCases2.java @@ -56,22 +56,27 @@ public class PetWithRequiredNullableCases2 { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_CATEGORY = "category"; @SerializedName(SERIALIZED_NAME_CATEGORY) + @javax.annotation.Nullable private Category category; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; @SerializedName(SERIALIZED_NAME_PHOTO_URLS) + @javax.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** @@ -131,12 +136,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_STATUS = "status"; @Deprecated @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable private StatusEnum status; public PetWithRequiredNullableCases2() { } - public PetWithRequiredNullableCases2 id(Long id) { + public PetWithRequiredNullableCases2 id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -150,12 +156,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public PetWithRequiredNullableCases2 category(Category category) { + public PetWithRequiredNullableCases2 category(@javax.annotation.Nullable Category category) { this.category = category; return this; } @@ -169,12 +175,12 @@ public Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; } - public PetWithRequiredNullableCases2 name(String name) { + public PetWithRequiredNullableCases2 name(@javax.annotation.Nonnull String name) { this.name = name; return this; } @@ -188,12 +194,12 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } - public PetWithRequiredNullableCases2 photoUrls(List photoUrls) { + public PetWithRequiredNullableCases2 photoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; return this; } @@ -215,12 +221,12 @@ public List getPhotoUrls() { return photoUrls; } - public void setPhotoUrls(List photoUrls) { + public void setPhotoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; } - public PetWithRequiredNullableCases2 tags(List tags) { + public PetWithRequiredNullableCases2 tags(@javax.annotation.Nullable List tags) { this.tags = tags; return this; } @@ -242,13 +248,13 @@ public List getTags() { return tags; } - public void setTags(List tags) { + public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; } @Deprecated - public PetWithRequiredNullableCases2 status(StatusEnum status) { + public PetWithRequiredNullableCases2 status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; } @@ -265,7 +271,7 @@ public StatusEnum getStatus() { } @Deprecated - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Tag.java index c3c7cb4c7f6d..813926b4eb7b 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Tag.java @@ -52,16 +52,18 @@ public class Tag { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public Tag() { } - public Tag id(Long id) { + public Tag id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -75,12 +77,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -94,7 +96,7 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/User.java index bf055dc30d78..27676f95456e 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/User.java @@ -52,40 +52,48 @@ public class User { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_USERNAME = "username"; @SerializedName(SERIALIZED_NAME_USERNAME) + @javax.annotation.Nullable private String username; public static final String SERIALIZED_NAME_FIRST_NAME = "firstName"; @SerializedName(SERIALIZED_NAME_FIRST_NAME) + @javax.annotation.Nullable private String firstName; public static final String SERIALIZED_NAME_LAST_NAME = "lastName"; @SerializedName(SERIALIZED_NAME_LAST_NAME) + @javax.annotation.Nullable private String lastName; public static final String SERIALIZED_NAME_EMAIL = "email"; @SerializedName(SERIALIZED_NAME_EMAIL) + @javax.annotation.Nullable private String email; public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) + @javax.annotation.Nullable private String password; public static final String SERIALIZED_NAME_PHONE = "phone"; @SerializedName(SERIALIZED_NAME_PHONE) + @javax.annotation.Nullable private String phone; public static final String SERIALIZED_NAME_USER_STATUS = "userStatus"; @SerializedName(SERIALIZED_NAME_USER_STATUS) + @javax.annotation.Nullable private Integer userStatus; public User() { } - public User id(Long id) { + public User id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -99,12 +107,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@javax.annotation.Nullable String username) { this.username = username; return this; } @@ -118,12 +126,12 @@ public String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@javax.annotation.Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; return this; } @@ -137,12 +145,12 @@ public String getFirstName() { return firstName; } - public void setFirstName(String firstName) { + public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; return this; } @@ -156,12 +164,12 @@ public String getLastName() { return lastName; } - public void setLastName(String lastName) { + public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@javax.annotation.Nullable String email) { this.email = email; return this; } @@ -175,12 +183,12 @@ public String getEmail() { return email; } - public void setEmail(String email) { + public void setEmail(@javax.annotation.Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@javax.annotation.Nullable String password) { this.password = password; return this; } @@ -194,12 +202,12 @@ public String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@javax.annotation.Nullable String phone) { this.phone = phone; return this; } @@ -213,12 +221,12 @@ public String getPhone() { return phone; } - public void setPhone(String phone) { + public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -232,7 +240,7 @@ public Integer getUserStatus() { return userStatus; } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index 9830e2085e2f..c709fc1d8250 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -54,12 +54,13 @@ public class AdditionalPropertiesAnyType implements Parcelable { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public AdditionalPropertiesAnyType() { } - public AdditionalPropertiesAnyType name(String name) { + public AdditionalPropertiesAnyType name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -73,7 +74,7 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 09575f6a6b67..5aea9a8da833 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -55,12 +55,13 @@ public class AdditionalPropertiesArray implements Parcelable { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public AdditionalPropertiesArray() { } - public AdditionalPropertiesArray name(String name) { + public AdditionalPropertiesArray name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -74,7 +75,7 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 510b5e01143a..84becc619120 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -54,12 +54,13 @@ public class AdditionalPropertiesBoolean implements Parcelable { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public AdditionalPropertiesBoolean() { } - public AdditionalPropertiesBoolean name(String name) { + public AdditionalPropertiesBoolean name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -73,7 +74,7 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index ff7bb0b0cb32..51ce2b7289e0 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -58,52 +58,63 @@ public class AdditionalPropertiesClass implements Parcelable { public static final String SERIALIZED_NAME_MAP_STRING = "map_string"; @SerializedName(SERIALIZED_NAME_MAP_STRING) + @javax.annotation.Nullable private Map mapString = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_NUMBER = "map_number"; @SerializedName(SERIALIZED_NAME_MAP_NUMBER) + @javax.annotation.Nullable private Map mapNumber = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_INTEGER = "map_integer"; @SerializedName(SERIALIZED_NAME_MAP_INTEGER) + @javax.annotation.Nullable private Map mapInteger = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_BOOLEAN = "map_boolean"; @SerializedName(SERIALIZED_NAME_MAP_BOOLEAN) + @javax.annotation.Nullable private Map mapBoolean = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_ARRAY_INTEGER = "map_array_integer"; @SerializedName(SERIALIZED_NAME_MAP_ARRAY_INTEGER) + @javax.annotation.Nullable private Map> mapArrayInteger = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_ARRAY_ANYTYPE = "map_array_anytype"; @SerializedName(SERIALIZED_NAME_MAP_ARRAY_ANYTYPE) + @javax.annotation.Nullable private Map> mapArrayAnytype = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_MAP_STRING = "map_map_string"; @SerializedName(SERIALIZED_NAME_MAP_MAP_STRING) + @javax.annotation.Nullable private Map> mapMapString = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_MAP_ANYTYPE = "map_map_anytype"; @SerializedName(SERIALIZED_NAME_MAP_MAP_ANYTYPE) + @javax.annotation.Nullable private Map> mapMapAnytype = new HashMap<>(); public static final String SERIALIZED_NAME_ANYTYPE1 = "anytype_1"; @SerializedName(SERIALIZED_NAME_ANYTYPE1) + @javax.annotation.Nullable private Object anytype1; public static final String SERIALIZED_NAME_ANYTYPE2 = "anytype_2"; @SerializedName(SERIALIZED_NAME_ANYTYPE2) + @javax.annotation.Nullable private Object anytype2; public static final String SERIALIZED_NAME_ANYTYPE3 = "anytype_3"; @SerializedName(SERIALIZED_NAME_ANYTYPE3) + @javax.annotation.Nullable private Object anytype3; public AdditionalPropertiesClass() { } - public AdditionalPropertiesClass mapString(Map mapString) { + public AdditionalPropertiesClass mapString(@javax.annotation.Nullable Map mapString) { this.mapString = mapString; return this; } @@ -125,12 +136,12 @@ public Map getMapString() { return mapString; } - public void setMapString(Map mapString) { + public void setMapString(@javax.annotation.Nullable Map mapString) { this.mapString = mapString; } - public AdditionalPropertiesClass mapNumber(Map mapNumber) { + public AdditionalPropertiesClass mapNumber(@javax.annotation.Nullable Map mapNumber) { this.mapNumber = mapNumber; return this; } @@ -152,12 +163,12 @@ public Map getMapNumber() { return mapNumber; } - public void setMapNumber(Map mapNumber) { + public void setMapNumber(@javax.annotation.Nullable Map mapNumber) { this.mapNumber = mapNumber; } - public AdditionalPropertiesClass mapInteger(Map mapInteger) { + public AdditionalPropertiesClass mapInteger(@javax.annotation.Nullable Map mapInteger) { this.mapInteger = mapInteger; return this; } @@ -179,12 +190,12 @@ public Map getMapInteger() { return mapInteger; } - public void setMapInteger(Map mapInteger) { + public void setMapInteger(@javax.annotation.Nullable Map mapInteger) { this.mapInteger = mapInteger; } - public AdditionalPropertiesClass mapBoolean(Map mapBoolean) { + public AdditionalPropertiesClass mapBoolean(@javax.annotation.Nullable Map mapBoolean) { this.mapBoolean = mapBoolean; return this; } @@ -206,12 +217,12 @@ public Map getMapBoolean() { return mapBoolean; } - public void setMapBoolean(Map mapBoolean) { + public void setMapBoolean(@javax.annotation.Nullable Map mapBoolean) { this.mapBoolean = mapBoolean; } - public AdditionalPropertiesClass mapArrayInteger(Map> mapArrayInteger) { + public AdditionalPropertiesClass mapArrayInteger(@javax.annotation.Nullable Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; return this; } @@ -233,12 +244,12 @@ public Map> getMapArrayInteger() { return mapArrayInteger; } - public void setMapArrayInteger(Map> mapArrayInteger) { + public void setMapArrayInteger(@javax.annotation.Nullable Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; } - public AdditionalPropertiesClass mapArrayAnytype(Map> mapArrayAnytype) { + public AdditionalPropertiesClass mapArrayAnytype(@javax.annotation.Nullable Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; return this; } @@ -260,12 +271,12 @@ public Map> getMapArrayAnytype() { return mapArrayAnytype; } - public void setMapArrayAnytype(Map> mapArrayAnytype) { + public void setMapArrayAnytype(@javax.annotation.Nullable Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; } - public AdditionalPropertiesClass mapMapString(Map> mapMapString) { + public AdditionalPropertiesClass mapMapString(@javax.annotation.Nullable Map> mapMapString) { this.mapMapString = mapMapString; return this; } @@ -287,12 +298,12 @@ public Map> getMapMapString() { return mapMapString; } - public void setMapMapString(Map> mapMapString) { + public void setMapMapString(@javax.annotation.Nullable Map> mapMapString) { this.mapMapString = mapMapString; } - public AdditionalPropertiesClass mapMapAnytype(Map> mapMapAnytype) { + public AdditionalPropertiesClass mapMapAnytype(@javax.annotation.Nullable Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; return this; } @@ -314,12 +325,12 @@ public Map> getMapMapAnytype() { return mapMapAnytype; } - public void setMapMapAnytype(Map> mapMapAnytype) { + public void setMapMapAnytype(@javax.annotation.Nullable Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@javax.annotation.Nullable Object anytype1) { this.anytype1 = anytype1; return this; } @@ -333,12 +344,12 @@ public Object getAnytype1() { return anytype1; } - public void setAnytype1(Object anytype1) { + public void setAnytype1(@javax.annotation.Nullable Object anytype1) { this.anytype1 = anytype1; } - public AdditionalPropertiesClass anytype2(Object anytype2) { + public AdditionalPropertiesClass anytype2(@javax.annotation.Nullable Object anytype2) { this.anytype2 = anytype2; return this; } @@ -352,12 +363,12 @@ public Object getAnytype2() { return anytype2; } - public void setAnytype2(Object anytype2) { + public void setAnytype2(@javax.annotation.Nullable Object anytype2) { this.anytype2 = anytype2; } - public AdditionalPropertiesClass anytype3(Object anytype3) { + public AdditionalPropertiesClass anytype3(@javax.annotation.Nullable Object anytype3) { this.anytype3 = anytype3; return this; } @@ -371,7 +382,7 @@ public Object getAnytype3() { return anytype3; } - public void setAnytype3(Object anytype3) { + public void setAnytype3(@javax.annotation.Nullable Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index c20a8c98ca46..8ce12ef16103 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -54,12 +54,13 @@ public class AdditionalPropertiesInteger implements Parcelable { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public AdditionalPropertiesInteger() { } - public AdditionalPropertiesInteger name(String name) { + public AdditionalPropertiesInteger name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -73,7 +74,7 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index 0b75117db314..8e5757ff17d5 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -55,12 +55,13 @@ public class AdditionalPropertiesNumber implements Parcelable { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public AdditionalPropertiesNumber() { } - public AdditionalPropertiesNumber name(String name) { + public AdditionalPropertiesNumber name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -74,7 +75,7 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index e22e1b7581a0..f47d33335dad 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -55,12 +55,13 @@ public class AdditionalPropertiesObject implements Parcelable { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public AdditionalPropertiesObject() { } - public AdditionalPropertiesObject name(String name) { + public AdditionalPropertiesObject name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -74,7 +75,7 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 69b0b6bb471f..e1783ced9a68 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -54,12 +54,13 @@ public class AdditionalPropertiesString implements Parcelable { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public AdditionalPropertiesString() { } - public AdditionalPropertiesString name(String name) { + public AdditionalPropertiesString name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -73,7 +74,7 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Animal.java index 4a60749591a0..2ba63e0711c2 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Animal.java @@ -54,17 +54,19 @@ public class Animal implements Parcelable { public static final String SERIALIZED_NAME_CLASS_NAME = "className"; @SerializedName(SERIALIZED_NAME_CLASS_NAME) + @javax.annotation.Nonnull protected String className; public static final String SERIALIZED_NAME_COLOR = "color"; @SerializedName(SERIALIZED_NAME_COLOR) + @javax.annotation.Nullable private String color = "red"; public Animal() { this.className = this.getClass().getSimpleName(); } - public Animal className(String className) { + public Animal className(@javax.annotation.Nonnull String className) { this.className = className; return this; } @@ -78,12 +80,12 @@ public String getClassName() { return className; } - public void setClassName(String className) { + public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; } - public Animal color(String color) { + public Animal color(@javax.annotation.Nullable String color) { this.color = color; return this; } @@ -97,7 +99,7 @@ public String getColor() { return color; } - public void setColor(String color) { + public void setColor(@javax.annotation.Nullable String color) { this.color = color; } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 3920ec6c54c2..8f888d2a8cdb 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -57,12 +57,13 @@ public class ArrayOfArrayOfNumberOnly implements Parcelable { public static final String SERIALIZED_NAME_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_NUMBER) + @javax.annotation.Nullable private List> arrayArrayNumber = new ArrayList<>(); public ArrayOfArrayOfNumberOnly() { } - public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + public ArrayOfArrayOfNumberOnly arrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; return this; } @@ -84,7 +85,7 @@ public List> getArrayArrayNumber() { return arrayArrayNumber; } - public void setArrayArrayNumber(List> arrayArrayNumber) { + public void setArrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index fb8df282e248..a0f85392ab24 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -57,12 +57,13 @@ public class ArrayOfNumberOnly implements Parcelable { public static final String SERIALIZED_NAME_ARRAY_NUMBER = "ArrayNumber"; @SerializedName(SERIALIZED_NAME_ARRAY_NUMBER) + @javax.annotation.Nullable private List arrayNumber = new ArrayList<>(); public ArrayOfNumberOnly() { } - public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + public ArrayOfNumberOnly arrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; return this; } @@ -84,7 +85,7 @@ public List getArrayNumber() { return arrayNumber; } - public void setArrayNumber(List arrayNumber) { + public void setArrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ArrayTest.java index 07ed56962c2f..a9cdfdc08b9a 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -57,20 +57,23 @@ public class ArrayTest implements Parcelable { public static final String SERIALIZED_NAME_ARRAY_OF_STRING = "array_of_string"; @SerializedName(SERIALIZED_NAME_ARRAY_OF_STRING) + @javax.annotation.Nullable private List arrayOfString = new ArrayList<>(); public static final String SERIALIZED_NAME_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_OF_INTEGER) + @javax.annotation.Nullable private List> arrayArrayOfInteger = new ArrayList<>(); public static final String SERIALIZED_NAME_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_OF_MODEL) + @javax.annotation.Nullable private List> arrayArrayOfModel = new ArrayList<>(); public ArrayTest() { } - public ArrayTest arrayOfString(List arrayOfString) { + public ArrayTest arrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; return this; } @@ -92,12 +95,12 @@ public List getArrayOfString() { return arrayOfString; } - public void setArrayOfString(List arrayOfString) { + public void setArrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; } - public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + public ArrayTest arrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; return this; } @@ -119,12 +122,12 @@ public List> getArrayArrayOfInteger() { return arrayArrayOfInteger; } - public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { + public void setArrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } - public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + public ArrayTest arrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; return this; } @@ -146,7 +149,7 @@ public List> getArrayArrayOfModel() { return arrayArrayOfModel; } - public void setArrayArrayOfModel(List> arrayArrayOfModel) { + public void setArrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/BigCat.java index c50948c3c715..f1324040154b 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/BigCat.java @@ -111,6 +111,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @javax.annotation.Nullable private KindEnum kind; public BigCat() { @@ -118,7 +119,7 @@ public BigCat() { this.className = this.getClass().getSimpleName(); } - public BigCat kind(KindEnum kind) { + public BigCat kind(@javax.annotation.Nullable KindEnum kind) { this.kind = kind; return this; } @@ -132,7 +133,7 @@ public KindEnum getKind() { return kind; } - public void setKind(KindEnum kind) { + public void setKind(@javax.annotation.Nullable KindEnum kind) { this.kind = kind; } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Capitalization.java index d1cff9f5e0cf..08a2279789f3 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Capitalization.java @@ -54,32 +54,38 @@ public class Capitalization implements Parcelable { public static final String SERIALIZED_NAME_SMALL_CAMEL = "smallCamel"; @SerializedName(SERIALIZED_NAME_SMALL_CAMEL) + @javax.annotation.Nullable private String smallCamel; public static final String SERIALIZED_NAME_CAPITAL_CAMEL = "CapitalCamel"; @SerializedName(SERIALIZED_NAME_CAPITAL_CAMEL) + @javax.annotation.Nullable private String capitalCamel; public static final String SERIALIZED_NAME_SMALL_SNAKE = "small_Snake"; @SerializedName(SERIALIZED_NAME_SMALL_SNAKE) + @javax.annotation.Nullable private String smallSnake; public static final String SERIALIZED_NAME_CAPITAL_SNAKE = "Capital_Snake"; @SerializedName(SERIALIZED_NAME_CAPITAL_SNAKE) + @javax.annotation.Nullable private String capitalSnake; public static final String SERIALIZED_NAME_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; @SerializedName(SERIALIZED_NAME_SC_A_E_T_H_FLOW_POINTS) + @javax.annotation.Nullable private String scAETHFlowPoints; public static final String SERIALIZED_NAME_A_T_T_N_A_M_E = "ATT_NAME"; @SerializedName(SERIALIZED_NAME_A_T_T_N_A_M_E) + @javax.annotation.Nullable private String ATT_NAME; public Capitalization() { } - public Capitalization smallCamel(String smallCamel) { + public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; return this; } @@ -93,12 +99,12 @@ public String getSmallCamel() { return smallCamel; } - public void setSmallCamel(String smallCamel) { + public void setSmallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; } - public Capitalization capitalCamel(String capitalCamel) { + public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; return this; } @@ -112,12 +118,12 @@ public String getCapitalCamel() { return capitalCamel; } - public void setCapitalCamel(String capitalCamel) { + public void setCapitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; } - public Capitalization smallSnake(String smallSnake) { + public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; return this; } @@ -131,12 +137,12 @@ public String getSmallSnake() { return smallSnake; } - public void setSmallSnake(String smallSnake) { + public void setSmallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; } - public Capitalization capitalSnake(String capitalSnake) { + public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; return this; } @@ -150,12 +156,12 @@ public String getCapitalSnake() { return capitalSnake; } - public void setCapitalSnake(String capitalSnake) { + public void setCapitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; } - public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -169,12 +175,12 @@ public String getScAETHFlowPoints() { return scAETHFlowPoints; } - public void setScAETHFlowPoints(String scAETHFlowPoints) { + public void setScAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } - public Capitalization ATT_NAME(String ATT_NAME) { + public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; return this; } @@ -188,7 +194,7 @@ public String getATTNAME() { return ATT_NAME; } - public void setATTNAME(String ATT_NAME) { + public void setATTNAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Cat.java index 4c8a66888ad1..766041d62322 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Cat.java @@ -55,6 +55,7 @@ public class Cat extends Animal implements Parcelable { public static final String SERIALIZED_NAME_DECLAWED = "declawed"; @SerializedName(SERIALIZED_NAME_DECLAWED) + @javax.annotation.Nullable private Boolean declawed; public Cat() { @@ -62,7 +63,7 @@ public Cat() { this.className = this.getClass().getSimpleName(); } - public Cat declawed(Boolean declawed) { + public Cat declawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -76,7 +77,7 @@ public Boolean getDeclawed() { return declawed; } - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Category.java index b327cf7f3f48..5482cc12d998 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Category.java @@ -54,16 +54,18 @@ public class Category implements Parcelable { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull private String name = "default-name"; public Category() { } - public Category id(Long id) { + public Category id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -77,12 +79,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@javax.annotation.Nonnull String name) { this.name = name; return this; } @@ -96,7 +98,7 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ClassModel.java index decdc5d39146..e5ac69cd05cf 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ClassModel.java @@ -54,12 +54,13 @@ public class ClassModel implements Parcelable { public static final String SERIALIZED_NAME_PROPERTY_CLASS = "_class"; @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) + @javax.annotation.Nullable private String propertyClass; public ClassModel() { } - public ClassModel propertyClass(String propertyClass) { + public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -73,7 +74,7 @@ public String getPropertyClass() { return propertyClass; } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Client.java index d56152496fea..39b70e073ae3 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Client.java @@ -54,12 +54,13 @@ public class Client implements Parcelable { public static final String SERIALIZED_NAME_CLIENT = "client"; @SerializedName(SERIALIZED_NAME_CLIENT) + @javax.annotation.Nullable private String client; public Client() { } - public Client client(String client) { + public Client client(@javax.annotation.Nullable String client) { this.client = client; return this; } @@ -73,7 +74,7 @@ public String getClient() { return client; } - public void setClient(String client) { + public void setClient(@javax.annotation.Nullable String client) { this.client = client; } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Dog.java index 4f0504ef7eb7..72e255127c5e 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Dog.java @@ -55,6 +55,7 @@ public class Dog extends Animal implements Parcelable { public static final String SERIALIZED_NAME_BREED = "breed"; @SerializedName(SERIALIZED_NAME_BREED) + @javax.annotation.Nullable private String breed; public Dog() { @@ -62,7 +63,7 @@ public Dog() { this.className = this.getClass().getSimpleName(); } - public Dog breed(String breed) { + public Dog breed(@javax.annotation.Nullable String breed) { this.breed = breed; return this; } @@ -76,7 +77,7 @@ public String getBreed() { return breed; } - public void setBreed(String breed) { + public void setBreed(@javax.annotation.Nullable String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/EnumArrays.java index 5ea3c720c449..5dc956e6fffa 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -108,6 +108,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_JUST_SYMBOL = "just_symbol"; @SerializedName(SERIALIZED_NAME_JUST_SYMBOL) + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** @@ -164,12 +165,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_ARRAY_ENUM = "array_enum"; @SerializedName(SERIALIZED_NAME_ARRAY_ENUM) + @javax.annotation.Nullable private List arrayEnum = new ArrayList<>(); public EnumArrays() { } - public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; } @@ -183,12 +185,12 @@ public JustSymbolEnum getJustSymbol() { return justSymbol; } - public void setJustSymbol(JustSymbolEnum justSymbol) { + public void setJustSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } - public EnumArrays arrayEnum(List arrayEnum) { + public EnumArrays arrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; return this; } @@ -210,7 +212,7 @@ public List getArrayEnum() { return arrayEnum; } - public void setArrayEnum(List arrayEnum) { + public void setArrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/EnumTest.java index a8c563502d06..6eb621f1c163 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/EnumTest.java @@ -109,6 +109,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_ENUM_STRING = "enum_string"; @SerializedName(SERIALIZED_NAME_ENUM_STRING) + @javax.annotation.Nullable private EnumStringEnum enumString; /** @@ -167,6 +168,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_ENUM_STRING_REQUIRED = "enum_string_required"; @SerializedName(SERIALIZED_NAME_ENUM_STRING_REQUIRED) + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** @@ -223,6 +225,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_ENUM_INTEGER = "enum_integer"; @SerializedName(SERIALIZED_NAME_ENUM_INTEGER) + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** @@ -279,16 +282,18 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_ENUM_NUMBER = "enum_number"; @SerializedName(SERIALIZED_NAME_ENUM_NUMBER) + @javax.annotation.Nullable private EnumNumberEnum enumNumber; public static final String SERIALIZED_NAME_OUTER_ENUM = "outerEnum"; @SerializedName(SERIALIZED_NAME_OUTER_ENUM) + @javax.annotation.Nullable private OuterEnum outerEnum; public EnumTest() { } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -302,12 +307,12 @@ public EnumStringEnum getEnumString() { return enumString; } - public void setEnumString(EnumStringEnum enumString) { + public void setEnumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; } - public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; return this; } @@ -321,12 +326,12 @@ public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; } - public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public void setEnumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -340,12 +345,12 @@ public EnumIntegerEnum getEnumInteger() { return enumInteger; } - public void setEnumInteger(EnumIntegerEnum enumInteger) { + public void setEnumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } - public EnumTest enumNumber(EnumNumberEnum enumNumber) { + public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; return this; } @@ -359,12 +364,12 @@ public EnumNumberEnum getEnumNumber() { return enumNumber; } - public void setEnumNumber(EnumNumberEnum enumNumber) { + public void setEnumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } - public EnumTest outerEnum(OuterEnum outerEnum) { + public EnumTest outerEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; return this; } @@ -378,7 +383,7 @@ public OuterEnum getOuterEnum() { return outerEnum; } - public void setOuterEnum(OuterEnum outerEnum) { + public void setOuterEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 16672695f104..f8203fccf9cf 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -57,16 +57,18 @@ public class FileSchemaTestClass implements Parcelable { public static final String SERIALIZED_NAME_FILE = "file"; @SerializedName(SERIALIZED_NAME_FILE) + @javax.annotation.Nullable private ModelFile _file; public static final String SERIALIZED_NAME_FILES = "files"; @SerializedName(SERIALIZED_NAME_FILES) + @javax.annotation.Nullable private List files = new ArrayList<>(); public FileSchemaTestClass() { } - public FileSchemaTestClass _file(ModelFile _file) { + public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { this._file = _file; return this; } @@ -80,12 +82,12 @@ public ModelFile getFile() { return _file; } - public void setFile(ModelFile _file) { + public void setFile(@javax.annotation.Nullable ModelFile _file) { this._file = _file; } - public FileSchemaTestClass files(List files) { + public FileSchemaTestClass files(@javax.annotation.Nullable List files) { this.files = files; return this; } @@ -107,7 +109,7 @@ public List getFiles() { return files; } - public void setFiles(List files) { + public void setFiles(@javax.annotation.Nullable List files) { this.files = files; } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/FormatTest.java index 06228d1447ff..8e64a0bd4ba9 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/FormatTest.java @@ -59,64 +59,78 @@ public class FormatTest implements Parcelable { public static final String SERIALIZED_NAME_INTEGER = "integer"; @SerializedName(SERIALIZED_NAME_INTEGER) + @javax.annotation.Nullable private Integer integer; public static final String SERIALIZED_NAME_INT32 = "int32"; @SerializedName(SERIALIZED_NAME_INT32) + @javax.annotation.Nullable private Integer int32; public static final String SERIALIZED_NAME_INT64 = "int64"; @SerializedName(SERIALIZED_NAME_INT64) + @javax.annotation.Nullable private Long int64; public static final String SERIALIZED_NAME_NUMBER = "number"; @SerializedName(SERIALIZED_NAME_NUMBER) + @javax.annotation.Nonnull private BigDecimal number; public static final String SERIALIZED_NAME_FLOAT = "float"; @SerializedName(SERIALIZED_NAME_FLOAT) + @javax.annotation.Nullable private Float _float; public static final String SERIALIZED_NAME_DOUBLE = "double"; @SerializedName(SERIALIZED_NAME_DOUBLE) + @javax.annotation.Nullable private Double _double; public static final String SERIALIZED_NAME_STRING = "string"; @SerializedName(SERIALIZED_NAME_STRING) + @javax.annotation.Nullable private String string; public static final String SERIALIZED_NAME_BYTE = "byte"; @SerializedName(SERIALIZED_NAME_BYTE) + @javax.annotation.Nonnull private byte[] _byte; public static final String SERIALIZED_NAME_BINARY = "binary"; @SerializedName(SERIALIZED_NAME_BINARY) + @javax.annotation.Nullable private File binary; public static final String SERIALIZED_NAME_DATE = "date"; @SerializedName(SERIALIZED_NAME_DATE) + @javax.annotation.Nonnull private LocalDate date; public static final String SERIALIZED_NAME_DATE_TIME = "dateTime"; @SerializedName(SERIALIZED_NAME_DATE_TIME) + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) + @javax.annotation.Nullable private UUID uuid; public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) + @javax.annotation.Nonnull private String password; public static final String SERIALIZED_NAME_BIG_DECIMAL = "BigDecimal"; @SerializedName(SERIALIZED_NAME_BIG_DECIMAL) + @javax.annotation.Nullable private BigDecimal bigDecimal; public FormatTest() { } - public FormatTest integer(Integer integer) { + public FormatTest integer(@javax.annotation.Nullable Integer integer) { this.integer = integer; return this; } @@ -132,12 +146,12 @@ public Integer getInteger() { return integer; } - public void setInteger(Integer integer) { + public void setInteger(@javax.annotation.Nullable Integer integer) { this.integer = integer; } - public FormatTest int32(Integer int32) { + public FormatTest int32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; return this; } @@ -153,12 +167,12 @@ public Integer getInt32() { return int32; } - public void setInt32(Integer int32) { + public void setInt32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; } - public FormatTest int64(Long int64) { + public FormatTest int64(@javax.annotation.Nullable Long int64) { this.int64 = int64; return this; } @@ -172,12 +186,12 @@ public Long getInt64() { return int64; } - public void setInt64(Long int64) { + public void setInt64(@javax.annotation.Nullable Long int64) { this.int64 = int64; } - public FormatTest number(BigDecimal number) { + public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { this.number = number; return this; } @@ -193,12 +207,12 @@ public BigDecimal getNumber() { return number; } - public void setNumber(BigDecimal number) { + public void setNumber(@javax.annotation.Nonnull BigDecimal number) { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@javax.annotation.Nullable Float _float) { this._float = _float; return this; } @@ -214,12 +228,12 @@ public Float getFloat() { return _float; } - public void setFloat(Float _float) { + public void setFloat(@javax.annotation.Nullable Float _float) { this._float = _float; } - public FormatTest _double(Double _double) { + public FormatTest _double(@javax.annotation.Nullable Double _double) { this._double = _double; return this; } @@ -235,12 +249,12 @@ public Double getDouble() { return _double; } - public void setDouble(Double _double) { + public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; } - public FormatTest string(String string) { + public FormatTest string(@javax.annotation.Nullable String string) { this.string = string; return this; } @@ -254,12 +268,12 @@ public String getString() { return string; } - public void setString(String string) { + public void setString(@javax.annotation.Nullable String string) { this.string = string; } - public FormatTest _byte(byte[] _byte) { + public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; return this; } @@ -273,12 +287,12 @@ public byte[] getByte() { return _byte; } - public void setByte(byte[] _byte) { + public void setByte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; } - public FormatTest binary(File binary) { + public FormatTest binary(@javax.annotation.Nullable File binary) { this.binary = binary; return this; } @@ -292,12 +306,12 @@ public File getBinary() { return binary; } - public void setBinary(File binary) { + public void setBinary(@javax.annotation.Nullable File binary) { this.binary = binary; } - public FormatTest date(LocalDate date) { + public FormatTest date(@javax.annotation.Nonnull LocalDate date) { this.date = date; return this; } @@ -311,12 +325,12 @@ public LocalDate getDate() { return date; } - public void setDate(LocalDate date) { + public void setDate(@javax.annotation.Nonnull LocalDate date) { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -330,12 +344,12 @@ public OffsetDateTime getDateTime() { return dateTime; } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public FormatTest uuid(UUID uuid) { + public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -349,12 +363,12 @@ public UUID getUuid() { return uuid; } - public void setUuid(UUID uuid) { + public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public FormatTest password(String password) { + public FormatTest password(@javax.annotation.Nonnull String password) { this.password = password; return this; } @@ -368,12 +382,12 @@ public String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nonnull String password) { this.password = password; } - public FormatTest bigDecimal(BigDecimal bigDecimal) { + public FormatTest bigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; } @@ -387,7 +401,7 @@ public BigDecimal getBigDecimal() { return bigDecimal; } - public void setBigDecimal(BigDecimal bigDecimal) { + public void setBigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index e3b968f26270..3e609d5b0152 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -54,10 +54,12 @@ public class HasOnlyReadOnly implements Parcelable { public static final String SERIALIZED_NAME_BAR = "bar"; @SerializedName(SERIALIZED_NAME_BAR) + @javax.annotation.Nullable private String bar; public static final String SERIALIZED_NAME_FOO = "foo"; @SerializedName(SERIALIZED_NAME_FOO) + @javax.annotation.Nullable private String foo; public HasOnlyReadOnly() { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/MapTest.java index a6e641bccc4b..91d814beb768 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/MapTest.java @@ -56,6 +56,7 @@ public class MapTest implements Parcelable { public static final String SERIALIZED_NAME_MAP_MAP_OF_STRING = "map_map_of_string"; @SerializedName(SERIALIZED_NAME_MAP_MAP_OF_STRING) + @javax.annotation.Nullable private Map> mapMapOfString = new HashMap<>(); /** @@ -112,20 +113,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_MAP_OF_ENUM_STRING = "map_of_enum_string"; @SerializedName(SERIALIZED_NAME_MAP_OF_ENUM_STRING) + @javax.annotation.Nullable private Map mapOfEnumString = new HashMap<>(); public static final String SERIALIZED_NAME_DIRECT_MAP = "direct_map"; @SerializedName(SERIALIZED_NAME_DIRECT_MAP) + @javax.annotation.Nullable private Map directMap = new HashMap<>(); public static final String SERIALIZED_NAME_INDIRECT_MAP = "indirect_map"; @SerializedName(SERIALIZED_NAME_INDIRECT_MAP) + @javax.annotation.Nullable private Map indirectMap = new HashMap<>(); public MapTest() { } - public MapTest mapMapOfString(Map> mapMapOfString) { + public MapTest mapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; return this; } @@ -147,12 +151,12 @@ public Map> getMapMapOfString() { return mapMapOfString; } - public void setMapMapOfString(Map> mapMapOfString) { + public void setMapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } - public MapTest mapOfEnumString(Map mapOfEnumString) { + public MapTest mapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; return this; } @@ -174,12 +178,12 @@ public Map getMapOfEnumString() { return mapOfEnumString; } - public void setMapOfEnumString(Map mapOfEnumString) { + public void setMapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } - public MapTest directMap(Map directMap) { + public MapTest directMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; return this; } @@ -201,12 +205,12 @@ public Map getDirectMap() { return directMap; } - public void setDirectMap(Map directMap) { + public void setDirectMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; } - public MapTest indirectMap(Map indirectMap) { + public MapTest indirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; return this; } @@ -228,7 +232,7 @@ public Map getIndirectMap() { return indirectMap; } - public void setIndirectMap(Map indirectMap) { + public void setIndirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 0a704de1193f..ef19f277f927 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -59,20 +59,23 @@ public class MixedPropertiesAndAdditionalPropertiesClass implements Parcelable { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) + @javax.annotation.Nullable private UUID uuid; public static final String SERIALIZED_NAME_DATE_TIME = "dateTime"; @SerializedName(SERIALIZED_NAME_DATE_TIME) + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String SERIALIZED_NAME_MAP = "map"; @SerializedName(SERIALIZED_NAME_MAP) + @javax.annotation.Nullable private Map map = new HashMap<>(); public MixedPropertiesAndAdditionalPropertiesClass() { } - public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -86,12 +89,12 @@ public UUID getUuid() { return uuid; } - public void setUuid(UUID uuid) { + public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -105,12 +108,12 @@ public OffsetDateTime getDateTime() { return dateTime; } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + public MixedPropertiesAndAdditionalPropertiesClass map(@javax.annotation.Nullable Map map) { this.map = map; return this; } @@ -132,7 +135,7 @@ public Map getMap() { return map; } - public void setMap(Map map) { + public void setMap(@javax.annotation.Nullable Map map) { this.map = map; } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Model200Response.java index 7cdebd3a8465..44ca691fe5d6 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Model200Response.java @@ -54,16 +54,18 @@ public class Model200Response implements Parcelable { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private Integer name; public static final String SERIALIZED_NAME_PROPERTY_CLASS = "class"; @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) + @javax.annotation.Nullable private String propertyClass; public Model200Response() { } - public Model200Response name(Integer name) { + public Model200Response name(@javax.annotation.Nullable Integer name) { this.name = name; return this; } @@ -77,12 +79,12 @@ public Integer getName() { return name; } - public void setName(Integer name) { + public void setName(@javax.annotation.Nullable Integer name) { this.name = name; } - public Model200Response propertyClass(String propertyClass) { + public Model200Response propertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -96,7 +98,7 @@ public String getPropertyClass() { return propertyClass; } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 7bbbe95748c8..b929c1ee52d2 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -54,20 +54,23 @@ public class ModelApiResponse implements Parcelable { public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) + @javax.annotation.Nullable private Integer code; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @javax.annotation.Nullable private String type; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable private String message; public ModelApiResponse() { } - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@javax.annotation.Nullable Integer code) { this.code = code; return this; } @@ -81,12 +84,12 @@ public Integer getCode() { return code; } - public void setCode(Integer code) { + public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@javax.annotation.Nullable String type) { this.type = type; return this; } @@ -100,12 +103,12 @@ public String getType() { return type; } - public void setType(String type) { + public void setType(@javax.annotation.Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@javax.annotation.Nullable String message) { this.message = message; return this; } @@ -119,7 +122,7 @@ public String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ModelFile.java index 961ac5c885bc..f45f74a41ce9 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ModelFile.java @@ -54,12 +54,13 @@ public class ModelFile implements Parcelable { public static final String SERIALIZED_NAME_SOURCE_U_R_I = "sourceURI"; @SerializedName(SERIALIZED_NAME_SOURCE_U_R_I) + @javax.annotation.Nullable private String sourceURI; public ModelFile() { } - public ModelFile sourceURI(String sourceURI) { + public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; return this; } @@ -73,7 +74,7 @@ public String getSourceURI() { return sourceURI; } - public void setSourceURI(String sourceURI) { + public void setSourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ModelList.java index e8894ef58006..26c8dc93a992 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ModelList.java @@ -54,12 +54,13 @@ public class ModelList implements Parcelable { public static final String SERIALIZED_NAME_123LIST = "123-list"; @SerializedName(SERIALIZED_NAME_123LIST) + @javax.annotation.Nullable private String _123list; public ModelList() { } - public ModelList _123list(String _123list) { + public ModelList _123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; return this; } @@ -73,7 +74,7 @@ public String get123list() { return _123list; } - public void set123list(String _123list) { + public void set123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ModelReturn.java index 0cb9c3e57f66..84f3449e1059 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -54,12 +54,13 @@ public class ModelReturn implements Parcelable { public static final String SERIALIZED_NAME_RETURN = "return"; @SerializedName(SERIALIZED_NAME_RETURN) + @javax.annotation.Nullable private Integer _return; public ModelReturn() { } - public ModelReturn _return(Integer _return) { + public ModelReturn _return(@javax.annotation.Nullable Integer _return) { this._return = _return; return this; } @@ -73,7 +74,7 @@ public Integer getReturn() { return _return; } - public void setReturn(Integer _return) { + public void setReturn(@javax.annotation.Nullable Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Name.java index 30925c431ab2..87b00145456f 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Name.java @@ -54,18 +54,22 @@ public class Name implements Parcelable { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull private Integer name; public static final String SERIALIZED_NAME_SNAKE_CASE = "snake_case"; @SerializedName(SERIALIZED_NAME_SNAKE_CASE) + @javax.annotation.Nullable private Integer snakeCase; public static final String SERIALIZED_NAME_PROPERTY = "property"; @SerializedName(SERIALIZED_NAME_PROPERTY) + @javax.annotation.Nullable private String property; public static final String SERIALIZED_NAME_123NUMBER = "123Number"; @SerializedName(SERIALIZED_NAME_123NUMBER) + @javax.annotation.Nullable private Integer _123number; public Name() { @@ -80,7 +84,7 @@ public Name( this._123number = _123number; } - public Name name(Integer name) { + public Name name(@javax.annotation.Nonnull Integer name) { this.name = name; return this; } @@ -94,7 +98,7 @@ public Integer getName() { return name; } - public void setName(Integer name) { + public void setName(@javax.annotation.Nonnull Integer name) { this.name = name; } @@ -110,7 +114,7 @@ public Integer getSnakeCase() { - public Name property(String property) { + public Name property(@javax.annotation.Nullable String property) { this.property = property; return this; } @@ -124,7 +128,7 @@ public String getProperty() { return property; } - public void setProperty(String property) { + public void setProperty(@javax.annotation.Nullable String property) { this.property = property; } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/NumberOnly.java index cd3f0afc2e32..54a22f509d46 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -55,12 +55,13 @@ public class NumberOnly implements Parcelable { public static final String SERIALIZED_NAME_JUST_NUMBER = "JustNumber"; @SerializedName(SERIALIZED_NAME_JUST_NUMBER) + @javax.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } - public NumberOnly justNumber(BigDecimal justNumber) { + public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; } @@ -74,7 +75,7 @@ public BigDecimal getJustNumber() { return justNumber; } - public void setJustNumber(BigDecimal justNumber) { + public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Order.java index e4e6aa5d2ef1..34eeb9844186 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Order.java @@ -55,18 +55,22 @@ public class Order implements Parcelable { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_PET_ID = "petId"; @SerializedName(SERIALIZED_NAME_PET_ID) + @javax.annotation.Nullable private Long petId; public static final String SERIALIZED_NAME_QUANTITY = "quantity"; @SerializedName(SERIALIZED_NAME_QUANTITY) + @javax.annotation.Nullable private Integer quantity; public static final String SERIALIZED_NAME_SHIP_DATE = "shipDate"; @SerializedName(SERIALIZED_NAME_SHIP_DATE) + @javax.annotation.Nullable private OffsetDateTime shipDate; /** @@ -125,16 +129,18 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable private StatusEnum status; public static final String SERIALIZED_NAME_COMPLETE = "complete"; @SerializedName(SERIALIZED_NAME_COMPLETE) + @javax.annotation.Nullable private Boolean complete = false; public Order() { } - public Order id(Long id) { + public Order id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -148,12 +154,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@javax.annotation.Nullable Long petId) { this.petId = petId; return this; } @@ -167,12 +173,12 @@ public Long getPetId() { return petId; } - public void setPetId(Long petId) { + public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -186,12 +192,12 @@ public Integer getQuantity() { return quantity; } - public void setQuantity(Integer quantity) { + public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -205,12 +211,12 @@ public OffsetDateTime getShipDate() { return shipDate; } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; } @@ -224,12 +230,12 @@ public StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } - public Order complete(Boolean complete) { + public Order complete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; return this; } @@ -243,7 +249,7 @@ public Boolean getComplete() { return complete; } - public void setComplete(Boolean complete) { + public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/OuterComposite.java index 1516d8a0b567..376627281267 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -55,20 +55,23 @@ public class OuterComposite implements Parcelable { public static final String SERIALIZED_NAME_MY_NUMBER = "my_number"; @SerializedName(SERIALIZED_NAME_MY_NUMBER) + @javax.annotation.Nullable private BigDecimal myNumber; public static final String SERIALIZED_NAME_MY_STRING = "my_string"; @SerializedName(SERIALIZED_NAME_MY_STRING) + @javax.annotation.Nullable private String myString; public static final String SERIALIZED_NAME_MY_BOOLEAN = "my_boolean"; @SerializedName(SERIALIZED_NAME_MY_BOOLEAN) + @javax.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } - public OuterComposite myNumber(BigDecimal myNumber) { + public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; } @@ -82,12 +85,12 @@ public BigDecimal getMyNumber() { return myNumber; } - public void setMyNumber(BigDecimal myNumber) { + public void setMyNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; } - public OuterComposite myString(String myString) { + public OuterComposite myString(@javax.annotation.Nullable String myString) { this.myString = myString; return this; } @@ -101,12 +104,12 @@ public String getMyString() { return myString; } - public void setMyString(String myString) { + public void setMyString(@javax.annotation.Nullable String myString) { this.myString = myString; } - public OuterComposite myBoolean(Boolean myBoolean) { + public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; return this; } @@ -120,7 +123,7 @@ public Boolean getMyBoolean() { return myBoolean; } - public void setMyBoolean(Boolean myBoolean) { + public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Pet.java index 25b6b9e03166..21c70c524a96 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Pet.java @@ -60,22 +60,27 @@ public class Pet implements Parcelable { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_CATEGORY = "category"; @SerializedName(SERIALIZED_NAME_CATEGORY) + @javax.annotation.Nullable private Category category; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; @SerializedName(SERIALIZED_NAME_PHOTO_URLS) + @javax.annotation.Nonnull private Set photoUrls = new LinkedHashSet<>(); public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** @@ -134,12 +139,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable private StatusEnum status; public Pet() { } - public Pet id(Long id) { + public Pet id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -153,12 +159,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@javax.annotation.Nullable Category category) { this.category = category; return this; } @@ -172,12 +178,12 @@ public Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; } - public Pet name(String name) { + public Pet name(@javax.annotation.Nonnull String name) { this.name = name; return this; } @@ -191,12 +197,12 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } - public Pet photoUrls(Set photoUrls) { + public Pet photoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; return this; } @@ -218,12 +224,12 @@ public Set getPhotoUrls() { return photoUrls; } - public void setPhotoUrls(Set photoUrls) { + public void setPhotoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; } - public Pet tags(List tags) { + public Pet tags(@javax.annotation.Nullable List tags) { this.tags = tags; return this; } @@ -245,12 +251,12 @@ public List getTags() { return tags; } - public void setTags(List tags) { + public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; } @@ -264,7 +270,7 @@ public StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index cb17575b4202..00c04108ed63 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -54,10 +54,12 @@ public class ReadOnlyFirst implements Parcelable { public static final String SERIALIZED_NAME_BAR = "bar"; @SerializedName(SERIALIZED_NAME_BAR) + @javax.annotation.Nullable private String bar; public static final String SERIALIZED_NAME_BAZ = "baz"; @SerializedName(SERIALIZED_NAME_BAZ) + @javax.annotation.Nullable private String baz; public ReadOnlyFirst() { @@ -81,7 +83,7 @@ public String getBar() { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { this.baz = baz; return this; } @@ -95,7 +97,7 @@ public String getBaz() { return baz; } - public void setBaz(String baz) { + public void setBaz(@javax.annotation.Nullable String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/SpecialModelName.java index 008548abd8ff..bbb98974ab1d 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -54,12 +54,13 @@ public class SpecialModelName implements Parcelable { public static final String SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; @SerializedName(SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME) + @javax.annotation.Nullable private Long $specialPropertyName; public SpecialModelName() { } - public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + public SpecialModelName $specialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; return this; } @@ -73,7 +74,7 @@ public SpecialModelName() { return $specialPropertyName; } - public void set$SpecialPropertyName(Long $specialPropertyName) { + public void set$SpecialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Tag.java index 8d0a9e141d5d..50473736e457 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Tag.java @@ -54,16 +54,18 @@ public class Tag implements Parcelable { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public Tag() { } - public Tag id(Long id) { + public Tag id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -77,12 +79,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -96,7 +98,7 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index f2c25034d695..eb58b46ddd41 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -57,28 +57,33 @@ public class TypeHolderDefault implements Parcelable { public static final String SERIALIZED_NAME_STRING_ITEM = "string_item"; @SerializedName(SERIALIZED_NAME_STRING_ITEM) + @javax.annotation.Nonnull private String stringItem = "what"; public static final String SERIALIZED_NAME_NUMBER_ITEM = "number_item"; @SerializedName(SERIALIZED_NAME_NUMBER_ITEM) + @javax.annotation.Nonnull private BigDecimal numberItem; public static final String SERIALIZED_NAME_INTEGER_ITEM = "integer_item"; @SerializedName(SERIALIZED_NAME_INTEGER_ITEM) + @javax.annotation.Nonnull private Integer integerItem; public static final String SERIALIZED_NAME_BOOL_ITEM = "bool_item"; @SerializedName(SERIALIZED_NAME_BOOL_ITEM) + @javax.annotation.Nonnull private Boolean boolItem = true; public static final String SERIALIZED_NAME_ARRAY_ITEM = "array_item"; @SerializedName(SERIALIZED_NAME_ARRAY_ITEM) + @javax.annotation.Nonnull private List arrayItem = new ArrayList<>(); public TypeHolderDefault() { } - public TypeHolderDefault stringItem(String stringItem) { + public TypeHolderDefault stringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; return this; } @@ -92,12 +97,12 @@ public String getStringItem() { return stringItem; } - public void setStringItem(String stringItem) { + public void setStringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; } - public TypeHolderDefault numberItem(BigDecimal numberItem) { + public TypeHolderDefault numberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; return this; } @@ -111,12 +116,12 @@ public BigDecimal getNumberItem() { return numberItem; } - public void setNumberItem(BigDecimal numberItem) { + public void setNumberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; } - public TypeHolderDefault integerItem(Integer integerItem) { + public TypeHolderDefault integerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; return this; } @@ -130,12 +135,12 @@ public Integer getIntegerItem() { return integerItem; } - public void setIntegerItem(Integer integerItem) { + public void setIntegerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; } - public TypeHolderDefault boolItem(Boolean boolItem) { + public TypeHolderDefault boolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; return this; } @@ -149,12 +154,12 @@ public Boolean getBoolItem() { return boolItem; } - public void setBoolItem(Boolean boolItem) { + public void setBoolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; } - public TypeHolderDefault arrayItem(List arrayItem) { + public TypeHolderDefault arrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; return this; } @@ -176,7 +181,7 @@ public List getArrayItem() { return arrayItem; } - public void setArrayItem(List arrayItem) { + public void setArrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/TypeHolderExample.java index 8832e02a6905..8bef21693426 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -57,32 +57,38 @@ public class TypeHolderExample implements Parcelable { public static final String SERIALIZED_NAME_STRING_ITEM = "string_item"; @SerializedName(SERIALIZED_NAME_STRING_ITEM) + @javax.annotation.Nonnull private String stringItem; public static final String SERIALIZED_NAME_NUMBER_ITEM = "number_item"; @SerializedName(SERIALIZED_NAME_NUMBER_ITEM) + @javax.annotation.Nonnull private BigDecimal numberItem; public static final String SERIALIZED_NAME_FLOAT_ITEM = "float_item"; @SerializedName(SERIALIZED_NAME_FLOAT_ITEM) + @javax.annotation.Nonnull private Float floatItem; public static final String SERIALIZED_NAME_INTEGER_ITEM = "integer_item"; @SerializedName(SERIALIZED_NAME_INTEGER_ITEM) + @javax.annotation.Nonnull private Integer integerItem; public static final String SERIALIZED_NAME_BOOL_ITEM = "bool_item"; @SerializedName(SERIALIZED_NAME_BOOL_ITEM) + @javax.annotation.Nonnull private Boolean boolItem; public static final String SERIALIZED_NAME_ARRAY_ITEM = "array_item"; @SerializedName(SERIALIZED_NAME_ARRAY_ITEM) + @javax.annotation.Nonnull private List arrayItem = new ArrayList<>(); public TypeHolderExample() { } - public TypeHolderExample stringItem(String stringItem) { + public TypeHolderExample stringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; return this; } @@ -96,12 +102,12 @@ public String getStringItem() { return stringItem; } - public void setStringItem(String stringItem) { + public void setStringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; } - public TypeHolderExample numberItem(BigDecimal numberItem) { + public TypeHolderExample numberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; return this; } @@ -115,12 +121,12 @@ public BigDecimal getNumberItem() { return numberItem; } - public void setNumberItem(BigDecimal numberItem) { + public void setNumberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; } - public TypeHolderExample floatItem(Float floatItem) { + public TypeHolderExample floatItem(@javax.annotation.Nonnull Float floatItem) { this.floatItem = floatItem; return this; } @@ -134,12 +140,12 @@ public Float getFloatItem() { return floatItem; } - public void setFloatItem(Float floatItem) { + public void setFloatItem(@javax.annotation.Nonnull Float floatItem) { this.floatItem = floatItem; } - public TypeHolderExample integerItem(Integer integerItem) { + public TypeHolderExample integerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; return this; } @@ -153,12 +159,12 @@ public Integer getIntegerItem() { return integerItem; } - public void setIntegerItem(Integer integerItem) { + public void setIntegerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; } - public TypeHolderExample boolItem(Boolean boolItem) { + public TypeHolderExample boolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; return this; } @@ -172,12 +178,12 @@ public Boolean getBoolItem() { return boolItem; } - public void setBoolItem(Boolean boolItem) { + public void setBoolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; } - public TypeHolderExample arrayItem(List arrayItem) { + public TypeHolderExample arrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; return this; } @@ -199,7 +205,7 @@ public List getArrayItem() { return arrayItem; } - public void setArrayItem(List arrayItem) { + public void setArrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/User.java index 4f4f1f22c5ad..4f33cd7bf6b0 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/User.java @@ -54,40 +54,48 @@ public class User implements Parcelable { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_USERNAME = "username"; @SerializedName(SERIALIZED_NAME_USERNAME) + @javax.annotation.Nullable private String username; public static final String SERIALIZED_NAME_FIRST_NAME = "firstName"; @SerializedName(SERIALIZED_NAME_FIRST_NAME) + @javax.annotation.Nullable private String firstName; public static final String SERIALIZED_NAME_LAST_NAME = "lastName"; @SerializedName(SERIALIZED_NAME_LAST_NAME) + @javax.annotation.Nullable private String lastName; public static final String SERIALIZED_NAME_EMAIL = "email"; @SerializedName(SERIALIZED_NAME_EMAIL) + @javax.annotation.Nullable private String email; public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) + @javax.annotation.Nullable private String password; public static final String SERIALIZED_NAME_PHONE = "phone"; @SerializedName(SERIALIZED_NAME_PHONE) + @javax.annotation.Nullable private String phone; public static final String SERIALIZED_NAME_USER_STATUS = "userStatus"; @SerializedName(SERIALIZED_NAME_USER_STATUS) + @javax.annotation.Nullable private Integer userStatus; public User() { } - public User id(Long id) { + public User id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -101,12 +109,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@javax.annotation.Nullable String username) { this.username = username; return this; } @@ -120,12 +128,12 @@ public String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@javax.annotation.Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; return this; } @@ -139,12 +147,12 @@ public String getFirstName() { return firstName; } - public void setFirstName(String firstName) { + public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; return this; } @@ -158,12 +166,12 @@ public String getLastName() { return lastName; } - public void setLastName(String lastName) { + public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@javax.annotation.Nullable String email) { this.email = email; return this; } @@ -177,12 +185,12 @@ public String getEmail() { return email; } - public void setEmail(String email) { + public void setEmail(@javax.annotation.Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@javax.annotation.Nullable String password) { this.password = password; return this; } @@ -196,12 +204,12 @@ public String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@javax.annotation.Nullable String phone) { this.phone = phone; return this; } @@ -215,12 +223,12 @@ public String getPhone() { return phone; } - public void setPhone(String phone) { + public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -234,7 +242,7 @@ public Integer getUserStatus() { return userStatus; } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/XmlItem.java index b6223a01b8c0..255092c0c5b4 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/XmlItem.java @@ -57,124 +57,153 @@ public class XmlItem implements Parcelable { public static final String SERIALIZED_NAME_ATTRIBUTE_STRING = "attribute_string"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_STRING) + @javax.annotation.Nullable private String attributeString; public static final String SERIALIZED_NAME_ATTRIBUTE_NUMBER = "attribute_number"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_NUMBER) + @javax.annotation.Nullable private BigDecimal attributeNumber; public static final String SERIALIZED_NAME_ATTRIBUTE_INTEGER = "attribute_integer"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_INTEGER) + @javax.annotation.Nullable private Integer attributeInteger; public static final String SERIALIZED_NAME_ATTRIBUTE_BOOLEAN = "attribute_boolean"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_BOOLEAN) + @javax.annotation.Nullable private Boolean attributeBoolean; public static final String SERIALIZED_NAME_WRAPPED_ARRAY = "wrapped_array"; @SerializedName(SERIALIZED_NAME_WRAPPED_ARRAY) + @javax.annotation.Nullable private List wrappedArray = new ArrayList<>(); public static final String SERIALIZED_NAME_NAME_STRING = "name_string"; @SerializedName(SERIALIZED_NAME_NAME_STRING) + @javax.annotation.Nullable private String nameString; public static final String SERIALIZED_NAME_NAME_NUMBER = "name_number"; @SerializedName(SERIALIZED_NAME_NAME_NUMBER) + @javax.annotation.Nullable private BigDecimal nameNumber; public static final String SERIALIZED_NAME_NAME_INTEGER = "name_integer"; @SerializedName(SERIALIZED_NAME_NAME_INTEGER) + @javax.annotation.Nullable private Integer nameInteger; public static final String SERIALIZED_NAME_NAME_BOOLEAN = "name_boolean"; @SerializedName(SERIALIZED_NAME_NAME_BOOLEAN) + @javax.annotation.Nullable private Boolean nameBoolean; public static final String SERIALIZED_NAME_NAME_ARRAY = "name_array"; @SerializedName(SERIALIZED_NAME_NAME_ARRAY) + @javax.annotation.Nullable private List nameArray = new ArrayList<>(); public static final String SERIALIZED_NAME_NAME_WRAPPED_ARRAY = "name_wrapped_array"; @SerializedName(SERIALIZED_NAME_NAME_WRAPPED_ARRAY) + @javax.annotation.Nullable private List nameWrappedArray = new ArrayList<>(); public static final String SERIALIZED_NAME_PREFIX_STRING = "prefix_string"; @SerializedName(SERIALIZED_NAME_PREFIX_STRING) + @javax.annotation.Nullable private String prefixString; public static final String SERIALIZED_NAME_PREFIX_NUMBER = "prefix_number"; @SerializedName(SERIALIZED_NAME_PREFIX_NUMBER) + @javax.annotation.Nullable private BigDecimal prefixNumber; public static final String SERIALIZED_NAME_PREFIX_INTEGER = "prefix_integer"; @SerializedName(SERIALIZED_NAME_PREFIX_INTEGER) + @javax.annotation.Nullable private Integer prefixInteger; public static final String SERIALIZED_NAME_PREFIX_BOOLEAN = "prefix_boolean"; @SerializedName(SERIALIZED_NAME_PREFIX_BOOLEAN) + @javax.annotation.Nullable private Boolean prefixBoolean; public static final String SERIALIZED_NAME_PREFIX_ARRAY = "prefix_array"; @SerializedName(SERIALIZED_NAME_PREFIX_ARRAY) + @javax.annotation.Nullable private List prefixArray = new ArrayList<>(); public static final String SERIALIZED_NAME_PREFIX_WRAPPED_ARRAY = "prefix_wrapped_array"; @SerializedName(SERIALIZED_NAME_PREFIX_WRAPPED_ARRAY) + @javax.annotation.Nullable private List prefixWrappedArray = new ArrayList<>(); public static final String SERIALIZED_NAME_NAMESPACE_STRING = "namespace_string"; @SerializedName(SERIALIZED_NAME_NAMESPACE_STRING) + @javax.annotation.Nullable private String namespaceString; public static final String SERIALIZED_NAME_NAMESPACE_NUMBER = "namespace_number"; @SerializedName(SERIALIZED_NAME_NAMESPACE_NUMBER) + @javax.annotation.Nullable private BigDecimal namespaceNumber; public static final String SERIALIZED_NAME_NAMESPACE_INTEGER = "namespace_integer"; @SerializedName(SERIALIZED_NAME_NAMESPACE_INTEGER) + @javax.annotation.Nullable private Integer namespaceInteger; public static final String SERIALIZED_NAME_NAMESPACE_BOOLEAN = "namespace_boolean"; @SerializedName(SERIALIZED_NAME_NAMESPACE_BOOLEAN) + @javax.annotation.Nullable private Boolean namespaceBoolean; public static final String SERIALIZED_NAME_NAMESPACE_ARRAY = "namespace_array"; @SerializedName(SERIALIZED_NAME_NAMESPACE_ARRAY) + @javax.annotation.Nullable private List namespaceArray = new ArrayList<>(); public static final String SERIALIZED_NAME_NAMESPACE_WRAPPED_ARRAY = "namespace_wrapped_array"; @SerializedName(SERIALIZED_NAME_NAMESPACE_WRAPPED_ARRAY) + @javax.annotation.Nullable private List namespaceWrappedArray = new ArrayList<>(); public static final String SERIALIZED_NAME_PREFIX_NS_STRING = "prefix_ns_string"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_STRING) + @javax.annotation.Nullable private String prefixNsString; public static final String SERIALIZED_NAME_PREFIX_NS_NUMBER = "prefix_ns_number"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_NUMBER) + @javax.annotation.Nullable private BigDecimal prefixNsNumber; public static final String SERIALIZED_NAME_PREFIX_NS_INTEGER = "prefix_ns_integer"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_INTEGER) + @javax.annotation.Nullable private Integer prefixNsInteger; public static final String SERIALIZED_NAME_PREFIX_NS_BOOLEAN = "prefix_ns_boolean"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_BOOLEAN) + @javax.annotation.Nullable private Boolean prefixNsBoolean; public static final String SERIALIZED_NAME_PREFIX_NS_ARRAY = "prefix_ns_array"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_ARRAY) + @javax.annotation.Nullable private List prefixNsArray = new ArrayList<>(); public static final String SERIALIZED_NAME_PREFIX_NS_WRAPPED_ARRAY = "prefix_ns_wrapped_array"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_WRAPPED_ARRAY) + @javax.annotation.Nullable private List prefixNsWrappedArray = new ArrayList<>(); public XmlItem() { } - public XmlItem attributeString(String attributeString) { + public XmlItem attributeString(@javax.annotation.Nullable String attributeString) { this.attributeString = attributeString; return this; } @@ -188,12 +217,12 @@ public String getAttributeString() { return attributeString; } - public void setAttributeString(String attributeString) { + public void setAttributeString(@javax.annotation.Nullable String attributeString) { this.attributeString = attributeString; } - public XmlItem attributeNumber(BigDecimal attributeNumber) { + public XmlItem attributeNumber(@javax.annotation.Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; return this; } @@ -207,12 +236,12 @@ public BigDecimal getAttributeNumber() { return attributeNumber; } - public void setAttributeNumber(BigDecimal attributeNumber) { + public void setAttributeNumber(@javax.annotation.Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } - public XmlItem attributeInteger(Integer attributeInteger) { + public XmlItem attributeInteger(@javax.annotation.Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; return this; } @@ -226,12 +255,12 @@ public Integer getAttributeInteger() { return attributeInteger; } - public void setAttributeInteger(Integer attributeInteger) { + public void setAttributeInteger(@javax.annotation.Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; } - public XmlItem attributeBoolean(Boolean attributeBoolean) { + public XmlItem attributeBoolean(@javax.annotation.Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; return this; } @@ -245,12 +274,12 @@ public Boolean getAttributeBoolean() { return attributeBoolean; } - public void setAttributeBoolean(Boolean attributeBoolean) { + public void setAttributeBoolean(@javax.annotation.Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } - public XmlItem wrappedArray(List wrappedArray) { + public XmlItem wrappedArray(@javax.annotation.Nullable List wrappedArray) { this.wrappedArray = wrappedArray; return this; } @@ -272,12 +301,12 @@ public List getWrappedArray() { return wrappedArray; } - public void setWrappedArray(List wrappedArray) { + public void setWrappedArray(@javax.annotation.Nullable List wrappedArray) { this.wrappedArray = wrappedArray; } - public XmlItem nameString(String nameString) { + public XmlItem nameString(@javax.annotation.Nullable String nameString) { this.nameString = nameString; return this; } @@ -291,12 +320,12 @@ public String getNameString() { return nameString; } - public void setNameString(String nameString) { + public void setNameString(@javax.annotation.Nullable String nameString) { this.nameString = nameString; } - public XmlItem nameNumber(BigDecimal nameNumber) { + public XmlItem nameNumber(@javax.annotation.Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; return this; } @@ -310,12 +339,12 @@ public BigDecimal getNameNumber() { return nameNumber; } - public void setNameNumber(BigDecimal nameNumber) { + public void setNameNumber(@javax.annotation.Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; } - public XmlItem nameInteger(Integer nameInteger) { + public XmlItem nameInteger(@javax.annotation.Nullable Integer nameInteger) { this.nameInteger = nameInteger; return this; } @@ -329,12 +358,12 @@ public Integer getNameInteger() { return nameInteger; } - public void setNameInteger(Integer nameInteger) { + public void setNameInteger(@javax.annotation.Nullable Integer nameInteger) { this.nameInteger = nameInteger; } - public XmlItem nameBoolean(Boolean nameBoolean) { + public XmlItem nameBoolean(@javax.annotation.Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; return this; } @@ -348,12 +377,12 @@ public Boolean getNameBoolean() { return nameBoolean; } - public void setNameBoolean(Boolean nameBoolean) { + public void setNameBoolean(@javax.annotation.Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; } - public XmlItem nameArray(List nameArray) { + public XmlItem nameArray(@javax.annotation.Nullable List nameArray) { this.nameArray = nameArray; return this; } @@ -375,12 +404,12 @@ public List getNameArray() { return nameArray; } - public void setNameArray(List nameArray) { + public void setNameArray(@javax.annotation.Nullable List nameArray) { this.nameArray = nameArray; } - public XmlItem nameWrappedArray(List nameWrappedArray) { + public XmlItem nameWrappedArray(@javax.annotation.Nullable List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; return this; } @@ -402,12 +431,12 @@ public List getNameWrappedArray() { return nameWrappedArray; } - public void setNameWrappedArray(List nameWrappedArray) { + public void setNameWrappedArray(@javax.annotation.Nullable List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } - public XmlItem prefixString(String prefixString) { + public XmlItem prefixString(@javax.annotation.Nullable String prefixString) { this.prefixString = prefixString; return this; } @@ -421,12 +450,12 @@ public String getPrefixString() { return prefixString; } - public void setPrefixString(String prefixString) { + public void setPrefixString(@javax.annotation.Nullable String prefixString) { this.prefixString = prefixString; } - public XmlItem prefixNumber(BigDecimal prefixNumber) { + public XmlItem prefixNumber(@javax.annotation.Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; return this; } @@ -440,12 +469,12 @@ public BigDecimal getPrefixNumber() { return prefixNumber; } - public void setPrefixNumber(BigDecimal prefixNumber) { + public void setPrefixNumber(@javax.annotation.Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } - public XmlItem prefixInteger(Integer prefixInteger) { + public XmlItem prefixInteger(@javax.annotation.Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; return this; } @@ -459,12 +488,12 @@ public Integer getPrefixInteger() { return prefixInteger; } - public void setPrefixInteger(Integer prefixInteger) { + public void setPrefixInteger(@javax.annotation.Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; } - public XmlItem prefixBoolean(Boolean prefixBoolean) { + public XmlItem prefixBoolean(@javax.annotation.Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; return this; } @@ -478,12 +507,12 @@ public Boolean getPrefixBoolean() { return prefixBoolean; } - public void setPrefixBoolean(Boolean prefixBoolean) { + public void setPrefixBoolean(@javax.annotation.Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } - public XmlItem prefixArray(List prefixArray) { + public XmlItem prefixArray(@javax.annotation.Nullable List prefixArray) { this.prefixArray = prefixArray; return this; } @@ -505,12 +534,12 @@ public List getPrefixArray() { return prefixArray; } - public void setPrefixArray(List prefixArray) { + public void setPrefixArray(@javax.annotation.Nullable List prefixArray) { this.prefixArray = prefixArray; } - public XmlItem prefixWrappedArray(List prefixWrappedArray) { + public XmlItem prefixWrappedArray(@javax.annotation.Nullable List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; return this; } @@ -532,12 +561,12 @@ public List getPrefixWrappedArray() { return prefixWrappedArray; } - public void setPrefixWrappedArray(List prefixWrappedArray) { + public void setPrefixWrappedArray(@javax.annotation.Nullable List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem namespaceString(String namespaceString) { + public XmlItem namespaceString(@javax.annotation.Nullable String namespaceString) { this.namespaceString = namespaceString; return this; } @@ -551,12 +580,12 @@ public String getNamespaceString() { return namespaceString; } - public void setNamespaceString(String namespaceString) { + public void setNamespaceString(@javax.annotation.Nullable String namespaceString) { this.namespaceString = namespaceString; } - public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + public XmlItem namespaceNumber(@javax.annotation.Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; return this; } @@ -570,12 +599,12 @@ public BigDecimal getNamespaceNumber() { return namespaceNumber; } - public void setNamespaceNumber(BigDecimal namespaceNumber) { + public void setNamespaceNumber(@javax.annotation.Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } - public XmlItem namespaceInteger(Integer namespaceInteger) { + public XmlItem namespaceInteger(@javax.annotation.Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; return this; } @@ -589,12 +618,12 @@ public Integer getNamespaceInteger() { return namespaceInteger; } - public void setNamespaceInteger(Integer namespaceInteger) { + public void setNamespaceInteger(@javax.annotation.Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } - public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + public XmlItem namespaceBoolean(@javax.annotation.Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; return this; } @@ -608,12 +637,12 @@ public Boolean getNamespaceBoolean() { return namespaceBoolean; } - public void setNamespaceBoolean(Boolean namespaceBoolean) { + public void setNamespaceBoolean(@javax.annotation.Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } - public XmlItem namespaceArray(List namespaceArray) { + public XmlItem namespaceArray(@javax.annotation.Nullable List namespaceArray) { this.namespaceArray = namespaceArray; return this; } @@ -635,12 +664,12 @@ public List getNamespaceArray() { return namespaceArray; } - public void setNamespaceArray(List namespaceArray) { + public void setNamespaceArray(@javax.annotation.Nullable List namespaceArray) { this.namespaceArray = namespaceArray; } - public XmlItem namespaceWrappedArray(List namespaceWrappedArray) { + public XmlItem namespaceWrappedArray(@javax.annotation.Nullable List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; return this; } @@ -662,12 +691,12 @@ public List getNamespaceWrappedArray() { return namespaceWrappedArray; } - public void setNamespaceWrappedArray(List namespaceWrappedArray) { + public void setNamespaceWrappedArray(@javax.annotation.Nullable List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem prefixNsString(String prefixNsString) { + public XmlItem prefixNsString(@javax.annotation.Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; } @@ -681,12 +710,12 @@ public String getPrefixNsString() { return prefixNsString; } - public void setPrefixNsString(String prefixNsString) { + public void setPrefixNsString(@javax.annotation.Nullable String prefixNsString) { this.prefixNsString = prefixNsString; } - public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + public XmlItem prefixNsNumber(@javax.annotation.Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; return this; } @@ -700,12 +729,12 @@ public BigDecimal getPrefixNsNumber() { return prefixNsNumber; } - public void setPrefixNsNumber(BigDecimal prefixNsNumber) { + public void setPrefixNsNumber(@javax.annotation.Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } - public XmlItem prefixNsInteger(Integer prefixNsInteger) { + public XmlItem prefixNsInteger(@javax.annotation.Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; return this; } @@ -719,12 +748,12 @@ public Integer getPrefixNsInteger() { return prefixNsInteger; } - public void setPrefixNsInteger(Integer prefixNsInteger) { + public void setPrefixNsInteger(@javax.annotation.Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } - public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + public XmlItem prefixNsBoolean(@javax.annotation.Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; return this; } @@ -738,12 +767,12 @@ public Boolean getPrefixNsBoolean() { return prefixNsBoolean; } - public void setPrefixNsBoolean(Boolean prefixNsBoolean) { + public void setPrefixNsBoolean(@javax.annotation.Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } - public XmlItem prefixNsArray(List prefixNsArray) { + public XmlItem prefixNsArray(@javax.annotation.Nullable List prefixNsArray) { this.prefixNsArray = prefixNsArray; return this; } @@ -765,12 +794,12 @@ public List getPrefixNsArray() { return prefixNsArray; } - public void setPrefixNsArray(List prefixNsArray) { + public void setPrefixNsArray(@javax.annotation.Nullable List prefixNsArray) { this.prefixNsArray = prefixNsArray; } - public XmlItem prefixNsWrappedArray(List prefixNsWrappedArray) { + public XmlItem prefixNsWrappedArray(@javax.annotation.Nullable List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; return this; } @@ -792,7 +821,7 @@ public List getPrefixNsWrappedArray() { return prefixNsWrappedArray; } - public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { + public void setPrefixNsWrappedArray(@javax.annotation.Nullable List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Category.java index b891360de715..bdf86f236a18 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Category.java @@ -55,16 +55,18 @@ public class Category { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public Category() { } - public Category id(Long id) { + public Category id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -79,12 +81,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -99,7 +101,7 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 1f6c07ddce51..33eaa79cf66e 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -55,20 +55,23 @@ public class ModelApiResponse { public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) + @javax.annotation.Nullable private Integer code; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @javax.annotation.Nullable private String type; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable private String message; public ModelApiResponse() { } - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@javax.annotation.Nullable Integer code) { this.code = code; return this; } @@ -83,12 +86,12 @@ public Integer getCode() { return code; } - public void setCode(Integer code) { + public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@javax.annotation.Nullable String type) { this.type = type; return this; } @@ -103,12 +106,12 @@ public String getType() { return type; } - public void setType(String type) { + public void setType(@javax.annotation.Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@javax.annotation.Nullable String message) { this.message = message; return this; } @@ -123,7 +126,7 @@ public String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } diff --git a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Order.java index 6be916e7566d..690033eeeb7b 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Order.java @@ -56,18 +56,22 @@ public class Order { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_PET_ID = "petId"; @SerializedName(SERIALIZED_NAME_PET_ID) + @javax.annotation.Nullable private Long petId; public static final String SERIALIZED_NAME_QUANTITY = "quantity"; @SerializedName(SERIALIZED_NAME_QUANTITY) + @javax.annotation.Nullable private Integer quantity; public static final String SERIALIZED_NAME_SHIP_DATE = "shipDate"; @SerializedName(SERIALIZED_NAME_SHIP_DATE) + @javax.annotation.Nullable private OffsetDateTime shipDate; /** @@ -126,16 +130,18 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable private StatusEnum status; public static final String SERIALIZED_NAME_COMPLETE = "complete"; @SerializedName(SERIALIZED_NAME_COMPLETE) + @javax.annotation.Nullable private Boolean complete = false; public Order() { } - public Order id(Long id) { + public Order id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -150,12 +156,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@javax.annotation.Nullable Long petId) { this.petId = petId; return this; } @@ -170,12 +176,12 @@ public Long getPetId() { return petId; } - public void setPetId(Long petId) { + public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -190,12 +196,12 @@ public Integer getQuantity() { return quantity; } - public void setQuantity(Integer quantity) { + public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -210,12 +216,12 @@ public OffsetDateTime getShipDate() { return shipDate; } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; } @@ -230,12 +236,12 @@ public StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } - public Order complete(Boolean complete) { + public Order complete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; return this; } @@ -250,7 +256,7 @@ public Boolean getComplete() { return complete; } - public void setComplete(Boolean complete) { + public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Pet.java index 95b9d32fb7da..ff7d90340aa4 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Pet.java @@ -59,22 +59,27 @@ public class Pet { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_CATEGORY = "category"; @SerializedName(SERIALIZED_NAME_CATEGORY) + @javax.annotation.Nullable private Category category; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; @SerializedName(SERIALIZED_NAME_PHOTO_URLS) + @javax.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** @@ -134,12 +139,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_STATUS = "status"; @Deprecated @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable private StatusEnum status; public Pet() { } - public Pet id(Long id) { + public Pet id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -154,12 +160,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@javax.annotation.Nullable Category category) { this.category = category; return this; } @@ -174,12 +180,12 @@ public Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; } - public Pet name(String name) { + public Pet name(@javax.annotation.Nonnull String name) { this.name = name; return this; } @@ -194,12 +200,12 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } - public Pet photoUrls(List photoUrls) { + public Pet photoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; return this; } @@ -222,12 +228,12 @@ public List getPhotoUrls() { return photoUrls; } - public void setPhotoUrls(List photoUrls) { + public void setPhotoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; } - public Pet tags(List tags) { + public Pet tags(@javax.annotation.Nullable List tags) { this.tags = tags; return this; } @@ -250,13 +256,13 @@ public List getTags() { return tags; } - public void setTags(List tags) { + public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; } @Deprecated - public Pet status(StatusEnum status) { + public Pet status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; } @@ -274,7 +280,7 @@ public StatusEnum getStatus() { } @Deprecated - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Tag.java index 0e71cd1302d0..832f7c773ce5 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Tag.java @@ -55,16 +55,18 @@ public class Tag { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public Tag() { } - public Tag id(Long id) { + public Tag id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -79,12 +81,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -99,7 +101,7 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/User.java index 6747eaf681a3..37f7cf84887c 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/User.java @@ -55,40 +55,48 @@ public class User { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_USERNAME = "username"; @SerializedName(SERIALIZED_NAME_USERNAME) + @javax.annotation.Nullable private String username; public static final String SERIALIZED_NAME_FIRST_NAME = "firstName"; @SerializedName(SERIALIZED_NAME_FIRST_NAME) + @javax.annotation.Nullable private String firstName; public static final String SERIALIZED_NAME_LAST_NAME = "lastName"; @SerializedName(SERIALIZED_NAME_LAST_NAME) + @javax.annotation.Nullable private String lastName; public static final String SERIALIZED_NAME_EMAIL = "email"; @SerializedName(SERIALIZED_NAME_EMAIL) + @javax.annotation.Nullable private String email; public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) + @javax.annotation.Nullable private String password; public static final String SERIALIZED_NAME_PHONE = "phone"; @SerializedName(SERIALIZED_NAME_PHONE) + @javax.annotation.Nullable private String phone; public static final String SERIALIZED_NAME_USER_STATUS = "userStatus"; @SerializedName(SERIALIZED_NAME_USER_STATUS) + @javax.annotation.Nullable private Integer userStatus; public User() { } - public User id(Long id) { + public User id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -103,12 +111,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@javax.annotation.Nullable String username) { this.username = username; return this; } @@ -123,12 +131,12 @@ public String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@javax.annotation.Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; return this; } @@ -143,12 +151,12 @@ public String getFirstName() { return firstName; } - public void setFirstName(String firstName) { + public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; return this; } @@ -163,12 +171,12 @@ public String getLastName() { return lastName; } - public void setLastName(String lastName) { + public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@javax.annotation.Nullable String email) { this.email = email; return this; } @@ -183,12 +191,12 @@ public String getEmail() { return email; } - public void setEmail(String email) { + public void setEmail(@javax.annotation.Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@javax.annotation.Nullable String password) { this.password = password; return this; } @@ -203,12 +211,12 @@ public String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@javax.annotation.Nullable String phone) { this.phone = phone; return this; } @@ -223,12 +231,12 @@ public String getPhone() { return phone; } - public void setPhone(String phone) { + public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -243,7 +251,7 @@ public Integer getUserStatus() { return userStatus; } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Category.java index 6af57f9b05ca..7ad71b123678 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Category.java @@ -54,16 +54,18 @@ public class Category { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public Category() { } - public Category id(Long id) { + public Category id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -78,12 +80,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -98,7 +100,7 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 348721c81ee9..67f0a7b2fbc1 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -54,20 +54,23 @@ public class ModelApiResponse { public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) + @javax.annotation.Nullable private Integer code; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @javax.annotation.Nullable private String type; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable private String message; public ModelApiResponse() { } - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@javax.annotation.Nullable Integer code) { this.code = code; return this; } @@ -82,12 +85,12 @@ public Integer getCode() { return code; } - public void setCode(Integer code) { + public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@javax.annotation.Nullable String type) { this.type = type; return this; } @@ -102,12 +105,12 @@ public String getType() { return type; } - public void setType(String type) { + public void setType(@javax.annotation.Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@javax.annotation.Nullable String message) { this.message = message; return this; } @@ -122,7 +125,7 @@ public String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } diff --git a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Order.java index 9b4dd7b7f810..03d05cf92cb0 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Order.java @@ -55,18 +55,22 @@ public class Order { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_PET_ID = "petId"; @SerializedName(SERIALIZED_NAME_PET_ID) + @javax.annotation.Nullable private Long petId; public static final String SERIALIZED_NAME_QUANTITY = "quantity"; @SerializedName(SERIALIZED_NAME_QUANTITY) + @javax.annotation.Nullable private Integer quantity; public static final String SERIALIZED_NAME_SHIP_DATE = "shipDate"; @SerializedName(SERIALIZED_NAME_SHIP_DATE) + @javax.annotation.Nullable private OffsetDateTime shipDate; /** @@ -125,16 +129,18 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable private StatusEnum status; public static final String SERIALIZED_NAME_COMPLETE = "complete"; @SerializedName(SERIALIZED_NAME_COMPLETE) + @javax.annotation.Nullable private Boolean complete = false; public Order() { } - public Order id(Long id) { + public Order id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -149,12 +155,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@javax.annotation.Nullable Long petId) { this.petId = petId; return this; } @@ -169,12 +175,12 @@ public Long getPetId() { return petId; } - public void setPetId(Long petId) { + public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -189,12 +195,12 @@ public Integer getQuantity() { return quantity; } - public void setQuantity(Integer quantity) { + public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -209,12 +215,12 @@ public OffsetDateTime getShipDate() { return shipDate; } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; } @@ -229,12 +235,12 @@ public StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } - public Order complete(Boolean complete) { + public Order complete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; return this; } @@ -249,7 +255,7 @@ public Boolean getComplete() { return complete; } - public void setComplete(Boolean complete) { + public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Pet.java index 4f8b20706c0e..11c5e0c23474 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Pet.java @@ -58,22 +58,27 @@ public class Pet { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_CATEGORY = "category"; @SerializedName(SERIALIZED_NAME_CATEGORY) + @javax.annotation.Nullable private Category category; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; @SerializedName(SERIALIZED_NAME_PHOTO_URLS) + @javax.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** @@ -133,12 +138,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_STATUS = "status"; @Deprecated @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable private StatusEnum status; public Pet() { } - public Pet id(Long id) { + public Pet id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -153,12 +159,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@javax.annotation.Nullable Category category) { this.category = category; return this; } @@ -173,12 +179,12 @@ public Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; } - public Pet name(String name) { + public Pet name(@javax.annotation.Nonnull String name) { this.name = name; return this; } @@ -193,12 +199,12 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } - public Pet photoUrls(List photoUrls) { + public Pet photoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; return this; } @@ -221,12 +227,12 @@ public List getPhotoUrls() { return photoUrls; } - public void setPhotoUrls(List photoUrls) { + public void setPhotoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; } - public Pet tags(List tags) { + public Pet tags(@javax.annotation.Nullable List tags) { this.tags = tags; return this; } @@ -249,13 +255,13 @@ public List getTags() { return tags; } - public void setTags(List tags) { + public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; } @Deprecated - public Pet status(StatusEnum status) { + public Pet status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; } @@ -273,7 +279,7 @@ public StatusEnum getStatus() { } @Deprecated - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Tag.java index 05ffe5fca450..fa01c5199dd7 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Tag.java @@ -54,16 +54,18 @@ public class Tag { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public Tag() { } - public Tag id(Long id) { + public Tag id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -78,12 +80,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -98,7 +100,7 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/User.java index a41bd2690aa4..b281d00c93b0 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/User.java @@ -54,40 +54,48 @@ public class User { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_USERNAME = "username"; @SerializedName(SERIALIZED_NAME_USERNAME) + @javax.annotation.Nullable private String username; public static final String SERIALIZED_NAME_FIRST_NAME = "firstName"; @SerializedName(SERIALIZED_NAME_FIRST_NAME) + @javax.annotation.Nullable private String firstName; public static final String SERIALIZED_NAME_LAST_NAME = "lastName"; @SerializedName(SERIALIZED_NAME_LAST_NAME) + @javax.annotation.Nullable private String lastName; public static final String SERIALIZED_NAME_EMAIL = "email"; @SerializedName(SERIALIZED_NAME_EMAIL) + @javax.annotation.Nullable private String email; public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) + @javax.annotation.Nullable private String password; public static final String SERIALIZED_NAME_PHONE = "phone"; @SerializedName(SERIALIZED_NAME_PHONE) + @javax.annotation.Nullable private String phone; public static final String SERIALIZED_NAME_USER_STATUS = "userStatus"; @SerializedName(SERIALIZED_NAME_USER_STATUS) + @javax.annotation.Nullable private Integer userStatus; public User() { } - public User id(Long id) { + public User id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -102,12 +110,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@javax.annotation.Nullable String username) { this.username = username; return this; } @@ -122,12 +130,12 @@ public String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@javax.annotation.Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; return this; } @@ -142,12 +150,12 @@ public String getFirstName() { return firstName; } - public void setFirstName(String firstName) { + public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; return this; } @@ -162,12 +170,12 @@ public String getLastName() { return lastName; } - public void setLastName(String lastName) { + public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@javax.annotation.Nullable String email) { this.email = email; return this; } @@ -182,12 +190,12 @@ public String getEmail() { return email; } - public void setEmail(String email) { + public void setEmail(@javax.annotation.Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@javax.annotation.Nullable String password) { this.password = password; return this; } @@ -202,12 +210,12 @@ public String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@javax.annotation.Nullable String phone) { this.phone = phone; return this; } @@ -222,12 +230,12 @@ public String getPhone() { return phone; } - public void setPhone(String phone) { + public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -242,7 +250,7 @@ public Integer getUserStatus() { return userStatus; } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index e0d6d1138e98..a43612609295 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -55,40 +55,48 @@ public class AdditionalPropertiesClass { public static final String SERIALIZED_NAME_MAP_PROPERTY = "map_property"; @SerializedName(SERIALIZED_NAME_MAP_PROPERTY) + @javax.annotation.Nullable private Map mapProperty = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_OF_MAP_PROPERTY = "map_of_map_property"; @SerializedName(SERIALIZED_NAME_MAP_OF_MAP_PROPERTY) + @javax.annotation.Nullable private Map> mapOfMapProperty = new HashMap<>(); public static final String SERIALIZED_NAME_ANYTYPE1 = "anytype_1"; @SerializedName(SERIALIZED_NAME_ANYTYPE1) + @javax.annotation.Nullable private Object anytype1 = null; public static final String SERIALIZED_NAME_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE1 = "map_with_undeclared_properties_anytype_1"; @SerializedName(SERIALIZED_NAME_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE1) + @javax.annotation.Nullable private Object mapWithUndeclaredPropertiesAnytype1; public static final String SERIALIZED_NAME_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE2 = "map_with_undeclared_properties_anytype_2"; @SerializedName(SERIALIZED_NAME_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE2) + @javax.annotation.Nullable private Object mapWithUndeclaredPropertiesAnytype2; public static final String SERIALIZED_NAME_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE3 = "map_with_undeclared_properties_anytype_3"; @SerializedName(SERIALIZED_NAME_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE3) + @javax.annotation.Nullable private Map mapWithUndeclaredPropertiesAnytype3 = new HashMap<>(); public static final String SERIALIZED_NAME_EMPTY_MAP = "empty_map"; @SerializedName(SERIALIZED_NAME_EMPTY_MAP) + @javax.annotation.Nullable private Object emptyMap; public static final String SERIALIZED_NAME_MAP_WITH_UNDECLARED_PROPERTIES_STRING = "map_with_undeclared_properties_string"; @SerializedName(SERIALIZED_NAME_MAP_WITH_UNDECLARED_PROPERTIES_STRING) + @javax.annotation.Nullable private Map mapWithUndeclaredPropertiesString = new HashMap<>(); public AdditionalPropertiesClass() { } - public AdditionalPropertiesClass mapProperty(Map mapProperty) { + public AdditionalPropertiesClass mapProperty(@javax.annotation.Nullable Map mapProperty) { this.mapProperty = mapProperty; return this; } @@ -110,12 +118,12 @@ public Map getMapProperty() { return mapProperty; } - public void setMapProperty(Map mapProperty) { + public void setMapProperty(@javax.annotation.Nullable Map mapProperty) { this.mapProperty = mapProperty; } - public AdditionalPropertiesClass mapOfMapProperty(Map> mapOfMapProperty) { + public AdditionalPropertiesClass mapOfMapProperty(@javax.annotation.Nullable Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; return this; } @@ -137,12 +145,12 @@ public Map> getMapOfMapProperty() { return mapOfMapProperty; } - public void setMapOfMapProperty(Map> mapOfMapProperty) { + public void setMapOfMapProperty(@javax.annotation.Nullable Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@javax.annotation.Nullable Object anytype1) { this.anytype1 = anytype1; return this; } @@ -156,12 +164,12 @@ public Object getAnytype1() { return anytype1; } - public void setAnytype1(Object anytype1) { + public void setAnytype1(@javax.annotation.Nullable Object anytype1) { this.anytype1 = anytype1; } - public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype1(Object mapWithUndeclaredPropertiesAnytype1) { + public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype1(@javax.annotation.Nullable Object mapWithUndeclaredPropertiesAnytype1) { this.mapWithUndeclaredPropertiesAnytype1 = mapWithUndeclaredPropertiesAnytype1; return this; } @@ -175,12 +183,12 @@ public Object getMapWithUndeclaredPropertiesAnytype1() { return mapWithUndeclaredPropertiesAnytype1; } - public void setMapWithUndeclaredPropertiesAnytype1(Object mapWithUndeclaredPropertiesAnytype1) { + public void setMapWithUndeclaredPropertiesAnytype1(@javax.annotation.Nullable Object mapWithUndeclaredPropertiesAnytype1) { this.mapWithUndeclaredPropertiesAnytype1 = mapWithUndeclaredPropertiesAnytype1; } - public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype2(Object mapWithUndeclaredPropertiesAnytype2) { + public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype2(@javax.annotation.Nullable Object mapWithUndeclaredPropertiesAnytype2) { this.mapWithUndeclaredPropertiesAnytype2 = mapWithUndeclaredPropertiesAnytype2; return this; } @@ -194,12 +202,12 @@ public Object getMapWithUndeclaredPropertiesAnytype2() { return mapWithUndeclaredPropertiesAnytype2; } - public void setMapWithUndeclaredPropertiesAnytype2(Object mapWithUndeclaredPropertiesAnytype2) { + public void setMapWithUndeclaredPropertiesAnytype2(@javax.annotation.Nullable Object mapWithUndeclaredPropertiesAnytype2) { this.mapWithUndeclaredPropertiesAnytype2 = mapWithUndeclaredPropertiesAnytype2; } - public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype3(Map mapWithUndeclaredPropertiesAnytype3) { + public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype3(@javax.annotation.Nullable Map mapWithUndeclaredPropertiesAnytype3) { this.mapWithUndeclaredPropertiesAnytype3 = mapWithUndeclaredPropertiesAnytype3; return this; } @@ -221,12 +229,12 @@ public Map getMapWithUndeclaredPropertiesAnytype3() { return mapWithUndeclaredPropertiesAnytype3; } - public void setMapWithUndeclaredPropertiesAnytype3(Map mapWithUndeclaredPropertiesAnytype3) { + public void setMapWithUndeclaredPropertiesAnytype3(@javax.annotation.Nullable Map mapWithUndeclaredPropertiesAnytype3) { this.mapWithUndeclaredPropertiesAnytype3 = mapWithUndeclaredPropertiesAnytype3; } - public AdditionalPropertiesClass emptyMap(Object emptyMap) { + public AdditionalPropertiesClass emptyMap(@javax.annotation.Nullable Object emptyMap) { this.emptyMap = emptyMap; return this; } @@ -240,12 +248,12 @@ public Object getEmptyMap() { return emptyMap; } - public void setEmptyMap(Object emptyMap) { + public void setEmptyMap(@javax.annotation.Nullable Object emptyMap) { this.emptyMap = emptyMap; } - public AdditionalPropertiesClass mapWithUndeclaredPropertiesString(Map mapWithUndeclaredPropertiesString) { + public AdditionalPropertiesClass mapWithUndeclaredPropertiesString(@javax.annotation.Nullable Map mapWithUndeclaredPropertiesString) { this.mapWithUndeclaredPropertiesString = mapWithUndeclaredPropertiesString; return this; } @@ -267,7 +275,7 @@ public Map getMapWithUndeclaredPropertiesString() { return mapWithUndeclaredPropertiesString; } - public void setMapWithUndeclaredPropertiesString(Map mapWithUndeclaredPropertiesString) { + public void setMapWithUndeclaredPropertiesString(@javax.annotation.Nullable Map mapWithUndeclaredPropertiesString) { this.mapWithUndeclaredPropertiesString = mapWithUndeclaredPropertiesString; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOf.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOf.java index 6f239a565271..2a72aa0e484b 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOf.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOf.java @@ -54,24 +54,28 @@ public class AllOfModelArrayAnyOf { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull private String name = "default-name"; public static final String SERIALIZED_NAME_LINK_LIST_COLUMN1 = "linkListColumn1"; @SerializedName(SERIALIZED_NAME_LINK_LIST_COLUMN1) + @javax.annotation.Nullable private AllOfModelArrayAnyOfAllOfLinkListColumn1 linkListColumn1; public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; @SerializedName(SERIALIZED_NAME_ATTRIBUTES) + @javax.annotation.Nullable private AllOfModelArrayAnyOfAllOfAttributes attributes; public AllOfModelArrayAnyOf() { } - public AllOfModelArrayAnyOf id(Long id) { + public AllOfModelArrayAnyOf id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -85,12 +89,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public AllOfModelArrayAnyOf name(String name) { + public AllOfModelArrayAnyOf name(@javax.annotation.Nonnull String name) { this.name = name; return this; } @@ -104,12 +108,12 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } - public AllOfModelArrayAnyOf linkListColumn1(AllOfModelArrayAnyOfAllOfLinkListColumn1 linkListColumn1) { + public AllOfModelArrayAnyOf linkListColumn1(@javax.annotation.Nullable AllOfModelArrayAnyOfAllOfLinkListColumn1 linkListColumn1) { this.linkListColumn1 = linkListColumn1; return this; } @@ -123,12 +127,12 @@ public AllOfModelArrayAnyOfAllOfLinkListColumn1 getLinkListColumn1() { return linkListColumn1; } - public void setLinkListColumn1(AllOfModelArrayAnyOfAllOfLinkListColumn1 linkListColumn1) { + public void setLinkListColumn1(@javax.annotation.Nullable AllOfModelArrayAnyOfAllOfLinkListColumn1 linkListColumn1) { this.linkListColumn1 = linkListColumn1; } - public AllOfModelArrayAnyOf attributes(AllOfModelArrayAnyOfAllOfAttributes attributes) { + public AllOfModelArrayAnyOf attributes(@javax.annotation.Nullable AllOfModelArrayAnyOfAllOfAttributes attributes) { this.attributes = attributes; return this; } @@ -142,7 +146,7 @@ public AllOfModelArrayAnyOfAllOfAttributes getAttributes() { return attributes; } - public void setAttributes(AllOfModelArrayAnyOfAllOfAttributes attributes) { + public void setAttributes(@javax.annotation.Nullable AllOfModelArrayAnyOfAllOfAttributes attributes) { this.attributes = attributes; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOfAllOfAttributes.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOfAllOfAttributes.java index 4b9c20ad30cd..9fa62cf746f3 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOfAllOfAttributes.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOfAllOfAttributes.java @@ -53,12 +53,13 @@ public class AllOfModelArrayAnyOfAllOfAttributes { public static final String SERIALIZED_NAME_C = "C"; @SerializedName(SERIALIZED_NAME_C) + @javax.annotation.Nullable private AllOfModelArrayAnyOfAllOfAttributesC C; public AllOfModelArrayAnyOfAllOfAttributes() { } - public AllOfModelArrayAnyOfAllOfAttributes C(AllOfModelArrayAnyOfAllOfAttributesC C) { + public AllOfModelArrayAnyOfAllOfAttributes C(@javax.annotation.Nullable AllOfModelArrayAnyOfAllOfAttributesC C) { this.C = C; return this; } @@ -72,7 +73,7 @@ public AllOfModelArrayAnyOfAllOfAttributesC getC() { return C; } - public void setC(AllOfModelArrayAnyOfAllOfAttributesC C) { + public void setC(@javax.annotation.Nullable AllOfModelArrayAnyOfAllOfAttributesC C) { this.C = C; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOfAllOfLinkListColumn1.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOfAllOfLinkListColumn1.java index f5470e695db2..e8c0297a959a 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOfAllOfLinkListColumn1.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOfAllOfLinkListColumn1.java @@ -55,12 +55,13 @@ public class AllOfModelArrayAnyOfAllOfLinkListColumn1 { public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) + @javax.annotation.Nonnull private List value = new ArrayList<>(); public AllOfModelArrayAnyOfAllOfLinkListColumn1() { } - public AllOfModelArrayAnyOfAllOfLinkListColumn1 value(List value) { + public AllOfModelArrayAnyOfAllOfLinkListColumn1 value(@javax.annotation.Nonnull List value) { this.value = value; return this; } @@ -82,7 +83,7 @@ public List getValue() { return value; } - public void setValue(List value) { + public void setValue(@javax.annotation.Nonnull List value) { this.value = value; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Animal.java index e2c7b18da46f..11105a240bb5 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Animal.java @@ -52,17 +52,19 @@ public class Animal { public static final String SERIALIZED_NAME_CLASS_NAME = "className"; @SerializedName(SERIALIZED_NAME_CLASS_NAME) + @javax.annotation.Nonnull protected String className; public static final String SERIALIZED_NAME_COLOR = "color"; @SerializedName(SERIALIZED_NAME_COLOR) + @javax.annotation.Nullable private String color = "red"; public Animal() { this.className = this.getClass().getSimpleName(); } - public Animal className(String className) { + public Animal className(@javax.annotation.Nonnull String className) { this.className = className; return this; } @@ -76,12 +78,12 @@ public String getClassName() { return className; } - public void setClassName(String className) { + public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; } - public Animal color(String color) { + public Animal color(@javax.annotation.Nullable String color) { this.color = color; return this; } @@ -95,7 +97,7 @@ public String getColor() { return color; } - public void setColor(String color) { + public void setColor(@javax.annotation.Nullable String color) { this.color = color; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Apple.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Apple.java index c24de2770410..e1f956d9a995 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Apple.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Apple.java @@ -52,16 +52,18 @@ public class Apple { public static final String SERIALIZED_NAME_CULTIVAR = "cultivar"; @SerializedName(SERIALIZED_NAME_CULTIVAR) + @javax.annotation.Nullable private String cultivar; public static final String SERIALIZED_NAME_ORIGIN = "origin"; @SerializedName(SERIALIZED_NAME_ORIGIN) + @javax.annotation.Nullable private String origin; public Apple() { } - public Apple cultivar(String cultivar) { + public Apple cultivar(@javax.annotation.Nullable String cultivar) { this.cultivar = cultivar; return this; } @@ -75,12 +77,12 @@ public String getCultivar() { return cultivar; } - public void setCultivar(String cultivar) { + public void setCultivar(@javax.annotation.Nullable String cultivar) { this.cultivar = cultivar; } - public Apple origin(String origin) { + public Apple origin(@javax.annotation.Nullable String origin) { this.origin = origin; return this; } @@ -94,7 +96,7 @@ public String getOrigin() { return origin; } - public void setOrigin(String origin) { + public void setOrigin(@javax.annotation.Nullable String origin) { this.origin = origin; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AppleReq.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AppleReq.java index 49d80b343602..cc7da5337bb0 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AppleReq.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AppleReq.java @@ -52,16 +52,18 @@ public class AppleReq { public static final String SERIALIZED_NAME_CULTIVAR = "cultivar"; @SerializedName(SERIALIZED_NAME_CULTIVAR) + @javax.annotation.Nonnull private String cultivar; public static final String SERIALIZED_NAME_MEALY = "mealy"; @SerializedName(SERIALIZED_NAME_MEALY) + @javax.annotation.Nullable private Boolean mealy; public AppleReq() { } - public AppleReq cultivar(String cultivar) { + public AppleReq cultivar(@javax.annotation.Nonnull String cultivar) { this.cultivar = cultivar; return this; } @@ -75,12 +77,12 @@ public String getCultivar() { return cultivar; } - public void setCultivar(String cultivar) { + public void setCultivar(@javax.annotation.Nonnull String cultivar) { this.cultivar = cultivar; } - public AppleReq mealy(Boolean mealy) { + public AppleReq mealy(@javax.annotation.Nullable Boolean mealy) { this.mealy = mealy; return this; } @@ -94,7 +96,7 @@ public Boolean getMealy() { return mealy; } - public void setMealy(Boolean mealy) { + public void setMealy(@javax.annotation.Nullable Boolean mealy) { this.mealy = mealy; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayDefault.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayDefault.java index e935fbb47f03..038ea90fce5a 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayDefault.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayDefault.java @@ -54,16 +54,18 @@ public class ArrayDefault { public static final String SERIALIZED_NAME_WITH_DEFAULT_EMPTY_BRACKET = "WithDefaultEmptyBracket"; @SerializedName(SERIALIZED_NAME_WITH_DEFAULT_EMPTY_BRACKET) + @javax.annotation.Nullable private List withDefaultEmptyBracket = new ArrayList<>(); public static final String SERIALIZED_NAME_WITHOUT_DEFAULT = "WithoutDefault"; @SerializedName(SERIALIZED_NAME_WITHOUT_DEFAULT) + @javax.annotation.Nullable private List withoutDefault = new ArrayList<>(); public ArrayDefault() { } - public ArrayDefault withDefaultEmptyBracket(List withDefaultEmptyBracket) { + public ArrayDefault withDefaultEmptyBracket(@javax.annotation.Nullable List withDefaultEmptyBracket) { this.withDefaultEmptyBracket = withDefaultEmptyBracket; return this; } @@ -85,12 +87,12 @@ public List getWithDefaultEmptyBracket() { return withDefaultEmptyBracket; } - public void setWithDefaultEmptyBracket(List withDefaultEmptyBracket) { + public void setWithDefaultEmptyBracket(@javax.annotation.Nullable List withDefaultEmptyBracket) { this.withDefaultEmptyBracket = withDefaultEmptyBracket; } - public ArrayDefault withoutDefault(List withoutDefault) { + public ArrayDefault withoutDefault(@javax.annotation.Nullable List withoutDefault) { this.withoutDefault = withoutDefault; return this; } @@ -112,7 +114,7 @@ public List getWithoutDefault() { return withoutDefault; } - public void setWithoutDefault(List withoutDefault) { + public void setWithoutDefault(@javax.annotation.Nullable List withoutDefault) { this.withoutDefault = withoutDefault; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index e4f27ee49b0e..27db69c23860 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -55,12 +55,13 @@ public class ArrayOfArrayOfNumberOnly { public static final String SERIALIZED_NAME_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_NUMBER) + @javax.annotation.Nullable private List> arrayArrayNumber = new ArrayList<>(); public ArrayOfArrayOfNumberOnly() { } - public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + public ArrayOfArrayOfNumberOnly arrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; return this; } @@ -82,7 +83,7 @@ public List> getArrayArrayNumber() { return arrayArrayNumber; } - public void setArrayArrayNumber(List> arrayArrayNumber) { + public void setArrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfInlineAllOf.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfInlineAllOf.java index 803833634452..1a6b30741ca1 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfInlineAllOf.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfInlineAllOf.java @@ -55,20 +55,23 @@ public class ArrayOfInlineAllOf { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_ARRAY_ALLOF_DOG_PROPERTY = "array_allof_dog_property"; @SerializedName(SERIALIZED_NAME_ARRAY_ALLOF_DOG_PROPERTY) + @javax.annotation.Nullable private List arrayAllofDogProperty = new ArrayList<>(); public ArrayOfInlineAllOf() { } - public ArrayOfInlineAllOf id(Long id) { + public ArrayOfInlineAllOf id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -82,12 +85,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public ArrayOfInlineAllOf name(String name) { + public ArrayOfInlineAllOf name(@javax.annotation.Nonnull String name) { this.name = name; return this; } @@ -101,12 +104,12 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } - public ArrayOfInlineAllOf arrayAllofDogProperty(List arrayAllofDogProperty) { + public ArrayOfInlineAllOf arrayAllofDogProperty(@javax.annotation.Nullable List arrayAllofDogProperty) { this.arrayAllofDogProperty = arrayAllofDogProperty; return this; } @@ -128,7 +131,7 @@ public List getArrayAllofDogProper return arrayAllofDogProperty; } - public void setArrayAllofDogProperty(List arrayAllofDogProperty) { + public void setArrayAllofDogProperty(@javax.annotation.Nullable List arrayAllofDogProperty) { this.arrayAllofDogProperty = arrayAllofDogProperty; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfInlineAllOfArrayAllofDogPropertyInner.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfInlineAllOfArrayAllofDogPropertyInner.java index b1f036288edb..1311edab2ff2 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfInlineAllOfArrayAllofDogPropertyInner.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfInlineAllOfArrayAllofDogPropertyInner.java @@ -52,16 +52,18 @@ public class ArrayOfInlineAllOfArrayAllofDogPropertyInner { public static final String SERIALIZED_NAME_BREED = "breed"; @SerializedName(SERIALIZED_NAME_BREED) + @javax.annotation.Nullable private String breed; public static final String SERIALIZED_NAME_COLOR = "color"; @SerializedName(SERIALIZED_NAME_COLOR) + @javax.annotation.Nullable private String color; public ArrayOfInlineAllOfArrayAllofDogPropertyInner() { } - public ArrayOfInlineAllOfArrayAllofDogPropertyInner breed(String breed) { + public ArrayOfInlineAllOfArrayAllofDogPropertyInner breed(@javax.annotation.Nullable String breed) { this.breed = breed; return this; } @@ -75,12 +77,12 @@ public String getBreed() { return breed; } - public void setBreed(String breed) { + public void setBreed(@javax.annotation.Nullable String breed) { this.breed = breed; } - public ArrayOfInlineAllOfArrayAllofDogPropertyInner color(String color) { + public ArrayOfInlineAllOfArrayAllofDogPropertyInner color(@javax.annotation.Nullable String color) { this.color = color; return this; } @@ -94,7 +96,7 @@ public String getColor() { return color; } - public void setColor(String color) { + public void setColor(@javax.annotation.Nullable String color) { this.color = color; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 72ec29158d71..52e50f120d27 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -55,12 +55,13 @@ public class ArrayOfNumberOnly { public static final String SERIALIZED_NAME_ARRAY_NUMBER = "ArrayNumber"; @SerializedName(SERIALIZED_NAME_ARRAY_NUMBER) + @javax.annotation.Nullable private List arrayNumber = new ArrayList<>(); public ArrayOfNumberOnly() { } - public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + public ArrayOfNumberOnly arrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; return this; } @@ -82,7 +83,7 @@ public List getArrayNumber() { return arrayNumber; } - public void setArrayNumber(List arrayNumber) { + public void setArrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayTest.java index b4fbbc4873a0..89b8b16de9b9 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -55,20 +55,23 @@ public class ArrayTest { public static final String SERIALIZED_NAME_ARRAY_OF_STRING = "array_of_string"; @SerializedName(SERIALIZED_NAME_ARRAY_OF_STRING) + @javax.annotation.Nullable private List arrayOfString = new ArrayList<>(); public static final String SERIALIZED_NAME_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_OF_INTEGER) + @javax.annotation.Nullable private List> arrayArrayOfInteger = new ArrayList<>(); public static final String SERIALIZED_NAME_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_OF_MODEL) + @javax.annotation.Nullable private List> arrayArrayOfModel = new ArrayList<>(); public ArrayTest() { } - public ArrayTest arrayOfString(List arrayOfString) { + public ArrayTest arrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; return this; } @@ -90,12 +93,12 @@ public List getArrayOfString() { return arrayOfString; } - public void setArrayOfString(List arrayOfString) { + public void setArrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; } - public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + public ArrayTest arrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; return this; } @@ -117,12 +120,12 @@ public List> getArrayArrayOfInteger() { return arrayArrayOfInteger; } - public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { + public void setArrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } - public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + public ArrayTest arrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; return this; } @@ -144,7 +147,7 @@ public List> getArrayArrayOfModel() { return arrayArrayOfModel; } - public void setArrayArrayOfModel(List> arrayArrayOfModel) { + public void setArrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Banana.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Banana.java index d4f67a5a9fa2..ab83ee60aa8c 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Banana.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Banana.java @@ -53,12 +53,13 @@ public class Banana { public static final String SERIALIZED_NAME_LENGTH_CM = "lengthCm"; @SerializedName(SERIALIZED_NAME_LENGTH_CM) + @javax.annotation.Nullable private BigDecimal lengthCm; public Banana() { } - public Banana lengthCm(BigDecimal lengthCm) { + public Banana lengthCm(@javax.annotation.Nullable BigDecimal lengthCm) { this.lengthCm = lengthCm; return this; } @@ -72,7 +73,7 @@ public BigDecimal getLengthCm() { return lengthCm; } - public void setLengthCm(BigDecimal lengthCm) { + public void setLengthCm(@javax.annotation.Nullable BigDecimal lengthCm) { this.lengthCm = lengthCm; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/BananaReq.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/BananaReq.java index 41881a592bab..12945fa7caa0 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/BananaReq.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/BananaReq.java @@ -53,16 +53,18 @@ public class BananaReq { public static final String SERIALIZED_NAME_LENGTH_CM = "lengthCm"; @SerializedName(SERIALIZED_NAME_LENGTH_CM) + @javax.annotation.Nonnull private BigDecimal lengthCm; public static final String SERIALIZED_NAME_SWEET = "sweet"; @SerializedName(SERIALIZED_NAME_SWEET) + @javax.annotation.Nullable private Boolean sweet; public BananaReq() { } - public BananaReq lengthCm(BigDecimal lengthCm) { + public BananaReq lengthCm(@javax.annotation.Nonnull BigDecimal lengthCm) { this.lengthCm = lengthCm; return this; } @@ -76,12 +78,12 @@ public BigDecimal getLengthCm() { return lengthCm; } - public void setLengthCm(BigDecimal lengthCm) { + public void setLengthCm(@javax.annotation.Nonnull BigDecimal lengthCm) { this.lengthCm = lengthCm; } - public BananaReq sweet(Boolean sweet) { + public BananaReq sweet(@javax.annotation.Nullable Boolean sweet) { this.sweet = sweet; return this; } @@ -95,7 +97,7 @@ public Boolean getSweet() { return sweet; } - public void setSweet(Boolean sweet) { + public void setSweet(@javax.annotation.Nullable Boolean sweet) { this.sweet = sweet; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/BasquePig.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/BasquePig.java index 13db5fd44afe..095ec7d07bc9 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/BasquePig.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/BasquePig.java @@ -52,12 +52,13 @@ public class BasquePig { public static final String SERIALIZED_NAME_CLASS_NAME = "className"; @SerializedName(SERIALIZED_NAME_CLASS_NAME) + @javax.annotation.Nonnull private String className; public BasquePig() { } - public BasquePig className(String className) { + public BasquePig className(@javax.annotation.Nonnull String className) { this.className = className; return this; } @@ -71,7 +72,7 @@ public String getClassName() { return className; } - public void setClassName(String className) { + public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Capitalization.java index ffff6125d762..14fcf86cc866 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Capitalization.java @@ -52,32 +52,38 @@ public class Capitalization { public static final String SERIALIZED_NAME_SMALL_CAMEL = "smallCamel"; @SerializedName(SERIALIZED_NAME_SMALL_CAMEL) + @javax.annotation.Nullable private String smallCamel; public static final String SERIALIZED_NAME_CAPITAL_CAMEL = "CapitalCamel"; @SerializedName(SERIALIZED_NAME_CAPITAL_CAMEL) + @javax.annotation.Nullable private String capitalCamel; public static final String SERIALIZED_NAME_SMALL_SNAKE = "small_Snake"; @SerializedName(SERIALIZED_NAME_SMALL_SNAKE) + @javax.annotation.Nullable private String smallSnake; public static final String SERIALIZED_NAME_CAPITAL_SNAKE = "Capital_Snake"; @SerializedName(SERIALIZED_NAME_CAPITAL_SNAKE) + @javax.annotation.Nullable private String capitalSnake; public static final String SERIALIZED_NAME_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; @SerializedName(SERIALIZED_NAME_SC_A_E_T_H_FLOW_POINTS) + @javax.annotation.Nullable private String scAETHFlowPoints; public static final String SERIALIZED_NAME_A_T_T_N_A_M_E = "ATT_NAME"; @SerializedName(SERIALIZED_NAME_A_T_T_N_A_M_E) + @javax.annotation.Nullable private String ATT_NAME; public Capitalization() { } - public Capitalization smallCamel(String smallCamel) { + public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; return this; } @@ -91,12 +97,12 @@ public String getSmallCamel() { return smallCamel; } - public void setSmallCamel(String smallCamel) { + public void setSmallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; } - public Capitalization capitalCamel(String capitalCamel) { + public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; return this; } @@ -110,12 +116,12 @@ public String getCapitalCamel() { return capitalCamel; } - public void setCapitalCamel(String capitalCamel) { + public void setCapitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; } - public Capitalization smallSnake(String smallSnake) { + public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; return this; } @@ -129,12 +135,12 @@ public String getSmallSnake() { return smallSnake; } - public void setSmallSnake(String smallSnake) { + public void setSmallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; } - public Capitalization capitalSnake(String capitalSnake) { + public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; return this; } @@ -148,12 +154,12 @@ public String getCapitalSnake() { return capitalSnake; } - public void setCapitalSnake(String capitalSnake) { + public void setCapitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; } - public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -167,12 +173,12 @@ public String getScAETHFlowPoints() { return scAETHFlowPoints; } - public void setScAETHFlowPoints(String scAETHFlowPoints) { + public void setScAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } - public Capitalization ATT_NAME(String ATT_NAME) { + public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; return this; } @@ -186,7 +192,7 @@ public String getATTNAME() { return ATT_NAME; } - public void setATTNAME(String ATT_NAME) { + public void setATTNAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Cat.java index 1f61ce5234d3..c743a1dd220a 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Cat.java @@ -54,13 +54,14 @@ public class Cat extends Animal { public static final String SERIALIZED_NAME_DECLAWED = "declawed"; @SerializedName(SERIALIZED_NAME_DECLAWED) + @javax.annotation.Nullable private Boolean declawed; public Cat() { this.className = this.getClass().getSimpleName(); } - public Cat declawed(Boolean declawed) { + public Cat declawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -74,7 +75,7 @@ public Boolean getDeclawed() { return declawed; } - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Category.java index 55e6d862dd5b..7bca4a555249 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Category.java @@ -52,16 +52,18 @@ public class Category { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull private String name = "default-name"; public Category() { } - public Category id(Long id) { + public Category id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -75,12 +77,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@javax.annotation.Nonnull String name) { this.name = name; return this; } @@ -94,7 +96,7 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ClassModel.java index 3b713e9ce878..281d1ffe1f20 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ClassModel.java @@ -52,12 +52,13 @@ public class ClassModel { public static final String SERIALIZED_NAME_PROPERTY_CLASS = "_class"; @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) + @javax.annotation.Nullable private String propertyClass; public ClassModel() { } - public ClassModel propertyClass(String propertyClass) { + public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -71,7 +72,7 @@ public String getPropertyClass() { return propertyClass; } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Client.java index d8112fcf75c4..0d2087dcb8ef 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Client.java @@ -52,12 +52,13 @@ public class Client { public static final String SERIALIZED_NAME_CLIENT = "client"; @SerializedName(SERIALIZED_NAME_CLIENT) + @javax.annotation.Nullable private String client; public Client() { } - public Client client(String client) { + public Client client(@javax.annotation.Nullable String client) { this.client = client; return this; } @@ -71,7 +72,7 @@ public String getClient() { return client; } - public void setClient(String client) { + public void setClient(@javax.annotation.Nullable String client) { this.client = client; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java index e6970c78a408..06ed3f535f74 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java @@ -52,16 +52,18 @@ public class ComplexQuadrilateral { public static final String SERIALIZED_NAME_SHAPE_TYPE = "shapeType"; @SerializedName(SERIALIZED_NAME_SHAPE_TYPE) + @javax.annotation.Nonnull private String shapeType; public static final String SERIALIZED_NAME_QUADRILATERAL_TYPE = "quadrilateralType"; @SerializedName(SERIALIZED_NAME_QUADRILATERAL_TYPE) + @javax.annotation.Nonnull private String quadrilateralType; public ComplexQuadrilateral() { } - public ComplexQuadrilateral shapeType(String shapeType) { + public ComplexQuadrilateral shapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; return this; } @@ -75,12 +77,12 @@ public String getShapeType() { return shapeType; } - public void setShapeType(String shapeType) { + public void setShapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; } - public ComplexQuadrilateral quadrilateralType(String quadrilateralType) { + public ComplexQuadrilateral quadrilateralType(@javax.annotation.Nonnull String quadrilateralType) { this.quadrilateralType = quadrilateralType; return this; } @@ -94,7 +96,7 @@ public String getQuadrilateralType() { return quadrilateralType; } - public void setQuadrilateralType(String quadrilateralType) { + public void setQuadrilateralType(@javax.annotation.Nonnull String quadrilateralType) { this.quadrilateralType = quadrilateralType; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/DanishPig.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/DanishPig.java index 70cfd7b28806..8ee348af9a6d 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/DanishPig.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/DanishPig.java @@ -52,12 +52,13 @@ public class DanishPig { public static final String SERIALIZED_NAME_CLASS_NAME = "className"; @SerializedName(SERIALIZED_NAME_CLASS_NAME) + @javax.annotation.Nonnull private String className; public DanishPig() { } - public DanishPig className(String className) { + public DanishPig className(@javax.annotation.Nonnull String className) { this.className = className; return this; } @@ -71,7 +72,7 @@ public String getClassName() { return className; } - public void setClassName(String className) { + public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/DeprecatedObject.java index 6bace2ee628f..7140602fc7dd 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -54,12 +54,13 @@ public class DeprecatedObject { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public DeprecatedObject() { } - public DeprecatedObject name(String name) { + public DeprecatedObject name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -73,7 +74,7 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Dog.java index ab1fd9152a14..1d97b036327e 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Dog.java @@ -53,13 +53,14 @@ public class Dog extends Animal { public static final String SERIALIZED_NAME_BREED = "breed"; @SerializedName(SERIALIZED_NAME_BREED) + @javax.annotation.Nullable private String breed; public Dog() { this.className = this.getClass().getSimpleName(); } - public Dog breed(String breed) { + public Dog breed(@javax.annotation.Nullable String breed) { this.breed = breed; return this; } @@ -73,7 +74,7 @@ public String getBreed() { return breed; } - public void setBreed(String breed) { + public void setBreed(@javax.annotation.Nullable String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Drawing.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Drawing.java index 12dcbe8d4b16..e3a9618c024f 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Drawing.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Drawing.java @@ -59,24 +59,28 @@ public class Drawing { public static final String SERIALIZED_NAME_MAIN_SHAPE = "mainShape"; @SerializedName(SERIALIZED_NAME_MAIN_SHAPE) + @javax.annotation.Nullable private Shape mainShape; public static final String SERIALIZED_NAME_SHAPE_OR_NULL = "shapeOrNull"; @SerializedName(SERIALIZED_NAME_SHAPE_OR_NULL) + @javax.annotation.Nullable private ShapeOrNull shapeOrNull; public static final String SERIALIZED_NAME_NULLABLE_SHAPE = "nullableShape"; @SerializedName(SERIALIZED_NAME_NULLABLE_SHAPE) + @javax.annotation.Nullable private NullableShape nullableShape; public static final String SERIALIZED_NAME_SHAPES = "shapes"; @SerializedName(SERIALIZED_NAME_SHAPES) + @javax.annotation.Nullable private List shapes = new ArrayList<>(); public Drawing() { } - public Drawing mainShape(Shape mainShape) { + public Drawing mainShape(@javax.annotation.Nullable Shape mainShape) { this.mainShape = mainShape; return this; } @@ -90,12 +94,12 @@ public Shape getMainShape() { return mainShape; } - public void setMainShape(Shape mainShape) { + public void setMainShape(@javax.annotation.Nullable Shape mainShape) { this.mainShape = mainShape; } - public Drawing shapeOrNull(ShapeOrNull shapeOrNull) { + public Drawing shapeOrNull(@javax.annotation.Nullable ShapeOrNull shapeOrNull) { this.shapeOrNull = shapeOrNull; return this; } @@ -109,12 +113,12 @@ public ShapeOrNull getShapeOrNull() { return shapeOrNull; } - public void setShapeOrNull(ShapeOrNull shapeOrNull) { + public void setShapeOrNull(@javax.annotation.Nullable ShapeOrNull shapeOrNull) { this.shapeOrNull = shapeOrNull; } - public Drawing nullableShape(NullableShape nullableShape) { + public Drawing nullableShape(@javax.annotation.Nullable NullableShape nullableShape) { this.nullableShape = nullableShape; return this; } @@ -128,12 +132,12 @@ public NullableShape getNullableShape() { return nullableShape; } - public void setNullableShape(NullableShape nullableShape) { + public void setNullableShape(@javax.annotation.Nullable NullableShape nullableShape) { this.nullableShape = nullableShape; } - public Drawing shapes(List shapes) { + public Drawing shapes(@javax.annotation.Nullable List shapes) { this.shapes = shapes; return this; } @@ -155,7 +159,7 @@ public List getShapes() { return shapes; } - public void setShapes(List shapes) { + public void setShapes(@javax.annotation.Nullable List shapes) { this.shapes = shapes; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumArrays.java index 0a7b10ec8107..d67032826df8 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -106,6 +106,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_JUST_SYMBOL = "just_symbol"; @SerializedName(SERIALIZED_NAME_JUST_SYMBOL) + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** @@ -162,12 +163,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_ARRAY_ENUM = "array_enum"; @SerializedName(SERIALIZED_NAME_ARRAY_ENUM) + @javax.annotation.Nullable private List arrayEnum = new ArrayList<>(); public EnumArrays() { } - public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; } @@ -181,12 +183,12 @@ public JustSymbolEnum getJustSymbol() { return justSymbol; } - public void setJustSymbol(JustSymbolEnum justSymbol) { + public void setJustSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } - public EnumArrays arrayEnum(List arrayEnum) { + public EnumArrays arrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; return this; } @@ -208,7 +210,7 @@ public List getArrayEnum() { return arrayEnum; } - public void setArrayEnum(List arrayEnum) { + public void setArrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumStringDiscriminator.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumStringDiscriminator.java index c2a94ec0d1de..d1daa5643846 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumStringDiscriminator.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumStringDiscriminator.java @@ -104,12 +104,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_ENUM_STR_TYPE = "enum_str_type"; @SerializedName(SERIALIZED_NAME_ENUM_STR_TYPE) + @javax.annotation.Nonnull protected EnumStrTypeEnum enumStrType; public EnumStringDiscriminator() { } - public EnumStringDiscriminator enumStrType(EnumStrTypeEnum enumStrType) { + public EnumStringDiscriminator enumStrType(@javax.annotation.Nonnull EnumStrTypeEnum enumStrType) { this.enumStrType = enumStrType; return this; } @@ -123,7 +124,7 @@ public EnumStrTypeEnum getEnumStrType() { return enumStrType; } - public void setEnumStrType(EnumStrTypeEnum enumStrType) { + public void setEnumStrType(@javax.annotation.Nonnull EnumStrTypeEnum enumStrType) { this.enumStrType = enumStrType; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumTest.java index 7261135596af..9625ad534aff 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumTest.java @@ -111,6 +111,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_ENUM_STRING = "enum_string"; @SerializedName(SERIALIZED_NAME_ENUM_STRING) + @javax.annotation.Nullable private EnumStringEnum enumString; /** @@ -169,6 +170,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_ENUM_STRING_REQUIRED = "enum_string_required"; @SerializedName(SERIALIZED_NAME_ENUM_STRING_REQUIRED) + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** @@ -225,6 +227,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_ENUM_INTEGER = "enum_integer"; @SerializedName(SERIALIZED_NAME_ENUM_INTEGER) + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** @@ -281,6 +284,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_ENUM_INTEGER_ONLY = "enum_integer_only"; @SerializedName(SERIALIZED_NAME_ENUM_INTEGER_ONLY) + @javax.annotation.Nullable private EnumIntegerOnlyEnum enumIntegerOnly; /** @@ -337,28 +341,33 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_ENUM_NUMBER = "enum_number"; @SerializedName(SERIALIZED_NAME_ENUM_NUMBER) + @javax.annotation.Nullable private EnumNumberEnum enumNumber; public static final String SERIALIZED_NAME_OUTER_ENUM = "outerEnum"; @SerializedName(SERIALIZED_NAME_OUTER_ENUM) + @javax.annotation.Nullable private OuterEnum outerEnum; public static final String SERIALIZED_NAME_OUTER_ENUM_INTEGER = "outerEnumInteger"; @SerializedName(SERIALIZED_NAME_OUTER_ENUM_INTEGER) + @javax.annotation.Nullable private OuterEnumInteger outerEnumInteger; public static final String SERIALIZED_NAME_OUTER_ENUM_DEFAULT_VALUE = "outerEnumDefaultValue"; @SerializedName(SERIALIZED_NAME_OUTER_ENUM_DEFAULT_VALUE) + @javax.annotation.Nullable private OuterEnumDefaultValue outerEnumDefaultValue = OuterEnumDefaultValue.PLACED; public static final String SERIALIZED_NAME_OUTER_ENUM_INTEGER_DEFAULT_VALUE = "outerEnumIntegerDefaultValue"; @SerializedName(SERIALIZED_NAME_OUTER_ENUM_INTEGER_DEFAULT_VALUE) + @javax.annotation.Nullable private OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = OuterEnumIntegerDefaultValue.NUMBER_0; public EnumTest() { } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -372,12 +381,12 @@ public EnumStringEnum getEnumString() { return enumString; } - public void setEnumString(EnumStringEnum enumString) { + public void setEnumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; } - public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; return this; } @@ -391,12 +400,12 @@ public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; } - public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public void setEnumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -410,12 +419,12 @@ public EnumIntegerEnum getEnumInteger() { return enumInteger; } - public void setEnumInteger(EnumIntegerEnum enumInteger) { + public void setEnumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } - public EnumTest enumIntegerOnly(EnumIntegerOnlyEnum enumIntegerOnly) { + public EnumTest enumIntegerOnly(@javax.annotation.Nullable EnumIntegerOnlyEnum enumIntegerOnly) { this.enumIntegerOnly = enumIntegerOnly; return this; } @@ -429,12 +438,12 @@ public EnumIntegerOnlyEnum getEnumIntegerOnly() { return enumIntegerOnly; } - public void setEnumIntegerOnly(EnumIntegerOnlyEnum enumIntegerOnly) { + public void setEnumIntegerOnly(@javax.annotation.Nullable EnumIntegerOnlyEnum enumIntegerOnly) { this.enumIntegerOnly = enumIntegerOnly; } - public EnumTest enumNumber(EnumNumberEnum enumNumber) { + public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; return this; } @@ -448,12 +457,12 @@ public EnumNumberEnum getEnumNumber() { return enumNumber; } - public void setEnumNumber(EnumNumberEnum enumNumber) { + public void setEnumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } - public EnumTest outerEnum(OuterEnum outerEnum) { + public EnumTest outerEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; return this; } @@ -467,12 +476,12 @@ public OuterEnum getOuterEnum() { return outerEnum; } - public void setOuterEnum(OuterEnum outerEnum) { + public void setOuterEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; } - public EnumTest outerEnumInteger(OuterEnumInteger outerEnumInteger) { + public EnumTest outerEnumInteger(@javax.annotation.Nullable OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; return this; } @@ -486,12 +495,12 @@ public OuterEnumInteger getOuterEnumInteger() { return outerEnumInteger; } - public void setOuterEnumInteger(OuterEnumInteger outerEnumInteger) { + public void setOuterEnumInteger(@javax.annotation.Nullable OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; } - public EnumTest outerEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) { + public EnumTest outerEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; return this; } @@ -505,12 +514,12 @@ public OuterEnumDefaultValue getOuterEnumDefaultValue() { return outerEnumDefaultValue; } - public void setOuterEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) { + public void setOuterEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; } - public EnumTest outerEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { + public EnumTest outerEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; return this; } @@ -524,7 +533,7 @@ public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { return outerEnumIntegerDefaultValue; } - public void setOuterEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { + public void setOuterEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EquilateralTriangle.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EquilateralTriangle.java index 2df9e84feab0..6cf49d9f3c2f 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EquilateralTriangle.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EquilateralTriangle.java @@ -52,16 +52,18 @@ public class EquilateralTriangle { public static final String SERIALIZED_NAME_SHAPE_TYPE = "shapeType"; @SerializedName(SERIALIZED_NAME_SHAPE_TYPE) + @javax.annotation.Nonnull private String shapeType; public static final String SERIALIZED_NAME_TRIANGLE_TYPE = "triangleType"; @SerializedName(SERIALIZED_NAME_TRIANGLE_TYPE) + @javax.annotation.Nonnull private String triangleType; public EquilateralTriangle() { } - public EquilateralTriangle shapeType(String shapeType) { + public EquilateralTriangle shapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; return this; } @@ -75,12 +77,12 @@ public String getShapeType() { return shapeType; } - public void setShapeType(String shapeType) { + public void setShapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; } - public EquilateralTriangle triangleType(String triangleType) { + public EquilateralTriangle triangleType(@javax.annotation.Nonnull String triangleType) { this.triangleType = triangleType; return this; } @@ -94,7 +96,7 @@ public String getTriangleType() { return triangleType; } - public void setTriangleType(String triangleType) { + public void setTriangleType(@javax.annotation.Nonnull String triangleType) { this.triangleType = triangleType; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index d9222da7515f..80cde012b7b7 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -55,16 +55,18 @@ public class FileSchemaTestClass { public static final String SERIALIZED_NAME_FILE = "file"; @SerializedName(SERIALIZED_NAME_FILE) + @javax.annotation.Nullable private ModelFile _file; public static final String SERIALIZED_NAME_FILES = "files"; @SerializedName(SERIALIZED_NAME_FILES) + @javax.annotation.Nullable private List files = new ArrayList<>(); public FileSchemaTestClass() { } - public FileSchemaTestClass _file(ModelFile _file) { + public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { this._file = _file; return this; } @@ -78,12 +80,12 @@ public ModelFile getFile() { return _file; } - public void setFile(ModelFile _file) { + public void setFile(@javax.annotation.Nullable ModelFile _file) { this._file = _file; } - public FileSchemaTestClass files(List files) { + public FileSchemaTestClass files(@javax.annotation.Nullable List files) { this.files = files; return this; } @@ -105,7 +107,7 @@ public List getFiles() { return files; } - public void setFiles(List files) { + public void setFiles(@javax.annotation.Nullable List files) { this.files = files; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Foo.java index a21d9eb842cb..3a38f8f6a81b 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Foo.java @@ -52,12 +52,13 @@ public class Foo { public static final String SERIALIZED_NAME_BAR = "bar"; @SerializedName(SERIALIZED_NAME_BAR) + @javax.annotation.Nullable private String bar = "bar"; public Foo() { } - public Foo bar(String bar) { + public Foo bar(@javax.annotation.Nullable String bar) { this.bar = bar; return this; } @@ -71,7 +72,7 @@ public String getBar() { return bar; } - public void setBar(String bar) { + public void setBar(@javax.annotation.Nullable String bar) { this.bar = bar; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index 2bc741f01d35..621e58da1f6b 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -53,12 +53,13 @@ public class FooGetDefaultResponse { public static final String SERIALIZED_NAME_STRING = "string"; @SerializedName(SERIALIZED_NAME_STRING) + @javax.annotation.Nullable private Foo string; public FooGetDefaultResponse() { } - public FooGetDefaultResponse string(Foo string) { + public FooGetDefaultResponse string(@javax.annotation.Nullable Foo string) { this.string = string; return this; } @@ -72,7 +73,7 @@ public Foo getString() { return string; } - public void setString(Foo string) { + public void setString(@javax.annotation.Nullable Foo string) { this.string = string; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FormatTest.java index acf94153eb93..2faa9b21715a 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FormatTest.java @@ -57,76 +57,93 @@ public class FormatTest { public static final String SERIALIZED_NAME_INTEGER = "integer"; @SerializedName(SERIALIZED_NAME_INTEGER) + @javax.annotation.Nullable private Integer integer; public static final String SERIALIZED_NAME_INT32 = "int32"; @SerializedName(SERIALIZED_NAME_INT32) + @javax.annotation.Nullable private Integer int32; public static final String SERIALIZED_NAME_INT64 = "int64"; @SerializedName(SERIALIZED_NAME_INT64) + @javax.annotation.Nullable private Long int64; public static final String SERIALIZED_NAME_NUMBER = "number"; @SerializedName(SERIALIZED_NAME_NUMBER) + @javax.annotation.Nonnull private BigDecimal number; public static final String SERIALIZED_NAME_FLOAT = "float"; @SerializedName(SERIALIZED_NAME_FLOAT) + @javax.annotation.Nullable private Float _float; public static final String SERIALIZED_NAME_DOUBLE = "double"; @SerializedName(SERIALIZED_NAME_DOUBLE) + @javax.annotation.Nullable private Double _double; public static final String SERIALIZED_NAME_DECIMAL = "decimal"; @SerializedName(SERIALIZED_NAME_DECIMAL) + @javax.annotation.Nullable private BigDecimal decimal; public static final String SERIALIZED_NAME_STRING = "string"; @SerializedName(SERIALIZED_NAME_STRING) + @javax.annotation.Nullable private String string; public static final String SERIALIZED_NAME_BYTE = "byte"; @SerializedName(SERIALIZED_NAME_BYTE) + @javax.annotation.Nonnull private byte[] _byte; public static final String SERIALIZED_NAME_BINARY = "binary"; @SerializedName(SERIALIZED_NAME_BINARY) + @javax.annotation.Nullable private File binary; public static final String SERIALIZED_NAME_DATE = "date"; @SerializedName(SERIALIZED_NAME_DATE) + @javax.annotation.Nonnull private LocalDate date; public static final String SERIALIZED_NAME_DATE_TIME = "dateTime"; @SerializedName(SERIALIZED_NAME_DATE_TIME) + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) + @javax.annotation.Nullable private UUID uuid; public static final String SERIALIZED_NAME_UUID_WITH_DEFAULT = "uuid_with_default"; @SerializedName(SERIALIZED_NAME_UUID_WITH_DEFAULT) + @javax.annotation.Nullable private UUID uuidWithDefault = UUID.fromString("11111111-206d-4f12-9f12-3d1e525a8e84"); public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) + @javax.annotation.Nonnull private String password; public static final String SERIALIZED_NAME_PATTERN_WITH_DIGITS = "pattern_with_digits"; @SerializedName(SERIALIZED_NAME_PATTERN_WITH_DIGITS) + @javax.annotation.Nullable private String patternWithDigits; public static final String SERIALIZED_NAME_PATTERN_WITH_DIGITS_AND_DELIMITER = "pattern_with_digits_and_delimiter"; @SerializedName(SERIALIZED_NAME_PATTERN_WITH_DIGITS_AND_DELIMITER) + @javax.annotation.Nullable private String patternWithDigitsAndDelimiter; public FormatTest() { } - public FormatTest integer(Integer integer) { + public FormatTest integer(@javax.annotation.Nullable Integer integer) { this.integer = integer; return this; } @@ -142,12 +159,12 @@ public Integer getInteger() { return integer; } - public void setInteger(Integer integer) { + public void setInteger(@javax.annotation.Nullable Integer integer) { this.integer = integer; } - public FormatTest int32(Integer int32) { + public FormatTest int32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; return this; } @@ -163,12 +180,12 @@ public Integer getInt32() { return int32; } - public void setInt32(Integer int32) { + public void setInt32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; } - public FormatTest int64(Long int64) { + public FormatTest int64(@javax.annotation.Nullable Long int64) { this.int64 = int64; return this; } @@ -182,12 +199,12 @@ public Long getInt64() { return int64; } - public void setInt64(Long int64) { + public void setInt64(@javax.annotation.Nullable Long int64) { this.int64 = int64; } - public FormatTest number(BigDecimal number) { + public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { this.number = number; return this; } @@ -203,12 +220,12 @@ public BigDecimal getNumber() { return number; } - public void setNumber(BigDecimal number) { + public void setNumber(@javax.annotation.Nonnull BigDecimal number) { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@javax.annotation.Nullable Float _float) { this._float = _float; return this; } @@ -224,12 +241,12 @@ public Float getFloat() { return _float; } - public void setFloat(Float _float) { + public void setFloat(@javax.annotation.Nullable Float _float) { this._float = _float; } - public FormatTest _double(Double _double) { + public FormatTest _double(@javax.annotation.Nullable Double _double) { this._double = _double; return this; } @@ -245,12 +262,12 @@ public Double getDouble() { return _double; } - public void setDouble(Double _double) { + public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; } - public FormatTest decimal(BigDecimal decimal) { + public FormatTest decimal(@javax.annotation.Nullable BigDecimal decimal) { this.decimal = decimal; return this; } @@ -264,12 +281,12 @@ public BigDecimal getDecimal() { return decimal; } - public void setDecimal(BigDecimal decimal) { + public void setDecimal(@javax.annotation.Nullable BigDecimal decimal) { this.decimal = decimal; } - public FormatTest string(String string) { + public FormatTest string(@javax.annotation.Nullable String string) { this.string = string; return this; } @@ -283,12 +300,12 @@ public String getString() { return string; } - public void setString(String string) { + public void setString(@javax.annotation.Nullable String string) { this.string = string; } - public FormatTest _byte(byte[] _byte) { + public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; return this; } @@ -302,12 +319,12 @@ public byte[] getByte() { return _byte; } - public void setByte(byte[] _byte) { + public void setByte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; } - public FormatTest binary(File binary) { + public FormatTest binary(@javax.annotation.Nullable File binary) { this.binary = binary; return this; } @@ -321,12 +338,12 @@ public File getBinary() { return binary; } - public void setBinary(File binary) { + public void setBinary(@javax.annotation.Nullable File binary) { this.binary = binary; } - public FormatTest date(LocalDate date) { + public FormatTest date(@javax.annotation.Nonnull LocalDate date) { this.date = date; return this; } @@ -340,12 +357,12 @@ public LocalDate getDate() { return date; } - public void setDate(LocalDate date) { + public void setDate(@javax.annotation.Nonnull LocalDate date) { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -359,12 +376,12 @@ public OffsetDateTime getDateTime() { return dateTime; } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public FormatTest uuid(UUID uuid) { + public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -378,12 +395,12 @@ public UUID getUuid() { return uuid; } - public void setUuid(UUID uuid) { + public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public FormatTest uuidWithDefault(UUID uuidWithDefault) { + public FormatTest uuidWithDefault(@javax.annotation.Nullable UUID uuidWithDefault) { this.uuidWithDefault = uuidWithDefault; return this; } @@ -397,12 +414,12 @@ public UUID getUuidWithDefault() { return uuidWithDefault; } - public void setUuidWithDefault(UUID uuidWithDefault) { + public void setUuidWithDefault(@javax.annotation.Nullable UUID uuidWithDefault) { this.uuidWithDefault = uuidWithDefault; } - public FormatTest password(String password) { + public FormatTest password(@javax.annotation.Nonnull String password) { this.password = password; return this; } @@ -416,12 +433,12 @@ public String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nonnull String password) { this.password = password; } - public FormatTest patternWithDigits(String patternWithDigits) { + public FormatTest patternWithDigits(@javax.annotation.Nullable String patternWithDigits) { this.patternWithDigits = patternWithDigits; return this; } @@ -435,12 +452,12 @@ public String getPatternWithDigits() { return patternWithDigits; } - public void setPatternWithDigits(String patternWithDigits) { + public void setPatternWithDigits(@javax.annotation.Nullable String patternWithDigits) { this.patternWithDigits = patternWithDigits; } - public FormatTest patternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) { + public FormatTest patternWithDigitsAndDelimiter(@javax.annotation.Nullable String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; return this; } @@ -454,7 +471,7 @@ public String getPatternWithDigitsAndDelimiter() { return patternWithDigitsAndDelimiter; } - public void setPatternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) { + public void setPatternWithDigitsAndDelimiter(@javax.annotation.Nullable String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FreeFormObjectTestClass.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FreeFormObjectTestClass.java index 4ed0fef9aa59..8376066cc39d 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FreeFormObjectTestClass.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FreeFormObjectTestClass.java @@ -53,16 +53,18 @@ public class FreeFormObjectTestClass { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public static final String SERIALIZED_NAME_PROPERTIES = "properties"; @SerializedName(SERIALIZED_NAME_PROPERTIES) + @javax.annotation.Nullable private FreeFormObjectTestClassProperties properties; public FreeFormObjectTestClass() { } - public FreeFormObjectTestClass name(String name) { + public FreeFormObjectTestClass name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -76,12 +78,12 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } - public FreeFormObjectTestClass properties(FreeFormObjectTestClassProperties properties) { + public FreeFormObjectTestClass properties(@javax.annotation.Nullable FreeFormObjectTestClassProperties properties) { this.properties = properties; return this; } @@ -95,7 +97,7 @@ public FreeFormObjectTestClassProperties getProperties() { return properties; } - public void setProperties(FreeFormObjectTestClassProperties properties) { + public void setProperties(@javax.annotation.Nullable FreeFormObjectTestClassProperties properties) { this.properties = properties; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/GrandparentAnimal.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/GrandparentAnimal.java index 81df9175a80b..637116a24bbf 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/GrandparentAnimal.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/GrandparentAnimal.java @@ -52,13 +52,14 @@ public class GrandparentAnimal { public static final String SERIALIZED_NAME_PET_TYPE = "pet_type"; @SerializedName(SERIALIZED_NAME_PET_TYPE) + @javax.annotation.Nonnull protected String petType; public GrandparentAnimal() { this.petType = this.getClass().getSimpleName(); } - public GrandparentAnimal petType(String petType) { + public GrandparentAnimal petType(@javax.annotation.Nonnull String petType) { this.petType = petType; return this; } @@ -72,7 +73,7 @@ public String getPetType() { return petType; } - public void setPetType(String petType) { + public void setPetType(@javax.annotation.Nonnull String petType) { this.petType = petType; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index ea4f3ddfe373..4066bf0c6b11 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -52,10 +52,12 @@ public class HasOnlyReadOnly { public static final String SERIALIZED_NAME_BAR = "bar"; @SerializedName(SERIALIZED_NAME_BAR) + @javax.annotation.Nullable private String bar; public static final String SERIALIZED_NAME_FOO = "foo"; @SerializedName(SERIALIZED_NAME_FOO) + @javax.annotation.Nullable private String foo; public HasOnlyReadOnly() { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/HealthCheckResult.java index 3f3387b4edc1..3b03543455aa 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -53,12 +53,13 @@ public class HealthCheckResult { public static final String SERIALIZED_NAME_NULLABLE_MESSAGE = "NullableMessage"; @SerializedName(SERIALIZED_NAME_NULLABLE_MESSAGE) + @javax.annotation.Nullable private String nullableMessage; public HealthCheckResult() { } - public HealthCheckResult nullableMessage(String nullableMessage) { + public HealthCheckResult nullableMessage(@javax.annotation.Nullable String nullableMessage) { this.nullableMessage = nullableMessage; return this; } @@ -72,7 +73,7 @@ public String getNullableMessage() { return nullableMessage; } - public void setNullableMessage(String nullableMessage) { + public void setNullableMessage(@javax.annotation.Nullable String nullableMessage) { this.nullableMessage = nullableMessage; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java index 388cdbdb45b0..136492ee8b70 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java @@ -52,16 +52,18 @@ public class IsoscelesTriangle { public static final String SERIALIZED_NAME_SHAPE_TYPE = "shapeType"; @SerializedName(SERIALIZED_NAME_SHAPE_TYPE) + @javax.annotation.Nonnull private String shapeType; public static final String SERIALIZED_NAME_TRIANGLE_TYPE = "triangleType"; @SerializedName(SERIALIZED_NAME_TRIANGLE_TYPE) + @javax.annotation.Nonnull private String triangleType; public IsoscelesTriangle() { } - public IsoscelesTriangle shapeType(String shapeType) { + public IsoscelesTriangle shapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; return this; } @@ -75,12 +77,12 @@ public String getShapeType() { return shapeType; } - public void setShapeType(String shapeType) { + public void setShapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; } - public IsoscelesTriangle triangleType(String triangleType) { + public IsoscelesTriangle triangleType(@javax.annotation.Nonnull String triangleType) { this.triangleType = triangleType; return this; } @@ -94,7 +96,7 @@ public String getTriangleType() { return triangleType; } - public void setTriangleType(String triangleType) { + public void setTriangleType(@javax.annotation.Nonnull String triangleType) { this.triangleType = triangleType; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MapTest.java index 041c2c9b58f5..e12aaff95afd 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MapTest.java @@ -54,6 +54,7 @@ public class MapTest { public static final String SERIALIZED_NAME_MAP_MAP_OF_STRING = "map_map_of_string"; @SerializedName(SERIALIZED_NAME_MAP_MAP_OF_STRING) + @javax.annotation.Nullable private Map> mapMapOfString = new HashMap<>(); /** @@ -110,20 +111,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_MAP_OF_ENUM_STRING = "map_of_enum_string"; @SerializedName(SERIALIZED_NAME_MAP_OF_ENUM_STRING) + @javax.annotation.Nullable private Map mapOfEnumString = new HashMap<>(); public static final String SERIALIZED_NAME_DIRECT_MAP = "direct_map"; @SerializedName(SERIALIZED_NAME_DIRECT_MAP) + @javax.annotation.Nullable private Map directMap = new HashMap<>(); public static final String SERIALIZED_NAME_INDIRECT_MAP = "indirect_map"; @SerializedName(SERIALIZED_NAME_INDIRECT_MAP) + @javax.annotation.Nullable private Map indirectMap = new HashMap<>(); public MapTest() { } - public MapTest mapMapOfString(Map> mapMapOfString) { + public MapTest mapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; return this; } @@ -145,12 +149,12 @@ public Map> getMapMapOfString() { return mapMapOfString; } - public void setMapMapOfString(Map> mapMapOfString) { + public void setMapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } - public MapTest mapOfEnumString(Map mapOfEnumString) { + public MapTest mapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; return this; } @@ -172,12 +176,12 @@ public Map getMapOfEnumString() { return mapOfEnumString; } - public void setMapOfEnumString(Map mapOfEnumString) { + public void setMapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } - public MapTest directMap(Map directMap) { + public MapTest directMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; return this; } @@ -199,12 +203,12 @@ public Map getDirectMap() { return directMap; } - public void setDirectMap(Map directMap) { + public void setDirectMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; } - public MapTest indirectMap(Map indirectMap) { + public MapTest indirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; return this; } @@ -226,7 +230,7 @@ public Map getIndirectMap() { return indirectMap; } - public void setIndirectMap(Map indirectMap) { + public void setIndirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 70d258670e8b..88afb3d6927c 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -57,20 +57,23 @@ public class MixedPropertiesAndAdditionalPropertiesClass { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) + @javax.annotation.Nullable private UUID uuid; public static final String SERIALIZED_NAME_DATE_TIME = "dateTime"; @SerializedName(SERIALIZED_NAME_DATE_TIME) + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String SERIALIZED_NAME_MAP = "map"; @SerializedName(SERIALIZED_NAME_MAP) + @javax.annotation.Nullable private Map map = new HashMap<>(); public MixedPropertiesAndAdditionalPropertiesClass() { } - public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -84,12 +87,12 @@ public UUID getUuid() { return uuid; } - public void setUuid(UUID uuid) { + public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -103,12 +106,12 @@ public OffsetDateTime getDateTime() { return dateTime; } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + public MixedPropertiesAndAdditionalPropertiesClass map(@javax.annotation.Nullable Map map) { this.map = map; return this; } @@ -130,7 +133,7 @@ public Map getMap() { return map; } - public void setMap(Map map) { + public void setMap(@javax.annotation.Nullable Map map) { this.map = map; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Model200Response.java index e1689b9b8ba5..79b633b45f48 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Model200Response.java @@ -52,16 +52,18 @@ public class Model200Response { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private Integer name; public static final String SERIALIZED_NAME_PROPERTY_CLASS = "class"; @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) + @javax.annotation.Nullable private String propertyClass; public Model200Response() { } - public Model200Response name(Integer name) { + public Model200Response name(@javax.annotation.Nullable Integer name) { this.name = name; return this; } @@ -75,12 +77,12 @@ public Integer getName() { return name; } - public void setName(Integer name) { + public void setName(@javax.annotation.Nullable Integer name) { this.name = name; } - public Model200Response propertyClass(String propertyClass) { + public Model200Response propertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -94,7 +96,7 @@ public String getPropertyClass() { return propertyClass; } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 562a3dd1bb86..f904409b74cd 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -52,20 +52,23 @@ public class ModelApiResponse { public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) + @javax.annotation.Nullable private Integer code; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @javax.annotation.Nullable private String type; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable private String message; public ModelApiResponse() { } - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@javax.annotation.Nullable Integer code) { this.code = code; return this; } @@ -79,12 +82,12 @@ public Integer getCode() { return code; } - public void setCode(Integer code) { + public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@javax.annotation.Nullable String type) { this.type = type; return this; } @@ -98,12 +101,12 @@ public String getType() { return type; } - public void setType(String type) { + public void setType(@javax.annotation.Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@javax.annotation.Nullable String message) { this.message = message; return this; } @@ -117,7 +120,7 @@ public String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelFile.java index ef418a315b22..eb02ffa0d89e 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelFile.java @@ -52,12 +52,13 @@ public class ModelFile { public static final String SERIALIZED_NAME_SOURCE_U_R_I = "sourceURI"; @SerializedName(SERIALIZED_NAME_SOURCE_U_R_I) + @javax.annotation.Nullable private String sourceURI; public ModelFile() { } - public ModelFile sourceURI(String sourceURI) { + public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; return this; } @@ -71,7 +72,7 @@ public String getSourceURI() { return sourceURI; } - public void setSourceURI(String sourceURI) { + public void setSourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelList.java index b5f8dca2b34e..8def6c5de61a 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelList.java @@ -52,12 +52,13 @@ public class ModelList { public static final String SERIALIZED_NAME_123LIST = "123-list"; @SerializedName(SERIALIZED_NAME_123LIST) + @javax.annotation.Nullable private String _123list; public ModelList() { } - public ModelList _123list(String _123list) { + public ModelList _123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; return this; } @@ -71,7 +72,7 @@ public String get123list() { return _123list; } - public void set123list(String _123list) { + public void set123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelReturn.java index 0bdb2bfe3de2..6e0baf4bfd07 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -52,12 +52,13 @@ public class ModelReturn { public static final String SERIALIZED_NAME_RETURN = "return"; @SerializedName(SERIALIZED_NAME_RETURN) + @javax.annotation.Nullable private Integer _return; public ModelReturn() { } - public ModelReturn _return(Integer _return) { + public ModelReturn _return(@javax.annotation.Nullable Integer _return) { this._return = _return; return this; } @@ -71,7 +72,7 @@ public Integer getReturn() { return _return; } - public void setReturn(Integer _return) { + public void setReturn(@javax.annotation.Nullable Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelWithOneOfAnyOfProperties.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelWithOneOfAnyOfProperties.java index 87c9b6059932..c38166b92e6e 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelWithOneOfAnyOfProperties.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelWithOneOfAnyOfProperties.java @@ -54,16 +54,18 @@ public class ModelWithOneOfAnyOfProperties { public static final String SERIALIZED_NAME_ONEOF_PROP = "oneof_prop"; @SerializedName(SERIALIZED_NAME_ONEOF_PROP) + @javax.annotation.Nullable private ArrayOneOf oneofProp; public static final String SERIALIZED_NAME_ANYOF_PROP = "anyof_prop"; @SerializedName(SERIALIZED_NAME_ANYOF_PROP) + @javax.annotation.Nullable private ArrayAnyOf anyofProp; public ModelWithOneOfAnyOfProperties() { } - public ModelWithOneOfAnyOfProperties oneofProp(ArrayOneOf oneofProp) { + public ModelWithOneOfAnyOfProperties oneofProp(@javax.annotation.Nullable ArrayOneOf oneofProp) { this.oneofProp = oneofProp; return this; } @@ -77,12 +79,12 @@ public ArrayOneOf getOneofProp() { return oneofProp; } - public void setOneofProp(ArrayOneOf oneofProp) { + public void setOneofProp(@javax.annotation.Nullable ArrayOneOf oneofProp) { this.oneofProp = oneofProp; } - public ModelWithOneOfAnyOfProperties anyofProp(ArrayAnyOf anyofProp) { + public ModelWithOneOfAnyOfProperties anyofProp(@javax.annotation.Nullable ArrayAnyOf anyofProp) { this.anyofProp = anyofProp; return this; } @@ -96,7 +98,7 @@ public ArrayAnyOf getAnyofProp() { return anyofProp; } - public void setAnyofProp(ArrayAnyOf anyofProp) { + public void setAnyofProp(@javax.annotation.Nullable ArrayAnyOf anyofProp) { this.anyofProp = anyofProp; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Name.java index 42f73644a75f..04dff723c3e9 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Name.java @@ -52,18 +52,22 @@ public class Name { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull private Integer name; public static final String SERIALIZED_NAME_SNAKE_CASE = "snake_case"; @SerializedName(SERIALIZED_NAME_SNAKE_CASE) + @javax.annotation.Nullable private Integer snakeCase; public static final String SERIALIZED_NAME_PROPERTY = "property"; @SerializedName(SERIALIZED_NAME_PROPERTY) + @javax.annotation.Nullable private String property; public static final String SERIALIZED_NAME_123NUMBER = "123Number"; @SerializedName(SERIALIZED_NAME_123NUMBER) + @javax.annotation.Nullable private Integer _123number; public Name() { @@ -78,7 +82,7 @@ public Name( this._123number = _123number; } - public Name name(Integer name) { + public Name name(@javax.annotation.Nonnull Integer name) { this.name = name; return this; } @@ -92,7 +96,7 @@ public Integer getName() { return name; } - public void setName(Integer name) { + public void setName(@javax.annotation.Nonnull Integer name) { this.name = name; } @@ -108,7 +112,7 @@ public Integer getSnakeCase() { - public Name property(String property) { + public Name property(@javax.annotation.Nullable String property) { this.property = property; return this; } @@ -122,7 +126,7 @@ public String getProperty() { return property; } - public void setProperty(String property) { + public void setProperty(@javax.annotation.Nullable String property) { this.property = property; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPet.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPet.java index e986b4fcc683..62467af3d40e 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPet.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPet.java @@ -57,34 +57,42 @@ public class NewPet { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_CATEGORY_INLINE_ALLOF = "category_inline_allof"; @SerializedName(SERIALIZED_NAME_CATEGORY_INLINE_ALLOF) + @javax.annotation.Nullable private NewPetCategoryInlineAllof categoryInlineAllof; public static final String SERIALIZED_NAME_CATEGORY_ALL_OF_REF = "category_allOf_ref"; @SerializedName(SERIALIZED_NAME_CATEGORY_ALL_OF_REF) + @javax.annotation.Nullable private Category categoryAllOfRef; public static final String SERIALIZED_NAME_CATEGORY_ALL_OF_REF_DESCRIPTION = "category_allOf_ref_description"; @SerializedName(SERIALIZED_NAME_CATEGORY_ALL_OF_REF_DESCRIPTION) + @javax.annotation.Nullable private Category categoryAllOfRefDescription; public static final String SERIALIZED_NAME_CATEGORY_ALL_OF_REF_DESCRIPTION_READONLY = "category_allOf_ref_description_readonly"; @SerializedName(SERIALIZED_NAME_CATEGORY_ALL_OF_REF_DESCRIPTION_READONLY) + @javax.annotation.Nullable private Category categoryAllOfRefDescriptionReadonly; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; @SerializedName(SERIALIZED_NAME_PHOTO_URLS) + @javax.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** @@ -143,6 +151,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable private StatusEnum status; public NewPet() { @@ -155,7 +164,7 @@ public NewPet( this.categoryAllOfRefDescriptionReadonly = categoryAllOfRefDescriptionReadonly; } - public NewPet id(Long id) { + public NewPet id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -169,12 +178,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public NewPet categoryInlineAllof(NewPetCategoryInlineAllof categoryInlineAllof) { + public NewPet categoryInlineAllof(@javax.annotation.Nullable NewPetCategoryInlineAllof categoryInlineAllof) { this.categoryInlineAllof = categoryInlineAllof; return this; } @@ -188,12 +197,12 @@ public NewPetCategoryInlineAllof getCategoryInlineAllof() { return categoryInlineAllof; } - public void setCategoryInlineAllof(NewPetCategoryInlineAllof categoryInlineAllof) { + public void setCategoryInlineAllof(@javax.annotation.Nullable NewPetCategoryInlineAllof categoryInlineAllof) { this.categoryInlineAllof = categoryInlineAllof; } - public NewPet categoryAllOfRef(Category categoryAllOfRef) { + public NewPet categoryAllOfRef(@javax.annotation.Nullable Category categoryAllOfRef) { this.categoryAllOfRef = categoryAllOfRef; return this; } @@ -207,12 +216,12 @@ public Category getCategoryAllOfRef() { return categoryAllOfRef; } - public void setCategoryAllOfRef(Category categoryAllOfRef) { + public void setCategoryAllOfRef(@javax.annotation.Nullable Category categoryAllOfRef) { this.categoryAllOfRef = categoryAllOfRef; } - public NewPet categoryAllOfRefDescription(Category categoryAllOfRefDescription) { + public NewPet categoryAllOfRefDescription(@javax.annotation.Nullable Category categoryAllOfRefDescription) { this.categoryAllOfRefDescription = categoryAllOfRefDescription; return this; } @@ -226,7 +235,7 @@ public Category getCategoryAllOfRefDescription() { return categoryAllOfRefDescription; } - public void setCategoryAllOfRefDescription(Category categoryAllOfRefDescription) { + public void setCategoryAllOfRefDescription(@javax.annotation.Nullable Category categoryAllOfRefDescription) { this.categoryAllOfRefDescription = categoryAllOfRefDescription; } @@ -242,7 +251,7 @@ public Category getCategoryAllOfRefDescriptionReadonly() { - public NewPet name(String name) { + public NewPet name(@javax.annotation.Nonnull String name) { this.name = name; return this; } @@ -256,12 +265,12 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } - public NewPet photoUrls(List photoUrls) { + public NewPet photoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; return this; } @@ -283,12 +292,12 @@ public List getPhotoUrls() { return photoUrls; } - public void setPhotoUrls(List photoUrls) { + public void setPhotoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; } - public NewPet tags(List tags) { + public NewPet tags(@javax.annotation.Nullable List tags) { this.tags = tags; return this; } @@ -310,12 +319,12 @@ public List getTags() { return tags; } - public void setTags(List tags) { + public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; } - public NewPet status(StatusEnum status) { + public NewPet status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; } @@ -329,7 +338,7 @@ public StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPetCategoryInlineAllof.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPetCategoryInlineAllof.java index ab6406f39864..8407bd740c20 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPetCategoryInlineAllof.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPetCategoryInlineAllof.java @@ -53,20 +53,23 @@ public class NewPetCategoryInlineAllof { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull private String name = "default-name"; public static final String SERIALIZED_NAME_CATEGORY_TAG = "category_tag"; @SerializedName(SERIALIZED_NAME_CATEGORY_TAG) + @javax.annotation.Nullable private NewPetCategoryInlineAllofAllOfCategoryTag categoryTag; public NewPetCategoryInlineAllof() { } - public NewPetCategoryInlineAllof id(Long id) { + public NewPetCategoryInlineAllof id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -80,12 +83,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public NewPetCategoryInlineAllof name(String name) { + public NewPetCategoryInlineAllof name(@javax.annotation.Nonnull String name) { this.name = name; return this; } @@ -99,12 +102,12 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } - public NewPetCategoryInlineAllof categoryTag(NewPetCategoryInlineAllofAllOfCategoryTag categoryTag) { + public NewPetCategoryInlineAllof categoryTag(@javax.annotation.Nullable NewPetCategoryInlineAllofAllOfCategoryTag categoryTag) { this.categoryTag = categoryTag; return this; } @@ -118,7 +121,7 @@ public NewPetCategoryInlineAllofAllOfCategoryTag getCategoryTag() { return categoryTag; } - public void setCategoryTag(NewPetCategoryInlineAllofAllOfCategoryTag categoryTag) { + public void setCategoryTag(@javax.annotation.Nullable NewPetCategoryInlineAllofAllOfCategoryTag categoryTag) { this.categoryTag = categoryTag; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPetCategoryInlineAllofAllOfCategoryTag.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPetCategoryInlineAllofAllOfCategoryTag.java index 6c5457a76108..f8e26e4e85b0 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPetCategoryInlineAllofAllOfCategoryTag.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPetCategoryInlineAllofAllOfCategoryTag.java @@ -52,16 +52,18 @@ public class NewPetCategoryInlineAllofAllOfCategoryTag { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public NewPetCategoryInlineAllofAllOfCategoryTag() { } - public NewPetCategoryInlineAllofAllOfCategoryTag id(Long id) { + public NewPetCategoryInlineAllofAllOfCategoryTag id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -75,12 +77,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public NewPetCategoryInlineAllofAllOfCategoryTag name(String name) { + public NewPetCategoryInlineAllofAllOfCategoryTag name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -94,7 +96,7 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NullableClass.java index 59d6b60dab31..f0680bdec45c 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NullableClass.java @@ -60,56 +60,68 @@ public class NullableClass { public static final String SERIALIZED_NAME_INTEGER_PROP = "integer_prop"; @SerializedName(SERIALIZED_NAME_INTEGER_PROP) + @javax.annotation.Nullable private Integer integerProp; public static final String SERIALIZED_NAME_NUMBER_PROP = "number_prop"; @SerializedName(SERIALIZED_NAME_NUMBER_PROP) + @javax.annotation.Nullable private BigDecimal numberProp; public static final String SERIALIZED_NAME_BOOLEAN_PROP = "boolean_prop"; @SerializedName(SERIALIZED_NAME_BOOLEAN_PROP) + @javax.annotation.Nullable private Boolean booleanProp; public static final String SERIALIZED_NAME_STRING_PROP = "string_prop"; @SerializedName(SERIALIZED_NAME_STRING_PROP) + @javax.annotation.Nullable private String stringProp; public static final String SERIALIZED_NAME_DATE_PROP = "date_prop"; @SerializedName(SERIALIZED_NAME_DATE_PROP) + @javax.annotation.Nullable private LocalDate dateProp; public static final String SERIALIZED_NAME_DATETIME_PROP = "datetime_prop"; @SerializedName(SERIALIZED_NAME_DATETIME_PROP) + @javax.annotation.Nullable private OffsetDateTime datetimeProp; public static final String SERIALIZED_NAME_ARRAY_NULLABLE_PROP = "array_nullable_prop"; @SerializedName(SERIALIZED_NAME_ARRAY_NULLABLE_PROP) + @javax.annotation.Nullable private List arrayNullableProp; public static final String SERIALIZED_NAME_ARRAY_AND_ITEMS_NULLABLE_PROP = "array_and_items_nullable_prop"; @SerializedName(SERIALIZED_NAME_ARRAY_AND_ITEMS_NULLABLE_PROP) + @javax.annotation.Nullable private List arrayAndItemsNullableProp; public static final String SERIALIZED_NAME_ARRAY_ITEMS_NULLABLE = "array_items_nullable"; @SerializedName(SERIALIZED_NAME_ARRAY_ITEMS_NULLABLE) + @javax.annotation.Nullable private List arrayItemsNullable = new ArrayList<>(); public static final String SERIALIZED_NAME_OBJECT_NULLABLE_PROP = "object_nullable_prop"; @SerializedName(SERIALIZED_NAME_OBJECT_NULLABLE_PROP) + @javax.annotation.Nullable private Map objectNullableProp; public static final String SERIALIZED_NAME_OBJECT_AND_ITEMS_NULLABLE_PROP = "object_and_items_nullable_prop"; @SerializedName(SERIALIZED_NAME_OBJECT_AND_ITEMS_NULLABLE_PROP) + @javax.annotation.Nullable private Map objectAndItemsNullableProp; public static final String SERIALIZED_NAME_OBJECT_ITEMS_NULLABLE = "object_items_nullable"; @SerializedName(SERIALIZED_NAME_OBJECT_ITEMS_NULLABLE) + @javax.annotation.Nullable private Map objectItemsNullable = new HashMap<>(); public NullableClass() { } - public NullableClass integerProp(Integer integerProp) { + public NullableClass integerProp(@javax.annotation.Nullable Integer integerProp) { this.integerProp = integerProp; return this; } @@ -123,12 +135,12 @@ public Integer getIntegerProp() { return integerProp; } - public void setIntegerProp(Integer integerProp) { + public void setIntegerProp(@javax.annotation.Nullable Integer integerProp) { this.integerProp = integerProp; } - public NullableClass numberProp(BigDecimal numberProp) { + public NullableClass numberProp(@javax.annotation.Nullable BigDecimal numberProp) { this.numberProp = numberProp; return this; } @@ -142,12 +154,12 @@ public BigDecimal getNumberProp() { return numberProp; } - public void setNumberProp(BigDecimal numberProp) { + public void setNumberProp(@javax.annotation.Nullable BigDecimal numberProp) { this.numberProp = numberProp; } - public NullableClass booleanProp(Boolean booleanProp) { + public NullableClass booleanProp(@javax.annotation.Nullable Boolean booleanProp) { this.booleanProp = booleanProp; return this; } @@ -161,12 +173,12 @@ public Boolean getBooleanProp() { return booleanProp; } - public void setBooleanProp(Boolean booleanProp) { + public void setBooleanProp(@javax.annotation.Nullable Boolean booleanProp) { this.booleanProp = booleanProp; } - public NullableClass stringProp(String stringProp) { + public NullableClass stringProp(@javax.annotation.Nullable String stringProp) { this.stringProp = stringProp; return this; } @@ -180,12 +192,12 @@ public String getStringProp() { return stringProp; } - public void setStringProp(String stringProp) { + public void setStringProp(@javax.annotation.Nullable String stringProp) { this.stringProp = stringProp; } - public NullableClass dateProp(LocalDate dateProp) { + public NullableClass dateProp(@javax.annotation.Nullable LocalDate dateProp) { this.dateProp = dateProp; return this; } @@ -199,12 +211,12 @@ public LocalDate getDateProp() { return dateProp; } - public void setDateProp(LocalDate dateProp) { + public void setDateProp(@javax.annotation.Nullable LocalDate dateProp) { this.dateProp = dateProp; } - public NullableClass datetimeProp(OffsetDateTime datetimeProp) { + public NullableClass datetimeProp(@javax.annotation.Nullable OffsetDateTime datetimeProp) { this.datetimeProp = datetimeProp; return this; } @@ -218,12 +230,12 @@ public OffsetDateTime getDatetimeProp() { return datetimeProp; } - public void setDatetimeProp(OffsetDateTime datetimeProp) { + public void setDatetimeProp(@javax.annotation.Nullable OffsetDateTime datetimeProp) { this.datetimeProp = datetimeProp; } - public NullableClass arrayNullableProp(List arrayNullableProp) { + public NullableClass arrayNullableProp(@javax.annotation.Nullable List arrayNullableProp) { this.arrayNullableProp = arrayNullableProp; return this; } @@ -245,12 +257,12 @@ public List getArrayNullableProp() { return arrayNullableProp; } - public void setArrayNullableProp(List arrayNullableProp) { + public void setArrayNullableProp(@javax.annotation.Nullable List arrayNullableProp) { this.arrayNullableProp = arrayNullableProp; } - public NullableClass arrayAndItemsNullableProp(List arrayAndItemsNullableProp) { + public NullableClass arrayAndItemsNullableProp(@javax.annotation.Nullable List arrayAndItemsNullableProp) { this.arrayAndItemsNullableProp = arrayAndItemsNullableProp; return this; } @@ -272,12 +284,12 @@ public List getArrayAndItemsNullableProp() { return arrayAndItemsNullableProp; } - public void setArrayAndItemsNullableProp(List arrayAndItemsNullableProp) { + public void setArrayAndItemsNullableProp(@javax.annotation.Nullable List arrayAndItemsNullableProp) { this.arrayAndItemsNullableProp = arrayAndItemsNullableProp; } - public NullableClass arrayItemsNullable(List arrayItemsNullable) { + public NullableClass arrayItemsNullable(@javax.annotation.Nullable List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; return this; } @@ -299,12 +311,12 @@ public List getArrayItemsNullable() { return arrayItemsNullable; } - public void setArrayItemsNullable(List arrayItemsNullable) { + public void setArrayItemsNullable(@javax.annotation.Nullable List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; } - public NullableClass objectNullableProp(Map objectNullableProp) { + public NullableClass objectNullableProp(@javax.annotation.Nullable Map objectNullableProp) { this.objectNullableProp = objectNullableProp; return this; } @@ -326,12 +338,12 @@ public Map getObjectNullableProp() { return objectNullableProp; } - public void setObjectNullableProp(Map objectNullableProp) { + public void setObjectNullableProp(@javax.annotation.Nullable Map objectNullableProp) { this.objectNullableProp = objectNullableProp; } - public NullableClass objectAndItemsNullableProp(Map objectAndItemsNullableProp) { + public NullableClass objectAndItemsNullableProp(@javax.annotation.Nullable Map objectAndItemsNullableProp) { this.objectAndItemsNullableProp = objectAndItemsNullableProp; return this; } @@ -353,12 +365,12 @@ public Map getObjectAndItemsNullableProp() { return objectAndItemsNullableProp; } - public void setObjectAndItemsNullableProp(Map objectAndItemsNullableProp) { + public void setObjectAndItemsNullableProp(@javax.annotation.Nullable Map objectAndItemsNullableProp) { this.objectAndItemsNullableProp = objectAndItemsNullableProp; } - public NullableClass objectItemsNullable(Map objectItemsNullable) { + public NullableClass objectItemsNullable(@javax.annotation.Nullable Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; return this; } @@ -380,7 +392,7 @@ public Map getObjectItemsNullable() { return objectItemsNullable; } - public void setObjectItemsNullable(Map objectItemsNullable) { + public void setObjectItemsNullable(@javax.annotation.Nullable Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NumberOnly.java index 2505ba165b42..aa75c2abe1d9 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -53,12 +53,13 @@ public class NumberOnly { public static final String SERIALIZED_NAME_JUST_NUMBER = "JustNumber"; @SerializedName(SERIALIZED_NAME_JUST_NUMBER) + @javax.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } - public NumberOnly justNumber(BigDecimal justNumber) { + public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; } @@ -72,7 +73,7 @@ public BigDecimal getJustNumber() { return justNumber; } - public void setJustNumber(BigDecimal justNumber) { + public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index a9d63131b49d..c61dd42ff67b 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -56,27 +56,31 @@ public class ObjectWithDeprecatedFields { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) + @javax.annotation.Nullable private String uuid; public static final String SERIALIZED_NAME_ID = "id"; @Deprecated @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private BigDecimal id; public static final String SERIALIZED_NAME_DEPRECATED_REF = "deprecatedRef"; @Deprecated @SerializedName(SERIALIZED_NAME_DEPRECATED_REF) + @javax.annotation.Nullable private DeprecatedObject deprecatedRef; public static final String SERIALIZED_NAME_BARS = "bars"; @Deprecated @SerializedName(SERIALIZED_NAME_BARS) + @javax.annotation.Nullable private List bars = new ArrayList<>(); public ObjectWithDeprecatedFields() { } - public ObjectWithDeprecatedFields uuid(String uuid) { + public ObjectWithDeprecatedFields uuid(@javax.annotation.Nullable String uuid) { this.uuid = uuid; return this; } @@ -90,13 +94,13 @@ public String getUuid() { return uuid; } - public void setUuid(String uuid) { + public void setUuid(@javax.annotation.Nullable String uuid) { this.uuid = uuid; } @Deprecated - public ObjectWithDeprecatedFields id(BigDecimal id) { + public ObjectWithDeprecatedFields id(@javax.annotation.Nullable BigDecimal id) { this.id = id; return this; } @@ -113,13 +117,13 @@ public BigDecimal getId() { } @Deprecated - public void setId(BigDecimal id) { + public void setId(@javax.annotation.Nullable BigDecimal id) { this.id = id; } @Deprecated - public ObjectWithDeprecatedFields deprecatedRef(DeprecatedObject deprecatedRef) { + public ObjectWithDeprecatedFields deprecatedRef(@javax.annotation.Nullable DeprecatedObject deprecatedRef) { this.deprecatedRef = deprecatedRef; return this; } @@ -136,13 +140,13 @@ public DeprecatedObject getDeprecatedRef() { } @Deprecated - public void setDeprecatedRef(DeprecatedObject deprecatedRef) { + public void setDeprecatedRef(@javax.annotation.Nullable DeprecatedObject deprecatedRef) { this.deprecatedRef = deprecatedRef; } @Deprecated - public ObjectWithDeprecatedFields bars(List bars) { + public ObjectWithDeprecatedFields bars(@javax.annotation.Nullable List bars) { this.bars = bars; return this; } @@ -167,7 +171,7 @@ public List getBars() { } @Deprecated - public void setBars(List bars) { + public void setBars(@javax.annotation.Nullable List bars) { this.bars = bars; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Order.java index 85a88cf0898d..dd28193b8947 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Order.java @@ -53,18 +53,22 @@ public class Order { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_PET_ID = "petId"; @SerializedName(SERIALIZED_NAME_PET_ID) + @javax.annotation.Nullable private Long petId; public static final String SERIALIZED_NAME_QUANTITY = "quantity"; @SerializedName(SERIALIZED_NAME_QUANTITY) + @javax.annotation.Nullable private Integer quantity; public static final String SERIALIZED_NAME_SHIP_DATE = "shipDate"; @SerializedName(SERIALIZED_NAME_SHIP_DATE) + @javax.annotation.Nullable private OffsetDateTime shipDate; /** @@ -123,16 +127,18 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable private StatusEnum status; public static final String SERIALIZED_NAME_COMPLETE = "complete"; @SerializedName(SERIALIZED_NAME_COMPLETE) + @javax.annotation.Nullable private Boolean complete = false; public Order() { } - public Order id(Long id) { + public Order id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -146,12 +152,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@javax.annotation.Nullable Long petId) { this.petId = petId; return this; } @@ -165,12 +171,12 @@ public Long getPetId() { return petId; } - public void setPetId(Long petId) { + public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -184,12 +190,12 @@ public Integer getQuantity() { return quantity; } - public void setQuantity(Integer quantity) { + public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -203,12 +209,12 @@ public OffsetDateTime getShipDate() { return shipDate; } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; } @@ -222,12 +228,12 @@ public StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } - public Order complete(Boolean complete) { + public Order complete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; return this; } @@ -241,7 +247,7 @@ public Boolean getComplete() { return complete; } - public void setComplete(Boolean complete) { + public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/OuterComposite.java index d0da92d50447..710f1ec669c1 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -53,20 +53,23 @@ public class OuterComposite { public static final String SERIALIZED_NAME_MY_NUMBER = "my_number"; @SerializedName(SERIALIZED_NAME_MY_NUMBER) + @javax.annotation.Nullable private BigDecimal myNumber; public static final String SERIALIZED_NAME_MY_STRING = "my_string"; @SerializedName(SERIALIZED_NAME_MY_STRING) + @javax.annotation.Nullable private String myString; public static final String SERIALIZED_NAME_MY_BOOLEAN = "my_boolean"; @SerializedName(SERIALIZED_NAME_MY_BOOLEAN) + @javax.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } - public OuterComposite myNumber(BigDecimal myNumber) { + public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; } @@ -80,12 +83,12 @@ public BigDecimal getMyNumber() { return myNumber; } - public void setMyNumber(BigDecimal myNumber) { + public void setMyNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; } - public OuterComposite myString(String myString) { + public OuterComposite myString(@javax.annotation.Nullable String myString) { this.myString = myString; return this; } @@ -99,12 +102,12 @@ public String getMyString() { return myString; } - public void setMyString(String myString) { + public void setMyString(@javax.annotation.Nullable String myString) { this.myString = myString; } - public OuterComposite myBoolean(Boolean myBoolean) { + public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; return this; } @@ -118,7 +121,7 @@ public Boolean getMyBoolean() { return myBoolean; } - public void setMyBoolean(Boolean myBoolean) { + public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Pet.java index 1a8c5a688d07..40f6172f6e31 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Pet.java @@ -56,22 +56,27 @@ public class Pet { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_CATEGORY = "category"; @SerializedName(SERIALIZED_NAME_CATEGORY) + @javax.annotation.Nullable private Category category; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; @SerializedName(SERIALIZED_NAME_PHOTO_URLS) + @javax.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** @@ -130,12 +135,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable private StatusEnum status; public Pet() { } - public Pet id(Long id) { + public Pet id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -149,12 +155,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@javax.annotation.Nullable Category category) { this.category = category; return this; } @@ -168,12 +174,12 @@ public Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; } - public Pet name(String name) { + public Pet name(@javax.annotation.Nonnull String name) { this.name = name; return this; } @@ -187,12 +193,12 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } - public Pet photoUrls(List photoUrls) { + public Pet photoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; return this; } @@ -214,12 +220,12 @@ public List getPhotoUrls() { return photoUrls; } - public void setPhotoUrls(List photoUrls) { + public void setPhotoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; } - public Pet tags(List tags) { + public Pet tags(@javax.annotation.Nullable List tags) { this.tags = tags; return this; } @@ -241,12 +247,12 @@ public List getTags() { return tags; } - public void setTags(List tags) { + public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; } @@ -260,7 +266,7 @@ public StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetComposition.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetComposition.java index e0acfaadb0ca..656250354283 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetComposition.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetComposition.java @@ -56,22 +56,27 @@ public class PetComposition { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_CATEGORY = "category"; @SerializedName(SERIALIZED_NAME_CATEGORY) + @javax.annotation.Nullable private Category category; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; @SerializedName(SERIALIZED_NAME_PHOTO_URLS) + @javax.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** @@ -130,12 +135,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable private StatusEnum status; public PetComposition() { } - public PetComposition id(Long id) { + public PetComposition id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -149,12 +155,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public PetComposition category(Category category) { + public PetComposition category(@javax.annotation.Nullable Category category) { this.category = category; return this; } @@ -168,12 +174,12 @@ public Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; } - public PetComposition name(String name) { + public PetComposition name(@javax.annotation.Nonnull String name) { this.name = name; return this; } @@ -187,12 +193,12 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } - public PetComposition photoUrls(List photoUrls) { + public PetComposition photoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; return this; } @@ -214,12 +220,12 @@ public List getPhotoUrls() { return photoUrls; } - public void setPhotoUrls(List photoUrls) { + public void setPhotoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; } - public PetComposition tags(List tags) { + public PetComposition tags(@javax.annotation.Nullable List tags) { this.tags = tags; return this; } @@ -241,12 +247,12 @@ public List getTags() { return tags; } - public void setTags(List tags) { + public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; } - public PetComposition status(StatusEnum status) { + public PetComposition status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; } @@ -260,7 +266,7 @@ public StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetRef.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetRef.java index f359addd7691..87c30cd90a71 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetRef.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetRef.java @@ -56,22 +56,27 @@ public class PetRef { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_CATEGORY = "category"; @SerializedName(SERIALIZED_NAME_CATEGORY) + @javax.annotation.Nullable private Category category; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; @SerializedName(SERIALIZED_NAME_PHOTO_URLS) + @javax.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** @@ -130,12 +135,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable private StatusEnum status; public PetRef() { } - public PetRef id(Long id) { + public PetRef id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -149,12 +155,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public PetRef category(Category category) { + public PetRef category(@javax.annotation.Nullable Category category) { this.category = category; return this; } @@ -168,12 +174,12 @@ public Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; } - public PetRef name(String name) { + public PetRef name(@javax.annotation.Nonnull String name) { this.name = name; return this; } @@ -187,12 +193,12 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } - public PetRef photoUrls(List photoUrls) { + public PetRef photoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; return this; } @@ -214,12 +220,12 @@ public List getPhotoUrls() { return photoUrls; } - public void setPhotoUrls(List photoUrls) { + public void setPhotoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; } - public PetRef tags(List tags) { + public PetRef tags(@javax.annotation.Nullable List tags) { this.tags = tags; return this; } @@ -241,12 +247,12 @@ public List getTags() { return tags; } - public void setTags(List tags) { + public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; } - public PetRef status(StatusEnum status) { + public PetRef status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; } @@ -260,7 +266,7 @@ public StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetUsingAllOf.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetUsingAllOf.java index 9c2032e696bd..d768cb4a2090 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetUsingAllOf.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetUsingAllOf.java @@ -56,22 +56,27 @@ public class PetUsingAllOf { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_CATEGORY = "category"; @SerializedName(SERIALIZED_NAME_CATEGORY) + @javax.annotation.Nullable private Category category; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; @SerializedName(SERIALIZED_NAME_PHOTO_URLS) + @javax.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** @@ -130,12 +135,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable private StatusEnum status; public PetUsingAllOf() { } - public PetUsingAllOf id(Long id) { + public PetUsingAllOf id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -149,12 +155,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public PetUsingAllOf category(Category category) { + public PetUsingAllOf category(@javax.annotation.Nullable Category category) { this.category = category; return this; } @@ -168,12 +174,12 @@ public Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; } - public PetUsingAllOf name(String name) { + public PetUsingAllOf name(@javax.annotation.Nonnull String name) { this.name = name; return this; } @@ -187,12 +193,12 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } - public PetUsingAllOf photoUrls(List photoUrls) { + public PetUsingAllOf photoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; return this; } @@ -214,12 +220,12 @@ public List getPhotoUrls() { return photoUrls; } - public void setPhotoUrls(List photoUrls) { + public void setPhotoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; } - public PetUsingAllOf tags(List tags) { + public PetUsingAllOf tags(@javax.annotation.Nullable List tags) { this.tags = tags; return this; } @@ -241,12 +247,12 @@ public List getTags() { return tags; } - public void setTags(List tags) { + public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; } - public PetUsingAllOf status(StatusEnum status) { + public PetUsingAllOf status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; } @@ -260,7 +266,7 @@ public StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetWithRequiredTags.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetWithRequiredTags.java index 12cb84e2bbc1..7f8e367b1990 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetWithRequiredTags.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetWithRequiredTags.java @@ -56,22 +56,27 @@ public class PetWithRequiredTags { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_CATEGORY = "category"; @SerializedName(SERIALIZED_NAME_CATEGORY) + @javax.annotation.Nullable private Category category; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; @SerializedName(SERIALIZED_NAME_PHOTO_URLS) + @javax.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) + @javax.annotation.Nonnull private List tags = new ArrayList<>(); /** @@ -130,12 +135,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable private StatusEnum status; public PetWithRequiredTags() { } - public PetWithRequiredTags id(Long id) { + public PetWithRequiredTags id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -149,12 +155,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public PetWithRequiredTags category(Category category) { + public PetWithRequiredTags category(@javax.annotation.Nullable Category category) { this.category = category; return this; } @@ -168,12 +174,12 @@ public Category getCategory() { return category; } - public void setCategory(Category category) { + public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; } - public PetWithRequiredTags name(String name) { + public PetWithRequiredTags name(@javax.annotation.Nonnull String name) { this.name = name; return this; } @@ -187,12 +193,12 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } - public PetWithRequiredTags photoUrls(List photoUrls) { + public PetWithRequiredTags photoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; return this; } @@ -214,12 +220,12 @@ public List getPhotoUrls() { return photoUrls; } - public void setPhotoUrls(List photoUrls) { + public void setPhotoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; } - public PetWithRequiredTags tags(List tags) { + public PetWithRequiredTags tags(@javax.annotation.Nonnull List tags) { this.tags = tags; return this; } @@ -241,12 +247,12 @@ public List getTags() { return tags; } - public void setTags(List tags) { + public void setTags(@javax.annotation.Nonnull List tags) { this.tags = tags; } - public PetWithRequiredTags status(StatusEnum status) { + public PetWithRequiredTags status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; } @@ -260,7 +266,7 @@ public StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PropertyNameCollision.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PropertyNameCollision.java index 019952e8b4fc..648da11f484f 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PropertyNameCollision.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PropertyNameCollision.java @@ -52,20 +52,23 @@ public class PropertyNameCollision { public static final String SERIALIZED_NAME_UNDERSCORE_TYPE = "_type"; @SerializedName(SERIALIZED_NAME_UNDERSCORE_TYPE) + @javax.annotation.Nullable private String underscoreType; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @javax.annotation.Nullable private String type; public static final String SERIALIZED_NAME_TYPE_WITH_UNDERSCORE = "type_"; @SerializedName(SERIALIZED_NAME_TYPE_WITH_UNDERSCORE) + @javax.annotation.Nullable private String typeWithUnderscore; public PropertyNameCollision() { } - public PropertyNameCollision underscoreType(String underscoreType) { + public PropertyNameCollision underscoreType(@javax.annotation.Nullable String underscoreType) { this.underscoreType = underscoreType; return this; } @@ -79,12 +82,12 @@ public String getUnderscoreType() { return underscoreType; } - public void setUnderscoreType(String underscoreType) { + public void setUnderscoreType(@javax.annotation.Nullable String underscoreType) { this.underscoreType = underscoreType; } - public PropertyNameCollision type(String type) { + public PropertyNameCollision type(@javax.annotation.Nullable String type) { this.type = type; return this; } @@ -98,12 +101,12 @@ public String getType() { return type; } - public void setType(String type) { + public void setType(@javax.annotation.Nullable String type) { this.type = type; } - public PropertyNameCollision typeWithUnderscore(String typeWithUnderscore) { + public PropertyNameCollision typeWithUnderscore(@javax.annotation.Nullable String typeWithUnderscore) { this.typeWithUnderscore = typeWithUnderscore; return this; } @@ -117,7 +120,7 @@ public String getTypeWithUnderscore() { return typeWithUnderscore; } - public void setTypeWithUnderscore(String typeWithUnderscore) { + public void setTypeWithUnderscore(@javax.annotation.Nullable String typeWithUnderscore) { this.typeWithUnderscore = typeWithUnderscore; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java index 0f8c73467d9a..9c79dc8973d0 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java @@ -52,12 +52,13 @@ public class QuadrilateralInterface { public static final String SERIALIZED_NAME_QUADRILATERAL_TYPE = "quadrilateralType"; @SerializedName(SERIALIZED_NAME_QUADRILATERAL_TYPE) + @javax.annotation.Nonnull private String quadrilateralType; public QuadrilateralInterface() { } - public QuadrilateralInterface quadrilateralType(String quadrilateralType) { + public QuadrilateralInterface quadrilateralType(@javax.annotation.Nonnull String quadrilateralType) { this.quadrilateralType = quadrilateralType; return this; } @@ -71,7 +72,7 @@ public String getQuadrilateralType() { return quadrilateralType; } - public void setQuadrilateralType(String quadrilateralType) { + public void setQuadrilateralType(@javax.annotation.Nonnull String quadrilateralType) { this.quadrilateralType = quadrilateralType; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 957b6f957a69..276f675940f8 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -52,10 +52,12 @@ public class ReadOnlyFirst { public static final String SERIALIZED_NAME_BAR = "bar"; @SerializedName(SERIALIZED_NAME_BAR) + @javax.annotation.Nullable private String bar; public static final String SERIALIZED_NAME_BAZ = "baz"; @SerializedName(SERIALIZED_NAME_BAZ) + @javax.annotation.Nullable private String baz; public ReadOnlyFirst() { @@ -79,7 +81,7 @@ public String getBar() { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { this.baz = baz; return this; } @@ -93,7 +95,7 @@ public String getBaz() { return baz; } - public void setBaz(String baz) { + public void setBaz(@javax.annotation.Nullable String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ScaleneTriangle.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ScaleneTriangle.java index 7b0d88750834..4a7a75dc7196 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ScaleneTriangle.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ScaleneTriangle.java @@ -52,16 +52,18 @@ public class ScaleneTriangle { public static final String SERIALIZED_NAME_SHAPE_TYPE = "shapeType"; @SerializedName(SERIALIZED_NAME_SHAPE_TYPE) + @javax.annotation.Nonnull private String shapeType; public static final String SERIALIZED_NAME_TRIANGLE_TYPE = "triangleType"; @SerializedName(SERIALIZED_NAME_TRIANGLE_TYPE) + @javax.annotation.Nonnull private String triangleType; public ScaleneTriangle() { } - public ScaleneTriangle shapeType(String shapeType) { + public ScaleneTriangle shapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; return this; } @@ -75,12 +77,12 @@ public String getShapeType() { return shapeType; } - public void setShapeType(String shapeType) { + public void setShapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; } - public ScaleneTriangle triangleType(String triangleType) { + public ScaleneTriangle triangleType(@javax.annotation.Nonnull String triangleType) { this.triangleType = triangleType; return this; } @@ -94,7 +96,7 @@ public String getTriangleType() { return triangleType; } - public void setTriangleType(String triangleType) { + public void setTriangleType(@javax.annotation.Nonnull String triangleType) { this.triangleType = triangleType; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ShapeInterface.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ShapeInterface.java index fa542b645e01..6215db664601 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ShapeInterface.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ShapeInterface.java @@ -52,12 +52,13 @@ public class ShapeInterface { public static final String SERIALIZED_NAME_SHAPE_TYPE = "shapeType"; @SerializedName(SERIALIZED_NAME_SHAPE_TYPE) + @javax.annotation.Nonnull private String shapeType; public ShapeInterface() { } - public ShapeInterface shapeType(String shapeType) { + public ShapeInterface shapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; return this; } @@ -71,7 +72,7 @@ public String getShapeType() { return shapeType; } - public void setShapeType(String shapeType) { + public void setShapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java index eb4f7b004ead..5ff7480d2c4a 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java @@ -52,16 +52,18 @@ public class SimpleQuadrilateral { public static final String SERIALIZED_NAME_SHAPE_TYPE = "shapeType"; @SerializedName(SERIALIZED_NAME_SHAPE_TYPE) + @javax.annotation.Nonnull private String shapeType; public static final String SERIALIZED_NAME_QUADRILATERAL_TYPE = "quadrilateralType"; @SerializedName(SERIALIZED_NAME_QUADRILATERAL_TYPE) + @javax.annotation.Nonnull private String quadrilateralType; public SimpleQuadrilateral() { } - public SimpleQuadrilateral shapeType(String shapeType) { + public SimpleQuadrilateral shapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; return this; } @@ -75,12 +77,12 @@ public String getShapeType() { return shapeType; } - public void setShapeType(String shapeType) { + public void setShapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; } - public SimpleQuadrilateral quadrilateralType(String quadrilateralType) { + public SimpleQuadrilateral quadrilateralType(@javax.annotation.Nonnull String quadrilateralType) { this.quadrilateralType = quadrilateralType; return this; } @@ -94,7 +96,7 @@ public String getQuadrilateralType() { return quadrilateralType; } - public void setQuadrilateralType(String quadrilateralType) { + public void setQuadrilateralType(@javax.annotation.Nonnull String quadrilateralType) { this.quadrilateralType = quadrilateralType; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/SpecialModelName.java index a07a7504efc4..323055d9331d 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -52,16 +52,18 @@ public class SpecialModelName { public static final String SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; @SerializedName(SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME) + @javax.annotation.Nullable private Long $specialPropertyName; public static final String SERIALIZED_NAME_SPECIAL_MODEL_NAME = "_special_model.name_"; @SerializedName(SERIALIZED_NAME_SPECIAL_MODEL_NAME) + @javax.annotation.Nullable private String specialModelName; public SpecialModelName() { } - public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + public SpecialModelName $specialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; return this; } @@ -75,12 +77,12 @@ public SpecialModelName() { return $specialPropertyName; } - public void set$SpecialPropertyName(Long $specialPropertyName) { + public void set$SpecialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } - public SpecialModelName specialModelName(String specialModelName) { + public SpecialModelName specialModelName(@javax.annotation.Nullable String specialModelName) { this.specialModelName = specialModelName; return this; } @@ -94,7 +96,7 @@ public String getSpecialModelName() { return specialModelName; } - public void setSpecialModelName(String specialModelName) { + public void setSpecialModelName(@javax.annotation.Nullable String specialModelName) { this.specialModelName = specialModelName; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Tag.java index e88d6c396ed2..fab9fe7e795c 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Tag.java @@ -52,16 +52,18 @@ public class Tag { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public Tag() { } - public Tag id(Long id) { + public Tag id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -75,12 +77,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -94,7 +96,7 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index 6c4c24e3e9e5..bca784d50bbc 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -52,12 +52,13 @@ public class TestInlineFreeformAdditionalPropertiesRequest { public static final String SERIALIZED_NAME_SOME_PROPERTY = "someProperty"; @SerializedName(SERIALIZED_NAME_SOME_PROPERTY) + @javax.annotation.Nullable private String someProperty; public TestInlineFreeformAdditionalPropertiesRequest() { } - public TestInlineFreeformAdditionalPropertiesRequest someProperty(String someProperty) { + public TestInlineFreeformAdditionalPropertiesRequest someProperty(@javax.annotation.Nullable String someProperty) { this.someProperty = someProperty; return this; } @@ -71,7 +72,7 @@ public String getSomeProperty() { return someProperty; } - public void setSomeProperty(String someProperty) { + public void setSomeProperty(@javax.annotation.Nullable String someProperty) { this.someProperty = someProperty; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TriangleInterface.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TriangleInterface.java index 749723bb11dd..1ca86f7e1d68 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TriangleInterface.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TriangleInterface.java @@ -52,12 +52,13 @@ public class TriangleInterface { public static final String SERIALIZED_NAME_TRIANGLE_TYPE = "triangleType"; @SerializedName(SERIALIZED_NAME_TRIANGLE_TYPE) + @javax.annotation.Nonnull private String triangleType; public TriangleInterface() { } - public TriangleInterface triangleType(String triangleType) { + public TriangleInterface triangleType(@javax.annotation.Nonnull String triangleType) { this.triangleType = triangleType; return this; } @@ -71,7 +72,7 @@ public String getTriangleType() { return triangleType; } - public void setTriangleType(String triangleType) { + public void setTriangleType(@javax.annotation.Nonnull String triangleType) { this.triangleType = triangleType; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/User.java index 7c1aace4b485..02c78a378697 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/User.java @@ -53,56 +53,68 @@ public class User { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_USERNAME = "username"; @SerializedName(SERIALIZED_NAME_USERNAME) + @javax.annotation.Nullable private String username; public static final String SERIALIZED_NAME_FIRST_NAME = "firstName"; @SerializedName(SERIALIZED_NAME_FIRST_NAME) + @javax.annotation.Nullable private String firstName; public static final String SERIALIZED_NAME_LAST_NAME = "lastName"; @SerializedName(SERIALIZED_NAME_LAST_NAME) + @javax.annotation.Nullable private String lastName; public static final String SERIALIZED_NAME_EMAIL = "email"; @SerializedName(SERIALIZED_NAME_EMAIL) + @javax.annotation.Nullable private String email; public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) + @javax.annotation.Nullable private String password; public static final String SERIALIZED_NAME_PHONE = "phone"; @SerializedName(SERIALIZED_NAME_PHONE) + @javax.annotation.Nullable private String phone; public static final String SERIALIZED_NAME_USER_STATUS = "userStatus"; @SerializedName(SERIALIZED_NAME_USER_STATUS) + @javax.annotation.Nullable private Integer userStatus; public static final String SERIALIZED_NAME_OBJECT_WITH_NO_DECLARED_PROPS = "objectWithNoDeclaredProps"; @SerializedName(SERIALIZED_NAME_OBJECT_WITH_NO_DECLARED_PROPS) + @javax.annotation.Nullable private Object objectWithNoDeclaredProps; public static final String SERIALIZED_NAME_OBJECT_WITH_NO_DECLARED_PROPS_NULLABLE = "objectWithNoDeclaredPropsNullable"; @SerializedName(SERIALIZED_NAME_OBJECT_WITH_NO_DECLARED_PROPS_NULLABLE) + @javax.annotation.Nullable private Object objectWithNoDeclaredPropsNullable; public static final String SERIALIZED_NAME_ANY_TYPE_PROP = "anyTypeProp"; @SerializedName(SERIALIZED_NAME_ANY_TYPE_PROP) + @javax.annotation.Nullable private Object anyTypeProp = null; public static final String SERIALIZED_NAME_ANY_TYPE_PROP_NULLABLE = "anyTypePropNullable"; @SerializedName(SERIALIZED_NAME_ANY_TYPE_PROP_NULLABLE) + @javax.annotation.Nullable private Object anyTypePropNullable = null; public User() { } - public User id(Long id) { + public User id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -116,12 +128,12 @@ public Long getId() { return id; } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@javax.annotation.Nullable String username) { this.username = username; return this; } @@ -135,12 +147,12 @@ public String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@javax.annotation.Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; return this; } @@ -154,12 +166,12 @@ public String getFirstName() { return firstName; } - public void setFirstName(String firstName) { + public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; return this; } @@ -173,12 +185,12 @@ public String getLastName() { return lastName; } - public void setLastName(String lastName) { + public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@javax.annotation.Nullable String email) { this.email = email; return this; } @@ -192,12 +204,12 @@ public String getEmail() { return email; } - public void setEmail(String email) { + public void setEmail(@javax.annotation.Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@javax.annotation.Nullable String password) { this.password = password; return this; } @@ -211,12 +223,12 @@ public String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@javax.annotation.Nullable String phone) { this.phone = phone; return this; } @@ -230,12 +242,12 @@ public String getPhone() { return phone; } - public void setPhone(String phone) { + public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -249,12 +261,12 @@ public Integer getUserStatus() { return userStatus; } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; } - public User objectWithNoDeclaredProps(Object objectWithNoDeclaredProps) { + public User objectWithNoDeclaredProps(@javax.annotation.Nullable Object objectWithNoDeclaredProps) { this.objectWithNoDeclaredProps = objectWithNoDeclaredProps; return this; } @@ -268,12 +280,12 @@ public Object getObjectWithNoDeclaredProps() { return objectWithNoDeclaredProps; } - public void setObjectWithNoDeclaredProps(Object objectWithNoDeclaredProps) { + public void setObjectWithNoDeclaredProps(@javax.annotation.Nullable Object objectWithNoDeclaredProps) { this.objectWithNoDeclaredProps = objectWithNoDeclaredProps; } - public User objectWithNoDeclaredPropsNullable(Object objectWithNoDeclaredPropsNullable) { + public User objectWithNoDeclaredPropsNullable(@javax.annotation.Nullable Object objectWithNoDeclaredPropsNullable) { this.objectWithNoDeclaredPropsNullable = objectWithNoDeclaredPropsNullable; return this; } @@ -287,12 +299,12 @@ public Object getObjectWithNoDeclaredPropsNullable() { return objectWithNoDeclaredPropsNullable; } - public void setObjectWithNoDeclaredPropsNullable(Object objectWithNoDeclaredPropsNullable) { + public void setObjectWithNoDeclaredPropsNullable(@javax.annotation.Nullable Object objectWithNoDeclaredPropsNullable) { this.objectWithNoDeclaredPropsNullable = objectWithNoDeclaredPropsNullable; } - public User anyTypeProp(Object anyTypeProp) { + public User anyTypeProp(@javax.annotation.Nullable Object anyTypeProp) { this.anyTypeProp = anyTypeProp; return this; } @@ -306,12 +318,12 @@ public Object getAnyTypeProp() { return anyTypeProp; } - public void setAnyTypeProp(Object anyTypeProp) { + public void setAnyTypeProp(@javax.annotation.Nullable Object anyTypeProp) { this.anyTypeProp = anyTypeProp; } - public User anyTypePropNullable(Object anyTypePropNullable) { + public User anyTypePropNullable(@javax.annotation.Nullable Object anyTypePropNullable) { this.anyTypePropNullable = anyTypePropNullable; return this; } @@ -325,7 +337,7 @@ public Object getAnyTypePropNullable() { return anyTypePropNullable; } - public void setAnyTypePropNullable(Object anyTypePropNullable) { + public void setAnyTypePropNullable(@javax.annotation.Nullable Object anyTypePropNullable) { this.anyTypePropNullable = anyTypePropNullable; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Variable.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Variable.java index e19ffa112945..16dee2e4e9a7 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Variable.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Variable.java @@ -53,16 +53,18 @@ public class Variable { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) + @javax.annotation.Nonnull private Value value; public Variable() { } - public Variable name(String name) { + public Variable name(@javax.annotation.Nonnull String name) { this.name = name; return this; } @@ -76,12 +78,12 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } - public Variable value(Value value) { + public Variable value(@javax.annotation.Nonnull Value value) { this.value = value; return this; } @@ -95,7 +97,7 @@ public Value getValue() { return value; } - public void setValue(Value value) { + public void setValue(@javax.annotation.Nonnull Value value) { this.value = value; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Whale.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Whale.java index e4bf9655aabb..093d95d6b0cf 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Whale.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Whale.java @@ -52,20 +52,23 @@ public class Whale { public static final String SERIALIZED_NAME_HAS_BALEEN = "hasBaleen"; @SerializedName(SERIALIZED_NAME_HAS_BALEEN) + @javax.annotation.Nullable private Boolean hasBaleen; public static final String SERIALIZED_NAME_HAS_TEETH = "hasTeeth"; @SerializedName(SERIALIZED_NAME_HAS_TEETH) + @javax.annotation.Nullable private Boolean hasTeeth; public static final String SERIALIZED_NAME_CLASS_NAME = "className"; @SerializedName(SERIALIZED_NAME_CLASS_NAME) + @javax.annotation.Nonnull private String className; public Whale() { } - public Whale hasBaleen(Boolean hasBaleen) { + public Whale hasBaleen(@javax.annotation.Nullable Boolean hasBaleen) { this.hasBaleen = hasBaleen; return this; } @@ -79,12 +82,12 @@ public Boolean getHasBaleen() { return hasBaleen; } - public void setHasBaleen(Boolean hasBaleen) { + public void setHasBaleen(@javax.annotation.Nullable Boolean hasBaleen) { this.hasBaleen = hasBaleen; } - public Whale hasTeeth(Boolean hasTeeth) { + public Whale hasTeeth(@javax.annotation.Nullable Boolean hasTeeth) { this.hasTeeth = hasTeeth; return this; } @@ -98,12 +101,12 @@ public Boolean getHasTeeth() { return hasTeeth; } - public void setHasTeeth(Boolean hasTeeth) { + public void setHasTeeth(@javax.annotation.Nullable Boolean hasTeeth) { this.hasTeeth = hasTeeth; } - public Whale className(String className) { + public Whale className(@javax.annotation.Nonnull String className) { this.className = className; return this; } @@ -117,7 +120,7 @@ public String getClassName() { return className; } - public void setClassName(String className) { + public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Zebra.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Zebra.java index 88ef5193c01e..b96d203b0474 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Zebra.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Zebra.java @@ -106,16 +106,18 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @javax.annotation.Nullable private TypeEnum type; public static final String SERIALIZED_NAME_CLASS_NAME = "className"; @SerializedName(SERIALIZED_NAME_CLASS_NAME) + @javax.annotation.Nonnull private String className; public Zebra() { } - public Zebra type(TypeEnum type) { + public Zebra type(@javax.annotation.Nullable TypeEnum type) { this.type = type; return this; } @@ -129,12 +131,12 @@ public TypeEnum getType() { return type; } - public void setType(TypeEnum type) { + public void setType(@javax.annotation.Nullable TypeEnum type) { this.type = type; } - public Zebra className(String className) { + public Zebra className(@javax.annotation.Nonnull String className) { this.className = className; return this; } @@ -148,7 +150,7 @@ public String getClassName() { return className; } - public void setClassName(String className) { + public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index 91502a36eb2d..d0fde358f64e 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -37,13 +37,14 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesAnyType extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public AdditionalPropertiesAnyType() { } - public AdditionalPropertiesAnyType name(String name) { + public AdditionalPropertiesAnyType name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -65,7 +66,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 6ccf57de3c3e..23efe0cdecc2 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -38,13 +38,14 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesArray extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public AdditionalPropertiesArray() { } - public AdditionalPropertiesArray name(String name) { + public AdditionalPropertiesArray name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -66,7 +67,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 78b1c5c189cb..01c25bf1fbbe 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -37,13 +37,14 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesBoolean extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public AdditionalPropertiesBoolean() { } - public AdditionalPropertiesBoolean name(String name) { + public AdditionalPropertiesBoolean name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -65,7 +66,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 1eb72c246336..ccb5e7dbd829 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -49,42 +49,53 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_STRING = "map_string"; + @javax.annotation.Nullable private Map mapString = new HashMap<>(); public static final String JSON_PROPERTY_MAP_NUMBER = "map_number"; + @javax.annotation.Nullable private Map mapNumber = new HashMap<>(); public static final String JSON_PROPERTY_MAP_INTEGER = "map_integer"; + @javax.annotation.Nullable private Map mapInteger = new HashMap<>(); public static final String JSON_PROPERTY_MAP_BOOLEAN = "map_boolean"; + @javax.annotation.Nullable private Map mapBoolean = new HashMap<>(); public static final String JSON_PROPERTY_MAP_ARRAY_INTEGER = "map_array_integer"; + @javax.annotation.Nullable private Map> mapArrayInteger = new HashMap<>(); public static final String JSON_PROPERTY_MAP_ARRAY_ANYTYPE = "map_array_anytype"; + @javax.annotation.Nullable private Map> mapArrayAnytype = new HashMap<>(); public static final String JSON_PROPERTY_MAP_MAP_STRING = "map_map_string"; + @javax.annotation.Nullable private Map> mapMapString = new HashMap<>(); public static final String JSON_PROPERTY_MAP_MAP_ANYTYPE = "map_map_anytype"; + @javax.annotation.Nullable private Map> mapMapAnytype = new HashMap<>(); public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1"; + @javax.annotation.Nullable private Object anytype1; public static final String JSON_PROPERTY_ANYTYPE2 = "anytype_2"; + @javax.annotation.Nullable private Object anytype2; public static final String JSON_PROPERTY_ANYTYPE3 = "anytype_3"; + @javax.annotation.Nullable private Object anytype3; public AdditionalPropertiesClass() { } - public AdditionalPropertiesClass mapString(Map mapString) { + public AdditionalPropertiesClass mapString(@javax.annotation.Nullable Map mapString) { this.mapString = mapString; return this; @@ -114,11 +125,11 @@ public Map getMapString() { @JsonProperty(JSON_PROPERTY_MAP_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapString(Map mapString) { + public void setMapString(@javax.annotation.Nullable Map mapString) { this.mapString = mapString; } - public AdditionalPropertiesClass mapNumber(Map mapNumber) { + public AdditionalPropertiesClass mapNumber(@javax.annotation.Nullable Map mapNumber) { this.mapNumber = mapNumber; return this; @@ -149,11 +160,11 @@ public Map getMapNumber() { @JsonProperty(JSON_PROPERTY_MAP_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapNumber(Map mapNumber) { + public void setMapNumber(@javax.annotation.Nullable Map mapNumber) { this.mapNumber = mapNumber; } - public AdditionalPropertiesClass mapInteger(Map mapInteger) { + public AdditionalPropertiesClass mapInteger(@javax.annotation.Nullable Map mapInteger) { this.mapInteger = mapInteger; return this; @@ -183,11 +194,11 @@ public Map getMapInteger() { @JsonProperty(JSON_PROPERTY_MAP_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapInteger(Map mapInteger) { + public void setMapInteger(@javax.annotation.Nullable Map mapInteger) { this.mapInteger = mapInteger; } - public AdditionalPropertiesClass mapBoolean(Map mapBoolean) { + public AdditionalPropertiesClass mapBoolean(@javax.annotation.Nullable Map mapBoolean) { this.mapBoolean = mapBoolean; return this; @@ -217,11 +228,11 @@ public Map getMapBoolean() { @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapBoolean(Map mapBoolean) { + public void setMapBoolean(@javax.annotation.Nullable Map mapBoolean) { this.mapBoolean = mapBoolean; } - public AdditionalPropertiesClass mapArrayInteger(Map> mapArrayInteger) { + public AdditionalPropertiesClass mapArrayInteger(@javax.annotation.Nullable Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; return this; @@ -252,11 +263,11 @@ public Map> getMapArrayInteger() { @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapArrayInteger(Map> mapArrayInteger) { + public void setMapArrayInteger(@javax.annotation.Nullable Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; } - public AdditionalPropertiesClass mapArrayAnytype(Map> mapArrayAnytype) { + public AdditionalPropertiesClass mapArrayAnytype(@javax.annotation.Nullable Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; return this; @@ -287,11 +298,11 @@ public Map> getMapArrayAnytype() { @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapArrayAnytype(Map> mapArrayAnytype) { + public void setMapArrayAnytype(@javax.annotation.Nullable Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; } - public AdditionalPropertiesClass mapMapString(Map> mapMapString) { + public AdditionalPropertiesClass mapMapString(@javax.annotation.Nullable Map> mapMapString) { this.mapMapString = mapMapString; return this; @@ -322,11 +333,11 @@ public Map> getMapMapString() { @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapMapString(Map> mapMapString) { + public void setMapMapString(@javax.annotation.Nullable Map> mapMapString) { this.mapMapString = mapMapString; } - public AdditionalPropertiesClass mapMapAnytype(Map> mapMapAnytype) { + public AdditionalPropertiesClass mapMapAnytype(@javax.annotation.Nullable Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; return this; @@ -357,11 +368,11 @@ public Map> getMapMapAnytype() { @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapMapAnytype(Map> mapMapAnytype) { + public void setMapMapAnytype(@javax.annotation.Nullable Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@javax.annotation.Nullable Object anytype1) { this.anytype1 = anytype1; return this; @@ -383,11 +394,11 @@ public Object getAnytype1() { @JsonProperty(JSON_PROPERTY_ANYTYPE1) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAnytype1(Object anytype1) { + public void setAnytype1(@javax.annotation.Nullable Object anytype1) { this.anytype1 = anytype1; } - public AdditionalPropertiesClass anytype2(Object anytype2) { + public AdditionalPropertiesClass anytype2(@javax.annotation.Nullable Object anytype2) { this.anytype2 = anytype2; return this; @@ -409,11 +420,11 @@ public Object getAnytype2() { @JsonProperty(JSON_PROPERTY_ANYTYPE2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAnytype2(Object anytype2) { + public void setAnytype2(@javax.annotation.Nullable Object anytype2) { this.anytype2 = anytype2; } - public AdditionalPropertiesClass anytype3(Object anytype3) { + public AdditionalPropertiesClass anytype3(@javax.annotation.Nullable Object anytype3) { this.anytype3 = anytype3; return this; @@ -435,7 +446,7 @@ public Object getAnytype3() { @JsonProperty(JSON_PROPERTY_ANYTYPE3) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAnytype3(Object anytype3) { + public void setAnytype3(@javax.annotation.Nullable Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index f5474af066ef..b5233e54aced 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -37,13 +37,14 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesInteger extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public AdditionalPropertiesInteger() { } - public AdditionalPropertiesInteger name(String name) { + public AdditionalPropertiesInteger name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -65,7 +66,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index cd8701cbef8a..1ac374114628 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -38,13 +38,14 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesNumber extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public AdditionalPropertiesNumber() { } - public AdditionalPropertiesNumber name(String name) { + public AdditionalPropertiesNumber name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -66,7 +67,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index 9848fd57ecd1..b59cf51e0ff9 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -37,13 +37,14 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesObject extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public AdditionalPropertiesObject() { } - public AdditionalPropertiesObject name(String name) { + public AdditionalPropertiesObject name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -65,7 +66,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 7889c2118b02..801295c307e7 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -37,13 +37,14 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesString extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public AdditionalPropertiesString() { } - public AdditionalPropertiesString name(String name) { + public AdditionalPropertiesString name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -65,7 +66,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Animal.java index dd12637161ea..ff31a21272fb 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Animal.java @@ -50,15 +50,17 @@ public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; + @javax.annotation.Nonnull protected String className; public static final String JSON_PROPERTY_COLOR = "color"; + @javax.annotation.Nullable protected String color = "red"; public Animal() { } - public Animal className(String className) { + public Animal className(@javax.annotation.Nonnull String className) { this.className = className; return this; @@ -81,11 +83,11 @@ public String getClassName() { @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setClassName(String className) { + public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; } - public Animal color(String color) { + public Animal color(@javax.annotation.Nullable String color) { this.color = color; return this; @@ -107,7 +109,7 @@ public String getColor() { @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setColor(String color) { + public void setColor(@javax.annotation.Nullable String color) { this.color = color; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 96b83edb5803..b76fc5f48085 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -39,12 +39,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayOfArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; + @javax.annotation.Nullable private List> arrayArrayNumber = new ArrayList<>(); public ArrayOfArrayOfNumberOnly() { } - public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + public ArrayOfArrayOfNumberOnly arrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; return this; @@ -75,7 +76,7 @@ public List> getArrayArrayNumber() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayNumber(List> arrayArrayNumber) { + public void setArrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 5a93c24909aa..f0f37100e53c 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -39,12 +39,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; + @javax.annotation.Nullable private List arrayNumber = new ArrayList<>(); public ArrayOfNumberOnly() { } - public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + public ArrayOfNumberOnly arrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; return this; @@ -75,7 +76,7 @@ public List getArrayNumber() { @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayNumber(List arrayNumber) { + public void setArrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ArrayTest.java index dfae0c843575..0dea0647b89d 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -41,18 +41,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; + @javax.annotation.Nullable private List arrayOfString = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; + @javax.annotation.Nullable private List> arrayArrayOfInteger = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; + @javax.annotation.Nullable private List> arrayArrayOfModel = new ArrayList<>(); public ArrayTest() { } - public ArrayTest arrayOfString(List arrayOfString) { + public ArrayTest arrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; return this; @@ -82,11 +85,11 @@ public List getArrayOfString() { @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayOfString(List arrayOfString) { + public void setArrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; } - public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + public ArrayTest arrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; return this; @@ -117,11 +120,11 @@ public List> getArrayArrayOfInteger() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { + public void setArrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } - public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + public ArrayTest arrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; return this; @@ -152,7 +155,7 @@ public ArrayTest addArrayArrayOfModelItem(List<@Valid ReadOnlyFirst> arrayArrayO @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayOfModel(List> arrayArrayOfModel) { + public void setArrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/BigCat.java index 8d1b6e7f3863..18813d66309a 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/BigCat.java @@ -84,13 +84,14 @@ public static KindEnum fromValue(String value) { } public static final String JSON_PROPERTY_KIND = "kind"; + @javax.annotation.Nullable private KindEnum kind; public BigCat() { } - public BigCat kind(KindEnum kind) { + public BigCat kind(@javax.annotation.Nullable KindEnum kind) { this.kind = kind; return this; @@ -112,18 +113,18 @@ public KindEnum getKind() { @JsonProperty(JSON_PROPERTY_KIND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setKind(KindEnum kind) { + public void setKind(@javax.annotation.Nullable KindEnum kind) { this.kind = kind; } @Override - public BigCat className(String className) { + public BigCat className(@javax.annotation.Nonnull String className) { this.setClassName(className); return this; } @Override - public BigCat color(String color) { + public BigCat color(@javax.annotation.Nullable String color) { this.setColor(color); return this; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Capitalization.java index 28c847fa9b5f..3bd6a24dcf48 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Capitalization.java @@ -40,27 +40,33 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Capitalization { public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; + @javax.annotation.Nullable private String smallCamel; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; + @javax.annotation.Nullable private String capitalCamel; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; + @javax.annotation.Nullable private String smallSnake; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; + @javax.annotation.Nullable private String capitalSnake; public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; + @javax.annotation.Nullable private String scAETHFlowPoints; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; + @javax.annotation.Nullable private String ATT_NAME; public Capitalization() { } - public Capitalization smallCamel(String smallCamel) { + public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; return this; @@ -82,11 +88,11 @@ public String getSmallCamel() { @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmallCamel(String smallCamel) { + public void setSmallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; } - public Capitalization capitalCamel(String capitalCamel) { + public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; return this; @@ -108,11 +114,11 @@ public String getCapitalCamel() { @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCapitalCamel(String capitalCamel) { + public void setCapitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; } - public Capitalization smallSnake(String smallSnake) { + public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; return this; @@ -134,11 +140,11 @@ public String getSmallSnake() { @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmallSnake(String smallSnake) { + public void setSmallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; } - public Capitalization capitalSnake(String capitalSnake) { + public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; return this; @@ -160,11 +166,11 @@ public String getCapitalSnake() { @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCapitalSnake(String capitalSnake) { + public void setCapitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; } - public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; return this; @@ -186,11 +192,11 @@ public String getScAETHFlowPoints() { @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setScAETHFlowPoints(String scAETHFlowPoints) { + public void setScAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } - public Capitalization ATT_NAME(String ATT_NAME) { + public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; return this; @@ -212,7 +218,7 @@ public String getATTNAME() { @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setATTNAME(String ATT_NAME) { + public void setATTNAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Cat.java index 2c923fcd6775..f505c6d31a76 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Cat.java @@ -48,13 +48,14 @@ public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; + @javax.annotation.Nullable protected Boolean declawed; public Cat() { } - public Cat declawed(Boolean declawed) { + public Cat declawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; return this; @@ -76,18 +77,18 @@ public Boolean isDeclawed() { @JsonProperty(JSON_PROPERTY_DECLAWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; } @Override - public Cat className(String className) { + public Cat className(@javax.annotation.Nonnull String className) { this.setClassName(className); return this; } @Override - public Cat color(String color) { + public Cat color(@javax.annotation.Nullable String color) { this.setColor(color); return this; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Category.java index 9383b3a6b753..0b8ea4164db7 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Category.java @@ -36,15 +36,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Category { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private String name = "default-name"; public Category() { } - public Category id(Long id) { + public Category id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -66,11 +68,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@javax.annotation.Nonnull String name) { this.name = name; return this; @@ -93,7 +95,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ClassModel.java index f4f23a15486d..6a0acafb70c7 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ClassModel.java @@ -35,12 +35,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ClassModel { public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; + @javax.annotation.Nullable private String propertyClass; public ClassModel() { } - public ClassModel propertyClass(String propertyClass) { + public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; @@ -62,7 +63,7 @@ public String getPropertyClass() { @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Client.java index 83fb08d4614e..8ca143568a4d 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Client.java @@ -35,12 +35,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Client { public static final String JSON_PROPERTY_CLIENT = "client"; + @javax.annotation.Nullable private String client; public Client() { } - public Client client(String client) { + public Client client(@javax.annotation.Nullable String client) { this.client = client; return this; @@ -62,7 +63,7 @@ public String getClient() { @JsonProperty(JSON_PROPERTY_CLIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setClient(String client) { + public void setClient(@javax.annotation.Nullable String client) { this.client = client; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Dog.java index 1542b10b3f1d..fa5185928559 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Dog.java @@ -45,13 +45,14 @@ public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; + @javax.annotation.Nullable private String breed; public Dog() { } - public Dog breed(String breed) { + public Dog breed(@javax.annotation.Nullable String breed) { this.breed = breed; return this; @@ -73,18 +74,18 @@ public String getBreed() { @JsonProperty(JSON_PROPERTY_BREED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBreed(String breed) { + public void setBreed(@javax.annotation.Nullable String breed) { this.breed = breed; } @Override - public Dog className(String className) { + public Dog className(@javax.annotation.Nonnull String className) { this.setClassName(className); return this; } @Override - public Dog color(String color) { + public Dog color(@javax.annotation.Nullable String color) { this.setColor(color); return this; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/EnumArrays.java index 331482175a29..8040275c82ea 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -74,6 +74,7 @@ public static JustSymbolEnum fromValue(String value) { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** @@ -112,12 +113,13 @@ public static ArrayEnumEnum fromValue(String value) { } public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; + @javax.annotation.Nullable private List arrayEnum = new ArrayList<>(); public EnumArrays() { } - public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; @@ -139,11 +141,11 @@ public JustSymbolEnum getJustSymbol() { @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJustSymbol(JustSymbolEnum justSymbol) { + public void setJustSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } - public EnumArrays arrayEnum(List arrayEnum) { + public EnumArrays arrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; return this; @@ -173,7 +175,7 @@ public List getArrayEnum() { @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayEnum(List arrayEnum) { + public void setArrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/EnumTest.java index 8f076161581f..0df1a265b695 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/EnumTest.java @@ -78,6 +78,7 @@ public static EnumStringEnum fromValue(String value) { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; + @javax.annotation.Nullable private EnumStringEnum enumString; /** @@ -118,6 +119,7 @@ public static EnumStringRequiredEnum fromValue(String value) { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** @@ -156,6 +158,7 @@ public static EnumIntegerEnum fromValue(Integer value) { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** @@ -194,15 +197,17 @@ public static EnumNumberEnum fromValue(Double value) { } public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; + @javax.annotation.Nullable private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; + @javax.annotation.Nullable private OuterEnum outerEnum; public EnumTest() { } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; @@ -224,11 +229,11 @@ public EnumStringEnum getEnumString() { @JsonProperty(JSON_PROPERTY_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumString(EnumStringEnum enumString) { + public void setEnumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; } - public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; return this; @@ -251,11 +256,11 @@ public EnumStringRequiredEnum getEnumStringRequired() { @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public void setEnumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; @@ -277,11 +282,11 @@ public EnumIntegerEnum getEnumInteger() { @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumInteger(EnumIntegerEnum enumInteger) { + public void setEnumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } - public EnumTest enumNumber(EnumNumberEnum enumNumber) { + public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; return this; @@ -303,11 +308,11 @@ public EnumNumberEnum getEnumNumber() { @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumNumber(EnumNumberEnum enumNumber) { + public void setEnumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } - public EnumTest outerEnum(OuterEnum outerEnum) { + public EnumTest outerEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; return this; @@ -330,7 +335,7 @@ public OuterEnum getOuterEnum() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnum(OuterEnum outerEnum) { + public void setOuterEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 0b5446ccb7b3..ede1e756de80 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -40,15 +40,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; + @javax.annotation.Nullable private ModelFile _file; public static final String JSON_PROPERTY_FILES = "files"; + @javax.annotation.Nullable private List<@Valid ModelFile> files = new ArrayList<>(); public FileSchemaTestClass() { } - public FileSchemaTestClass _file(ModelFile _file) { + public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { this._file = _file; return this; @@ -71,11 +73,11 @@ public ModelFile getFile() { @JsonProperty(JSON_PROPERTY_FILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFile(ModelFile _file) { + public void setFile(@javax.annotation.Nullable ModelFile _file) { this._file = _file; } - public FileSchemaTestClass files(List<@Valid ModelFile> files) { + public FileSchemaTestClass files(@javax.annotation.Nullable List<@Valid ModelFile> files) { this.files = files; return this; @@ -106,7 +108,7 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFiles(List<@Valid ModelFile> files) { + public void setFiles(@javax.annotation.Nullable List<@Valid ModelFile> files) { this.files = files; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/FormatTest.java index 151abf8cd60f..3b53f2fd2252 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/FormatTest.java @@ -54,51 +54,65 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; + @javax.annotation.Nullable private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; + @javax.annotation.Nullable private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; + @javax.annotation.Nullable private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; + @javax.annotation.Nonnull private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; + @javax.annotation.Nullable private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; + @javax.annotation.Nullable private Double _double; public static final String JSON_PROPERTY_STRING = "string"; + @javax.annotation.Nullable private String string; public static final String JSON_PROPERTY_BYTE = "byte"; + @javax.annotation.Nonnull private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; + @javax.annotation.Nullable private File binary; public static final String JSON_PROPERTY_DATE = "date"; + @javax.annotation.Nonnull private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; + @javax.annotation.Nonnull private String password; public static final String JSON_PROPERTY_BIG_DECIMAL = "BigDecimal"; + @javax.annotation.Nullable private BigDecimal bigDecimal; public FormatTest() { } - public FormatTest integer(Integer integer) { + public FormatTest integer(@javax.annotation.Nullable Integer integer) { this.integer = integer; return this; @@ -122,11 +136,11 @@ public Integer getInteger() { @JsonProperty(JSON_PROPERTY_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInteger(Integer integer) { + public void setInteger(@javax.annotation.Nullable Integer integer) { this.integer = integer; } - public FormatTest int32(Integer int32) { + public FormatTest int32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; return this; @@ -150,11 +164,11 @@ public Integer getInt32() { @JsonProperty(JSON_PROPERTY_INT32) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInt32(Integer int32) { + public void setInt32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; } - public FormatTest int64(Long int64) { + public FormatTest int64(@javax.annotation.Nullable Long int64) { this.int64 = int64; return this; @@ -176,11 +190,11 @@ public Long getInt64() { @JsonProperty(JSON_PROPERTY_INT64) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInt64(Long int64) { + public void setInt64(@javax.annotation.Nullable Long int64) { this.int64 = int64; } - public FormatTest number(BigDecimal number) { + public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { this.number = number; return this; @@ -206,11 +220,11 @@ public BigDecimal getNumber() { @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNumber(BigDecimal number) { + public void setNumber(@javax.annotation.Nonnull BigDecimal number) { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@javax.annotation.Nullable Float _float) { this._float = _float; return this; @@ -234,11 +248,11 @@ public Float getFloat() { @JsonProperty(JSON_PROPERTY_FLOAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFloat(Float _float) { + public void setFloat(@javax.annotation.Nullable Float _float) { this._float = _float; } - public FormatTest _double(Double _double) { + public FormatTest _double(@javax.annotation.Nullable Double _double) { this._double = _double; return this; @@ -262,11 +276,11 @@ public Double getDouble() { @JsonProperty(JSON_PROPERTY_DOUBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDouble(Double _double) { + public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; } - public FormatTest string(String string) { + public FormatTest string(@javax.annotation.Nullable String string) { this.string = string; return this; @@ -288,11 +302,11 @@ public String getString() { @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setString(String string) { + public void setString(@javax.annotation.Nullable String string) { this.string = string; } - public FormatTest _byte(byte[] _byte) { + public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; return this; @@ -315,11 +329,11 @@ public byte[] getByte() { @JsonProperty(JSON_PROPERTY_BYTE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setByte(byte[] _byte) { + public void setByte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; } - public FormatTest binary(File binary) { + public FormatTest binary(@javax.annotation.Nullable File binary) { this.binary = binary; return this; @@ -342,11 +356,11 @@ public File getBinary() { @JsonProperty(JSON_PROPERTY_BINARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBinary(File binary) { + public void setBinary(@javax.annotation.Nullable File binary) { this.binary = binary; } - public FormatTest date(LocalDate date) { + public FormatTest date(@javax.annotation.Nonnull LocalDate date) { this.date = date; return this; @@ -370,11 +384,11 @@ public LocalDate getDate() { @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDate(LocalDate date) { + public void setDate(@javax.annotation.Nonnull LocalDate date) { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; @@ -397,11 +411,11 @@ public OffsetDateTime getDateTime() { @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public FormatTest uuid(UUID uuid) { + public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; @@ -424,11 +438,11 @@ public UUID getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(UUID uuid) { + public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public FormatTest password(String password) { + public FormatTest password(@javax.annotation.Nonnull String password) { this.password = password; return this; @@ -451,11 +465,11 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nonnull String password) { this.password = password; } - public FormatTest bigDecimal(BigDecimal bigDecimal) { + public FormatTest bigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; @@ -478,7 +492,7 @@ public BigDecimal getBigDecimal() { @JsonProperty(JSON_PROPERTY_BIG_DECIMAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBigDecimal(BigDecimal bigDecimal) { + public void setBigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 0bfee3a4c290..e7b8fcc57e34 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -37,9 +37,11 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_FOO = "foo"; + @javax.annotation.Nullable private String foo; public HasOnlyReadOnly() { diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/MapTest.java index b66ea41f50f1..134cd3c8145d 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/MapTest.java @@ -40,6 +40,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; + @javax.annotation.Nullable private Map> mapMapOfString = new HashMap<>(); /** @@ -78,18 +79,21 @@ public static InnerEnum fromValue(String value) { } public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; + @javax.annotation.Nullable private Map mapOfEnumString = new HashMap<>(); public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; + @javax.annotation.Nullable private Map directMap = new HashMap<>(); public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; + @javax.annotation.Nullable private Map indirectMap = new HashMap<>(); public MapTest() { } - public MapTest mapMapOfString(Map> mapMapOfString) { + public MapTest mapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; return this; @@ -120,11 +124,11 @@ public Map> getMapMapOfString() { @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapMapOfString(Map> mapMapOfString) { + public void setMapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } - public MapTest mapOfEnumString(Map mapOfEnumString) { + public MapTest mapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; return this; @@ -154,11 +158,11 @@ public Map getMapOfEnumString() { @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapOfEnumString(Map mapOfEnumString) { + public void setMapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } - public MapTest directMap(Map directMap) { + public MapTest directMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; return this; @@ -188,11 +192,11 @@ public Map getDirectMap() { @JsonProperty(JSON_PROPERTY_DIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDirectMap(Map directMap) { + public void setDirectMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; } - public MapTest indirectMap(Map indirectMap) { + public MapTest indirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; return this; @@ -222,7 +226,7 @@ public Map getIndirectMap() { @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIndirectMap(Map indirectMap) { + public void setIndirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index ed0dd1d9fc11..5c662b40049c 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -42,18 +42,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; + @javax.annotation.Nullable private Map map = new HashMap<>(); public MixedPropertiesAndAdditionalPropertiesClass() { } - public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; @@ -76,11 +79,11 @@ public UUID getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(UUID uuid) { + public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; @@ -103,11 +106,11 @@ public OffsetDateTime getDateTime() { @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + public MixedPropertiesAndAdditionalPropertiesClass map(@javax.annotation.Nullable Map map) { this.map = map; return this; @@ -138,7 +141,7 @@ public Map getMap() { @JsonProperty(JSON_PROPERTY_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMap(Map map) { + public void setMap(@javax.annotation.Nullable Map map) { this.map = map; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Model200Response.java index b3d27c5b4e7d..8345aad4a470 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Model200Response.java @@ -37,15 +37,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; + @javax.annotation.Nullable private String propertyClass; public Model200Response() { } - public Model200Response name(Integer name) { + public Model200Response name(@javax.annotation.Nullable Integer name) { this.name = name; return this; @@ -67,11 +69,11 @@ public Integer getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(Integer name) { + public void setName(@javax.annotation.Nullable Integer name) { this.name = name; } - public Model200Response propertyClass(String propertyClass) { + public Model200Response propertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; @@ -93,7 +95,7 @@ public String getPropertyClass() { @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 3002301e8d8a..145a6aa382c0 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -38,18 +38,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nullable private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nullable private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; + @javax.annotation.Nullable private String message; public ModelApiResponse() { } - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@javax.annotation.Nullable Integer code) { this.code = code; return this; @@ -71,11 +74,11 @@ public Integer getCode() { @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCode(Integer code) { + public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@javax.annotation.Nullable String type) { this.type = type; return this; @@ -97,11 +100,11 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { + public void setType(@javax.annotation.Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@javax.annotation.Nullable String message) { this.message = message; return this; @@ -123,7 +126,7 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelFile.java index 34648070ca7d..6ed9014228d0 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelFile.java @@ -36,12 +36,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelFile { public static final String JSON_PROPERTY_SOURCE_U_R_I = "sourceURI"; + @javax.annotation.Nullable private String sourceURI; public ModelFile() { } - public ModelFile sourceURI(String sourceURI) { + public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; return this; @@ -63,7 +64,7 @@ public String getSourceURI() { @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSourceURI(String sourceURI) { + public void setSourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelList.java index 08c566893b3f..9fb2416ac19b 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelList.java @@ -36,12 +36,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelList { public static final String JSON_PROPERTY_123LIST = "123-list"; + @javax.annotation.Nullable private String _123list; public ModelList() { } - public ModelList _123list(String _123list) { + public ModelList _123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; return this; @@ -63,7 +64,7 @@ public String get123list() { @JsonProperty(JSON_PROPERTY_123LIST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void set123list(String _123list) { + public void set123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelReturn.java index 515a226c5067..089513efa0f2 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -36,12 +36,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; + @javax.annotation.Nullable private Integer _return; public ModelReturn() { } - public ModelReturn _return(Integer _return) { + public ModelReturn _return(@javax.annotation.Nullable Integer _return) { this._return = _return; return this; @@ -63,7 +64,7 @@ public Integer getReturn() { @JsonProperty(JSON_PROPERTY_RETURN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setReturn(Integer _return) { + public void setReturn(@javax.annotation.Nullable Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Name.java index b03d5b83fbe2..1551bc9411f6 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Name.java @@ -38,15 +38,19 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Name { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; + @javax.annotation.Nullable private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; + @javax.annotation.Nullable private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; + @javax.annotation.Nullable private Integer _123number; public Name() { @@ -64,7 +68,7 @@ public Name( this._123number = _123number; } - public Name name(Integer name) { + public Name name(@javax.annotation.Nonnull Integer name) { this.name = name; return this; @@ -87,7 +91,7 @@ public Integer getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(Integer name) { + public void setName(@javax.annotation.Nonnull Integer name) { this.name = name; } @@ -106,7 +110,7 @@ public Integer getSnakeCase() { - public Name property(String property) { + public Name property(@javax.annotation.Nullable String property) { this.property = property; return this; @@ -128,7 +132,7 @@ public String getProperty() { @JsonProperty(JSON_PROPERTY_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProperty(String property) { + public void setProperty(@javax.annotation.Nullable String property) { this.property = property; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/NumberOnly.java index fcc627ee37ec..1fd3d725b541 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -36,12 +36,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; + @javax.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } - public NumberOnly justNumber(BigDecimal justNumber) { + public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; @@ -64,7 +65,7 @@ public BigDecimal getJustNumber() { @JsonProperty(JSON_PROPERTY_JUST_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJustNumber(BigDecimal justNumber) { + public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Order.java index 1ddaad6851b5..5e15efea85c8 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Order.java @@ -41,15 +41,19 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Order { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; + @javax.annotation.Nullable private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; + @javax.annotation.Nullable private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; + @javax.annotation.Nullable private OffsetDateTime shipDate; /** @@ -90,15 +94,17 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @javax.annotation.Nullable private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; + @javax.annotation.Nullable private Boolean complete = false; public Order() { } - public Order id(Long id) { + public Order id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -120,11 +126,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@javax.annotation.Nullable Long petId) { this.petId = petId; return this; @@ -146,11 +152,11 @@ public Long getPetId() { @JsonProperty(JSON_PROPERTY_PET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPetId(Long petId) { + public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; return this; @@ -172,11 +178,11 @@ public Integer getQuantity() { @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setQuantity(Integer quantity) { + public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; @@ -199,11 +205,11 @@ public OffsetDateTime getShipDate() { @JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -225,11 +231,11 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } - public Order complete(Boolean complete) { + public Order complete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; return this; @@ -251,7 +257,7 @@ public Boolean isComplete() { @JsonProperty(JSON_PROPERTY_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setComplete(Boolean complete) { + public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/OuterComposite.java index d05359b9a657..facd9998a6cb 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -38,18 +38,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; + @javax.annotation.Nullable private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; + @javax.annotation.Nullable private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; + @javax.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } - public OuterComposite myNumber(BigDecimal myNumber) { + public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; @@ -72,11 +75,11 @@ public BigDecimal getMyNumber() { @JsonProperty(JSON_PROPERTY_MY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyNumber(BigDecimal myNumber) { + public void setMyNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; } - public OuterComposite myString(String myString) { + public OuterComposite myString(@javax.annotation.Nullable String myString) { this.myString = myString; return this; @@ -98,11 +101,11 @@ public String getMyString() { @JsonProperty(JSON_PROPERTY_MY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyString(String myString) { + public void setMyString(@javax.annotation.Nullable String myString) { this.myString = myString; } - public OuterComposite myBoolean(Boolean myBoolean) { + public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; return this; @@ -124,7 +127,7 @@ public Boolean isMyBoolean() { @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyBoolean(Boolean myBoolean) { + public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Pet.java index 2edc2d4c6eb2..aa5227d80fe9 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Pet.java @@ -48,18 +48,23 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Pet { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; + @javax.annotation.Nullable private Category category; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; + @javax.annotation.Nonnull private Set photoUrls = new LinkedHashSet<>(); public static final String JSON_PROPERTY_TAGS = "tags"; + @javax.annotation.Nullable private List<@Valid Tag> tags = new ArrayList<>(); /** @@ -100,12 +105,13 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } - public Pet id(Long id) { + public Pet id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -127,11 +133,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@javax.annotation.Nullable Category category) { this.category = category; return this; @@ -154,11 +160,11 @@ public Category getCategory() { @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCategory(Category category) { + public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; } - public Pet name(String name) { + public Pet name(@javax.annotation.Nonnull String name) { this.name = name; return this; @@ -181,11 +187,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } - public Pet photoUrls(Set photoUrls) { + public Pet photoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; return this; @@ -217,11 +223,11 @@ public Set getPhotoUrls() { @JsonDeserialize(as = LinkedHashSet.class) @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPhotoUrls(Set photoUrls) { + public void setPhotoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; } - public Pet tags(List<@Valid Tag> tags) { + public Pet tags(@javax.annotation.Nullable List<@Valid Tag> tags) { this.tags = tags; return this; @@ -252,11 +258,11 @@ public Pet addTagsItem(Tag tagsItem) { @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTags(List<@Valid Tag> tags) { + public void setTags(@javax.annotation.Nullable List<@Valid Tag> tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -278,7 +284,7 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 6554a493d1b0..82114a62ed6e 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -36,9 +36,11 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; + @javax.annotation.Nullable private String baz; public ReadOnlyFirst() { @@ -69,7 +71,7 @@ public String getBar() { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { this.baz = baz; return this; @@ -91,7 +93,7 @@ public String getBaz() { @JsonProperty(JSON_PROPERTY_BAZ) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBaz(String baz) { + public void setBaz(@javax.annotation.Nullable String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/SpecialModelName.java index 14b51886e0f6..0156ec4a6a35 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -36,12 +36,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; + @javax.annotation.Nullable private Long $specialPropertyName; public SpecialModelName() { } - public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + public SpecialModelName $specialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; return this; @@ -63,7 +64,7 @@ public SpecialModelName() { @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void set$SpecialPropertyName(Long $specialPropertyName) { + public void set$SpecialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Tag.java index 6ff5b5bd86bd..4f814f61bdc6 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Tag.java @@ -36,15 +36,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Tag { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public Tag() { } - public Tag id(Long id) { + public Tag id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -66,11 +68,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -92,7 +94,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index ee0aa7ac4fa7..167288099cb1 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -43,24 +43,29 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class TypeHolderDefault { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; + @javax.annotation.Nonnull private String stringItem = "what"; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; + @javax.annotation.Nonnull private BigDecimal numberItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; + @javax.annotation.Nonnull private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; + @javax.annotation.Nonnull private Boolean boolItem = true; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; + @javax.annotation.Nonnull private List arrayItem = new ArrayList<>(); public TypeHolderDefault() { } - public TypeHolderDefault stringItem(String stringItem) { + public TypeHolderDefault stringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; return this; @@ -83,11 +88,11 @@ public String getStringItem() { @JsonProperty(JSON_PROPERTY_STRING_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStringItem(String stringItem) { + public void setStringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; } - public TypeHolderDefault numberItem(BigDecimal numberItem) { + public TypeHolderDefault numberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; return this; @@ -111,11 +116,11 @@ public BigDecimal getNumberItem() { @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNumberItem(BigDecimal numberItem) { + public void setNumberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; } - public TypeHolderDefault integerItem(Integer integerItem) { + public TypeHolderDefault integerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; return this; @@ -138,11 +143,11 @@ public Integer getIntegerItem() { @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setIntegerItem(Integer integerItem) { + public void setIntegerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; } - public TypeHolderDefault boolItem(Boolean boolItem) { + public TypeHolderDefault boolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; return this; @@ -165,11 +170,11 @@ public Boolean isBoolItem() { @JsonProperty(JSON_PROPERTY_BOOL_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBoolItem(Boolean boolItem) { + public void setBoolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; } - public TypeHolderDefault arrayItem(List arrayItem) { + public TypeHolderDefault arrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; return this; @@ -200,7 +205,7 @@ public List getArrayItem() { @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setArrayItem(List arrayItem) { + public void setArrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/TypeHolderExample.java index 5bfef9b224f3..6c8909c46b43 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -44,27 +44,33 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class TypeHolderExample { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; + @javax.annotation.Nonnull private String stringItem; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; + @javax.annotation.Nonnull private BigDecimal numberItem; public static final String JSON_PROPERTY_FLOAT_ITEM = "float_item"; + @javax.annotation.Nonnull private Float floatItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; + @javax.annotation.Nonnull private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; + @javax.annotation.Nonnull private Boolean boolItem; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; + @javax.annotation.Nonnull private List arrayItem = new ArrayList<>(); public TypeHolderExample() { } - public TypeHolderExample stringItem(String stringItem) { + public TypeHolderExample stringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; return this; @@ -87,11 +93,11 @@ public String getStringItem() { @JsonProperty(JSON_PROPERTY_STRING_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStringItem(String stringItem) { + public void setStringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; } - public TypeHolderExample numberItem(BigDecimal numberItem) { + public TypeHolderExample numberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; return this; @@ -115,11 +121,11 @@ public BigDecimal getNumberItem() { @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNumberItem(BigDecimal numberItem) { + public void setNumberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; } - public TypeHolderExample floatItem(Float floatItem) { + public TypeHolderExample floatItem(@javax.annotation.Nonnull Float floatItem) { this.floatItem = floatItem; return this; @@ -142,11 +148,11 @@ public Float getFloatItem() { @JsonProperty(JSON_PROPERTY_FLOAT_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFloatItem(Float floatItem) { + public void setFloatItem(@javax.annotation.Nonnull Float floatItem) { this.floatItem = floatItem; } - public TypeHolderExample integerItem(Integer integerItem) { + public TypeHolderExample integerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; return this; @@ -169,11 +175,11 @@ public Integer getIntegerItem() { @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setIntegerItem(Integer integerItem) { + public void setIntegerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; } - public TypeHolderExample boolItem(Boolean boolItem) { + public TypeHolderExample boolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; return this; @@ -196,11 +202,11 @@ public Boolean isBoolItem() { @JsonProperty(JSON_PROPERTY_BOOL_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBoolItem(Boolean boolItem) { + public void setBoolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; } - public TypeHolderExample arrayItem(List arrayItem) { + public TypeHolderExample arrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; return this; @@ -231,7 +237,7 @@ public List getArrayItem() { @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setArrayItem(List arrayItem) { + public void setArrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/User.java index bb3885c008ef..a6b9363d421a 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/User.java @@ -42,33 +42,41 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class User { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; + @javax.annotation.Nullable private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; + @javax.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; + @javax.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; + @javax.annotation.Nullable private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; + @javax.annotation.Nullable private String password; public static final String JSON_PROPERTY_PHONE = "phone"; + @javax.annotation.Nullable private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; + @javax.annotation.Nullable private Integer userStatus; public User() { } - public User id(Long id) { + public User id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -90,11 +98,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@javax.annotation.Nullable String username) { this.username = username; return this; @@ -116,11 +124,11 @@ public String getUsername() { @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsername(String username) { + public void setUsername(@javax.annotation.Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; return this; @@ -142,11 +150,11 @@ public String getFirstName() { @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFirstName(String firstName) { + public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; return this; @@ -168,11 +176,11 @@ public String getLastName() { @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLastName(String lastName) { + public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@javax.annotation.Nullable String email) { this.email = email; return this; @@ -194,11 +202,11 @@ public String getEmail() { @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEmail(String email) { + public void setEmail(@javax.annotation.Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@javax.annotation.Nullable String password) { this.password = password; return this; @@ -220,11 +228,11 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@javax.annotation.Nullable String phone) { this.phone = phone; return this; @@ -246,11 +254,11 @@ public String getPhone() { @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPhone(String phone) { + public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; return this; @@ -272,7 +280,7 @@ public Integer getUserStatus() { @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/XmlItem.java index 5d1eb9f96273..4dd4539bf7f6 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/XmlItem.java @@ -67,96 +67,125 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class XmlItem { public static final String JSON_PROPERTY_ATTRIBUTE_STRING = "attribute_string"; + @javax.annotation.Nullable private String attributeString; public static final String JSON_PROPERTY_ATTRIBUTE_NUMBER = "attribute_number"; + @javax.annotation.Nullable private BigDecimal attributeNumber; public static final String JSON_PROPERTY_ATTRIBUTE_INTEGER = "attribute_integer"; + @javax.annotation.Nullable private Integer attributeInteger; public static final String JSON_PROPERTY_ATTRIBUTE_BOOLEAN = "attribute_boolean"; + @javax.annotation.Nullable private Boolean attributeBoolean; public static final String JSON_PROPERTY_WRAPPED_ARRAY = "wrapped_array"; + @javax.annotation.Nullable private List wrappedArray = new ArrayList<>(); public static final String JSON_PROPERTY_NAME_STRING = "name_string"; + @javax.annotation.Nullable private String nameString; public static final String JSON_PROPERTY_NAME_NUMBER = "name_number"; + @javax.annotation.Nullable private BigDecimal nameNumber; public static final String JSON_PROPERTY_NAME_INTEGER = "name_integer"; + @javax.annotation.Nullable private Integer nameInteger; public static final String JSON_PROPERTY_NAME_BOOLEAN = "name_boolean"; + @javax.annotation.Nullable private Boolean nameBoolean; public static final String JSON_PROPERTY_NAME_ARRAY = "name_array"; + @javax.annotation.Nullable private List nameArray = new ArrayList<>(); public static final String JSON_PROPERTY_NAME_WRAPPED_ARRAY = "name_wrapped_array"; + @javax.annotation.Nullable private List nameWrappedArray = new ArrayList<>(); public static final String JSON_PROPERTY_PREFIX_STRING = "prefix_string"; + @javax.annotation.Nullable private String prefixString; public static final String JSON_PROPERTY_PREFIX_NUMBER = "prefix_number"; + @javax.annotation.Nullable private BigDecimal prefixNumber; public static final String JSON_PROPERTY_PREFIX_INTEGER = "prefix_integer"; + @javax.annotation.Nullable private Integer prefixInteger; public static final String JSON_PROPERTY_PREFIX_BOOLEAN = "prefix_boolean"; + @javax.annotation.Nullable private Boolean prefixBoolean; public static final String JSON_PROPERTY_PREFIX_ARRAY = "prefix_array"; + @javax.annotation.Nullable private List prefixArray = new ArrayList<>(); public static final String JSON_PROPERTY_PREFIX_WRAPPED_ARRAY = "prefix_wrapped_array"; + @javax.annotation.Nullable private List prefixWrappedArray = new ArrayList<>(); public static final String JSON_PROPERTY_NAMESPACE_STRING = "namespace_string"; + @javax.annotation.Nullable private String namespaceString; public static final String JSON_PROPERTY_NAMESPACE_NUMBER = "namespace_number"; + @javax.annotation.Nullable private BigDecimal namespaceNumber; public static final String JSON_PROPERTY_NAMESPACE_INTEGER = "namespace_integer"; + @javax.annotation.Nullable private Integer namespaceInteger; public static final String JSON_PROPERTY_NAMESPACE_BOOLEAN = "namespace_boolean"; + @javax.annotation.Nullable private Boolean namespaceBoolean; public static final String JSON_PROPERTY_NAMESPACE_ARRAY = "namespace_array"; + @javax.annotation.Nullable private List namespaceArray = new ArrayList<>(); public static final String JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY = "namespace_wrapped_array"; + @javax.annotation.Nullable private List namespaceWrappedArray = new ArrayList<>(); public static final String JSON_PROPERTY_PREFIX_NS_STRING = "prefix_ns_string"; + @javax.annotation.Nullable private String prefixNsString; public static final String JSON_PROPERTY_PREFIX_NS_NUMBER = "prefix_ns_number"; + @javax.annotation.Nullable private BigDecimal prefixNsNumber; public static final String JSON_PROPERTY_PREFIX_NS_INTEGER = "prefix_ns_integer"; + @javax.annotation.Nullable private Integer prefixNsInteger; public static final String JSON_PROPERTY_PREFIX_NS_BOOLEAN = "prefix_ns_boolean"; + @javax.annotation.Nullable private Boolean prefixNsBoolean; public static final String JSON_PROPERTY_PREFIX_NS_ARRAY = "prefix_ns_array"; + @javax.annotation.Nullable private List prefixNsArray = new ArrayList<>(); public static final String JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY = "prefix_ns_wrapped_array"; + @javax.annotation.Nullable private List prefixNsWrappedArray = new ArrayList<>(); public XmlItem() { } - public XmlItem attributeString(String attributeString) { + public XmlItem attributeString(@javax.annotation.Nullable String attributeString) { this.attributeString = attributeString; return this; @@ -178,11 +207,11 @@ public String getAttributeString() { @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttributeString(String attributeString) { + public void setAttributeString(@javax.annotation.Nullable String attributeString) { this.attributeString = attributeString; } - public XmlItem attributeNumber(BigDecimal attributeNumber) { + public XmlItem attributeNumber(@javax.annotation.Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; return this; @@ -205,11 +234,11 @@ public BigDecimal getAttributeNumber() { @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttributeNumber(BigDecimal attributeNumber) { + public void setAttributeNumber(@javax.annotation.Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } - public XmlItem attributeInteger(Integer attributeInteger) { + public XmlItem attributeInteger(@javax.annotation.Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; return this; @@ -231,11 +260,11 @@ public Integer getAttributeInteger() { @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttributeInteger(Integer attributeInteger) { + public void setAttributeInteger(@javax.annotation.Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; } - public XmlItem attributeBoolean(Boolean attributeBoolean) { + public XmlItem attributeBoolean(@javax.annotation.Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; return this; @@ -257,11 +286,11 @@ public Boolean isAttributeBoolean() { @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttributeBoolean(Boolean attributeBoolean) { + public void setAttributeBoolean(@javax.annotation.Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } - public XmlItem wrappedArray(List wrappedArray) { + public XmlItem wrappedArray(@javax.annotation.Nullable List wrappedArray) { this.wrappedArray = wrappedArray; return this; @@ -291,11 +320,11 @@ public List getWrappedArray() { @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWrappedArray(List wrappedArray) { + public void setWrappedArray(@javax.annotation.Nullable List wrappedArray) { this.wrappedArray = wrappedArray; } - public XmlItem nameString(String nameString) { + public XmlItem nameString(@javax.annotation.Nullable String nameString) { this.nameString = nameString; return this; @@ -317,11 +346,11 @@ public String getNameString() { @JsonProperty(JSON_PROPERTY_NAME_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameString(String nameString) { + public void setNameString(@javax.annotation.Nullable String nameString) { this.nameString = nameString; } - public XmlItem nameNumber(BigDecimal nameNumber) { + public XmlItem nameNumber(@javax.annotation.Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; return this; @@ -344,11 +373,11 @@ public BigDecimal getNameNumber() { @JsonProperty(JSON_PROPERTY_NAME_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameNumber(BigDecimal nameNumber) { + public void setNameNumber(@javax.annotation.Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; } - public XmlItem nameInteger(Integer nameInteger) { + public XmlItem nameInteger(@javax.annotation.Nullable Integer nameInteger) { this.nameInteger = nameInteger; return this; @@ -370,11 +399,11 @@ public Integer getNameInteger() { @JsonProperty(JSON_PROPERTY_NAME_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameInteger(Integer nameInteger) { + public void setNameInteger(@javax.annotation.Nullable Integer nameInteger) { this.nameInteger = nameInteger; } - public XmlItem nameBoolean(Boolean nameBoolean) { + public XmlItem nameBoolean(@javax.annotation.Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; return this; @@ -396,11 +425,11 @@ public Boolean isNameBoolean() { @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameBoolean(Boolean nameBoolean) { + public void setNameBoolean(@javax.annotation.Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; } - public XmlItem nameArray(List nameArray) { + public XmlItem nameArray(@javax.annotation.Nullable List nameArray) { this.nameArray = nameArray; return this; @@ -430,11 +459,11 @@ public List getNameArray() { @JsonProperty(JSON_PROPERTY_NAME_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameArray(List nameArray) { + public void setNameArray(@javax.annotation.Nullable List nameArray) { this.nameArray = nameArray; } - public XmlItem nameWrappedArray(List nameWrappedArray) { + public XmlItem nameWrappedArray(@javax.annotation.Nullable List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; return this; @@ -464,11 +493,11 @@ public List getNameWrappedArray() { @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameWrappedArray(List nameWrappedArray) { + public void setNameWrappedArray(@javax.annotation.Nullable List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } - public XmlItem prefixString(String prefixString) { + public XmlItem prefixString(@javax.annotation.Nullable String prefixString) { this.prefixString = prefixString; return this; @@ -490,11 +519,11 @@ public String getPrefixString() { @JsonProperty(JSON_PROPERTY_PREFIX_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixString(String prefixString) { + public void setPrefixString(@javax.annotation.Nullable String prefixString) { this.prefixString = prefixString; } - public XmlItem prefixNumber(BigDecimal prefixNumber) { + public XmlItem prefixNumber(@javax.annotation.Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; return this; @@ -517,11 +546,11 @@ public BigDecimal getPrefixNumber() { @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNumber(BigDecimal prefixNumber) { + public void setPrefixNumber(@javax.annotation.Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } - public XmlItem prefixInteger(Integer prefixInteger) { + public XmlItem prefixInteger(@javax.annotation.Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; return this; @@ -543,11 +572,11 @@ public Integer getPrefixInteger() { @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixInteger(Integer prefixInteger) { + public void setPrefixInteger(@javax.annotation.Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; } - public XmlItem prefixBoolean(Boolean prefixBoolean) { + public XmlItem prefixBoolean(@javax.annotation.Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; return this; @@ -569,11 +598,11 @@ public Boolean isPrefixBoolean() { @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixBoolean(Boolean prefixBoolean) { + public void setPrefixBoolean(@javax.annotation.Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } - public XmlItem prefixArray(List prefixArray) { + public XmlItem prefixArray(@javax.annotation.Nullable List prefixArray) { this.prefixArray = prefixArray; return this; @@ -603,11 +632,11 @@ public List getPrefixArray() { @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixArray(List prefixArray) { + public void setPrefixArray(@javax.annotation.Nullable List prefixArray) { this.prefixArray = prefixArray; } - public XmlItem prefixWrappedArray(List prefixWrappedArray) { + public XmlItem prefixWrappedArray(@javax.annotation.Nullable List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; return this; @@ -637,11 +666,11 @@ public List getPrefixWrappedArray() { @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixWrappedArray(List prefixWrappedArray) { + public void setPrefixWrappedArray(@javax.annotation.Nullable List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem namespaceString(String namespaceString) { + public XmlItem namespaceString(@javax.annotation.Nullable String namespaceString) { this.namespaceString = namespaceString; return this; @@ -663,11 +692,11 @@ public String getNamespaceString() { @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNamespaceString(String namespaceString) { + public void setNamespaceString(@javax.annotation.Nullable String namespaceString) { this.namespaceString = namespaceString; } - public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + public XmlItem namespaceNumber(@javax.annotation.Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; return this; @@ -690,11 +719,11 @@ public BigDecimal getNamespaceNumber() { @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNamespaceNumber(BigDecimal namespaceNumber) { + public void setNamespaceNumber(@javax.annotation.Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } - public XmlItem namespaceInteger(Integer namespaceInteger) { + public XmlItem namespaceInteger(@javax.annotation.Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; return this; @@ -716,11 +745,11 @@ public Integer getNamespaceInteger() { @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNamespaceInteger(Integer namespaceInteger) { + public void setNamespaceInteger(@javax.annotation.Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } - public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + public XmlItem namespaceBoolean(@javax.annotation.Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; return this; @@ -742,11 +771,11 @@ public Boolean isNamespaceBoolean() { @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNamespaceBoolean(Boolean namespaceBoolean) { + public void setNamespaceBoolean(@javax.annotation.Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } - public XmlItem namespaceArray(List namespaceArray) { + public XmlItem namespaceArray(@javax.annotation.Nullable List namespaceArray) { this.namespaceArray = namespaceArray; return this; @@ -776,11 +805,11 @@ public List getNamespaceArray() { @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNamespaceArray(List namespaceArray) { + public void setNamespaceArray(@javax.annotation.Nullable List namespaceArray) { this.namespaceArray = namespaceArray; } - public XmlItem namespaceWrappedArray(List namespaceWrappedArray) { + public XmlItem namespaceWrappedArray(@javax.annotation.Nullable List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; return this; @@ -810,11 +839,11 @@ public List getNamespaceWrappedArray() { @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNamespaceWrappedArray(List namespaceWrappedArray) { + public void setNamespaceWrappedArray(@javax.annotation.Nullable List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem prefixNsString(String prefixNsString) { + public XmlItem prefixNsString(@javax.annotation.Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; @@ -836,11 +865,11 @@ public String getPrefixNsString() { @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNsString(String prefixNsString) { + public void setPrefixNsString(@javax.annotation.Nullable String prefixNsString) { this.prefixNsString = prefixNsString; } - public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + public XmlItem prefixNsNumber(@javax.annotation.Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; return this; @@ -863,11 +892,11 @@ public BigDecimal getPrefixNsNumber() { @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNsNumber(BigDecimal prefixNsNumber) { + public void setPrefixNsNumber(@javax.annotation.Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } - public XmlItem prefixNsInteger(Integer prefixNsInteger) { + public XmlItem prefixNsInteger(@javax.annotation.Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; return this; @@ -889,11 +918,11 @@ public Integer getPrefixNsInteger() { @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNsInteger(Integer prefixNsInteger) { + public void setPrefixNsInteger(@javax.annotation.Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } - public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + public XmlItem prefixNsBoolean(@javax.annotation.Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; return this; @@ -915,11 +944,11 @@ public Boolean isPrefixNsBoolean() { @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNsBoolean(Boolean prefixNsBoolean) { + public void setPrefixNsBoolean(@javax.annotation.Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } - public XmlItem prefixNsArray(List prefixNsArray) { + public XmlItem prefixNsArray(@javax.annotation.Nullable List prefixNsArray) { this.prefixNsArray = prefixNsArray; return this; @@ -949,11 +978,11 @@ public List getPrefixNsArray() { @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNsArray(List prefixNsArray) { + public void setPrefixNsArray(@javax.annotation.Nullable List prefixNsArray) { this.prefixNsArray = prefixNsArray; } - public XmlItem prefixNsWrappedArray(List prefixNsWrappedArray) { + public XmlItem prefixNsWrappedArray(@javax.annotation.Nullable List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; return this; @@ -983,7 +1012,7 @@ public List getPrefixNsWrappedArray() { @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { + public void setPrefixNsWrappedArray(@javax.annotation.Nullable List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index f5519ee23fae..ecdb5ef710f8 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -34,13 +34,14 @@ public class AdditionalPropertiesAnyType extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public AdditionalPropertiesAnyType() { } - public AdditionalPropertiesAnyType name(String name) { + public AdditionalPropertiesAnyType name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -58,7 +59,7 @@ public String getName() { } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 9e1e38c9b524..9a016eb80ae3 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -35,13 +35,14 @@ public class AdditionalPropertiesArray extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public AdditionalPropertiesArray() { } - public AdditionalPropertiesArray name(String name) { + public AdditionalPropertiesArray name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -59,7 +60,7 @@ public String getName() { } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 2b12eed789a7..5cbd3c080d36 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -34,13 +34,14 @@ public class AdditionalPropertiesBoolean extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public AdditionalPropertiesBoolean() { } - public AdditionalPropertiesBoolean name(String name) { + public AdditionalPropertiesBoolean name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -58,7 +59,7 @@ public String getName() { } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index a5310b04d779..7b0f37762a04 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -36,52 +36,63 @@ public class AdditionalPropertiesClass { public static final String SERIALIZED_NAME_MAP_STRING = "map_string"; @SerializedName(SERIALIZED_NAME_MAP_STRING) + @javax.annotation.Nullable private Map mapString = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_NUMBER = "map_number"; @SerializedName(SERIALIZED_NAME_MAP_NUMBER) + @javax.annotation.Nullable private Map mapNumber = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_INTEGER = "map_integer"; @SerializedName(SERIALIZED_NAME_MAP_INTEGER) + @javax.annotation.Nullable private Map mapInteger = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_BOOLEAN = "map_boolean"; @SerializedName(SERIALIZED_NAME_MAP_BOOLEAN) + @javax.annotation.Nullable private Map mapBoolean = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_ARRAY_INTEGER = "map_array_integer"; @SerializedName(SERIALIZED_NAME_MAP_ARRAY_INTEGER) + @javax.annotation.Nullable private Map> mapArrayInteger = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_ARRAY_ANYTYPE = "map_array_anytype"; @SerializedName(SERIALIZED_NAME_MAP_ARRAY_ANYTYPE) + @javax.annotation.Nullable private Map> mapArrayAnytype = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_MAP_STRING = "map_map_string"; @SerializedName(SERIALIZED_NAME_MAP_MAP_STRING) + @javax.annotation.Nullable private Map> mapMapString = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_MAP_ANYTYPE = "map_map_anytype"; @SerializedName(SERIALIZED_NAME_MAP_MAP_ANYTYPE) + @javax.annotation.Nullable private Map> mapMapAnytype = new HashMap<>(); public static final String SERIALIZED_NAME_ANYTYPE1 = "anytype_1"; @SerializedName(SERIALIZED_NAME_ANYTYPE1) + @javax.annotation.Nullable private Object anytype1; public static final String SERIALIZED_NAME_ANYTYPE2 = "anytype_2"; @SerializedName(SERIALIZED_NAME_ANYTYPE2) + @javax.annotation.Nullable private Object anytype2; public static final String SERIALIZED_NAME_ANYTYPE3 = "anytype_3"; @SerializedName(SERIALIZED_NAME_ANYTYPE3) + @javax.annotation.Nullable private Object anytype3; public AdditionalPropertiesClass() { } - public AdditionalPropertiesClass mapString(Map mapString) { + public AdditionalPropertiesClass mapString(@javax.annotation.Nullable Map mapString) { this.mapString = mapString; return this; @@ -107,11 +118,11 @@ public Map getMapString() { } - public void setMapString(Map mapString) { + public void setMapString(@javax.annotation.Nullable Map mapString) { this.mapString = mapString; } - public AdditionalPropertiesClass mapNumber(Map mapNumber) { + public AdditionalPropertiesClass mapNumber(@javax.annotation.Nullable Map mapNumber) { this.mapNumber = mapNumber; return this; @@ -138,11 +149,11 @@ public Map getMapNumber() { } - public void setMapNumber(Map mapNumber) { + public void setMapNumber(@javax.annotation.Nullable Map mapNumber) { this.mapNumber = mapNumber; } - public AdditionalPropertiesClass mapInteger(Map mapInteger) { + public AdditionalPropertiesClass mapInteger(@javax.annotation.Nullable Map mapInteger) { this.mapInteger = mapInteger; return this; @@ -168,11 +179,11 @@ public Map getMapInteger() { } - public void setMapInteger(Map mapInteger) { + public void setMapInteger(@javax.annotation.Nullable Map mapInteger) { this.mapInteger = mapInteger; } - public AdditionalPropertiesClass mapBoolean(Map mapBoolean) { + public AdditionalPropertiesClass mapBoolean(@javax.annotation.Nullable Map mapBoolean) { this.mapBoolean = mapBoolean; return this; @@ -198,11 +209,11 @@ public Map getMapBoolean() { } - public void setMapBoolean(Map mapBoolean) { + public void setMapBoolean(@javax.annotation.Nullable Map mapBoolean) { this.mapBoolean = mapBoolean; } - public AdditionalPropertiesClass mapArrayInteger(Map> mapArrayInteger) { + public AdditionalPropertiesClass mapArrayInteger(@javax.annotation.Nullable Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; return this; @@ -229,11 +240,11 @@ public Map> getMapArrayInteger() { } - public void setMapArrayInteger(Map> mapArrayInteger) { + public void setMapArrayInteger(@javax.annotation.Nullable Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; } - public AdditionalPropertiesClass mapArrayAnytype(Map> mapArrayAnytype) { + public AdditionalPropertiesClass mapArrayAnytype(@javax.annotation.Nullable Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; return this; @@ -260,11 +271,11 @@ public Map> getMapArrayAnytype() { } - public void setMapArrayAnytype(Map> mapArrayAnytype) { + public void setMapArrayAnytype(@javax.annotation.Nullable Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; } - public AdditionalPropertiesClass mapMapString(Map> mapMapString) { + public AdditionalPropertiesClass mapMapString(@javax.annotation.Nullable Map> mapMapString) { this.mapMapString = mapMapString; return this; @@ -291,11 +302,11 @@ public Map> getMapMapString() { } - public void setMapMapString(Map> mapMapString) { + public void setMapMapString(@javax.annotation.Nullable Map> mapMapString) { this.mapMapString = mapMapString; } - public AdditionalPropertiesClass mapMapAnytype(Map> mapMapAnytype) { + public AdditionalPropertiesClass mapMapAnytype(@javax.annotation.Nullable Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; return this; @@ -322,11 +333,11 @@ public Map> getMapMapAnytype() { } - public void setMapMapAnytype(Map> mapMapAnytype) { + public void setMapMapAnytype(@javax.annotation.Nullable Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@javax.annotation.Nullable Object anytype1) { this.anytype1 = anytype1; return this; @@ -344,11 +355,11 @@ public Object getAnytype1() { } - public void setAnytype1(Object anytype1) { + public void setAnytype1(@javax.annotation.Nullable Object anytype1) { this.anytype1 = anytype1; } - public AdditionalPropertiesClass anytype2(Object anytype2) { + public AdditionalPropertiesClass anytype2(@javax.annotation.Nullable Object anytype2) { this.anytype2 = anytype2; return this; @@ -366,11 +377,11 @@ public Object getAnytype2() { } - public void setAnytype2(Object anytype2) { + public void setAnytype2(@javax.annotation.Nullable Object anytype2) { this.anytype2 = anytype2; } - public AdditionalPropertiesClass anytype3(Object anytype3) { + public AdditionalPropertiesClass anytype3(@javax.annotation.Nullable Object anytype3) { this.anytype3 = anytype3; return this; @@ -388,7 +399,7 @@ public Object getAnytype3() { } - public void setAnytype3(Object anytype3) { + public void setAnytype3(@javax.annotation.Nullable Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 40083bcc14d0..fa2b830dffa2 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -34,13 +34,14 @@ public class AdditionalPropertiesInteger extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public AdditionalPropertiesInteger() { } - public AdditionalPropertiesInteger name(String name) { + public AdditionalPropertiesInteger name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -58,7 +59,7 @@ public String getName() { } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index b92cacf58801..5e8a5829c9b3 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -35,13 +35,14 @@ public class AdditionalPropertiesNumber extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public AdditionalPropertiesNumber() { } - public AdditionalPropertiesNumber name(String name) { + public AdditionalPropertiesNumber name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -59,7 +60,7 @@ public String getName() { } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index b78b0149aa50..d0d0c919f17f 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -34,13 +34,14 @@ public class AdditionalPropertiesObject extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public AdditionalPropertiesObject() { } - public AdditionalPropertiesObject name(String name) { + public AdditionalPropertiesObject name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -58,7 +59,7 @@ public String getName() { } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index b16998299c04..75f837c33f3c 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -34,13 +34,14 @@ public class AdditionalPropertiesString extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public AdditionalPropertiesString() { } - public AdditionalPropertiesString name(String name) { + public AdditionalPropertiesString name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -58,7 +59,7 @@ public String getName() { } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Animal.java index 4d7e6a664fcf..3334a96300fb 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Animal.java @@ -32,16 +32,18 @@ public class Animal { public static final String SERIALIZED_NAME_CLASS_NAME = "className"; @SerializedName(SERIALIZED_NAME_CLASS_NAME) + @javax.annotation.Nonnull protected String className; public static final String SERIALIZED_NAME_COLOR = "color"; @SerializedName(SERIALIZED_NAME_COLOR) + @javax.annotation.Nullable protected String color = "red"; public Animal() { } - public Animal className(String className) { + public Animal className(@javax.annotation.Nonnull String className) { this.className = className; return this; @@ -60,11 +62,11 @@ public String getClassName() { } - public void setClassName(String className) { + public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; } - public Animal color(String color) { + public Animal color(@javax.annotation.Nullable String color) { this.color = color; return this; @@ -82,7 +84,7 @@ public String getColor() { } - public void setColor(String color) { + public void setColor(@javax.annotation.Nullable String color) { this.color = color; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 7610d5c233fb..c3edde358865 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -36,12 +36,13 @@ public class ArrayOfArrayOfNumberOnly { public static final String SERIALIZED_NAME_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_NUMBER) + @javax.annotation.Nullable private List> arrayArrayNumber = new ArrayList<>(); public ArrayOfArrayOfNumberOnly() { } - public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + public ArrayOfArrayOfNumberOnly arrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; return this; @@ -68,7 +69,7 @@ public List> getArrayArrayNumber() { } - public void setArrayArrayNumber(List> arrayArrayNumber) { + public void setArrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 35824ae4e093..4f9c65167d28 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -36,12 +36,13 @@ public class ArrayOfNumberOnly { public static final String SERIALIZED_NAME_ARRAY_NUMBER = "ArrayNumber"; @SerializedName(SERIALIZED_NAME_ARRAY_NUMBER) + @javax.annotation.Nullable private List arrayNumber = new ArrayList<>(); public ArrayOfNumberOnly() { } - public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + public ArrayOfNumberOnly arrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; return this; @@ -68,7 +69,7 @@ public List getArrayNumber() { } - public void setArrayNumber(List arrayNumber) { + public void setArrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ArrayTest.java index 7cd43d63a1ed..6e659bbe246a 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -36,20 +36,23 @@ public class ArrayTest { public static final String SERIALIZED_NAME_ARRAY_OF_STRING = "array_of_string"; @SerializedName(SERIALIZED_NAME_ARRAY_OF_STRING) + @javax.annotation.Nullable private List arrayOfString = new ArrayList<>(); public static final String SERIALIZED_NAME_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_OF_INTEGER) + @javax.annotation.Nullable private List> arrayArrayOfInteger = new ArrayList<>(); public static final String SERIALIZED_NAME_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_OF_MODEL) + @javax.annotation.Nullable private List> arrayArrayOfModel = new ArrayList<>(); public ArrayTest() { } - public ArrayTest arrayOfString(List arrayOfString) { + public ArrayTest arrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; return this; @@ -75,11 +78,11 @@ public List getArrayOfString() { } - public void setArrayOfString(List arrayOfString) { + public void setArrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; } - public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + public ArrayTest arrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; return this; @@ -106,11 +109,11 @@ public List> getArrayArrayOfInteger() { } - public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { + public void setArrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } - public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + public ArrayTest arrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; return this; @@ -137,7 +140,7 @@ public ArrayTest addArrayArrayOfModelItem(List<@Valid ReadOnlyFirst> arrayArrayO } - public void setArrayArrayOfModel(List> arrayArrayOfModel) { + public void setArrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/BigCat.java index 219ff4705ce4..f5f645ff1914 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/BigCat.java @@ -84,13 +84,14 @@ public KindEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @javax.annotation.Nullable private KindEnum kind; public BigCat() { } - public BigCat kind(KindEnum kind) { + public BigCat kind(@javax.annotation.Nullable KindEnum kind) { this.kind = kind; return this; @@ -108,18 +109,18 @@ public KindEnum getKind() { } - public void setKind(KindEnum kind) { + public void setKind(@javax.annotation.Nullable KindEnum kind) { this.kind = kind; } @Override - public BigCat className(String className) { + public BigCat className(@javax.annotation.Nonnull String className) { this.setClassName(className); return this; } @Override - public BigCat color(String color) { + public BigCat color(@javax.annotation.Nullable String color) { this.setColor(color); return this; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Capitalization.java index 9159e304d639..7d519bb26a9d 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Capitalization.java @@ -32,32 +32,38 @@ public class Capitalization { public static final String SERIALIZED_NAME_SMALL_CAMEL = "smallCamel"; @SerializedName(SERIALIZED_NAME_SMALL_CAMEL) + @javax.annotation.Nullable private String smallCamel; public static final String SERIALIZED_NAME_CAPITAL_CAMEL = "CapitalCamel"; @SerializedName(SERIALIZED_NAME_CAPITAL_CAMEL) + @javax.annotation.Nullable private String capitalCamel; public static final String SERIALIZED_NAME_SMALL_SNAKE = "small_Snake"; @SerializedName(SERIALIZED_NAME_SMALL_SNAKE) + @javax.annotation.Nullable private String smallSnake; public static final String SERIALIZED_NAME_CAPITAL_SNAKE = "Capital_Snake"; @SerializedName(SERIALIZED_NAME_CAPITAL_SNAKE) + @javax.annotation.Nullable private String capitalSnake; public static final String SERIALIZED_NAME_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; @SerializedName(SERIALIZED_NAME_SC_A_E_T_H_FLOW_POINTS) + @javax.annotation.Nullable private String scAETHFlowPoints; public static final String SERIALIZED_NAME_A_T_T_N_A_M_E = "ATT_NAME"; @SerializedName(SERIALIZED_NAME_A_T_T_N_A_M_E) + @javax.annotation.Nullable private String ATT_NAME; public Capitalization() { } - public Capitalization smallCamel(String smallCamel) { + public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; return this; @@ -75,11 +81,11 @@ public String getSmallCamel() { } - public void setSmallCamel(String smallCamel) { + public void setSmallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; } - public Capitalization capitalCamel(String capitalCamel) { + public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; return this; @@ -97,11 +103,11 @@ public String getCapitalCamel() { } - public void setCapitalCamel(String capitalCamel) { + public void setCapitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; } - public Capitalization smallSnake(String smallSnake) { + public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; return this; @@ -119,11 +125,11 @@ public String getSmallSnake() { } - public void setSmallSnake(String smallSnake) { + public void setSmallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; } - public Capitalization capitalSnake(String capitalSnake) { + public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; return this; @@ -141,11 +147,11 @@ public String getCapitalSnake() { } - public void setCapitalSnake(String capitalSnake) { + public void setCapitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; } - public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; return this; @@ -163,11 +169,11 @@ public String getScAETHFlowPoints() { } - public void setScAETHFlowPoints(String scAETHFlowPoints) { + public void setScAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } - public Capitalization ATT_NAME(String ATT_NAME) { + public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; return this; @@ -185,7 +191,7 @@ public String getATTNAME() { } - public void setATTNAME(String ATT_NAME) { + public void setATTNAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Cat.java index 2d440337f35b..b5dd4031d074 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Cat.java @@ -33,13 +33,14 @@ public class Cat extends Animal { public static final String SERIALIZED_NAME_DECLAWED = "declawed"; @SerializedName(SERIALIZED_NAME_DECLAWED) + @javax.annotation.Nullable protected Boolean declawed; public Cat() { } - public Cat declawed(Boolean declawed) { + public Cat declawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; return this; @@ -57,18 +58,18 @@ public Boolean isDeclawed() { } - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; } @Override - public Cat className(String className) { + public Cat className(@javax.annotation.Nonnull String className) { this.setClassName(className); return this; } @Override - public Cat color(String color) { + public Cat color(@javax.annotation.Nullable String color) { this.setColor(color); return this; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Category.java index ea601155325d..f7f1389bb7c1 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Category.java @@ -32,16 +32,18 @@ public class Category { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull private String name = "default-name"; public Category() { } - public Category id(Long id) { + public Category id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -59,11 +61,11 @@ public Long getId() { } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@javax.annotation.Nonnull String name) { this.name = name; return this; @@ -82,7 +84,7 @@ public String getName() { } - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ClassModel.java index 7d27c2430ccd..edf260406bd2 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ClassModel.java @@ -32,12 +32,13 @@ public class ClassModel { public static final String SERIALIZED_NAME_PROPERTY_CLASS = "_class"; @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) + @javax.annotation.Nullable private String propertyClass; public ClassModel() { } - public ClassModel propertyClass(String propertyClass) { + public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; @@ -55,7 +56,7 @@ public String getPropertyClass() { } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Client.java index 2545b8030492..bef2030070af 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Client.java @@ -32,12 +32,13 @@ public class Client { public static final String SERIALIZED_NAME_CLIENT = "client"; @SerializedName(SERIALIZED_NAME_CLIENT) + @javax.annotation.Nullable private String client; public Client() { } - public Client client(String client) { + public Client client(@javax.annotation.Nullable String client) { this.client = client; return this; @@ -55,7 +56,7 @@ public String getClient() { } - public void setClient(String client) { + public void setClient(@javax.annotation.Nullable String client) { this.client = client; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Dog.java index b9e493f25866..99ccbbf27743 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Dog.java @@ -33,13 +33,14 @@ public class Dog extends Animal { public static final String SERIALIZED_NAME_BREED = "breed"; @SerializedName(SERIALIZED_NAME_BREED) + @javax.annotation.Nullable private String breed; public Dog() { } - public Dog breed(String breed) { + public Dog breed(@javax.annotation.Nullable String breed) { this.breed = breed; return this; @@ -57,18 +58,18 @@ public String getBreed() { } - public void setBreed(String breed) { + public void setBreed(@javax.annotation.Nullable String breed) { this.breed = breed; } @Override - public Dog className(String className) { + public Dog className(@javax.annotation.Nonnull String className) { this.setClassName(className); return this; } @Override - public Dog color(String color) { + public Dog color(@javax.annotation.Nullable String color) { this.setColor(color); return this; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/EnumArrays.java index c914ff478c0b..d027657c4d28 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -82,6 +82,7 @@ public JustSymbolEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_JUST_SYMBOL = "just_symbol"; @SerializedName(SERIALIZED_NAME_JUST_SYMBOL) + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** @@ -133,12 +134,13 @@ public ArrayEnumEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_ARRAY_ENUM = "array_enum"; @SerializedName(SERIALIZED_NAME_ARRAY_ENUM) + @javax.annotation.Nullable private List arrayEnum = new ArrayList<>(); public EnumArrays() { } - public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; @@ -156,11 +158,11 @@ public JustSymbolEnum getJustSymbol() { } - public void setJustSymbol(JustSymbolEnum justSymbol) { + public void setJustSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } - public EnumArrays arrayEnum(List arrayEnum) { + public EnumArrays arrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; return this; @@ -186,7 +188,7 @@ public List getArrayEnum() { } - public void setArrayEnum(List arrayEnum) { + public void setArrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/EnumTest.java index 1a526187b592..28f1d0b25ab6 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/EnumTest.java @@ -82,6 +82,7 @@ public EnumStringEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_ENUM_STRING = "enum_string"; @SerializedName(SERIALIZED_NAME_ENUM_STRING) + @javax.annotation.Nullable private EnumStringEnum enumString; /** @@ -135,6 +136,7 @@ public EnumStringRequiredEnum read(final JsonReader jsonReader) throws IOExcepti public static final String SERIALIZED_NAME_ENUM_STRING_REQUIRED = "enum_string_required"; @SerializedName(SERIALIZED_NAME_ENUM_STRING_REQUIRED) + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** @@ -186,6 +188,7 @@ public EnumIntegerEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_ENUM_INTEGER = "enum_integer"; @SerializedName(SERIALIZED_NAME_ENUM_INTEGER) + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** @@ -237,16 +240,18 @@ public EnumNumberEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_ENUM_NUMBER = "enum_number"; @SerializedName(SERIALIZED_NAME_ENUM_NUMBER) + @javax.annotation.Nullable private EnumNumberEnum enumNumber; public static final String SERIALIZED_NAME_OUTER_ENUM = "outerEnum"; @SerializedName(SERIALIZED_NAME_OUTER_ENUM) + @javax.annotation.Nullable private OuterEnum outerEnum; public EnumTest() { } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; @@ -264,11 +269,11 @@ public EnumStringEnum getEnumString() { } - public void setEnumString(EnumStringEnum enumString) { + public void setEnumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; } - public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; return this; @@ -287,11 +292,11 @@ public EnumStringRequiredEnum getEnumStringRequired() { } - public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public void setEnumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; @@ -309,11 +314,11 @@ public EnumIntegerEnum getEnumInteger() { } - public void setEnumInteger(EnumIntegerEnum enumInteger) { + public void setEnumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } - public EnumTest enumNumber(EnumNumberEnum enumNumber) { + public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; return this; @@ -331,11 +336,11 @@ public EnumNumberEnum getEnumNumber() { } - public void setEnumNumber(EnumNumberEnum enumNumber) { + public void setEnumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } - public EnumTest outerEnum(OuterEnum outerEnum) { + public EnumTest outerEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; return this; @@ -354,7 +359,7 @@ public OuterEnum getOuterEnum() { } - public void setOuterEnum(OuterEnum outerEnum) { + public void setOuterEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index f6cb58f4f350..37979ac38b70 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -36,16 +36,18 @@ public class FileSchemaTestClass { public static final String SERIALIZED_NAME_FILE = "file"; @SerializedName(SERIALIZED_NAME_FILE) + @javax.annotation.Nullable private ModelFile _file; public static final String SERIALIZED_NAME_FILES = "files"; @SerializedName(SERIALIZED_NAME_FILES) + @javax.annotation.Nullable private List<@Valid ModelFile> files = new ArrayList<>(); public FileSchemaTestClass() { } - public FileSchemaTestClass _file(ModelFile _file) { + public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { this._file = _file; return this; @@ -64,11 +66,11 @@ public ModelFile getFile() { } - public void setFile(ModelFile _file) { + public void setFile(@javax.annotation.Nullable ModelFile _file) { this._file = _file; } - public FileSchemaTestClass files(List<@Valid ModelFile> files) { + public FileSchemaTestClass files(@javax.annotation.Nullable List<@Valid ModelFile> files) { this.files = files; return this; @@ -95,7 +97,7 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { } - public void setFiles(List<@Valid ModelFile> files) { + public void setFiles(@javax.annotation.Nullable List<@Valid ModelFile> files) { this.files = files; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/FormatTest.java index 092e792b59b5..e997efb059d7 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/FormatTest.java @@ -37,64 +37,78 @@ public class FormatTest { public static final String SERIALIZED_NAME_INTEGER = "integer"; @SerializedName(SERIALIZED_NAME_INTEGER) + @javax.annotation.Nullable private Integer integer; public static final String SERIALIZED_NAME_INT32 = "int32"; @SerializedName(SERIALIZED_NAME_INT32) + @javax.annotation.Nullable private Integer int32; public static final String SERIALIZED_NAME_INT64 = "int64"; @SerializedName(SERIALIZED_NAME_INT64) + @javax.annotation.Nullable private Long int64; public static final String SERIALIZED_NAME_NUMBER = "number"; @SerializedName(SERIALIZED_NAME_NUMBER) + @javax.annotation.Nonnull private BigDecimal number; public static final String SERIALIZED_NAME_FLOAT = "float"; @SerializedName(SERIALIZED_NAME_FLOAT) + @javax.annotation.Nullable private Float _float; public static final String SERIALIZED_NAME_DOUBLE = "double"; @SerializedName(SERIALIZED_NAME_DOUBLE) + @javax.annotation.Nullable private Double _double; public static final String SERIALIZED_NAME_STRING = "string"; @SerializedName(SERIALIZED_NAME_STRING) + @javax.annotation.Nullable private String string; public static final String SERIALIZED_NAME_BYTE = "byte"; @SerializedName(SERIALIZED_NAME_BYTE) + @javax.annotation.Nonnull private byte[] _byte; public static final String SERIALIZED_NAME_BINARY = "binary"; @SerializedName(SERIALIZED_NAME_BINARY) + @javax.annotation.Nullable private File binary; public static final String SERIALIZED_NAME_DATE = "date"; @SerializedName(SERIALIZED_NAME_DATE) + @javax.annotation.Nonnull private LocalDate date; public static final String SERIALIZED_NAME_DATE_TIME = "dateTime"; @SerializedName(SERIALIZED_NAME_DATE_TIME) + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) + @javax.annotation.Nullable private UUID uuid; public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) + @javax.annotation.Nonnull private String password; public static final String SERIALIZED_NAME_BIG_DECIMAL = "BigDecimal"; @SerializedName(SERIALIZED_NAME_BIG_DECIMAL) + @javax.annotation.Nullable private BigDecimal bigDecimal; public FormatTest() { } - public FormatTest integer(Integer integer) { + public FormatTest integer(@javax.annotation.Nullable Integer integer) { this.integer = integer; return this; @@ -114,11 +128,11 @@ public Integer getInteger() { } - public void setInteger(Integer integer) { + public void setInteger(@javax.annotation.Nullable Integer integer) { this.integer = integer; } - public FormatTest int32(Integer int32) { + public FormatTest int32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; return this; @@ -138,11 +152,11 @@ public Integer getInt32() { } - public void setInt32(Integer int32) { + public void setInt32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; } - public FormatTest int64(Long int64) { + public FormatTest int64(@javax.annotation.Nullable Long int64) { this.int64 = int64; return this; @@ -160,11 +174,11 @@ public Long getInt64() { } - public void setInt64(Long int64) { + public void setInt64(@javax.annotation.Nullable Long int64) { this.int64 = int64; } - public FormatTest number(BigDecimal number) { + public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { this.number = number; return this; @@ -186,11 +200,11 @@ public BigDecimal getNumber() { } - public void setNumber(BigDecimal number) { + public void setNumber(@javax.annotation.Nonnull BigDecimal number) { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@javax.annotation.Nullable Float _float) { this._float = _float; return this; @@ -210,11 +224,11 @@ public Float getFloat() { } - public void setFloat(Float _float) { + public void setFloat(@javax.annotation.Nullable Float _float) { this._float = _float; } - public FormatTest _double(Double _double) { + public FormatTest _double(@javax.annotation.Nullable Double _double) { this._double = _double; return this; @@ -234,11 +248,11 @@ public Double getDouble() { } - public void setDouble(Double _double) { + public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; } - public FormatTest string(String string) { + public FormatTest string(@javax.annotation.Nullable String string) { this.string = string; return this; @@ -256,11 +270,11 @@ public String getString() { } - public void setString(String string) { + public void setString(@javax.annotation.Nullable String string) { this.string = string; } - public FormatTest _byte(byte[] _byte) { + public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; return this; @@ -279,11 +293,11 @@ public byte[] getByte() { } - public void setByte(byte[] _byte) { + public void setByte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; } - public FormatTest binary(File binary) { + public FormatTest binary(@javax.annotation.Nullable File binary) { this.binary = binary; return this; @@ -302,11 +316,11 @@ public File getBinary() { } - public void setBinary(File binary) { + public void setBinary(@javax.annotation.Nullable File binary) { this.binary = binary; } - public FormatTest date(LocalDate date) { + public FormatTest date(@javax.annotation.Nonnull LocalDate date) { this.date = date; return this; @@ -326,11 +340,11 @@ public LocalDate getDate() { } - public void setDate(LocalDate date) { + public void setDate(@javax.annotation.Nonnull LocalDate date) { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; @@ -349,11 +363,11 @@ public OffsetDateTime getDateTime() { } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public FormatTest uuid(UUID uuid) { + public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; @@ -372,11 +386,11 @@ public UUID getUuid() { } - public void setUuid(UUID uuid) { + public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public FormatTest password(String password) { + public FormatTest password(@javax.annotation.Nonnull String password) { this.password = password; return this; @@ -395,11 +409,11 @@ public String getPassword() { } - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nonnull String password) { this.password = password; } - public FormatTest bigDecimal(BigDecimal bigDecimal) { + public FormatTest bigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; @@ -418,7 +432,7 @@ public BigDecimal getBigDecimal() { } - public void setBigDecimal(BigDecimal bigDecimal) { + public void setBigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 9359b3d6b3a1..061dfa0036ee 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -32,10 +32,12 @@ public class HasOnlyReadOnly { public static final String SERIALIZED_NAME_BAR = "bar"; @SerializedName(SERIALIZED_NAME_BAR) + @javax.annotation.Nullable private String bar; public static final String SERIALIZED_NAME_FOO = "foo"; @SerializedName(SERIALIZED_NAME_FOO) + @javax.annotation.Nullable private String foo; public HasOnlyReadOnly() { diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/MapTest.java index 07e23a4fadbd..918270b4659b 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/MapTest.java @@ -34,6 +34,7 @@ public class MapTest { public static final String SERIALIZED_NAME_MAP_MAP_OF_STRING = "map_map_of_string"; @SerializedName(SERIALIZED_NAME_MAP_MAP_OF_STRING) + @javax.annotation.Nullable private Map> mapMapOfString = new HashMap<>(); /** @@ -85,20 +86,23 @@ public InnerEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_MAP_OF_ENUM_STRING = "map_of_enum_string"; @SerializedName(SERIALIZED_NAME_MAP_OF_ENUM_STRING) + @javax.annotation.Nullable private Map mapOfEnumString = new HashMap<>(); public static final String SERIALIZED_NAME_DIRECT_MAP = "direct_map"; @SerializedName(SERIALIZED_NAME_DIRECT_MAP) + @javax.annotation.Nullable private Map directMap = new HashMap<>(); public static final String SERIALIZED_NAME_INDIRECT_MAP = "indirect_map"; @SerializedName(SERIALIZED_NAME_INDIRECT_MAP) + @javax.annotation.Nullable private Map indirectMap = new HashMap<>(); public MapTest() { } - public MapTest mapMapOfString(Map> mapMapOfString) { + public MapTest mapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; return this; @@ -125,11 +129,11 @@ public Map> getMapMapOfString() { } - public void setMapMapOfString(Map> mapMapOfString) { + public void setMapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } - public MapTest mapOfEnumString(Map mapOfEnumString) { + public MapTest mapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; return this; @@ -155,11 +159,11 @@ public Map getMapOfEnumString() { } - public void setMapOfEnumString(Map mapOfEnumString) { + public void setMapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } - public MapTest directMap(Map directMap) { + public MapTest directMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; return this; @@ -185,11 +189,11 @@ public Map getDirectMap() { } - public void setDirectMap(Map directMap) { + public void setDirectMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; } - public MapTest indirectMap(Map indirectMap) { + public MapTest indirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; return this; @@ -215,7 +219,7 @@ public Map getIndirectMap() { } - public void setIndirectMap(Map indirectMap) { + public void setIndirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 6aa85b73aa44..5c2755e13885 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -37,20 +37,23 @@ public class MixedPropertiesAndAdditionalPropertiesClass { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) + @javax.annotation.Nullable private UUID uuid; public static final String SERIALIZED_NAME_DATE_TIME = "dateTime"; @SerializedName(SERIALIZED_NAME_DATE_TIME) + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String SERIALIZED_NAME_MAP = "map"; @SerializedName(SERIALIZED_NAME_MAP) + @javax.annotation.Nullable private Map map = new HashMap<>(); public MixedPropertiesAndAdditionalPropertiesClass() { } - public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; @@ -69,11 +72,11 @@ public UUID getUuid() { } - public void setUuid(UUID uuid) { + public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; @@ -92,11 +95,11 @@ public OffsetDateTime getDateTime() { } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + public MixedPropertiesAndAdditionalPropertiesClass map(@javax.annotation.Nullable Map map) { this.map = map; return this; @@ -123,7 +126,7 @@ public Map getMap() { } - public void setMap(Map map) { + public void setMap(@javax.annotation.Nullable Map map) { this.map = map; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Model200Response.java index 4305b022b01d..6f28da305b5a 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Model200Response.java @@ -32,16 +32,18 @@ public class Model200Response { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private Integer name; public static final String SERIALIZED_NAME_PROPERTY_CLASS = "class"; @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) + @javax.annotation.Nullable private String propertyClass; public Model200Response() { } - public Model200Response name(Integer name) { + public Model200Response name(@javax.annotation.Nullable Integer name) { this.name = name; return this; @@ -59,11 +61,11 @@ public Integer getName() { } - public void setName(Integer name) { + public void setName(@javax.annotation.Nullable Integer name) { this.name = name; } - public Model200Response propertyClass(String propertyClass) { + public Model200Response propertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; @@ -81,7 +83,7 @@ public String getPropertyClass() { } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ModelApiResponse.java index fe4642cb8bd4..59f5f61ef369 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -32,20 +32,23 @@ public class ModelApiResponse { public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) + @javax.annotation.Nullable private Integer code; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @javax.annotation.Nullable private String type; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable private String message; public ModelApiResponse() { } - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@javax.annotation.Nullable Integer code) { this.code = code; return this; @@ -63,11 +66,11 @@ public Integer getCode() { } - public void setCode(Integer code) { + public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@javax.annotation.Nullable String type) { this.type = type; return this; @@ -85,11 +88,11 @@ public String getType() { } - public void setType(String type) { + public void setType(@javax.annotation.Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@javax.annotation.Nullable String message) { this.message = message; return this; @@ -107,7 +110,7 @@ public String getMessage() { } - public void setMessage(String message) { + public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ModelFile.java index 8960387f3a24..323468bfbb64 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ModelFile.java @@ -32,12 +32,13 @@ public class ModelFile { public static final String SERIALIZED_NAME_SOURCE_U_R_I = "sourceURI"; @SerializedName(SERIALIZED_NAME_SOURCE_U_R_I) + @javax.annotation.Nullable private String sourceURI; public ModelFile() { } - public ModelFile sourceURI(String sourceURI) { + public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; return this; @@ -55,7 +56,7 @@ public String getSourceURI() { } - public void setSourceURI(String sourceURI) { + public void setSourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ModelList.java index fe3429c6b766..5c7f4d44087b 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ModelList.java @@ -32,12 +32,13 @@ public class ModelList { public static final String SERIALIZED_NAME_123LIST = "123-list"; @SerializedName(SERIALIZED_NAME_123LIST) + @javax.annotation.Nullable private String _123list; public ModelList() { } - public ModelList _123list(String _123list) { + public ModelList _123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; return this; @@ -55,7 +56,7 @@ public String get123list() { } - public void set123list(String _123list) { + public void set123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ModelReturn.java index 692bcc734ef5..5e09c55afcb6 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -32,12 +32,13 @@ public class ModelReturn { public static final String SERIALIZED_NAME_RETURN = "return"; @SerializedName(SERIALIZED_NAME_RETURN) + @javax.annotation.Nullable private Integer _return; public ModelReturn() { } - public ModelReturn _return(Integer _return) { + public ModelReturn _return(@javax.annotation.Nullable Integer _return) { this._return = _return; return this; @@ -55,7 +56,7 @@ public Integer getReturn() { } - public void setReturn(Integer _return) { + public void setReturn(@javax.annotation.Nullable Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Name.java index be4b4e2fa0fa..e0e96283231b 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Name.java @@ -32,18 +32,22 @@ public class Name { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull private Integer name; public static final String SERIALIZED_NAME_SNAKE_CASE = "snake_case"; @SerializedName(SERIALIZED_NAME_SNAKE_CASE) + @javax.annotation.Nullable private Integer snakeCase; public static final String SERIALIZED_NAME_PROPERTY = "property"; @SerializedName(SERIALIZED_NAME_PROPERTY) + @javax.annotation.Nullable private String property; public static final String SERIALIZED_NAME_123NUMBER = "123Number"; @SerializedName(SERIALIZED_NAME_123NUMBER) + @javax.annotation.Nullable private Integer _123number; public Name() { @@ -61,7 +65,7 @@ public Name( this._123number = _123number; } - public Name name(Integer name) { + public Name name(@javax.annotation.Nonnull Integer name) { this.name = name; return this; @@ -80,7 +84,7 @@ public Integer getName() { } - public void setName(Integer name) { + public void setName(@javax.annotation.Nonnull Integer name) { this.name = name; } @@ -97,7 +101,7 @@ public Integer getSnakeCase() { - public Name property(String property) { + public Name property(@javax.annotation.Nullable String property) { this.property = property; return this; @@ -115,7 +119,7 @@ public String getProperty() { } - public void setProperty(String property) { + public void setProperty(@javax.annotation.Nullable String property) { this.property = property; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/NumberOnly.java index 6f51fd10ff03..94248d5f6ea9 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -33,12 +33,13 @@ public class NumberOnly { public static final String SERIALIZED_NAME_JUST_NUMBER = "JustNumber"; @SerializedName(SERIALIZED_NAME_JUST_NUMBER) + @javax.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } - public NumberOnly justNumber(BigDecimal justNumber) { + public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; @@ -57,7 +58,7 @@ public BigDecimal getJustNumber() { } - public void setJustNumber(BigDecimal justNumber) { + public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Order.java index 9ab705ddab24..8b98af6108f1 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Order.java @@ -33,18 +33,22 @@ public class Order { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_PET_ID = "petId"; @SerializedName(SERIALIZED_NAME_PET_ID) + @javax.annotation.Nullable private Long petId; public static final String SERIALIZED_NAME_QUANTITY = "quantity"; @SerializedName(SERIALIZED_NAME_QUANTITY) + @javax.annotation.Nullable private Integer quantity; public static final String SERIALIZED_NAME_SHIP_DATE = "shipDate"; @SerializedName(SERIALIZED_NAME_SHIP_DATE) + @javax.annotation.Nullable private OffsetDateTime shipDate; /** @@ -98,16 +102,18 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable private StatusEnum status; public static final String SERIALIZED_NAME_COMPLETE = "complete"; @SerializedName(SERIALIZED_NAME_COMPLETE) + @javax.annotation.Nullable private Boolean complete = false; public Order() { } - public Order id(Long id) { + public Order id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -125,11 +131,11 @@ public Long getId() { } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@javax.annotation.Nullable Long petId) { this.petId = petId; return this; @@ -147,11 +153,11 @@ public Long getPetId() { } - public void setPetId(Long petId) { + public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; return this; @@ -169,11 +175,11 @@ public Integer getQuantity() { } - public void setQuantity(Integer quantity) { + public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; @@ -192,11 +198,11 @@ public OffsetDateTime getShipDate() { } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -214,11 +220,11 @@ public StatusEnum getStatus() { } - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } - public Order complete(Boolean complete) { + public Order complete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; return this; @@ -236,7 +242,7 @@ public Boolean isComplete() { } - public void setComplete(Boolean complete) { + public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/OuterComposite.java index 3373fa0fe86b..a14c928e16a8 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -33,20 +33,23 @@ public class OuterComposite { public static final String SERIALIZED_NAME_MY_NUMBER = "my_number"; @SerializedName(SERIALIZED_NAME_MY_NUMBER) + @javax.annotation.Nullable private BigDecimal myNumber; public static final String SERIALIZED_NAME_MY_STRING = "my_string"; @SerializedName(SERIALIZED_NAME_MY_STRING) + @javax.annotation.Nullable private String myString; public static final String SERIALIZED_NAME_MY_BOOLEAN = "my_boolean"; @SerializedName(SERIALIZED_NAME_MY_BOOLEAN) + @javax.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } - public OuterComposite myNumber(BigDecimal myNumber) { + public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; @@ -65,11 +68,11 @@ public BigDecimal getMyNumber() { } - public void setMyNumber(BigDecimal myNumber) { + public void setMyNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; } - public OuterComposite myString(String myString) { + public OuterComposite myString(@javax.annotation.Nullable String myString) { this.myString = myString; return this; @@ -87,11 +90,11 @@ public String getMyString() { } - public void setMyString(String myString) { + public void setMyString(@javax.annotation.Nullable String myString) { this.myString = myString; } - public OuterComposite myBoolean(Boolean myBoolean) { + public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; return this; @@ -109,7 +112,7 @@ public Boolean isMyBoolean() { } - public void setMyBoolean(Boolean myBoolean) { + public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Pet.java index 8943a77dfa8f..1b12e31465f9 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Pet.java @@ -39,22 +39,27 @@ public class Pet { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_CATEGORY = "category"; @SerializedName(SERIALIZED_NAME_CATEGORY) + @javax.annotation.Nullable private Category category; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; @SerializedName(SERIALIZED_NAME_PHOTO_URLS) + @javax.annotation.Nonnull private Set photoUrls = new LinkedHashSet<>(); public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) + @javax.annotation.Nullable private List<@Valid Tag> tags = new ArrayList<>(); /** @@ -108,12 +113,13 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable private StatusEnum status; public Pet() { } - public Pet id(Long id) { + public Pet id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -131,11 +137,11 @@ public Long getId() { } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@javax.annotation.Nullable Category category) { this.category = category; return this; @@ -154,11 +160,11 @@ public Category getCategory() { } - public void setCategory(Category category) { + public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; } - public Pet name(String name) { + public Pet name(@javax.annotation.Nonnull String name) { this.name = name; return this; @@ -177,11 +183,11 @@ public String getName() { } - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } - public Pet photoUrls(Set photoUrls) { + public Pet photoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; return this; @@ -208,11 +214,11 @@ public Set getPhotoUrls() { } - public void setPhotoUrls(Set photoUrls) { + public void setPhotoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; } - public Pet tags(List<@Valid Tag> tags) { + public Pet tags(@javax.annotation.Nullable List<@Valid Tag> tags) { this.tags = tags; return this; @@ -239,11 +245,11 @@ public Pet addTagsItem(Tag tagsItem) { } - public void setTags(List<@Valid Tag> tags) { + public void setTags(@javax.annotation.Nullable List<@Valid Tag> tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -261,7 +267,7 @@ public StatusEnum getStatus() { } - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 70bbf4e74c23..f3f7d5a89ff3 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -32,10 +32,12 @@ public class ReadOnlyFirst { public static final String SERIALIZED_NAME_BAR = "bar"; @SerializedName(SERIALIZED_NAME_BAR) + @javax.annotation.Nullable private String bar; public static final String SERIALIZED_NAME_BAZ = "baz"; @SerializedName(SERIALIZED_NAME_BAZ) + @javax.annotation.Nullable private String baz; public ReadOnlyFirst() { @@ -64,7 +66,7 @@ public String getBar() { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { this.baz = baz; return this; @@ -82,7 +84,7 @@ public String getBaz() { } - public void setBaz(String baz) { + public void setBaz(@javax.annotation.Nullable String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/SpecialModelName.java index dfcd575eda28..39a047f8fd6b 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -32,12 +32,13 @@ public class SpecialModelName { public static final String SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; @SerializedName(SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME) + @javax.annotation.Nullable private Long $specialPropertyName; public SpecialModelName() { } - public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + public SpecialModelName $specialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; return this; @@ -55,7 +56,7 @@ public SpecialModelName() { } - public void set$SpecialPropertyName(Long $specialPropertyName) { + public void set$SpecialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Tag.java index 8d9d5cc3e3ba..e41d5d117b40 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Tag.java @@ -32,16 +32,18 @@ public class Tag { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public Tag() { } - public Tag id(Long id) { + public Tag id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -59,11 +61,11 @@ public Long getId() { } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -81,7 +83,7 @@ public String getName() { } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index c9fba576feac..d1f1945649ba 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -36,28 +36,33 @@ public class TypeHolderDefault { public static final String SERIALIZED_NAME_STRING_ITEM = "string_item"; @SerializedName(SERIALIZED_NAME_STRING_ITEM) + @javax.annotation.Nonnull private String stringItem = "what"; public static final String SERIALIZED_NAME_NUMBER_ITEM = "number_item"; @SerializedName(SERIALIZED_NAME_NUMBER_ITEM) + @javax.annotation.Nonnull private BigDecimal numberItem; public static final String SERIALIZED_NAME_INTEGER_ITEM = "integer_item"; @SerializedName(SERIALIZED_NAME_INTEGER_ITEM) + @javax.annotation.Nonnull private Integer integerItem; public static final String SERIALIZED_NAME_BOOL_ITEM = "bool_item"; @SerializedName(SERIALIZED_NAME_BOOL_ITEM) + @javax.annotation.Nonnull private Boolean boolItem = true; public static final String SERIALIZED_NAME_ARRAY_ITEM = "array_item"; @SerializedName(SERIALIZED_NAME_ARRAY_ITEM) + @javax.annotation.Nonnull private List arrayItem = new ArrayList<>(); public TypeHolderDefault() { } - public TypeHolderDefault stringItem(String stringItem) { + public TypeHolderDefault stringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; return this; @@ -76,11 +81,11 @@ public String getStringItem() { } - public void setStringItem(String stringItem) { + public void setStringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; } - public TypeHolderDefault numberItem(BigDecimal numberItem) { + public TypeHolderDefault numberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; return this; @@ -100,11 +105,11 @@ public BigDecimal getNumberItem() { } - public void setNumberItem(BigDecimal numberItem) { + public void setNumberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; } - public TypeHolderDefault integerItem(Integer integerItem) { + public TypeHolderDefault integerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; return this; @@ -123,11 +128,11 @@ public Integer getIntegerItem() { } - public void setIntegerItem(Integer integerItem) { + public void setIntegerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; } - public TypeHolderDefault boolItem(Boolean boolItem) { + public TypeHolderDefault boolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; return this; @@ -146,11 +151,11 @@ public Boolean isBoolItem() { } - public void setBoolItem(Boolean boolItem) { + public void setBoolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; } - public TypeHolderDefault arrayItem(List arrayItem) { + public TypeHolderDefault arrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; return this; @@ -177,7 +182,7 @@ public List getArrayItem() { } - public void setArrayItem(List arrayItem) { + public void setArrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/TypeHolderExample.java index 19d48c9a5afe..16e84868cfed 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -36,32 +36,38 @@ public class TypeHolderExample { public static final String SERIALIZED_NAME_STRING_ITEM = "string_item"; @SerializedName(SERIALIZED_NAME_STRING_ITEM) + @javax.annotation.Nonnull private String stringItem; public static final String SERIALIZED_NAME_NUMBER_ITEM = "number_item"; @SerializedName(SERIALIZED_NAME_NUMBER_ITEM) + @javax.annotation.Nonnull private BigDecimal numberItem; public static final String SERIALIZED_NAME_FLOAT_ITEM = "float_item"; @SerializedName(SERIALIZED_NAME_FLOAT_ITEM) + @javax.annotation.Nonnull private Float floatItem; public static final String SERIALIZED_NAME_INTEGER_ITEM = "integer_item"; @SerializedName(SERIALIZED_NAME_INTEGER_ITEM) + @javax.annotation.Nonnull private Integer integerItem; public static final String SERIALIZED_NAME_BOOL_ITEM = "bool_item"; @SerializedName(SERIALIZED_NAME_BOOL_ITEM) + @javax.annotation.Nonnull private Boolean boolItem; public static final String SERIALIZED_NAME_ARRAY_ITEM = "array_item"; @SerializedName(SERIALIZED_NAME_ARRAY_ITEM) + @javax.annotation.Nonnull private List arrayItem = new ArrayList<>(); public TypeHolderExample() { } - public TypeHolderExample stringItem(String stringItem) { + public TypeHolderExample stringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; return this; @@ -80,11 +86,11 @@ public String getStringItem() { } - public void setStringItem(String stringItem) { + public void setStringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; } - public TypeHolderExample numberItem(BigDecimal numberItem) { + public TypeHolderExample numberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; return this; @@ -104,11 +110,11 @@ public BigDecimal getNumberItem() { } - public void setNumberItem(BigDecimal numberItem) { + public void setNumberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; } - public TypeHolderExample floatItem(Float floatItem) { + public TypeHolderExample floatItem(@javax.annotation.Nonnull Float floatItem) { this.floatItem = floatItem; return this; @@ -127,11 +133,11 @@ public Float getFloatItem() { } - public void setFloatItem(Float floatItem) { + public void setFloatItem(@javax.annotation.Nonnull Float floatItem) { this.floatItem = floatItem; } - public TypeHolderExample integerItem(Integer integerItem) { + public TypeHolderExample integerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; return this; @@ -150,11 +156,11 @@ public Integer getIntegerItem() { } - public void setIntegerItem(Integer integerItem) { + public void setIntegerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; } - public TypeHolderExample boolItem(Boolean boolItem) { + public TypeHolderExample boolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; return this; @@ -173,11 +179,11 @@ public Boolean isBoolItem() { } - public void setBoolItem(Boolean boolItem) { + public void setBoolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; } - public TypeHolderExample arrayItem(List arrayItem) { + public TypeHolderExample arrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; return this; @@ -204,7 +210,7 @@ public List getArrayItem() { } - public void setArrayItem(List arrayItem) { + public void setArrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/User.java index 5d454455a0fc..d9d426515d04 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/User.java @@ -32,40 +32,48 @@ public class User { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_USERNAME = "username"; @SerializedName(SERIALIZED_NAME_USERNAME) + @javax.annotation.Nullable private String username; public static final String SERIALIZED_NAME_FIRST_NAME = "firstName"; @SerializedName(SERIALIZED_NAME_FIRST_NAME) + @javax.annotation.Nullable private String firstName; public static final String SERIALIZED_NAME_LAST_NAME = "lastName"; @SerializedName(SERIALIZED_NAME_LAST_NAME) + @javax.annotation.Nullable private String lastName; public static final String SERIALIZED_NAME_EMAIL = "email"; @SerializedName(SERIALIZED_NAME_EMAIL) + @javax.annotation.Nullable private String email; public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) + @javax.annotation.Nullable private String password; public static final String SERIALIZED_NAME_PHONE = "phone"; @SerializedName(SERIALIZED_NAME_PHONE) + @javax.annotation.Nullable private String phone; public static final String SERIALIZED_NAME_USER_STATUS = "userStatus"; @SerializedName(SERIALIZED_NAME_USER_STATUS) + @javax.annotation.Nullable private Integer userStatus; public User() { } - public User id(Long id) { + public User id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -83,11 +91,11 @@ public Long getId() { } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@javax.annotation.Nullable String username) { this.username = username; return this; @@ -105,11 +113,11 @@ public String getUsername() { } - public void setUsername(String username) { + public void setUsername(@javax.annotation.Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; return this; @@ -127,11 +135,11 @@ public String getFirstName() { } - public void setFirstName(String firstName) { + public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; return this; @@ -149,11 +157,11 @@ public String getLastName() { } - public void setLastName(String lastName) { + public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@javax.annotation.Nullable String email) { this.email = email; return this; @@ -171,11 +179,11 @@ public String getEmail() { } - public void setEmail(String email) { + public void setEmail(@javax.annotation.Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@javax.annotation.Nullable String password) { this.password = password; return this; @@ -193,11 +201,11 @@ public String getPassword() { } - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@javax.annotation.Nullable String phone) { this.phone = phone; return this; @@ -215,11 +223,11 @@ public String getPhone() { } - public void setPhone(String phone) { + public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; return this; @@ -237,7 +245,7 @@ public Integer getUserStatus() { } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/XmlItem.java index 40d0e558dac2..57efef1eabb7 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/XmlItem.java @@ -36,124 +36,153 @@ public class XmlItem { public static final String SERIALIZED_NAME_ATTRIBUTE_STRING = "attribute_string"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_STRING) + @javax.annotation.Nullable private String attributeString; public static final String SERIALIZED_NAME_ATTRIBUTE_NUMBER = "attribute_number"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_NUMBER) + @javax.annotation.Nullable private BigDecimal attributeNumber; public static final String SERIALIZED_NAME_ATTRIBUTE_INTEGER = "attribute_integer"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_INTEGER) + @javax.annotation.Nullable private Integer attributeInteger; public static final String SERIALIZED_NAME_ATTRIBUTE_BOOLEAN = "attribute_boolean"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_BOOLEAN) + @javax.annotation.Nullable private Boolean attributeBoolean; public static final String SERIALIZED_NAME_WRAPPED_ARRAY = "wrapped_array"; @SerializedName(SERIALIZED_NAME_WRAPPED_ARRAY) + @javax.annotation.Nullable private List wrappedArray = new ArrayList<>(); public static final String SERIALIZED_NAME_NAME_STRING = "name_string"; @SerializedName(SERIALIZED_NAME_NAME_STRING) + @javax.annotation.Nullable private String nameString; public static final String SERIALIZED_NAME_NAME_NUMBER = "name_number"; @SerializedName(SERIALIZED_NAME_NAME_NUMBER) + @javax.annotation.Nullable private BigDecimal nameNumber; public static final String SERIALIZED_NAME_NAME_INTEGER = "name_integer"; @SerializedName(SERIALIZED_NAME_NAME_INTEGER) + @javax.annotation.Nullable private Integer nameInteger; public static final String SERIALIZED_NAME_NAME_BOOLEAN = "name_boolean"; @SerializedName(SERIALIZED_NAME_NAME_BOOLEAN) + @javax.annotation.Nullable private Boolean nameBoolean; public static final String SERIALIZED_NAME_NAME_ARRAY = "name_array"; @SerializedName(SERIALIZED_NAME_NAME_ARRAY) + @javax.annotation.Nullable private List nameArray = new ArrayList<>(); public static final String SERIALIZED_NAME_NAME_WRAPPED_ARRAY = "name_wrapped_array"; @SerializedName(SERIALIZED_NAME_NAME_WRAPPED_ARRAY) + @javax.annotation.Nullable private List nameWrappedArray = new ArrayList<>(); public static final String SERIALIZED_NAME_PREFIX_STRING = "prefix_string"; @SerializedName(SERIALIZED_NAME_PREFIX_STRING) + @javax.annotation.Nullable private String prefixString; public static final String SERIALIZED_NAME_PREFIX_NUMBER = "prefix_number"; @SerializedName(SERIALIZED_NAME_PREFIX_NUMBER) + @javax.annotation.Nullable private BigDecimal prefixNumber; public static final String SERIALIZED_NAME_PREFIX_INTEGER = "prefix_integer"; @SerializedName(SERIALIZED_NAME_PREFIX_INTEGER) + @javax.annotation.Nullable private Integer prefixInteger; public static final String SERIALIZED_NAME_PREFIX_BOOLEAN = "prefix_boolean"; @SerializedName(SERIALIZED_NAME_PREFIX_BOOLEAN) + @javax.annotation.Nullable private Boolean prefixBoolean; public static final String SERIALIZED_NAME_PREFIX_ARRAY = "prefix_array"; @SerializedName(SERIALIZED_NAME_PREFIX_ARRAY) + @javax.annotation.Nullable private List prefixArray = new ArrayList<>(); public static final String SERIALIZED_NAME_PREFIX_WRAPPED_ARRAY = "prefix_wrapped_array"; @SerializedName(SERIALIZED_NAME_PREFIX_WRAPPED_ARRAY) + @javax.annotation.Nullable private List prefixWrappedArray = new ArrayList<>(); public static final String SERIALIZED_NAME_NAMESPACE_STRING = "namespace_string"; @SerializedName(SERIALIZED_NAME_NAMESPACE_STRING) + @javax.annotation.Nullable private String namespaceString; public static final String SERIALIZED_NAME_NAMESPACE_NUMBER = "namespace_number"; @SerializedName(SERIALIZED_NAME_NAMESPACE_NUMBER) + @javax.annotation.Nullable private BigDecimal namespaceNumber; public static final String SERIALIZED_NAME_NAMESPACE_INTEGER = "namespace_integer"; @SerializedName(SERIALIZED_NAME_NAMESPACE_INTEGER) + @javax.annotation.Nullable private Integer namespaceInteger; public static final String SERIALIZED_NAME_NAMESPACE_BOOLEAN = "namespace_boolean"; @SerializedName(SERIALIZED_NAME_NAMESPACE_BOOLEAN) + @javax.annotation.Nullable private Boolean namespaceBoolean; public static final String SERIALIZED_NAME_NAMESPACE_ARRAY = "namespace_array"; @SerializedName(SERIALIZED_NAME_NAMESPACE_ARRAY) + @javax.annotation.Nullable private List namespaceArray = new ArrayList<>(); public static final String SERIALIZED_NAME_NAMESPACE_WRAPPED_ARRAY = "namespace_wrapped_array"; @SerializedName(SERIALIZED_NAME_NAMESPACE_WRAPPED_ARRAY) + @javax.annotation.Nullable private List namespaceWrappedArray = new ArrayList<>(); public static final String SERIALIZED_NAME_PREFIX_NS_STRING = "prefix_ns_string"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_STRING) + @javax.annotation.Nullable private String prefixNsString; public static final String SERIALIZED_NAME_PREFIX_NS_NUMBER = "prefix_ns_number"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_NUMBER) + @javax.annotation.Nullable private BigDecimal prefixNsNumber; public static final String SERIALIZED_NAME_PREFIX_NS_INTEGER = "prefix_ns_integer"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_INTEGER) + @javax.annotation.Nullable private Integer prefixNsInteger; public static final String SERIALIZED_NAME_PREFIX_NS_BOOLEAN = "prefix_ns_boolean"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_BOOLEAN) + @javax.annotation.Nullable private Boolean prefixNsBoolean; public static final String SERIALIZED_NAME_PREFIX_NS_ARRAY = "prefix_ns_array"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_ARRAY) + @javax.annotation.Nullable private List prefixNsArray = new ArrayList<>(); public static final String SERIALIZED_NAME_PREFIX_NS_WRAPPED_ARRAY = "prefix_ns_wrapped_array"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_WRAPPED_ARRAY) + @javax.annotation.Nullable private List prefixNsWrappedArray = new ArrayList<>(); public XmlItem() { } - public XmlItem attributeString(String attributeString) { + public XmlItem attributeString(@javax.annotation.Nullable String attributeString) { this.attributeString = attributeString; return this; @@ -171,11 +200,11 @@ public String getAttributeString() { } - public void setAttributeString(String attributeString) { + public void setAttributeString(@javax.annotation.Nullable String attributeString) { this.attributeString = attributeString; } - public XmlItem attributeNumber(BigDecimal attributeNumber) { + public XmlItem attributeNumber(@javax.annotation.Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; return this; @@ -194,11 +223,11 @@ public BigDecimal getAttributeNumber() { } - public void setAttributeNumber(BigDecimal attributeNumber) { + public void setAttributeNumber(@javax.annotation.Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } - public XmlItem attributeInteger(Integer attributeInteger) { + public XmlItem attributeInteger(@javax.annotation.Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; return this; @@ -216,11 +245,11 @@ public Integer getAttributeInteger() { } - public void setAttributeInteger(Integer attributeInteger) { + public void setAttributeInteger(@javax.annotation.Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; } - public XmlItem attributeBoolean(Boolean attributeBoolean) { + public XmlItem attributeBoolean(@javax.annotation.Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; return this; @@ -238,11 +267,11 @@ public Boolean isAttributeBoolean() { } - public void setAttributeBoolean(Boolean attributeBoolean) { + public void setAttributeBoolean(@javax.annotation.Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } - public XmlItem wrappedArray(List wrappedArray) { + public XmlItem wrappedArray(@javax.annotation.Nullable List wrappedArray) { this.wrappedArray = wrappedArray; return this; @@ -268,11 +297,11 @@ public List getWrappedArray() { } - public void setWrappedArray(List wrappedArray) { + public void setWrappedArray(@javax.annotation.Nullable List wrappedArray) { this.wrappedArray = wrappedArray; } - public XmlItem nameString(String nameString) { + public XmlItem nameString(@javax.annotation.Nullable String nameString) { this.nameString = nameString; return this; @@ -290,11 +319,11 @@ public String getNameString() { } - public void setNameString(String nameString) { + public void setNameString(@javax.annotation.Nullable String nameString) { this.nameString = nameString; } - public XmlItem nameNumber(BigDecimal nameNumber) { + public XmlItem nameNumber(@javax.annotation.Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; return this; @@ -313,11 +342,11 @@ public BigDecimal getNameNumber() { } - public void setNameNumber(BigDecimal nameNumber) { + public void setNameNumber(@javax.annotation.Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; } - public XmlItem nameInteger(Integer nameInteger) { + public XmlItem nameInteger(@javax.annotation.Nullable Integer nameInteger) { this.nameInteger = nameInteger; return this; @@ -335,11 +364,11 @@ public Integer getNameInteger() { } - public void setNameInteger(Integer nameInteger) { + public void setNameInteger(@javax.annotation.Nullable Integer nameInteger) { this.nameInteger = nameInteger; } - public XmlItem nameBoolean(Boolean nameBoolean) { + public XmlItem nameBoolean(@javax.annotation.Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; return this; @@ -357,11 +386,11 @@ public Boolean isNameBoolean() { } - public void setNameBoolean(Boolean nameBoolean) { + public void setNameBoolean(@javax.annotation.Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; } - public XmlItem nameArray(List nameArray) { + public XmlItem nameArray(@javax.annotation.Nullable List nameArray) { this.nameArray = nameArray; return this; @@ -387,11 +416,11 @@ public List getNameArray() { } - public void setNameArray(List nameArray) { + public void setNameArray(@javax.annotation.Nullable List nameArray) { this.nameArray = nameArray; } - public XmlItem nameWrappedArray(List nameWrappedArray) { + public XmlItem nameWrappedArray(@javax.annotation.Nullable List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; return this; @@ -417,11 +446,11 @@ public List getNameWrappedArray() { } - public void setNameWrappedArray(List nameWrappedArray) { + public void setNameWrappedArray(@javax.annotation.Nullable List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } - public XmlItem prefixString(String prefixString) { + public XmlItem prefixString(@javax.annotation.Nullable String prefixString) { this.prefixString = prefixString; return this; @@ -439,11 +468,11 @@ public String getPrefixString() { } - public void setPrefixString(String prefixString) { + public void setPrefixString(@javax.annotation.Nullable String prefixString) { this.prefixString = prefixString; } - public XmlItem prefixNumber(BigDecimal prefixNumber) { + public XmlItem prefixNumber(@javax.annotation.Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; return this; @@ -462,11 +491,11 @@ public BigDecimal getPrefixNumber() { } - public void setPrefixNumber(BigDecimal prefixNumber) { + public void setPrefixNumber(@javax.annotation.Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } - public XmlItem prefixInteger(Integer prefixInteger) { + public XmlItem prefixInteger(@javax.annotation.Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; return this; @@ -484,11 +513,11 @@ public Integer getPrefixInteger() { } - public void setPrefixInteger(Integer prefixInteger) { + public void setPrefixInteger(@javax.annotation.Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; } - public XmlItem prefixBoolean(Boolean prefixBoolean) { + public XmlItem prefixBoolean(@javax.annotation.Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; return this; @@ -506,11 +535,11 @@ public Boolean isPrefixBoolean() { } - public void setPrefixBoolean(Boolean prefixBoolean) { + public void setPrefixBoolean(@javax.annotation.Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } - public XmlItem prefixArray(List prefixArray) { + public XmlItem prefixArray(@javax.annotation.Nullable List prefixArray) { this.prefixArray = prefixArray; return this; @@ -536,11 +565,11 @@ public List getPrefixArray() { } - public void setPrefixArray(List prefixArray) { + public void setPrefixArray(@javax.annotation.Nullable List prefixArray) { this.prefixArray = prefixArray; } - public XmlItem prefixWrappedArray(List prefixWrappedArray) { + public XmlItem prefixWrappedArray(@javax.annotation.Nullable List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; return this; @@ -566,11 +595,11 @@ public List getPrefixWrappedArray() { } - public void setPrefixWrappedArray(List prefixWrappedArray) { + public void setPrefixWrappedArray(@javax.annotation.Nullable List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem namespaceString(String namespaceString) { + public XmlItem namespaceString(@javax.annotation.Nullable String namespaceString) { this.namespaceString = namespaceString; return this; @@ -588,11 +617,11 @@ public String getNamespaceString() { } - public void setNamespaceString(String namespaceString) { + public void setNamespaceString(@javax.annotation.Nullable String namespaceString) { this.namespaceString = namespaceString; } - public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + public XmlItem namespaceNumber(@javax.annotation.Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; return this; @@ -611,11 +640,11 @@ public BigDecimal getNamespaceNumber() { } - public void setNamespaceNumber(BigDecimal namespaceNumber) { + public void setNamespaceNumber(@javax.annotation.Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } - public XmlItem namespaceInteger(Integer namespaceInteger) { + public XmlItem namespaceInteger(@javax.annotation.Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; return this; @@ -633,11 +662,11 @@ public Integer getNamespaceInteger() { } - public void setNamespaceInteger(Integer namespaceInteger) { + public void setNamespaceInteger(@javax.annotation.Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } - public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + public XmlItem namespaceBoolean(@javax.annotation.Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; return this; @@ -655,11 +684,11 @@ public Boolean isNamespaceBoolean() { } - public void setNamespaceBoolean(Boolean namespaceBoolean) { + public void setNamespaceBoolean(@javax.annotation.Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } - public XmlItem namespaceArray(List namespaceArray) { + public XmlItem namespaceArray(@javax.annotation.Nullable List namespaceArray) { this.namespaceArray = namespaceArray; return this; @@ -685,11 +714,11 @@ public List getNamespaceArray() { } - public void setNamespaceArray(List namespaceArray) { + public void setNamespaceArray(@javax.annotation.Nullable List namespaceArray) { this.namespaceArray = namespaceArray; } - public XmlItem namespaceWrappedArray(List namespaceWrappedArray) { + public XmlItem namespaceWrappedArray(@javax.annotation.Nullable List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; return this; @@ -715,11 +744,11 @@ public List getNamespaceWrappedArray() { } - public void setNamespaceWrappedArray(List namespaceWrappedArray) { + public void setNamespaceWrappedArray(@javax.annotation.Nullable List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem prefixNsString(String prefixNsString) { + public XmlItem prefixNsString(@javax.annotation.Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; @@ -737,11 +766,11 @@ public String getPrefixNsString() { } - public void setPrefixNsString(String prefixNsString) { + public void setPrefixNsString(@javax.annotation.Nullable String prefixNsString) { this.prefixNsString = prefixNsString; } - public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + public XmlItem prefixNsNumber(@javax.annotation.Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; return this; @@ -760,11 +789,11 @@ public BigDecimal getPrefixNsNumber() { } - public void setPrefixNsNumber(BigDecimal prefixNsNumber) { + public void setPrefixNsNumber(@javax.annotation.Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } - public XmlItem prefixNsInteger(Integer prefixNsInteger) { + public XmlItem prefixNsInteger(@javax.annotation.Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; return this; @@ -782,11 +811,11 @@ public Integer getPrefixNsInteger() { } - public void setPrefixNsInteger(Integer prefixNsInteger) { + public void setPrefixNsInteger(@javax.annotation.Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } - public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + public XmlItem prefixNsBoolean(@javax.annotation.Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; return this; @@ -804,11 +833,11 @@ public Boolean isPrefixNsBoolean() { } - public void setPrefixNsBoolean(Boolean prefixNsBoolean) { + public void setPrefixNsBoolean(@javax.annotation.Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } - public XmlItem prefixNsArray(List prefixNsArray) { + public XmlItem prefixNsArray(@javax.annotation.Nullable List prefixNsArray) { this.prefixNsArray = prefixNsArray; return this; @@ -834,11 +863,11 @@ public List getPrefixNsArray() { } - public void setPrefixNsArray(List prefixNsArray) { + public void setPrefixNsArray(@javax.annotation.Nullable List prefixNsArray) { this.prefixNsArray = prefixNsArray; } - public XmlItem prefixNsWrappedArray(List prefixNsWrappedArray) { + public XmlItem prefixNsWrappedArray(@javax.annotation.Nullable List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; return this; @@ -864,7 +893,7 @@ public List getPrefixNsWrappedArray() { } - public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { + public void setPrefixNsWrappedArray(@javax.annotation.Nullable List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/restclient-nullable-arrays/src/main/java/org/openapitools/client/model/ByteArrayObject.java b/samples/client/petstore/java/restclient-nullable-arrays/src/main/java/org/openapitools/client/model/ByteArrayObject.java index c888da6ba1e5..cee3715a892f 100644 --- a/samples/client/petstore/java/restclient-nullable-arrays/src/main/java/org/openapitools/client/model/ByteArrayObject.java +++ b/samples/client/petstore/java/restclient-nullable-arrays/src/main/java/org/openapitools/client/model/ByteArrayObject.java @@ -41,24 +41,29 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ByteArrayObject { public static final String JSON_PROPERTY_NULLABLE_ARRAY = "nullableArray"; + @jakarta.annotation.Nullable private JsonNullable nullableArray = JsonNullable.undefined(); public static final String JSON_PROPERTY_NORMAL_ARRAY = "normalArray"; + @jakarta.annotation.Nullable private byte[] normalArray; public static final String JSON_PROPERTY_NULLABLE_STRING = "nullableString"; + @jakarta.annotation.Nullable private JsonNullable nullableString = JsonNullable.undefined(); public static final String JSON_PROPERTY_STRING_FIELD = "stringField"; + @jakarta.annotation.Nullable private String stringField; public static final String JSON_PROPERTY_INT_FIELD = "intField"; + @jakarta.annotation.Nullable private BigDecimal intField; public ByteArrayObject() { } - public ByteArrayObject nullableArray(byte[] nullableArray) { + public ByteArrayObject nullableArray(@jakarta.annotation.Nullable byte[] nullableArray) { this.nullableArray = JsonNullable.of(nullableArray); return this; @@ -87,11 +92,11 @@ public void setNullableArray_JsonNullable(JsonNullable nullableArray) { this.nullableArray = nullableArray; } - public void setNullableArray(byte[] nullableArray) { + public void setNullableArray(@jakarta.annotation.Nullable byte[] nullableArray) { this.nullableArray = JsonNullable.of(nullableArray); } - public ByteArrayObject normalArray(byte[] normalArray) { + public ByteArrayObject normalArray(@jakarta.annotation.Nullable byte[] normalArray) { this.normalArray = normalArray; return this; @@ -112,11 +117,11 @@ public byte[] getNormalArray() { @JsonProperty(JSON_PROPERTY_NORMAL_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNormalArray(byte[] normalArray) { + public void setNormalArray(@jakarta.annotation.Nullable byte[] normalArray) { this.normalArray = normalArray; } - public ByteArrayObject nullableString(String nullableString) { + public ByteArrayObject nullableString(@jakarta.annotation.Nullable String nullableString) { this.nullableString = JsonNullable.of(nullableString); return this; @@ -145,11 +150,11 @@ public void setNullableString_JsonNullable(JsonNullable nullableString) this.nullableString = nullableString; } - public void setNullableString(String nullableString) { + public void setNullableString(@jakarta.annotation.Nullable String nullableString) { this.nullableString = JsonNullable.of(nullableString); } - public ByteArrayObject stringField(String stringField) { + public ByteArrayObject stringField(@jakarta.annotation.Nullable String stringField) { this.stringField = stringField; return this; @@ -170,11 +175,11 @@ public String getStringField() { @JsonProperty(JSON_PROPERTY_STRING_FIELD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStringField(String stringField) { + public void setStringField(@jakarta.annotation.Nullable String stringField) { this.stringField = stringField; } - public ByteArrayObject intField(BigDecimal intField) { + public ByteArrayObject intField(@jakarta.annotation.Nullable BigDecimal intField) { this.intField = intField; return this; @@ -195,7 +200,7 @@ public BigDecimal getIntField() { @JsonProperty(JSON_PROPERTY_INT_FIELD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIntField(BigDecimal intField) { + public void setIntField(@jakarta.annotation.Nullable BigDecimal intField) { this.intField = intField; } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index cfd805be36fb..843d770724a1 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -36,15 +36,17 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_PROPERTY = "map_property"; + @jakarta.annotation.Nullable private Map mapProperty; public static final String JSON_PROPERTY_MAP_OF_MAP_PROPERTY = "map_of_map_property"; + @jakarta.annotation.Nullable private Map> mapOfMapProperty; public AdditionalPropertiesClass() { } - public AdditionalPropertiesClass mapProperty(Map mapProperty) { + public AdditionalPropertiesClass mapProperty(@jakarta.annotation.Nullable Map mapProperty) { this.mapProperty = mapProperty; return this; @@ -74,11 +76,11 @@ public Map getMapProperty() { @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapProperty(Map mapProperty) { + public void setMapProperty(@jakarta.annotation.Nullable Map mapProperty) { this.mapProperty = mapProperty; } - public AdditionalPropertiesClass mapOfMapProperty(Map> mapOfMapProperty) { + public AdditionalPropertiesClass mapOfMapProperty(@jakarta.annotation.Nullable Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; return this; @@ -108,7 +110,7 @@ public Map> getMapOfMapProperty() { @JsonProperty(JSON_PROPERTY_MAP_OF_MAP_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapOfMapProperty(Map> mapOfMapProperty) { + public void setMapOfMapProperty(@jakarta.annotation.Nullable Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java index 2cc8d5b26283..5a1c11b36be7 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java @@ -35,15 +35,17 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AllOfWithSingleRef { public static final String JSON_PROPERTY_USERNAME = "username"; + @jakarta.annotation.Nullable private String username; public static final String JSON_PROPERTY_SINGLE_REF_TYPE = "SingleRefType"; + @jakarta.annotation.Nullable private SingleRefType singleRefType; public AllOfWithSingleRef() { } - public AllOfWithSingleRef username(String username) { + public AllOfWithSingleRef username(@jakarta.annotation.Nullable String username) { this.username = username; return this; @@ -65,11 +67,11 @@ public String getUsername() { @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsername(String username) { + public void setUsername(@jakarta.annotation.Nullable String username) { this.username = username; } - public AllOfWithSingleRef singleRefType(SingleRefType singleRefType) { + public AllOfWithSingleRef singleRefType(@jakarta.annotation.Nullable SingleRefType singleRefType) { this.singleRefType = singleRefType; return this; @@ -91,7 +93,7 @@ public SingleRefType getSingleRefType() { @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSingleRefType(SingleRefType singleRefType) { + public void setSingleRefType(@jakarta.annotation.Nullable SingleRefType singleRefType) { this.singleRefType = singleRefType; } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Animal.java index d65701b2c2f9..add333aa8e9d 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Animal.java @@ -47,15 +47,17 @@ public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; + @jakarta.annotation.Nonnull protected String className; public static final String JSON_PROPERTY_COLOR = "color"; + @jakarta.annotation.Nullable protected String color = "red"; public Animal() { } - public Animal className(String className) { + public Animal className(@jakarta.annotation.Nonnull String className) { this.className = className; return this; @@ -77,11 +79,11 @@ public String getClassName() { @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setClassName(String className) { + public void setClassName(@jakarta.annotation.Nonnull String className) { this.className = className; } - public Animal color(String color) { + public Animal color(@jakarta.annotation.Nullable String color) { this.color = color; return this; @@ -103,7 +105,7 @@ public String getColor() { @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setColor(String color) { + public void setColor(@jakarta.annotation.Nullable String color) { this.color = color; } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 885c1144011f..369ea854c570 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -37,12 +37,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayOfArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; + @jakarta.annotation.Nullable private List> arrayArrayNumber; public ArrayOfArrayOfNumberOnly() { } - public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + public ArrayOfArrayOfNumberOnly arrayArrayNumber(@jakarta.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; return this; @@ -72,7 +73,7 @@ public List> getArrayArrayNumber() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayNumber(List> arrayArrayNumber) { + public void setArrayArrayNumber(@jakarta.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 175caa85a2b1..fb05dc25112d 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -37,12 +37,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; + @jakarta.annotation.Nullable private List arrayNumber; public ArrayOfNumberOnly() { } - public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + public ArrayOfNumberOnly arrayNumber(@jakarta.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; return this; @@ -72,7 +73,7 @@ public List getArrayNumber() { @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayNumber(List arrayNumber) { + public void setArrayNumber(@jakarta.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ArrayTest.java index 5ba5d10b5286..297670289eaa 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -39,18 +39,21 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; + @jakarta.annotation.Nullable private List arrayOfString; public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; + @jakarta.annotation.Nullable private List> arrayArrayOfInteger; public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; + @jakarta.annotation.Nullable private List> arrayArrayOfModel; public ArrayTest() { } - public ArrayTest arrayOfString(List arrayOfString) { + public ArrayTest arrayOfString(@jakarta.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; return this; @@ -80,11 +83,11 @@ public List getArrayOfString() { @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayOfString(List arrayOfString) { + public void setArrayOfString(@jakarta.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; } - public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + public ArrayTest arrayArrayOfInteger(@jakarta.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; return this; @@ -114,11 +117,11 @@ public List> getArrayArrayOfInteger() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { + public void setArrayArrayOfInteger(@jakarta.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } - public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + public ArrayTest arrayArrayOfModel(@jakarta.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; return this; @@ -148,7 +151,7 @@ public List> getArrayArrayOfModel() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayOfModel(List> arrayArrayOfModel) { + public void setArrayArrayOfModel(@jakarta.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Capitalization.java index cd8058a09db3..53c6310ae20a 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Capitalization.java @@ -38,27 +38,33 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Capitalization { public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; + @jakarta.annotation.Nullable private String smallCamel; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; + @jakarta.annotation.Nullable private String capitalCamel; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; + @jakarta.annotation.Nullable private String smallSnake; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; + @jakarta.annotation.Nullable private String capitalSnake; public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; + @jakarta.annotation.Nullable private String scAETHFlowPoints; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; + @jakarta.annotation.Nullable private String ATT_NAME; public Capitalization() { } - public Capitalization smallCamel(String smallCamel) { + public Capitalization smallCamel(@jakarta.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; return this; @@ -80,11 +86,11 @@ public String getSmallCamel() { @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmallCamel(String smallCamel) { + public void setSmallCamel(@jakarta.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; } - public Capitalization capitalCamel(String capitalCamel) { + public Capitalization capitalCamel(@jakarta.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; return this; @@ -106,11 +112,11 @@ public String getCapitalCamel() { @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCapitalCamel(String capitalCamel) { + public void setCapitalCamel(@jakarta.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; } - public Capitalization smallSnake(String smallSnake) { + public Capitalization smallSnake(@jakarta.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; return this; @@ -132,11 +138,11 @@ public String getSmallSnake() { @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmallSnake(String smallSnake) { + public void setSmallSnake(@jakarta.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; } - public Capitalization capitalSnake(String capitalSnake) { + public Capitalization capitalSnake(@jakarta.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; return this; @@ -158,11 +164,11 @@ public String getCapitalSnake() { @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCapitalSnake(String capitalSnake) { + public void setCapitalSnake(@jakarta.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; } - public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + public Capitalization scAETHFlowPoints(@jakarta.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; return this; @@ -184,11 +190,11 @@ public String getScAETHFlowPoints() { @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setScAETHFlowPoints(String scAETHFlowPoints) { + public void setScAETHFlowPoints(@jakarta.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } - public Capitalization ATT_NAME(String ATT_NAME) { + public Capitalization ATT_NAME(@jakarta.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; return this; @@ -210,7 +216,7 @@ public String getATTNAME() { @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setATTNAME(String ATT_NAME) { + public void setATTNAME(@jakarta.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Cat.java index 7cbafa13b921..c4ca3c3e6fa7 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Cat.java @@ -43,13 +43,14 @@ public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; + @jakarta.annotation.Nullable private Boolean declawed; public Cat() { } - public Cat declawed(Boolean declawed) { + public Cat declawed(@jakarta.annotation.Nullable Boolean declawed) { this.declawed = declawed; return this; @@ -71,18 +72,18 @@ public Boolean getDeclawed() { @JsonProperty(JSON_PROPERTY_DECLAWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@jakarta.annotation.Nullable Boolean declawed) { this.declawed = declawed; } @Override - public Cat className(String className) { + public Cat className(@jakarta.annotation.Nonnull String className) { this.setClassName(className); return this; } @Override - public Cat color(String color) { + public Cat color(@jakarta.annotation.Nullable String color) { this.setColor(color); return this; } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Category.java index a6f5cb29cca2..898bff04f3ca 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Category.java @@ -34,15 +34,17 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Category { public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nonnull private String name = "default-name"; public Category() { } - public Category id(Long id) { + public Category id(@jakarta.annotation.Nullable Long id) { this.id = id; return this; @@ -64,11 +66,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; @@ -90,7 +92,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ChildWithNullable.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ChildWithNullable.java index 72a2b09516ca..49110f96f46d 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ChildWithNullable.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ChildWithNullable.java @@ -44,13 +44,14 @@ public class ChildWithNullable extends ParentWithNullable { public static final String JSON_PROPERTY_OTHER_PROPERTY = "otherProperty"; + @jakarta.annotation.Nullable private String otherProperty; public ChildWithNullable() { } - public ChildWithNullable otherProperty(String otherProperty) { + public ChildWithNullable otherProperty(@jakarta.annotation.Nullable String otherProperty) { this.otherProperty = otherProperty; return this; @@ -72,18 +73,18 @@ public String getOtherProperty() { @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOtherProperty(String otherProperty) { + public void setOtherProperty(@jakarta.annotation.Nullable String otherProperty) { this.otherProperty = otherProperty; } @Override - public ChildWithNullable type(TypeEnum type) { + public ChildWithNullable type(@jakarta.annotation.Nullable TypeEnum type) { this.setType(type); return this; } @Override - public ChildWithNullable nullableProperty(String nullableProperty) { + public ChildWithNullable nullableProperty(@jakarta.annotation.Nullable String nullableProperty) { this.setNullableProperty(nullableProperty); return this; } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ClassModel.java index 2c569d2954fd..bcc79983bef1 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ClassModel.java @@ -34,12 +34,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ClassModel { public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; + @jakarta.annotation.Nullable private String propertyClass; public ClassModel() { } - public ClassModel propertyClass(String propertyClass) { + public ClassModel propertyClass(@jakarta.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; @@ -61,7 +62,7 @@ public String getPropertyClass() { @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@jakarta.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Client.java index b0619558c5b6..a7903784e4f8 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Client.java @@ -33,12 +33,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Client { public static final String JSON_PROPERTY_CLIENT = "client"; + @jakarta.annotation.Nullable private String client; public Client() { } - public Client client(String client) { + public Client client(@jakarta.annotation.Nullable String client) { this.client = client; return this; @@ -60,7 +61,7 @@ public String getClient() { @JsonProperty(JSON_PROPERTY_CLIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setClient(String client) { + public void setClient(@jakarta.annotation.Nullable String client) { this.client = client; } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/DeprecatedObject.java index c7376f71e24e..6228c6c45ed0 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -35,12 +35,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class DeprecatedObject { public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private String name; public DeprecatedObject() { } - public DeprecatedObject name(String name) { + public DeprecatedObject name(@jakarta.annotation.Nullable String name) { this.name = name; return this; @@ -62,7 +63,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Dog.java index 318b61a2c095..b82102a688d6 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Dog.java @@ -43,13 +43,14 @@ public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; + @jakarta.annotation.Nullable private String breed; public Dog() { } - public Dog breed(String breed) { + public Dog breed(@jakarta.annotation.Nullable String breed) { this.breed = breed; return this; @@ -71,18 +72,18 @@ public String getBreed() { @JsonProperty(JSON_PROPERTY_BREED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBreed(String breed) { + public void setBreed(@jakarta.annotation.Nullable String breed) { this.breed = breed; } @Override - public Dog className(String className) { + public Dog className(@jakarta.annotation.Nonnull String className) { this.setClassName(className); return this; } @Override - public Dog color(String color) { + public Dog color(@jakarta.annotation.Nullable String color) { this.setColor(color); return this; } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/EnumArrays.java index 27fe1094b318..964b1f337369 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -72,6 +72,7 @@ public static JustSymbolEnum fromValue(String value) { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; + @jakarta.annotation.Nullable private JustSymbolEnum justSymbol; /** @@ -110,12 +111,13 @@ public static ArrayEnumEnum fromValue(String value) { } public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; + @jakarta.annotation.Nullable private List arrayEnum; public EnumArrays() { } - public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + public EnumArrays justSymbol(@jakarta.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; @@ -137,11 +139,11 @@ public JustSymbolEnum getJustSymbol() { @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJustSymbol(JustSymbolEnum justSymbol) { + public void setJustSymbol(@jakarta.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } - public EnumArrays arrayEnum(List arrayEnum) { + public EnumArrays arrayEnum(@jakarta.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; return this; @@ -171,7 +173,7 @@ public List getArrayEnum() { @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayEnum(List arrayEnum) { + public void setArrayEnum(@jakarta.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/EnumTest.java index bbbeefaba142..6bbe08318679 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/EnumTest.java @@ -86,6 +86,7 @@ public static EnumStringEnum fromValue(String value) { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; + @jakarta.annotation.Nullable private EnumStringEnum enumString; /** @@ -126,6 +127,7 @@ public static EnumStringRequiredEnum fromValue(String value) { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; + @jakarta.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** @@ -164,6 +166,7 @@ public static EnumIntegerEnum fromValue(Integer value) { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; + @jakarta.annotation.Nullable private EnumIntegerEnum enumInteger; /** @@ -202,24 +205,29 @@ public static EnumNumberEnum fromValue(Double value) { } public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; + @jakarta.annotation.Nullable private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; + @jakarta.annotation.Nullable private JsonNullable outerEnum = JsonNullable.undefined(); public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER = "outerEnumInteger"; + @jakarta.annotation.Nullable private OuterEnumInteger outerEnumInteger; public static final String JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE = "outerEnumDefaultValue"; + @jakarta.annotation.Nullable private OuterEnumDefaultValue outerEnumDefaultValue = OuterEnumDefaultValue.PLACED; public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE = "outerEnumIntegerDefaultValue"; + @jakarta.annotation.Nullable private OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = OuterEnumIntegerDefaultValue.NUMBER_0; public EnumTest() { } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@jakarta.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; @@ -241,11 +249,11 @@ public EnumStringEnum getEnumString() { @JsonProperty(JSON_PROPERTY_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumString(EnumStringEnum enumString) { + public void setEnumString(@jakarta.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; } - public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public EnumTest enumStringRequired(@jakarta.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; return this; @@ -267,11 +275,11 @@ public EnumStringRequiredEnum getEnumStringRequired() { @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public void setEnumStringRequired(@jakarta.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@jakarta.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; @@ -293,11 +301,11 @@ public EnumIntegerEnum getEnumInteger() { @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumInteger(EnumIntegerEnum enumInteger) { + public void setEnumInteger(@jakarta.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } - public EnumTest enumNumber(EnumNumberEnum enumNumber) { + public EnumTest enumNumber(@jakarta.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; return this; @@ -319,11 +327,11 @@ public EnumNumberEnum getEnumNumber() { @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumNumber(EnumNumberEnum enumNumber) { + public void setEnumNumber(@jakarta.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } - public EnumTest outerEnum(OuterEnum outerEnum) { + public EnumTest outerEnum(@jakarta.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = JsonNullable.of(outerEnum); return this; @@ -353,11 +361,11 @@ public void setOuterEnum_JsonNullable(JsonNullable outerEnum) { this.outerEnum = outerEnum; } - public void setOuterEnum(OuterEnum outerEnum) { + public void setOuterEnum(@jakarta.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = JsonNullable.of(outerEnum); } - public EnumTest outerEnumInteger(OuterEnumInteger outerEnumInteger) { + public EnumTest outerEnumInteger(@jakarta.annotation.Nullable OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; return this; @@ -379,11 +387,11 @@ public OuterEnumInteger getOuterEnumInteger() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnumInteger(OuterEnumInteger outerEnumInteger) { + public void setOuterEnumInteger(@jakarta.annotation.Nullable OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; } - public EnumTest outerEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) { + public EnumTest outerEnumDefaultValue(@jakarta.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; return this; @@ -405,11 +413,11 @@ public OuterEnumDefaultValue getOuterEnumDefaultValue() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) { + public void setOuterEnumDefaultValue(@jakarta.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; } - public EnumTest outerEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { + public EnumTest outerEnumIntegerDefaultValue(@jakarta.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; return this; @@ -431,7 +439,7 @@ public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { + public void setOuterEnumIntegerDefaultValue(@jakarta.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java index 5fce36756e7d..92d5ea5c6c86 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java @@ -38,15 +38,17 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FakeBigDecimalMap200Response { public static final String JSON_PROPERTY_SOME_ID = "someId"; + @jakarta.annotation.Nullable private BigDecimal someId; public static final String JSON_PROPERTY_SOME_MAP = "someMap"; + @jakarta.annotation.Nullable private Map someMap; public FakeBigDecimalMap200Response() { } - public FakeBigDecimalMap200Response someId(BigDecimal someId) { + public FakeBigDecimalMap200Response someId(@jakarta.annotation.Nullable BigDecimal someId) { this.someId = someId; return this; @@ -68,11 +70,11 @@ public BigDecimal getSomeId() { @JsonProperty(JSON_PROPERTY_SOME_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSomeId(BigDecimal someId) { + public void setSomeId(@jakarta.annotation.Nullable BigDecimal someId) { this.someId = someId; } - public FakeBigDecimalMap200Response someMap(Map someMap) { + public FakeBigDecimalMap200Response someMap(@jakarta.annotation.Nullable Map someMap) { this.someMap = someMap; return this; @@ -102,7 +104,7 @@ public Map getSomeMap() { @JsonProperty(JSON_PROPERTY_SOME_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSomeMap(Map someMap) { + public void setSomeMap(@jakarta.annotation.Nullable Map someMap) { this.someMap = someMap; } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 59160aa69842..18c1f4631fea 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -38,15 +38,17 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; + @jakarta.annotation.Nullable private ModelFile _file; public static final String JSON_PROPERTY_FILES = "files"; + @jakarta.annotation.Nullable private List files; public FileSchemaTestClass() { } - public FileSchemaTestClass _file(ModelFile _file) { + public FileSchemaTestClass _file(@jakarta.annotation.Nullable ModelFile _file) { this._file = _file; return this; @@ -68,11 +70,11 @@ public ModelFile getFile() { @JsonProperty(JSON_PROPERTY_FILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFile(ModelFile _file) { + public void setFile(@jakarta.annotation.Nullable ModelFile _file) { this._file = _file; } - public FileSchemaTestClass files(List files) { + public FileSchemaTestClass files(@jakarta.annotation.Nullable List files) { this.files = files; return this; @@ -102,7 +104,7 @@ public List getFiles() { @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFiles(List files) { + public void setFiles(@jakarta.annotation.Nullable List files) { this.files = files; } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Foo.java index bd6c27fff034..8abd7d7aad89 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Foo.java @@ -33,12 +33,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Foo { public static final String JSON_PROPERTY_BAR = "bar"; + @jakarta.annotation.Nullable private String bar = "bar"; public Foo() { } - public Foo bar(String bar) { + public Foo bar(@jakarta.annotation.Nullable String bar) { this.bar = bar; return this; @@ -60,7 +61,7 @@ public String getBar() { @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBar(String bar) { + public void setBar(@jakarta.annotation.Nullable String bar) { this.bar = bar; } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index c28ff99fb67d..7b225a8549ed 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -35,12 +35,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FooGetDefaultResponse { public static final String JSON_PROPERTY_STRING = "string"; + @jakarta.annotation.Nullable private Foo string; public FooGetDefaultResponse() { } - public FooGetDefaultResponse string(Foo string) { + public FooGetDefaultResponse string(@jakarta.annotation.Nullable Foo string) { this.string = string; return this; @@ -62,7 +63,7 @@ public Foo getString() { @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setString(Foo string) { + public void setString(@jakarta.annotation.Nullable Foo string) { this.string = string; } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/FormatTest.java index 38d8ed965dfb..7e6f82f78579 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/FormatTest.java @@ -54,57 +54,73 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; + @jakarta.annotation.Nullable private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; + @jakarta.annotation.Nullable private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; + @jakarta.annotation.Nullable private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; + @jakarta.annotation.Nonnull private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; + @jakarta.annotation.Nullable private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; + @jakarta.annotation.Nullable private Double _double; public static final String JSON_PROPERTY_DECIMAL = "decimal"; + @jakarta.annotation.Nullable private BigDecimal decimal; public static final String JSON_PROPERTY_STRING = "string"; + @jakarta.annotation.Nullable private String string; public static final String JSON_PROPERTY_BYTE = "byte"; + @jakarta.annotation.Nonnull private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; + @jakarta.annotation.Nullable private File binary; public static final String JSON_PROPERTY_DATE = "date"; + @jakarta.annotation.Nonnull private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; + @jakarta.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; + @jakarta.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; + @jakarta.annotation.Nonnull private String password; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS = "pattern_with_digits"; + @jakarta.annotation.Nullable private String patternWithDigits; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER = "pattern_with_digits_and_delimiter"; + @jakarta.annotation.Nullable private String patternWithDigitsAndDelimiter; public FormatTest() { } - public FormatTest integer(Integer integer) { + public FormatTest integer(@jakarta.annotation.Nullable Integer integer) { this.integer = integer; return this; @@ -128,11 +144,11 @@ public Integer getInteger() { @JsonProperty(JSON_PROPERTY_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInteger(Integer integer) { + public void setInteger(@jakarta.annotation.Nullable Integer integer) { this.integer = integer; } - public FormatTest int32(Integer int32) { + public FormatTest int32(@jakarta.annotation.Nullable Integer int32) { this.int32 = int32; return this; @@ -156,11 +172,11 @@ public Integer getInt32() { @JsonProperty(JSON_PROPERTY_INT32) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInt32(Integer int32) { + public void setInt32(@jakarta.annotation.Nullable Integer int32) { this.int32 = int32; } - public FormatTest int64(Long int64) { + public FormatTest int64(@jakarta.annotation.Nullable Long int64) { this.int64 = int64; return this; @@ -182,11 +198,11 @@ public Long getInt64() { @JsonProperty(JSON_PROPERTY_INT64) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInt64(Long int64) { + public void setInt64(@jakarta.annotation.Nullable Long int64) { this.int64 = int64; } - public FormatTest number(BigDecimal number) { + public FormatTest number(@jakarta.annotation.Nonnull BigDecimal number) { this.number = number; return this; @@ -210,11 +226,11 @@ public BigDecimal getNumber() { @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNumber(BigDecimal number) { + public void setNumber(@jakarta.annotation.Nonnull BigDecimal number) { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@jakarta.annotation.Nullable Float _float) { this._float = _float; return this; @@ -238,11 +254,11 @@ public Float getFloat() { @JsonProperty(JSON_PROPERTY_FLOAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFloat(Float _float) { + public void setFloat(@jakarta.annotation.Nullable Float _float) { this._float = _float; } - public FormatTest _double(Double _double) { + public FormatTest _double(@jakarta.annotation.Nullable Double _double) { this._double = _double; return this; @@ -266,11 +282,11 @@ public Double getDouble() { @JsonProperty(JSON_PROPERTY_DOUBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDouble(Double _double) { + public void setDouble(@jakarta.annotation.Nullable Double _double) { this._double = _double; } - public FormatTest decimal(BigDecimal decimal) { + public FormatTest decimal(@jakarta.annotation.Nullable BigDecimal decimal) { this.decimal = decimal; return this; @@ -292,11 +308,11 @@ public BigDecimal getDecimal() { @JsonProperty(JSON_PROPERTY_DECIMAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDecimal(BigDecimal decimal) { + public void setDecimal(@jakarta.annotation.Nullable BigDecimal decimal) { this.decimal = decimal; } - public FormatTest string(String string) { + public FormatTest string(@jakarta.annotation.Nullable String string) { this.string = string; return this; @@ -318,11 +334,11 @@ public String getString() { @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setString(String string) { + public void setString(@jakarta.annotation.Nullable String string) { this.string = string; } - public FormatTest _byte(byte[] _byte) { + public FormatTest _byte(@jakarta.annotation.Nonnull byte[] _byte) { this._byte = _byte; return this; @@ -344,11 +360,11 @@ public byte[] getByte() { @JsonProperty(JSON_PROPERTY_BYTE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setByte(byte[] _byte) { + public void setByte(@jakarta.annotation.Nonnull byte[] _byte) { this._byte = _byte; } - public FormatTest binary(File binary) { + public FormatTest binary(@jakarta.annotation.Nullable File binary) { this.binary = binary; return this; @@ -370,11 +386,11 @@ public File getBinary() { @JsonProperty(JSON_PROPERTY_BINARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBinary(File binary) { + public void setBinary(@jakarta.annotation.Nullable File binary) { this.binary = binary; } - public FormatTest date(LocalDate date) { + public FormatTest date(@jakarta.annotation.Nonnull LocalDate date) { this.date = date; return this; @@ -396,11 +412,11 @@ public LocalDate getDate() { @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDate(LocalDate date) { + public void setDate(@jakarta.annotation.Nonnull LocalDate date) { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@jakarta.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; @@ -422,11 +438,11 @@ public OffsetDateTime getDateTime() { @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@jakarta.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public FormatTest uuid(UUID uuid) { + public FormatTest uuid(@jakarta.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; @@ -448,11 +464,11 @@ public UUID getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(UUID uuid) { + public void setUuid(@jakarta.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public FormatTest password(String password) { + public FormatTest password(@jakarta.annotation.Nonnull String password) { this.password = password; return this; @@ -474,11 +490,11 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPassword(String password) { + public void setPassword(@jakarta.annotation.Nonnull String password) { this.password = password; } - public FormatTest patternWithDigits(String patternWithDigits) { + public FormatTest patternWithDigits(@jakarta.annotation.Nullable String patternWithDigits) { this.patternWithDigits = patternWithDigits; return this; @@ -500,11 +516,11 @@ public String getPatternWithDigits() { @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPatternWithDigits(String patternWithDigits) { + public void setPatternWithDigits(@jakarta.annotation.Nullable String patternWithDigits) { this.patternWithDigits = patternWithDigits; } - public FormatTest patternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) { + public FormatTest patternWithDigitsAndDelimiter(@jakarta.annotation.Nullable String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; return this; @@ -526,7 +542,7 @@ public String getPatternWithDigitsAndDelimiter() { @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPatternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) { + public void setPatternWithDigitsAndDelimiter(@jakarta.annotation.Nullable String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index d437b86a9a2d..61321e03cf7c 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -35,9 +35,11 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; + @jakarta.annotation.Nullable private String bar; public static final String JSON_PROPERTY_FOO = "foo"; + @jakarta.annotation.Nullable private String foo; public HasOnlyReadOnly() { diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/HealthCheckResult.java index c7f319d3e6ba..acdd40596272 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -38,12 +38,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class HealthCheckResult { public static final String JSON_PROPERTY_NULLABLE_MESSAGE = "NullableMessage"; + @jakarta.annotation.Nullable private JsonNullable nullableMessage = JsonNullable.undefined(); public HealthCheckResult() { } - public HealthCheckResult nullableMessage(String nullableMessage) { + public HealthCheckResult nullableMessage(@jakarta.annotation.Nullable String nullableMessage) { this.nullableMessage = JsonNullable.of(nullableMessage); return this; @@ -73,7 +74,7 @@ public void setNullableMessage_JsonNullable(JsonNullable nullableMessage this.nullableMessage = nullableMessage; } - public void setNullableMessage(String nullableMessage) { + public void setNullableMessage(@jakarta.annotation.Nullable String nullableMessage) { this.nullableMessage = JsonNullable.of(nullableMessage); } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/MapTest.java index a0ffe52c634a..fca3df369854 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/MapTest.java @@ -38,6 +38,7 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; + @jakarta.annotation.Nullable private Map> mapMapOfString; /** @@ -76,18 +77,21 @@ public static InnerEnum fromValue(String value) { } public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; + @jakarta.annotation.Nullable private Map mapOfEnumString; public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; + @jakarta.annotation.Nullable private Map directMap; public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; + @jakarta.annotation.Nullable private Map indirectMap; public MapTest() { } - public MapTest mapMapOfString(Map> mapMapOfString) { + public MapTest mapMapOfString(@jakarta.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; return this; @@ -117,11 +121,11 @@ public Map> getMapMapOfString() { @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapMapOfString(Map> mapMapOfString) { + public void setMapMapOfString(@jakarta.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } - public MapTest mapOfEnumString(Map mapOfEnumString) { + public MapTest mapOfEnumString(@jakarta.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; return this; @@ -151,11 +155,11 @@ public Map getMapOfEnumString() { @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapOfEnumString(Map mapOfEnumString) { + public void setMapOfEnumString(@jakarta.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } - public MapTest directMap(Map directMap) { + public MapTest directMap(@jakarta.annotation.Nullable Map directMap) { this.directMap = directMap; return this; @@ -185,11 +189,11 @@ public Map getDirectMap() { @JsonProperty(JSON_PROPERTY_DIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDirectMap(Map directMap) { + public void setDirectMap(@jakarta.annotation.Nullable Map directMap) { this.directMap = directMap; } - public MapTest indirectMap(Map indirectMap) { + public MapTest indirectMap(@jakarta.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; return this; @@ -219,7 +223,7 @@ public Map getIndirectMap() { @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIndirectMap(Map indirectMap) { + public void setIndirectMap(@jakarta.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 27be6b570b65..da8baeb558f2 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -40,18 +40,21 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; + @jakarta.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; + @jakarta.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; + @jakarta.annotation.Nullable private Map map; public MixedPropertiesAndAdditionalPropertiesClass() { } - public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClass uuid(@jakarta.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; @@ -73,11 +76,11 @@ public UUID getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(UUID uuid) { + public void setUuid(@jakarta.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + public MixedPropertiesAndAdditionalPropertiesClass dateTime(@jakarta.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; @@ -99,11 +102,11 @@ public OffsetDateTime getDateTime() { @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@jakarta.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + public MixedPropertiesAndAdditionalPropertiesClass map(@jakarta.annotation.Nullable Map map) { this.map = map; return this; @@ -133,7 +136,7 @@ public Map getMap() { @JsonProperty(JSON_PROPERTY_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMap(Map map) { + public void setMap(@jakarta.annotation.Nullable Map map) { this.map = map; } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Model200Response.java index 5838bb369e36..28760f283def 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Model200Response.java @@ -36,15 +36,17 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; + @jakarta.annotation.Nullable private String propertyClass; public Model200Response() { } - public Model200Response name(Integer name) { + public Model200Response name(@jakarta.annotation.Nullable Integer name) { this.name = name; return this; @@ -66,11 +68,11 @@ public Integer getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(Integer name) { + public void setName(@jakarta.annotation.Nullable Integer name) { this.name = name; } - public Model200Response propertyClass(String propertyClass) { + public Model200Response propertyClass(@jakarta.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; @@ -92,7 +94,7 @@ public String getPropertyClass() { @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@jakarta.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 74911a42f8a4..16c1d056b3a5 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -36,18 +36,21 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; + @jakarta.annotation.Nullable private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nullable private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; + @jakarta.annotation.Nullable private String message; public ModelApiResponse() { } - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@jakarta.annotation.Nullable Integer code) { this.code = code; return this; @@ -69,11 +72,11 @@ public Integer getCode() { @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCode(Integer code) { + public void setCode(@jakarta.annotation.Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@jakarta.annotation.Nullable String type) { this.type = type; return this; @@ -95,11 +98,11 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@jakarta.annotation.Nullable String message) { this.message = message; return this; @@ -121,7 +124,7 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ModelFile.java index cd66dca9969d..d9865267d345 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ModelFile.java @@ -35,12 +35,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelFile { public static final String JSON_PROPERTY_SOURCE_U_R_I = "sourceURI"; + @jakarta.annotation.Nullable private String sourceURI; public ModelFile() { } - public ModelFile sourceURI(String sourceURI) { + public ModelFile sourceURI(@jakarta.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; return this; @@ -62,7 +63,7 @@ public String getSourceURI() { @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSourceURI(String sourceURI) { + public void setSourceURI(@jakarta.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ModelList.java index 00a982b6ffd5..190af757e7c4 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ModelList.java @@ -34,12 +34,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelList { public static final String JSON_PROPERTY_123LIST = "123-list"; + @jakarta.annotation.Nullable private String _123list; public ModelList() { } - public ModelList _123list(String _123list) { + public ModelList _123list(@jakarta.annotation.Nullable String _123list) { this._123list = _123list; return this; @@ -61,7 +62,7 @@ public String get123list() { @JsonProperty(JSON_PROPERTY_123LIST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void set123list(String _123list) { + public void set123list(@jakarta.annotation.Nullable String _123list) { this._123list = _123list; } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ModelReturn.java index 68a6787ac70d..c2677eb4fc9c 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -35,12 +35,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; + @jakarta.annotation.Nullable private Integer _return; public ModelReturn() { } - public ModelReturn _return(Integer _return) { + public ModelReturn _return(@jakarta.annotation.Nullable Integer _return) { this._return = _return; return this; @@ -62,7 +63,7 @@ public Integer getReturn() { @JsonProperty(JSON_PROPERTY_RETURN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setReturn(Integer _return) { + public void setReturn(@jakarta.annotation.Nullable Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Name.java index 4db4bd4cda48..8c3cc6328304 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Name.java @@ -37,15 +37,19 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Name { public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nonnull private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; + @jakarta.annotation.Nullable private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; + @jakarta.annotation.Nullable private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; + @jakarta.annotation.Nullable private Integer _123number; public Name() { @@ -63,7 +67,7 @@ public Name( this._123number = _123number; } - public Name name(Integer name) { + public Name name(@jakarta.annotation.Nonnull Integer name) { this.name = name; return this; @@ -85,7 +89,7 @@ public Integer getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(Integer name) { + public void setName(@jakarta.annotation.Nonnull Integer name) { this.name = name; } @@ -104,7 +108,7 @@ public Integer getSnakeCase() { - public Name property(String property) { + public Name property(@jakarta.annotation.Nullable String property) { this.property = property; return this; @@ -126,7 +130,7 @@ public String getProperty() { @JsonProperty(JSON_PROPERTY_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProperty(String property) { + public void setProperty(@jakarta.annotation.Nullable String property) { this.property = property; } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/NullableClass.java index 5c1b49b25f45..d01b12a214fc 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/NullableClass.java @@ -56,46 +56,58 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class NullableClass extends HashMap { public static final String JSON_PROPERTY_INTEGER_PROP = "integer_prop"; + @jakarta.annotation.Nullable private JsonNullable integerProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_NUMBER_PROP = "number_prop"; + @jakarta.annotation.Nullable private JsonNullable numberProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_BOOLEAN_PROP = "boolean_prop"; + @jakarta.annotation.Nullable private JsonNullable booleanProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_STRING_PROP = "string_prop"; + @jakarta.annotation.Nullable private JsonNullable stringProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_DATE_PROP = "date_prop"; + @jakarta.annotation.Nullable private JsonNullable dateProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_DATETIME_PROP = "datetime_prop"; + @jakarta.annotation.Nullable private JsonNullable datetimeProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_ARRAY_NULLABLE_PROP = "array_nullable_prop"; + @jakarta.annotation.Nullable private JsonNullable> arrayNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP = "array_and_items_nullable_prop"; + @jakarta.annotation.Nullable private JsonNullable> arrayAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_ITEMS_NULLABLE = "array_items_nullable"; + @jakarta.annotation.Nullable private List arrayItemsNullable; public static final String JSON_PROPERTY_OBJECT_NULLABLE_PROP = "object_nullable_prop"; + @jakarta.annotation.Nullable private JsonNullable> objectNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP = "object_and_items_nullable_prop"; + @jakarta.annotation.Nullable private JsonNullable> objectAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_OBJECT_ITEMS_NULLABLE = "object_items_nullable"; + @jakarta.annotation.Nullable private Map objectItemsNullable; public NullableClass() { } - public NullableClass integerProp(Integer integerProp) { + public NullableClass integerProp(@jakarta.annotation.Nullable Integer integerProp) { this.integerProp = JsonNullable.of(integerProp); return this; @@ -125,11 +137,11 @@ public void setIntegerProp_JsonNullable(JsonNullable integerProp) { this.integerProp = integerProp; } - public void setIntegerProp(Integer integerProp) { + public void setIntegerProp(@jakarta.annotation.Nullable Integer integerProp) { this.integerProp = JsonNullable.of(integerProp); } - public NullableClass numberProp(BigDecimal numberProp) { + public NullableClass numberProp(@jakarta.annotation.Nullable BigDecimal numberProp) { this.numberProp = JsonNullable.of(numberProp); return this; @@ -159,11 +171,11 @@ public void setNumberProp_JsonNullable(JsonNullable numberProp) { this.numberProp = numberProp; } - public void setNumberProp(BigDecimal numberProp) { + public void setNumberProp(@jakarta.annotation.Nullable BigDecimal numberProp) { this.numberProp = JsonNullable.of(numberProp); } - public NullableClass booleanProp(Boolean booleanProp) { + public NullableClass booleanProp(@jakarta.annotation.Nullable Boolean booleanProp) { this.booleanProp = JsonNullable.of(booleanProp); return this; @@ -193,11 +205,11 @@ public void setBooleanProp_JsonNullable(JsonNullable booleanProp) { this.booleanProp = booleanProp; } - public void setBooleanProp(Boolean booleanProp) { + public void setBooleanProp(@jakarta.annotation.Nullable Boolean booleanProp) { this.booleanProp = JsonNullable.of(booleanProp); } - public NullableClass stringProp(String stringProp) { + public NullableClass stringProp(@jakarta.annotation.Nullable String stringProp) { this.stringProp = JsonNullable.of(stringProp); return this; @@ -227,11 +239,11 @@ public void setStringProp_JsonNullable(JsonNullable stringProp) { this.stringProp = stringProp; } - public void setStringProp(String stringProp) { + public void setStringProp(@jakarta.annotation.Nullable String stringProp) { this.stringProp = JsonNullable.of(stringProp); } - public NullableClass dateProp(LocalDate dateProp) { + public NullableClass dateProp(@jakarta.annotation.Nullable LocalDate dateProp) { this.dateProp = JsonNullable.of(dateProp); return this; @@ -261,11 +273,11 @@ public void setDateProp_JsonNullable(JsonNullable dateProp) { this.dateProp = dateProp; } - public void setDateProp(LocalDate dateProp) { + public void setDateProp(@jakarta.annotation.Nullable LocalDate dateProp) { this.dateProp = JsonNullable.of(dateProp); } - public NullableClass datetimeProp(OffsetDateTime datetimeProp) { + public NullableClass datetimeProp(@jakarta.annotation.Nullable OffsetDateTime datetimeProp) { this.datetimeProp = JsonNullable.of(datetimeProp); return this; @@ -295,11 +307,11 @@ public void setDatetimeProp_JsonNullable(JsonNullable datetimePr this.datetimeProp = datetimeProp; } - public void setDatetimeProp(OffsetDateTime datetimeProp) { + public void setDatetimeProp(@jakarta.annotation.Nullable OffsetDateTime datetimeProp) { this.datetimeProp = JsonNullable.of(datetimeProp); } - public NullableClass arrayNullableProp(List arrayNullableProp) { + public NullableClass arrayNullableProp(@jakarta.annotation.Nullable List arrayNullableProp) { this.arrayNullableProp = JsonNullable.>of(arrayNullableProp); return this; @@ -341,11 +353,11 @@ public void setArrayNullableProp_JsonNullable(JsonNullable> arrayNu this.arrayNullableProp = arrayNullableProp; } - public void setArrayNullableProp(List arrayNullableProp) { + public void setArrayNullableProp(@jakarta.annotation.Nullable List arrayNullableProp) { this.arrayNullableProp = JsonNullable.>of(arrayNullableProp); } - public NullableClass arrayAndItemsNullableProp(List arrayAndItemsNullableProp) { + public NullableClass arrayAndItemsNullableProp(@jakarta.annotation.Nullable List arrayAndItemsNullableProp) { this.arrayAndItemsNullableProp = JsonNullable.>of(arrayAndItemsNullableProp); return this; @@ -387,11 +399,11 @@ public void setArrayAndItemsNullableProp_JsonNullable(JsonNullable> this.arrayAndItemsNullableProp = arrayAndItemsNullableProp; } - public void setArrayAndItemsNullableProp(List arrayAndItemsNullableProp) { + public void setArrayAndItemsNullableProp(@jakarta.annotation.Nullable List arrayAndItemsNullableProp) { this.arrayAndItemsNullableProp = JsonNullable.>of(arrayAndItemsNullableProp); } - public NullableClass arrayItemsNullable(List arrayItemsNullable) { + public NullableClass arrayItemsNullable(@jakarta.annotation.Nullable List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; return this; @@ -421,11 +433,11 @@ public List getArrayItemsNullable() { @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayItemsNullable(List arrayItemsNullable) { + public void setArrayItemsNullable(@jakarta.annotation.Nullable List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; } - public NullableClass objectNullableProp(Map objectNullableProp) { + public NullableClass objectNullableProp(@jakarta.annotation.Nullable Map objectNullableProp) { this.objectNullableProp = JsonNullable.>of(objectNullableProp); return this; @@ -467,11 +479,11 @@ public void setObjectNullableProp_JsonNullable(JsonNullable> this.objectNullableProp = objectNullableProp; } - public void setObjectNullableProp(Map objectNullableProp) { + public void setObjectNullableProp(@jakarta.annotation.Nullable Map objectNullableProp) { this.objectNullableProp = JsonNullable.>of(objectNullableProp); } - public NullableClass objectAndItemsNullableProp(Map objectAndItemsNullableProp) { + public NullableClass objectAndItemsNullableProp(@jakarta.annotation.Nullable Map objectAndItemsNullableProp) { this.objectAndItemsNullableProp = JsonNullable.>of(objectAndItemsNullableProp); return this; @@ -513,11 +525,11 @@ public void setObjectAndItemsNullableProp_JsonNullable(JsonNullable objectAndItemsNullableProp) { + public void setObjectAndItemsNullableProp(@jakarta.annotation.Nullable Map objectAndItemsNullableProp) { this.objectAndItemsNullableProp = JsonNullable.>of(objectAndItemsNullableProp); } - public NullableClass objectItemsNullable(Map objectItemsNullable) { + public NullableClass objectItemsNullable(@jakarta.annotation.Nullable Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; return this; @@ -547,7 +559,7 @@ public Map getObjectItemsNullable() { @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setObjectItemsNullable(Map objectItemsNullable) { + public void setObjectItemsNullable(@jakarta.annotation.Nullable Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/NumberOnly.java index 548a334a2f1f..2a77e6f467ed 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -34,12 +34,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; + @jakarta.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } - public NumberOnly justNumber(BigDecimal justNumber) { + public NumberOnly justNumber(@jakarta.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; @@ -61,7 +62,7 @@ public BigDecimal getJustNumber() { @JsonProperty(JSON_PROPERTY_JUST_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJustNumber(BigDecimal justNumber) { + public void setJustNumber(@jakarta.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index 8d9c62cf5e7b..e9f0eff11b14 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -41,21 +41,25 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ObjectWithDeprecatedFields { public static final String JSON_PROPERTY_UUID = "uuid"; + @jakarta.annotation.Nullable private String uuid; public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nullable private BigDecimal id; public static final String JSON_PROPERTY_DEPRECATED_REF = "deprecatedRef"; + @jakarta.annotation.Nullable private DeprecatedObject deprecatedRef; public static final String JSON_PROPERTY_BARS = "bars"; + @jakarta.annotation.Nullable private List bars; public ObjectWithDeprecatedFields() { } - public ObjectWithDeprecatedFields uuid(String uuid) { + public ObjectWithDeprecatedFields uuid(@jakarta.annotation.Nullable String uuid) { this.uuid = uuid; return this; @@ -77,11 +81,11 @@ public String getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(String uuid) { + public void setUuid(@jakarta.annotation.Nullable String uuid) { this.uuid = uuid; } - public ObjectWithDeprecatedFields id(BigDecimal id) { + public ObjectWithDeprecatedFields id(@jakarta.annotation.Nullable BigDecimal id) { this.id = id; return this; @@ -105,11 +109,11 @@ public BigDecimal getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(BigDecimal id) { + public void setId(@jakarta.annotation.Nullable BigDecimal id) { this.id = id; } - public ObjectWithDeprecatedFields deprecatedRef(DeprecatedObject deprecatedRef) { + public ObjectWithDeprecatedFields deprecatedRef(@jakarta.annotation.Nullable DeprecatedObject deprecatedRef) { this.deprecatedRef = deprecatedRef; return this; @@ -133,11 +137,11 @@ public DeprecatedObject getDeprecatedRef() { @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeprecatedRef(DeprecatedObject deprecatedRef) { + public void setDeprecatedRef(@jakarta.annotation.Nullable DeprecatedObject deprecatedRef) { this.deprecatedRef = deprecatedRef; } - public ObjectWithDeprecatedFields bars(List bars) { + public ObjectWithDeprecatedFields bars(@jakarta.annotation.Nullable List bars) { this.bars = bars; return this; @@ -169,7 +173,7 @@ public List getBars() { @JsonProperty(JSON_PROPERTY_BARS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBars(List bars) { + public void setBars(@jakarta.annotation.Nullable List bars) { this.bars = bars; } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Order.java index 4dcda7a6edc1..9bcfdf901431 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Order.java @@ -39,15 +39,19 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Order { public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; + @jakarta.annotation.Nullable private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; + @jakarta.annotation.Nullable private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; + @jakarta.annotation.Nullable private OffsetDateTime shipDate; /** @@ -88,15 +92,17 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @jakarta.annotation.Nullable private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; + @jakarta.annotation.Nullable private Boolean complete = false; public Order() { } - public Order id(Long id) { + public Order id(@jakarta.annotation.Nullable Long id) { this.id = id; return this; @@ -118,11 +124,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@jakarta.annotation.Nullable Long petId) { this.petId = petId; return this; @@ -144,11 +150,11 @@ public Long getPetId() { @JsonProperty(JSON_PROPERTY_PET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPetId(Long petId) { + public void setPetId(@jakarta.annotation.Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@jakarta.annotation.Nullable Integer quantity) { this.quantity = quantity; return this; @@ -170,11 +176,11 @@ public Integer getQuantity() { @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setQuantity(Integer quantity) { + public void setQuantity(@jakarta.annotation.Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@jakarta.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; @@ -196,11 +202,11 @@ public OffsetDateTime getShipDate() { @JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@jakarta.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -222,11 +228,11 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; } - public Order complete(Boolean complete) { + public Order complete(@jakarta.annotation.Nullable Boolean complete) { this.complete = complete; return this; @@ -248,7 +254,7 @@ public Boolean getComplete() { @JsonProperty(JSON_PROPERTY_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setComplete(Boolean complete) { + public void setComplete(@jakarta.annotation.Nullable Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/OuterComposite.java index 6604a61c00c6..456fbc28b191 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -36,18 +36,21 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; + @jakarta.annotation.Nullable private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; + @jakarta.annotation.Nullable private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; + @jakarta.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } - public OuterComposite myNumber(BigDecimal myNumber) { + public OuterComposite myNumber(@jakarta.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; @@ -69,11 +72,11 @@ public BigDecimal getMyNumber() { @JsonProperty(JSON_PROPERTY_MY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyNumber(BigDecimal myNumber) { + public void setMyNumber(@jakarta.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; } - public OuterComposite myString(String myString) { + public OuterComposite myString(@jakarta.annotation.Nullable String myString) { this.myString = myString; return this; @@ -95,11 +98,11 @@ public String getMyString() { @JsonProperty(JSON_PROPERTY_MY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyString(String myString) { + public void setMyString(@jakarta.annotation.Nullable String myString) { this.myString = myString; } - public OuterComposite myBoolean(Boolean myBoolean) { + public OuterComposite myBoolean(@jakarta.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; return this; @@ -121,7 +124,7 @@ public Boolean getMyBoolean() { @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyBoolean(Boolean myBoolean) { + public void setMyBoolean(@jakarta.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java index 747591652006..9ea0ce59ca8b 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java @@ -34,12 +34,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class OuterObjectWithEnumProperty { public static final String JSON_PROPERTY_VALUE = "value"; + @jakarta.annotation.Nonnull private OuterEnumInteger value; public OuterObjectWithEnumProperty() { } - public OuterObjectWithEnumProperty value(OuterEnumInteger value) { + public OuterObjectWithEnumProperty value(@jakarta.annotation.Nonnull OuterEnumInteger value) { this.value = value; return this; @@ -61,7 +62,7 @@ public OuterEnumInteger getValue() { @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setValue(OuterEnumInteger value) { + public void setValue(@jakarta.annotation.Nonnull OuterEnumInteger value) { this.value = value; } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ParentWithNullable.java index 5a51466a755c..b1ced7597029 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -83,15 +83,17 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nullable protected TypeEnum type; public static final String JSON_PROPERTY_NULLABLE_PROPERTY = "nullableProperty"; + @jakarta.annotation.Nullable protected JsonNullable nullableProperty = JsonNullable.undefined(); public ParentWithNullable() { } - public ParentWithNullable type(TypeEnum type) { + public ParentWithNullable type(@jakarta.annotation.Nullable TypeEnum type) { this.type = type; return this; @@ -113,11 +115,11 @@ public TypeEnum getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(TypeEnum type) { + public void setType(@jakarta.annotation.Nullable TypeEnum type) { this.type = type; } - public ParentWithNullable nullableProperty(String nullableProperty) { + public ParentWithNullable nullableProperty(@jakarta.annotation.Nullable String nullableProperty) { this.nullableProperty = JsonNullable.of(nullableProperty); return this; @@ -147,7 +149,7 @@ public void setNullableProperty_JsonNullable(JsonNullable nullableProper this.nullableProperty = nullableProperty; } - public void setNullableProperty(String nullableProperty) { + public void setNullableProperty(@jakarta.annotation.Nullable String nullableProperty) { this.nullableProperty = JsonNullable.of(nullableProperty); } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Pet.java index 4ac18a8d00fe..8bfa6899dcaf 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Pet.java @@ -46,18 +46,23 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Pet { public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; + @jakarta.annotation.Nullable private Category category; public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; + @jakarta.annotation.Nonnull private Set photoUrls; public static final String JSON_PROPERTY_TAGS = "tags"; + @jakarta.annotation.Nullable private List tags; /** @@ -98,12 +103,13 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @jakarta.annotation.Nullable private StatusEnum status; public Pet() { } - public Pet id(Long id) { + public Pet id(@jakarta.annotation.Nullable Long id) { this.id = id; return this; @@ -125,11 +131,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@jakarta.annotation.Nullable Category category) { this.category = category; return this; @@ -151,11 +157,11 @@ public Category getCategory() { @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCategory(Category category) { + public void setCategory(@jakarta.annotation.Nullable Category category) { this.category = category; } - public Pet name(String name) { + public Pet name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; @@ -177,11 +183,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public Pet photoUrls(Set photoUrls) { + public Pet photoUrls(@jakarta.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; return this; @@ -212,11 +218,11 @@ public Set getPhotoUrls() { @JsonDeserialize(as = LinkedHashSet.class) @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPhotoUrls(Set photoUrls) { + public void setPhotoUrls(@jakarta.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; } - public Pet tags(List tags) { + public Pet tags(@jakarta.annotation.Nullable List tags) { this.tags = tags; return this; @@ -246,11 +252,11 @@ public List getTags() { @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTags(List tags) { + public void setTags(@jakarta.annotation.Nullable List tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -272,7 +278,7 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 98b18ead9c97..d6fe50c5d1a3 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -34,9 +34,11 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; + @jakarta.annotation.Nullable private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; + @jakarta.annotation.Nullable private String baz; public ReadOnlyFirst() { @@ -67,7 +69,7 @@ public String getBar() { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@jakarta.annotation.Nullable String baz) { this.baz = baz; return this; @@ -89,7 +91,7 @@ public String getBaz() { @JsonProperty(JSON_PROPERTY_BAZ) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBaz(String baz) { + public void setBaz(@jakarta.annotation.Nullable String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/SpecialModelName.java index c8e41937f8da..9dd55b167a84 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -34,12 +34,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; + @jakarta.annotation.Nullable private Long $specialPropertyName; public SpecialModelName() { } - public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + public SpecialModelName $specialPropertyName(@jakarta.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; return this; @@ -61,7 +62,7 @@ public SpecialModelName() { @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void set$SpecialPropertyName(Long $specialPropertyName) { + public void set$SpecialPropertyName(@jakarta.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Tag.java index 7de2f7d2205b..7ecb3c549216 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Tag.java @@ -34,15 +34,17 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Tag { public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private String name; public Tag() { } - public Tag id(Long id) { + public Tag id(@jakarta.annotation.Nullable Long id) { this.id = id; return this; @@ -64,11 +66,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@jakarta.annotation.Nullable String name) { this.name = name; return this; @@ -90,7 +92,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index 95a5e62fdeab..4dc93da4cdf9 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -36,13 +36,14 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class TestInlineFreeformAdditionalPropertiesRequest extends HashMap { public static final String JSON_PROPERTY_SOME_PROPERTY = "someProperty"; + @jakarta.annotation.Nullable private String someProperty; public TestInlineFreeformAdditionalPropertiesRequest() { } - public TestInlineFreeformAdditionalPropertiesRequest someProperty(String someProperty) { + public TestInlineFreeformAdditionalPropertiesRequest someProperty(@jakarta.annotation.Nullable String someProperty) { this.someProperty = someProperty; return this; @@ -64,7 +65,7 @@ public String getSomeProperty() { @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSomeProperty(String someProperty) { + public void setSomeProperty(@jakarta.annotation.Nullable String someProperty) { this.someProperty = someProperty; } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/User.java index e8ed38a49c3a..db88a1bf037d 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/User.java @@ -40,33 +40,41 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class User { public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; + @jakarta.annotation.Nullable private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; + @jakarta.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; + @jakarta.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; + @jakarta.annotation.Nullable private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; + @jakarta.annotation.Nullable private String password; public static final String JSON_PROPERTY_PHONE = "phone"; + @jakarta.annotation.Nullable private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; + @jakarta.annotation.Nullable private Integer userStatus; public User() { } - public User id(Long id) { + public User id(@jakarta.annotation.Nullable Long id) { this.id = id; return this; @@ -88,11 +96,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@jakarta.annotation.Nullable String username) { this.username = username; return this; @@ -114,11 +122,11 @@ public String getUsername() { @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsername(String username) { + public void setUsername(@jakarta.annotation.Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@jakarta.annotation.Nullable String firstName) { this.firstName = firstName; return this; @@ -140,11 +148,11 @@ public String getFirstName() { @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFirstName(String firstName) { + public void setFirstName(@jakarta.annotation.Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@jakarta.annotation.Nullable String lastName) { this.lastName = lastName; return this; @@ -166,11 +174,11 @@ public String getLastName() { @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLastName(String lastName) { + public void setLastName(@jakarta.annotation.Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@jakarta.annotation.Nullable String email) { this.email = email; return this; @@ -192,11 +200,11 @@ public String getEmail() { @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEmail(String email) { + public void setEmail(@jakarta.annotation.Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@jakarta.annotation.Nullable String password) { this.password = password; return this; @@ -218,11 +226,11 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPassword(String password) { + public void setPassword(@jakarta.annotation.Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@jakarta.annotation.Nullable String phone) { this.phone = phone; return this; @@ -244,11 +252,11 @@ public String getPhone() { @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPhone(String phone) { + public void setPhone(@jakarta.annotation.Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@jakarta.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; return this; @@ -270,7 +278,7 @@ public Integer getUserStatus() { @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@jakarta.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 4e4028f1a3ef..6f46b26032eb 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -35,15 +35,17 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_PROPERTY = "map_property"; + @jakarta.annotation.Nullable private Map mapProperty = new HashMap<>(); public static final String JSON_PROPERTY_MAP_OF_MAP_PROPERTY = "map_of_map_property"; + @jakarta.annotation.Nullable private Map> mapOfMapProperty = new HashMap<>(); public AdditionalPropertiesClass() { } - public AdditionalPropertiesClass mapProperty(Map mapProperty) { + public AdditionalPropertiesClass mapProperty(@jakarta.annotation.Nullable Map mapProperty) { this.mapProperty = mapProperty; return this; @@ -72,11 +74,11 @@ public Map getMapProperty() { @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapProperty(Map mapProperty) { + public void setMapProperty(@jakarta.annotation.Nullable Map mapProperty) { this.mapProperty = mapProperty; } - public AdditionalPropertiesClass mapOfMapProperty(Map> mapOfMapProperty) { + public AdditionalPropertiesClass mapOfMapProperty(@jakarta.annotation.Nullable Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; return this; @@ -105,7 +107,7 @@ public Map> getMapOfMapProperty() { @JsonProperty(JSON_PROPERTY_MAP_OF_MAP_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapOfMapProperty(Map> mapOfMapProperty) { + public void setMapOfMapProperty(@jakarta.annotation.Nullable Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java index 4d1fcc6fd64e..5ada291fee4d 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java @@ -34,15 +34,17 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AllOfWithSingleRef { public static final String JSON_PROPERTY_USERNAME = "username"; + @jakarta.annotation.Nullable private String username; public static final String JSON_PROPERTY_SINGLE_REF_TYPE = "SingleRefType"; + @jakarta.annotation.Nullable private SingleRefType singleRefType; public AllOfWithSingleRef() { } - public AllOfWithSingleRef username(String username) { + public AllOfWithSingleRef username(@jakarta.annotation.Nullable String username) { this.username = username; return this; @@ -63,11 +65,11 @@ public String getUsername() { @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsername(String username) { + public void setUsername(@jakarta.annotation.Nullable String username) { this.username = username; } - public AllOfWithSingleRef singleRefType(SingleRefType singleRefType) { + public AllOfWithSingleRef singleRefType(@jakarta.annotation.Nullable SingleRefType singleRefType) { this.singleRefType = singleRefType; return this; @@ -88,7 +90,7 @@ public SingleRefType getSingleRefType() { @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSingleRefType(SingleRefType singleRefType) { + public void setSingleRefType(@jakarta.annotation.Nullable SingleRefType singleRefType) { this.singleRefType = singleRefType; } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Animal.java index 112ce06cadeb..244b3f562b7b 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Animal.java @@ -46,15 +46,17 @@ public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; + @jakarta.annotation.Nonnull protected String className; public static final String JSON_PROPERTY_COLOR = "color"; + @jakarta.annotation.Nullable protected String color = "red"; public Animal() { } - public Animal className(String className) { + public Animal className(@jakarta.annotation.Nonnull String className) { this.className = className; return this; @@ -75,11 +77,11 @@ public String getClassName() { @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setClassName(String className) { + public void setClassName(@jakarta.annotation.Nonnull String className) { this.className = className; } - public Animal color(String color) { + public Animal color(@jakarta.annotation.Nullable String color) { this.color = color; return this; @@ -100,7 +102,7 @@ public String getColor() { @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setColor(String color) { + public void setColor(@jakarta.annotation.Nullable String color) { this.color = color; } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 0d43dbaf0ff1..fa42510ba361 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -36,12 +36,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayOfArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; + @jakarta.annotation.Nullable private List> arrayArrayNumber = new ArrayList<>(); public ArrayOfArrayOfNumberOnly() { } - public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + public ArrayOfArrayOfNumberOnly arrayArrayNumber(@jakarta.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; return this; @@ -70,7 +71,7 @@ public List> getArrayArrayNumber() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayNumber(List> arrayArrayNumber) { + public void setArrayArrayNumber(@jakarta.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index bb4585423b2e..3ee50d074cf7 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -36,12 +36,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; + @jakarta.annotation.Nullable private List arrayNumber = new ArrayList<>(); public ArrayOfNumberOnly() { } - public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + public ArrayOfNumberOnly arrayNumber(@jakarta.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; return this; @@ -70,7 +71,7 @@ public List getArrayNumber() { @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayNumber(List arrayNumber) { + public void setArrayNumber(@jakarta.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ArrayTest.java index f0c46243f92b..e408be5bb2f1 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -38,18 +38,21 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; + @jakarta.annotation.Nullable private List arrayOfString = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; + @jakarta.annotation.Nullable private List> arrayArrayOfInteger = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; + @jakarta.annotation.Nullable private List> arrayArrayOfModel = new ArrayList<>(); public ArrayTest() { } - public ArrayTest arrayOfString(List arrayOfString) { + public ArrayTest arrayOfString(@jakarta.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; return this; @@ -78,11 +81,11 @@ public List getArrayOfString() { @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayOfString(List arrayOfString) { + public void setArrayOfString(@jakarta.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; } - public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + public ArrayTest arrayArrayOfInteger(@jakarta.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; return this; @@ -111,11 +114,11 @@ public List> getArrayArrayOfInteger() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { + public void setArrayArrayOfInteger(@jakarta.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } - public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + public ArrayTest arrayArrayOfModel(@jakarta.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; return this; @@ -144,7 +147,7 @@ public List> getArrayArrayOfModel() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayOfModel(List> arrayArrayOfModel) { + public void setArrayArrayOfModel(@jakarta.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Capitalization.java index bceecc154807..c7396f325bd2 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Capitalization.java @@ -37,27 +37,33 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Capitalization { public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; + @jakarta.annotation.Nullable private String smallCamel; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; + @jakarta.annotation.Nullable private String capitalCamel; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; + @jakarta.annotation.Nullable private String smallSnake; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; + @jakarta.annotation.Nullable private String capitalSnake; public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; + @jakarta.annotation.Nullable private String scAETHFlowPoints; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; + @jakarta.annotation.Nullable private String ATT_NAME; public Capitalization() { } - public Capitalization smallCamel(String smallCamel) { + public Capitalization smallCamel(@jakarta.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; return this; @@ -78,11 +84,11 @@ public String getSmallCamel() { @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmallCamel(String smallCamel) { + public void setSmallCamel(@jakarta.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; } - public Capitalization capitalCamel(String capitalCamel) { + public Capitalization capitalCamel(@jakarta.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; return this; @@ -103,11 +109,11 @@ public String getCapitalCamel() { @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCapitalCamel(String capitalCamel) { + public void setCapitalCamel(@jakarta.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; } - public Capitalization smallSnake(String smallSnake) { + public Capitalization smallSnake(@jakarta.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; return this; @@ -128,11 +134,11 @@ public String getSmallSnake() { @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmallSnake(String smallSnake) { + public void setSmallSnake(@jakarta.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; } - public Capitalization capitalSnake(String capitalSnake) { + public Capitalization capitalSnake(@jakarta.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; return this; @@ -153,11 +159,11 @@ public String getCapitalSnake() { @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCapitalSnake(String capitalSnake) { + public void setCapitalSnake(@jakarta.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; } - public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + public Capitalization scAETHFlowPoints(@jakarta.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; return this; @@ -178,11 +184,11 @@ public String getScAETHFlowPoints() { @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setScAETHFlowPoints(String scAETHFlowPoints) { + public void setScAETHFlowPoints(@jakarta.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } - public Capitalization ATT_NAME(String ATT_NAME) { + public Capitalization ATT_NAME(@jakarta.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; return this; @@ -203,7 +209,7 @@ public String getATTNAME() { @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setATTNAME(String ATT_NAME) { + public void setATTNAME(@jakarta.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Cat.java index b5d1e3620c76..a825019e2a8c 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Cat.java @@ -42,13 +42,14 @@ public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; + @jakarta.annotation.Nullable private Boolean declawed; public Cat() { } - public Cat declawed(Boolean declawed) { + public Cat declawed(@jakarta.annotation.Nullable Boolean declawed) { this.declawed = declawed; return this; @@ -69,18 +70,18 @@ public Boolean getDeclawed() { @JsonProperty(JSON_PROPERTY_DECLAWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@jakarta.annotation.Nullable Boolean declawed) { this.declawed = declawed; } @Override - public Cat className(String className) { + public Cat className(@jakarta.annotation.Nonnull String className) { this.setClassName(className); return this; } @Override - public Cat color(String color) { + public Cat color(@jakarta.annotation.Nullable String color) { this.setColor(color); return this; } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Category.java index 19ea5f000f5a..333f4861b033 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Category.java @@ -33,15 +33,17 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Category { public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nonnull private String name = "default-name"; public Category() { } - public Category id(Long id) { + public Category id(@jakarta.annotation.Nullable Long id) { this.id = id; return this; @@ -62,11 +64,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; @@ -87,7 +89,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ChildWithNullable.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ChildWithNullable.java index 299c5a5fdbf2..2790c4e75c1f 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ChildWithNullable.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ChildWithNullable.java @@ -43,13 +43,14 @@ public class ChildWithNullable extends ParentWithNullable { public static final String JSON_PROPERTY_OTHER_PROPERTY = "otherProperty"; + @jakarta.annotation.Nullable private String otherProperty; public ChildWithNullable() { } - public ChildWithNullable otherProperty(String otherProperty) { + public ChildWithNullable otherProperty(@jakarta.annotation.Nullable String otherProperty) { this.otherProperty = otherProperty; return this; @@ -70,18 +71,18 @@ public String getOtherProperty() { @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOtherProperty(String otherProperty) { + public void setOtherProperty(@jakarta.annotation.Nullable String otherProperty) { this.otherProperty = otherProperty; } @Override - public ChildWithNullable type(TypeEnum type) { + public ChildWithNullable type(@jakarta.annotation.Nullable TypeEnum type) { this.setType(type); return this; } @Override - public ChildWithNullable nullableProperty(String nullableProperty) { + public ChildWithNullable nullableProperty(@jakarta.annotation.Nullable String nullableProperty) { this.setNullableProperty(nullableProperty); return this; } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ClassModel.java index fa7933fc5db4..85cf1359977a 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ClassModel.java @@ -32,12 +32,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ClassModel { public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; + @jakarta.annotation.Nullable private String propertyClass; public ClassModel() { } - public ClassModel propertyClass(String propertyClass) { + public ClassModel propertyClass(@jakarta.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; @@ -58,7 +59,7 @@ public String getPropertyClass() { @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@jakarta.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Client.java index 12ad332e9cb2..273015cbeeac 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Client.java @@ -32,12 +32,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Client { public static final String JSON_PROPERTY_CLIENT = "client"; + @jakarta.annotation.Nullable private String client; public Client() { } - public Client client(String client) { + public Client client(@jakarta.annotation.Nullable String client) { this.client = client; return this; @@ -58,7 +59,7 @@ public String getClient() { @JsonProperty(JSON_PROPERTY_CLIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setClient(String client) { + public void setClient(@jakarta.annotation.Nullable String client) { this.client = client; } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/DeprecatedObject.java index dd527b09389c..26f0e6ca7282 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -34,12 +34,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class DeprecatedObject { public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private String name; public DeprecatedObject() { } - public DeprecatedObject name(String name) { + public DeprecatedObject name(@jakarta.annotation.Nullable String name) { this.name = name; return this; @@ -60,7 +61,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Dog.java index 2eed36781825..94d3ace44bea 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Dog.java @@ -42,13 +42,14 @@ public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; + @jakarta.annotation.Nullable private String breed; public Dog() { } - public Dog breed(String breed) { + public Dog breed(@jakarta.annotation.Nullable String breed) { this.breed = breed; return this; @@ -69,18 +70,18 @@ public String getBreed() { @JsonProperty(JSON_PROPERTY_BREED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBreed(String breed) { + public void setBreed(@jakarta.annotation.Nullable String breed) { this.breed = breed; } @Override - public Dog className(String className) { + public Dog className(@jakarta.annotation.Nonnull String className) { this.setClassName(className); return this; } @Override - public Dog color(String color) { + public Dog color(@jakarta.annotation.Nullable String color) { this.setColor(color); return this; } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/EnumArrays.java index 94c188945a97..af8ecbea7d4c 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -71,6 +71,7 @@ public static JustSymbolEnum fromValue(String value) { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; + @jakarta.annotation.Nullable private JustSymbolEnum justSymbol; /** @@ -109,12 +110,13 @@ public static ArrayEnumEnum fromValue(String value) { } public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; + @jakarta.annotation.Nullable private List arrayEnum = new ArrayList<>(); public EnumArrays() { } - public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + public EnumArrays justSymbol(@jakarta.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; @@ -135,11 +137,11 @@ public JustSymbolEnum getJustSymbol() { @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJustSymbol(JustSymbolEnum justSymbol) { + public void setJustSymbol(@jakarta.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } - public EnumArrays arrayEnum(List arrayEnum) { + public EnumArrays arrayEnum(@jakarta.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; return this; @@ -168,7 +170,7 @@ public List getArrayEnum() { @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayEnum(List arrayEnum) { + public void setArrayEnum(@jakarta.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/EnumTest.java index 42f9f8e206a7..a64c6d285168 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/EnumTest.java @@ -85,6 +85,7 @@ public static EnumStringEnum fromValue(String value) { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; + @jakarta.annotation.Nullable private EnumStringEnum enumString; /** @@ -125,6 +126,7 @@ public static EnumStringRequiredEnum fromValue(String value) { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; + @jakarta.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** @@ -163,6 +165,7 @@ public static EnumIntegerEnum fromValue(Integer value) { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; + @jakarta.annotation.Nullable private EnumIntegerEnum enumInteger; /** @@ -201,24 +204,29 @@ public static EnumNumberEnum fromValue(Double value) { } public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; + @jakarta.annotation.Nullable private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; + @jakarta.annotation.Nullable private JsonNullable outerEnum = JsonNullable.undefined(); public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER = "outerEnumInteger"; + @jakarta.annotation.Nullable private OuterEnumInteger outerEnumInteger; public static final String JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE = "outerEnumDefaultValue"; + @jakarta.annotation.Nullable private OuterEnumDefaultValue outerEnumDefaultValue = OuterEnumDefaultValue.PLACED; public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE = "outerEnumIntegerDefaultValue"; + @jakarta.annotation.Nullable private OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = OuterEnumIntegerDefaultValue.NUMBER_0; public EnumTest() { } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@jakarta.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; @@ -239,11 +247,11 @@ public EnumStringEnum getEnumString() { @JsonProperty(JSON_PROPERTY_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumString(EnumStringEnum enumString) { + public void setEnumString(@jakarta.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; } - public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public EnumTest enumStringRequired(@jakarta.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; return this; @@ -264,11 +272,11 @@ public EnumStringRequiredEnum getEnumStringRequired() { @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public void setEnumStringRequired(@jakarta.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@jakarta.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; @@ -289,11 +297,11 @@ public EnumIntegerEnum getEnumInteger() { @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumInteger(EnumIntegerEnum enumInteger) { + public void setEnumInteger(@jakarta.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } - public EnumTest enumNumber(EnumNumberEnum enumNumber) { + public EnumTest enumNumber(@jakarta.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; return this; @@ -314,11 +322,11 @@ public EnumNumberEnum getEnumNumber() { @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumNumber(EnumNumberEnum enumNumber) { + public void setEnumNumber(@jakarta.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } - public EnumTest outerEnum(OuterEnum outerEnum) { + public EnumTest outerEnum(@jakarta.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = JsonNullable.of(outerEnum); return this; @@ -347,11 +355,11 @@ public void setOuterEnum_JsonNullable(JsonNullable outerEnum) { this.outerEnum = outerEnum; } - public void setOuterEnum(OuterEnum outerEnum) { + public void setOuterEnum(@jakarta.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = JsonNullable.of(outerEnum); } - public EnumTest outerEnumInteger(OuterEnumInteger outerEnumInteger) { + public EnumTest outerEnumInteger(@jakarta.annotation.Nullable OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; return this; @@ -372,11 +380,11 @@ public OuterEnumInteger getOuterEnumInteger() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnumInteger(OuterEnumInteger outerEnumInteger) { + public void setOuterEnumInteger(@jakarta.annotation.Nullable OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; } - public EnumTest outerEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) { + public EnumTest outerEnumDefaultValue(@jakarta.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; return this; @@ -397,11 +405,11 @@ public OuterEnumDefaultValue getOuterEnumDefaultValue() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) { + public void setOuterEnumDefaultValue(@jakarta.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; } - public EnumTest outerEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { + public EnumTest outerEnumIntegerDefaultValue(@jakarta.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; return this; @@ -422,7 +430,7 @@ public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { + public void setOuterEnumIntegerDefaultValue(@jakarta.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java index 6ab9ccd4e46d..98a2ac7c6cd1 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java @@ -37,15 +37,17 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FakeBigDecimalMap200Response { public static final String JSON_PROPERTY_SOME_ID = "someId"; + @jakarta.annotation.Nullable private BigDecimal someId; public static final String JSON_PROPERTY_SOME_MAP = "someMap"; + @jakarta.annotation.Nullable private Map someMap = new HashMap<>(); public FakeBigDecimalMap200Response() { } - public FakeBigDecimalMap200Response someId(BigDecimal someId) { + public FakeBigDecimalMap200Response someId(@jakarta.annotation.Nullable BigDecimal someId) { this.someId = someId; return this; @@ -66,11 +68,11 @@ public BigDecimal getSomeId() { @JsonProperty(JSON_PROPERTY_SOME_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSomeId(BigDecimal someId) { + public void setSomeId(@jakarta.annotation.Nullable BigDecimal someId) { this.someId = someId; } - public FakeBigDecimalMap200Response someMap(Map someMap) { + public FakeBigDecimalMap200Response someMap(@jakarta.annotation.Nullable Map someMap) { this.someMap = someMap; return this; @@ -99,7 +101,7 @@ public Map getSomeMap() { @JsonProperty(JSON_PROPERTY_SOME_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSomeMap(Map someMap) { + public void setSomeMap(@jakarta.annotation.Nullable Map someMap) { this.someMap = someMap; } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 9dc4f234b9d1..7554d784cf70 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -37,15 +37,17 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; + @jakarta.annotation.Nullable private ModelFile _file; public static final String JSON_PROPERTY_FILES = "files"; + @jakarta.annotation.Nullable private List files = new ArrayList<>(); public FileSchemaTestClass() { } - public FileSchemaTestClass _file(ModelFile _file) { + public FileSchemaTestClass _file(@jakarta.annotation.Nullable ModelFile _file) { this._file = _file; return this; @@ -66,11 +68,11 @@ public ModelFile getFile() { @JsonProperty(JSON_PROPERTY_FILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFile(ModelFile _file) { + public void setFile(@jakarta.annotation.Nullable ModelFile _file) { this._file = _file; } - public FileSchemaTestClass files(List files) { + public FileSchemaTestClass files(@jakarta.annotation.Nullable List files) { this.files = files; return this; @@ -99,7 +101,7 @@ public List getFiles() { @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFiles(List files) { + public void setFiles(@jakarta.annotation.Nullable List files) { this.files = files; } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Foo.java index 678216d49059..6e2968f4b8a3 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Foo.java @@ -32,12 +32,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Foo { public static final String JSON_PROPERTY_BAR = "bar"; + @jakarta.annotation.Nullable private String bar = "bar"; public Foo() { } - public Foo bar(String bar) { + public Foo bar(@jakarta.annotation.Nullable String bar) { this.bar = bar; return this; @@ -58,7 +59,7 @@ public String getBar() { @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBar(String bar) { + public void setBar(@jakarta.annotation.Nullable String bar) { this.bar = bar; } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index bdf29ba505ff..562ab25f63ad 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -34,12 +34,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FooGetDefaultResponse { public static final String JSON_PROPERTY_STRING = "string"; + @jakarta.annotation.Nullable private Foo string; public FooGetDefaultResponse() { } - public FooGetDefaultResponse string(Foo string) { + public FooGetDefaultResponse string(@jakarta.annotation.Nullable Foo string) { this.string = string; return this; @@ -60,7 +61,7 @@ public Foo getString() { @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setString(Foo string) { + public void setString(@jakarta.annotation.Nullable Foo string) { this.string = string; } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FormatTest.java index 53f950a50c14..7c994fe0b2e4 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FormatTest.java @@ -53,57 +53,73 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; + @jakarta.annotation.Nullable private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; + @jakarta.annotation.Nullable private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; + @jakarta.annotation.Nullable private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; + @jakarta.annotation.Nonnull private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; + @jakarta.annotation.Nullable private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; + @jakarta.annotation.Nullable private Double _double; public static final String JSON_PROPERTY_DECIMAL = "decimal"; + @jakarta.annotation.Nullable private BigDecimal decimal; public static final String JSON_PROPERTY_STRING = "string"; + @jakarta.annotation.Nullable private String string; public static final String JSON_PROPERTY_BYTE = "byte"; + @jakarta.annotation.Nonnull private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; + @jakarta.annotation.Nullable private File binary; public static final String JSON_PROPERTY_DATE = "date"; + @jakarta.annotation.Nonnull private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; + @jakarta.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; + @jakarta.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; + @jakarta.annotation.Nonnull private String password; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS = "pattern_with_digits"; + @jakarta.annotation.Nullable private String patternWithDigits; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER = "pattern_with_digits_and_delimiter"; + @jakarta.annotation.Nullable private String patternWithDigitsAndDelimiter; public FormatTest() { } - public FormatTest integer(Integer integer) { + public FormatTest integer(@jakarta.annotation.Nullable Integer integer) { this.integer = integer; return this; @@ -126,11 +142,11 @@ public Integer getInteger() { @JsonProperty(JSON_PROPERTY_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInteger(Integer integer) { + public void setInteger(@jakarta.annotation.Nullable Integer integer) { this.integer = integer; } - public FormatTest int32(Integer int32) { + public FormatTest int32(@jakarta.annotation.Nullable Integer int32) { this.int32 = int32; return this; @@ -153,11 +169,11 @@ public Integer getInt32() { @JsonProperty(JSON_PROPERTY_INT32) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInt32(Integer int32) { + public void setInt32(@jakarta.annotation.Nullable Integer int32) { this.int32 = int32; } - public FormatTest int64(Long int64) { + public FormatTest int64(@jakarta.annotation.Nullable Long int64) { this.int64 = int64; return this; @@ -178,11 +194,11 @@ public Long getInt64() { @JsonProperty(JSON_PROPERTY_INT64) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInt64(Long int64) { + public void setInt64(@jakarta.annotation.Nullable Long int64) { this.int64 = int64; } - public FormatTest number(BigDecimal number) { + public FormatTest number(@jakarta.annotation.Nonnull BigDecimal number) { this.number = number; return this; @@ -205,11 +221,11 @@ public BigDecimal getNumber() { @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNumber(BigDecimal number) { + public void setNumber(@jakarta.annotation.Nonnull BigDecimal number) { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@jakarta.annotation.Nullable Float _float) { this._float = _float; return this; @@ -232,11 +248,11 @@ public Float getFloat() { @JsonProperty(JSON_PROPERTY_FLOAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFloat(Float _float) { + public void setFloat(@jakarta.annotation.Nullable Float _float) { this._float = _float; } - public FormatTest _double(Double _double) { + public FormatTest _double(@jakarta.annotation.Nullable Double _double) { this._double = _double; return this; @@ -259,11 +275,11 @@ public Double getDouble() { @JsonProperty(JSON_PROPERTY_DOUBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDouble(Double _double) { + public void setDouble(@jakarta.annotation.Nullable Double _double) { this._double = _double; } - public FormatTest decimal(BigDecimal decimal) { + public FormatTest decimal(@jakarta.annotation.Nullable BigDecimal decimal) { this.decimal = decimal; return this; @@ -284,11 +300,11 @@ public BigDecimal getDecimal() { @JsonProperty(JSON_PROPERTY_DECIMAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDecimal(BigDecimal decimal) { + public void setDecimal(@jakarta.annotation.Nullable BigDecimal decimal) { this.decimal = decimal; } - public FormatTest string(String string) { + public FormatTest string(@jakarta.annotation.Nullable String string) { this.string = string; return this; @@ -309,11 +325,11 @@ public String getString() { @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setString(String string) { + public void setString(@jakarta.annotation.Nullable String string) { this.string = string; } - public FormatTest _byte(byte[] _byte) { + public FormatTest _byte(@jakarta.annotation.Nonnull byte[] _byte) { this._byte = _byte; return this; @@ -334,11 +350,11 @@ public byte[] getByte() { @JsonProperty(JSON_PROPERTY_BYTE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setByte(byte[] _byte) { + public void setByte(@jakarta.annotation.Nonnull byte[] _byte) { this._byte = _byte; } - public FormatTest binary(File binary) { + public FormatTest binary(@jakarta.annotation.Nullable File binary) { this.binary = binary; return this; @@ -359,11 +375,11 @@ public File getBinary() { @JsonProperty(JSON_PROPERTY_BINARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBinary(File binary) { + public void setBinary(@jakarta.annotation.Nullable File binary) { this.binary = binary; } - public FormatTest date(LocalDate date) { + public FormatTest date(@jakarta.annotation.Nonnull LocalDate date) { this.date = date; return this; @@ -384,11 +400,11 @@ public LocalDate getDate() { @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDate(LocalDate date) { + public void setDate(@jakarta.annotation.Nonnull LocalDate date) { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@jakarta.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; @@ -409,11 +425,11 @@ public OffsetDateTime getDateTime() { @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@jakarta.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public FormatTest uuid(UUID uuid) { + public FormatTest uuid(@jakarta.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; @@ -434,11 +450,11 @@ public UUID getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(UUID uuid) { + public void setUuid(@jakarta.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public FormatTest password(String password) { + public FormatTest password(@jakarta.annotation.Nonnull String password) { this.password = password; return this; @@ -459,11 +475,11 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPassword(String password) { + public void setPassword(@jakarta.annotation.Nonnull String password) { this.password = password; } - public FormatTest patternWithDigits(String patternWithDigits) { + public FormatTest patternWithDigits(@jakarta.annotation.Nullable String patternWithDigits) { this.patternWithDigits = patternWithDigits; return this; @@ -484,11 +500,11 @@ public String getPatternWithDigits() { @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPatternWithDigits(String patternWithDigits) { + public void setPatternWithDigits(@jakarta.annotation.Nullable String patternWithDigits) { this.patternWithDigits = patternWithDigits; } - public FormatTest patternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) { + public FormatTest patternWithDigitsAndDelimiter(@jakarta.annotation.Nullable String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; return this; @@ -509,7 +525,7 @@ public String getPatternWithDigitsAndDelimiter() { @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPatternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) { + public void setPatternWithDigitsAndDelimiter(@jakarta.annotation.Nullable String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index ce701e1c82e0..14250318f11d 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -34,9 +34,11 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; + @jakarta.annotation.Nullable private String bar; public static final String JSON_PROPERTY_FOO = "foo"; + @jakarta.annotation.Nullable private String foo; public HasOnlyReadOnly() { diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/HealthCheckResult.java index 32a4fb8fd2cc..b3d43e1bf0b6 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -36,12 +36,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class HealthCheckResult { public static final String JSON_PROPERTY_NULLABLE_MESSAGE = "NullableMessage"; + @jakarta.annotation.Nullable private JsonNullable nullableMessage = JsonNullable.undefined(); public HealthCheckResult() { } - public HealthCheckResult nullableMessage(String nullableMessage) { + public HealthCheckResult nullableMessage(@jakarta.annotation.Nullable String nullableMessage) { this.nullableMessage = JsonNullable.of(nullableMessage); return this; @@ -70,7 +71,7 @@ public void setNullableMessage_JsonNullable(JsonNullable nullableMessage this.nullableMessage = nullableMessage; } - public void setNullableMessage(String nullableMessage) { + public void setNullableMessage(@jakarta.annotation.Nullable String nullableMessage) { this.nullableMessage = JsonNullable.of(nullableMessage); } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/MapTest.java index c709be9aa0c9..9f4ea150b7ce 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/MapTest.java @@ -37,6 +37,7 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; + @jakarta.annotation.Nullable private Map> mapMapOfString = new HashMap<>(); /** @@ -75,18 +76,21 @@ public static InnerEnum fromValue(String value) { } public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; + @jakarta.annotation.Nullable private Map mapOfEnumString = new HashMap<>(); public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; + @jakarta.annotation.Nullable private Map directMap = new HashMap<>(); public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; + @jakarta.annotation.Nullable private Map indirectMap = new HashMap<>(); public MapTest() { } - public MapTest mapMapOfString(Map> mapMapOfString) { + public MapTest mapMapOfString(@jakarta.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; return this; @@ -115,11 +119,11 @@ public Map> getMapMapOfString() { @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapMapOfString(Map> mapMapOfString) { + public void setMapMapOfString(@jakarta.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } - public MapTest mapOfEnumString(Map mapOfEnumString) { + public MapTest mapOfEnumString(@jakarta.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; return this; @@ -148,11 +152,11 @@ public Map getMapOfEnumString() { @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapOfEnumString(Map mapOfEnumString) { + public void setMapOfEnumString(@jakarta.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } - public MapTest directMap(Map directMap) { + public MapTest directMap(@jakarta.annotation.Nullable Map directMap) { this.directMap = directMap; return this; @@ -181,11 +185,11 @@ public Map getDirectMap() { @JsonProperty(JSON_PROPERTY_DIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDirectMap(Map directMap) { + public void setDirectMap(@jakarta.annotation.Nullable Map directMap) { this.directMap = directMap; } - public MapTest indirectMap(Map indirectMap) { + public MapTest indirectMap(@jakarta.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; return this; @@ -214,7 +218,7 @@ public Map getIndirectMap() { @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIndirectMap(Map indirectMap) { + public void setIndirectMap(@jakarta.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index e6b5d94ac693..8e230861708f 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -39,18 +39,21 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; + @jakarta.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; + @jakarta.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; + @jakarta.annotation.Nullable private Map map = new HashMap<>(); public MixedPropertiesAndAdditionalPropertiesClass() { } - public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClass uuid(@jakarta.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; @@ -71,11 +74,11 @@ public UUID getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(UUID uuid) { + public void setUuid(@jakarta.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + public MixedPropertiesAndAdditionalPropertiesClass dateTime(@jakarta.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; @@ -96,11 +99,11 @@ public OffsetDateTime getDateTime() { @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@jakarta.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + public MixedPropertiesAndAdditionalPropertiesClass map(@jakarta.annotation.Nullable Map map) { this.map = map; return this; @@ -129,7 +132,7 @@ public Map getMap() { @JsonProperty(JSON_PROPERTY_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMap(Map map) { + public void setMap(@jakarta.annotation.Nullable Map map) { this.map = map; } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Model200Response.java index b6abc8494163..af868031a0a6 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Model200Response.java @@ -34,15 +34,17 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; + @jakarta.annotation.Nullable private String propertyClass; public Model200Response() { } - public Model200Response name(Integer name) { + public Model200Response name(@jakarta.annotation.Nullable Integer name) { this.name = name; return this; @@ -63,11 +65,11 @@ public Integer getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(Integer name) { + public void setName(@jakarta.annotation.Nullable Integer name) { this.name = name; } - public Model200Response propertyClass(String propertyClass) { + public Model200Response propertyClass(@jakarta.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; @@ -88,7 +90,7 @@ public String getPropertyClass() { @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@jakarta.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 741efeb57cfc..8128617f5045 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -35,18 +35,21 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; + @jakarta.annotation.Nullable private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nullable private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; + @jakarta.annotation.Nullable private String message; public ModelApiResponse() { } - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@jakarta.annotation.Nullable Integer code) { this.code = code; return this; @@ -67,11 +70,11 @@ public Integer getCode() { @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCode(Integer code) { + public void setCode(@jakarta.annotation.Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@jakarta.annotation.Nullable String type) { this.type = type; return this; @@ -92,11 +95,11 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@jakarta.annotation.Nullable String message) { this.message = message; return this; @@ -117,7 +120,7 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelFile.java index df0edd675990..969b69bc0853 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelFile.java @@ -33,12 +33,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelFile { public static final String JSON_PROPERTY_SOURCE_U_R_I = "sourceURI"; + @jakarta.annotation.Nullable private String sourceURI; public ModelFile() { } - public ModelFile sourceURI(String sourceURI) { + public ModelFile sourceURI(@jakarta.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; return this; @@ -59,7 +60,7 @@ public String getSourceURI() { @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSourceURI(String sourceURI) { + public void setSourceURI(@jakarta.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelList.java index eca3b07877ce..98036c3a8b9b 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelList.java @@ -33,12 +33,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelList { public static final String JSON_PROPERTY_123LIST = "123-list"; + @jakarta.annotation.Nullable private String _123list; public ModelList() { } - public ModelList _123list(String _123list) { + public ModelList _123list(@jakarta.annotation.Nullable String _123list) { this._123list = _123list; return this; @@ -59,7 +60,7 @@ public String get123list() { @JsonProperty(JSON_PROPERTY_123LIST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void set123list(String _123list) { + public void set123list(@jakarta.annotation.Nullable String _123list) { this._123list = _123list; } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelReturn.java index 0b1f0ab48a8d..86805added9c 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -33,12 +33,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; + @jakarta.annotation.Nullable private Integer _return; public ModelReturn() { } - public ModelReturn _return(Integer _return) { + public ModelReturn _return(@jakarta.annotation.Nullable Integer _return) { this._return = _return; return this; @@ -59,7 +60,7 @@ public Integer getReturn() { @JsonProperty(JSON_PROPERTY_RETURN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setReturn(Integer _return) { + public void setReturn(@jakarta.annotation.Nullable Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Name.java index feb4f94c36d0..b338c0d4f311 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Name.java @@ -35,15 +35,19 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Name { public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nonnull private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; + @jakarta.annotation.Nullable private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; + @jakarta.annotation.Nullable private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; + @jakarta.annotation.Nullable private Integer _123number; public Name() { @@ -61,7 +65,7 @@ public Name( this._123number = _123number; } - public Name name(Integer name) { + public Name name(@jakarta.annotation.Nonnull Integer name) { this.name = name; return this; @@ -82,7 +86,7 @@ public Integer getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(Integer name) { + public void setName(@jakarta.annotation.Nonnull Integer name) { this.name = name; } @@ -100,7 +104,7 @@ public Integer getSnakeCase() { - public Name property(String property) { + public Name property(@jakarta.annotation.Nullable String property) { this.property = property; return this; @@ -121,7 +125,7 @@ public String getProperty() { @JsonProperty(JSON_PROPERTY_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProperty(String property) { + public void setProperty(@jakarta.annotation.Nullable String property) { this.property = property; } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/NullableClass.java index 57b27b00bec0..11ac62f6304b 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/NullableClass.java @@ -55,46 +55,58 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class NullableClass extends HashMap { public static final String JSON_PROPERTY_INTEGER_PROP = "integer_prop"; + @jakarta.annotation.Nullable private JsonNullable integerProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_NUMBER_PROP = "number_prop"; + @jakarta.annotation.Nullable private JsonNullable numberProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_BOOLEAN_PROP = "boolean_prop"; + @jakarta.annotation.Nullable private JsonNullable booleanProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_STRING_PROP = "string_prop"; + @jakarta.annotation.Nullable private JsonNullable stringProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_DATE_PROP = "date_prop"; + @jakarta.annotation.Nullable private JsonNullable dateProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_DATETIME_PROP = "datetime_prop"; + @jakarta.annotation.Nullable private JsonNullable datetimeProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_ARRAY_NULLABLE_PROP = "array_nullable_prop"; + @jakarta.annotation.Nullable private JsonNullable> arrayNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP = "array_and_items_nullable_prop"; + @jakarta.annotation.Nullable private JsonNullable> arrayAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_ITEMS_NULLABLE = "array_items_nullable"; + @jakarta.annotation.Nullable private List arrayItemsNullable = new ArrayList<>(); public static final String JSON_PROPERTY_OBJECT_NULLABLE_PROP = "object_nullable_prop"; + @jakarta.annotation.Nullable private JsonNullable> objectNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP = "object_and_items_nullable_prop"; + @jakarta.annotation.Nullable private JsonNullable> objectAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_OBJECT_ITEMS_NULLABLE = "object_items_nullable"; + @jakarta.annotation.Nullable private Map objectItemsNullable = new HashMap<>(); public NullableClass() { } - public NullableClass integerProp(Integer integerProp) { + public NullableClass integerProp(@jakarta.annotation.Nullable Integer integerProp) { this.integerProp = JsonNullable.of(integerProp); return this; @@ -123,11 +135,11 @@ public void setIntegerProp_JsonNullable(JsonNullable integerProp) { this.integerProp = integerProp; } - public void setIntegerProp(Integer integerProp) { + public void setIntegerProp(@jakarta.annotation.Nullable Integer integerProp) { this.integerProp = JsonNullable.of(integerProp); } - public NullableClass numberProp(BigDecimal numberProp) { + public NullableClass numberProp(@jakarta.annotation.Nullable BigDecimal numberProp) { this.numberProp = JsonNullable.of(numberProp); return this; @@ -156,11 +168,11 @@ public void setNumberProp_JsonNullable(JsonNullable numberProp) { this.numberProp = numberProp; } - public void setNumberProp(BigDecimal numberProp) { + public void setNumberProp(@jakarta.annotation.Nullable BigDecimal numberProp) { this.numberProp = JsonNullable.of(numberProp); } - public NullableClass booleanProp(Boolean booleanProp) { + public NullableClass booleanProp(@jakarta.annotation.Nullable Boolean booleanProp) { this.booleanProp = JsonNullable.of(booleanProp); return this; @@ -189,11 +201,11 @@ public void setBooleanProp_JsonNullable(JsonNullable booleanProp) { this.booleanProp = booleanProp; } - public void setBooleanProp(Boolean booleanProp) { + public void setBooleanProp(@jakarta.annotation.Nullable Boolean booleanProp) { this.booleanProp = JsonNullable.of(booleanProp); } - public NullableClass stringProp(String stringProp) { + public NullableClass stringProp(@jakarta.annotation.Nullable String stringProp) { this.stringProp = JsonNullable.of(stringProp); return this; @@ -222,11 +234,11 @@ public void setStringProp_JsonNullable(JsonNullable stringProp) { this.stringProp = stringProp; } - public void setStringProp(String stringProp) { + public void setStringProp(@jakarta.annotation.Nullable String stringProp) { this.stringProp = JsonNullable.of(stringProp); } - public NullableClass dateProp(LocalDate dateProp) { + public NullableClass dateProp(@jakarta.annotation.Nullable LocalDate dateProp) { this.dateProp = JsonNullable.of(dateProp); return this; @@ -255,11 +267,11 @@ public void setDateProp_JsonNullable(JsonNullable dateProp) { this.dateProp = dateProp; } - public void setDateProp(LocalDate dateProp) { + public void setDateProp(@jakarta.annotation.Nullable LocalDate dateProp) { this.dateProp = JsonNullable.of(dateProp); } - public NullableClass datetimeProp(OffsetDateTime datetimeProp) { + public NullableClass datetimeProp(@jakarta.annotation.Nullable OffsetDateTime datetimeProp) { this.datetimeProp = JsonNullable.of(datetimeProp); return this; @@ -288,11 +300,11 @@ public void setDatetimeProp_JsonNullable(JsonNullable datetimePr this.datetimeProp = datetimeProp; } - public void setDatetimeProp(OffsetDateTime datetimeProp) { + public void setDatetimeProp(@jakarta.annotation.Nullable OffsetDateTime datetimeProp) { this.datetimeProp = JsonNullable.of(datetimeProp); } - public NullableClass arrayNullableProp(List arrayNullableProp) { + public NullableClass arrayNullableProp(@jakarta.annotation.Nullable List arrayNullableProp) { this.arrayNullableProp = JsonNullable.>of(arrayNullableProp); return this; @@ -333,11 +345,11 @@ public void setArrayNullableProp_JsonNullable(JsonNullable> arrayNu this.arrayNullableProp = arrayNullableProp; } - public void setArrayNullableProp(List arrayNullableProp) { + public void setArrayNullableProp(@jakarta.annotation.Nullable List arrayNullableProp) { this.arrayNullableProp = JsonNullable.>of(arrayNullableProp); } - public NullableClass arrayAndItemsNullableProp(List arrayAndItemsNullableProp) { + public NullableClass arrayAndItemsNullableProp(@jakarta.annotation.Nullable List arrayAndItemsNullableProp) { this.arrayAndItemsNullableProp = JsonNullable.>of(arrayAndItemsNullableProp); return this; @@ -378,11 +390,11 @@ public void setArrayAndItemsNullableProp_JsonNullable(JsonNullable> this.arrayAndItemsNullableProp = arrayAndItemsNullableProp; } - public void setArrayAndItemsNullableProp(List arrayAndItemsNullableProp) { + public void setArrayAndItemsNullableProp(@jakarta.annotation.Nullable List arrayAndItemsNullableProp) { this.arrayAndItemsNullableProp = JsonNullable.>of(arrayAndItemsNullableProp); } - public NullableClass arrayItemsNullable(List arrayItemsNullable) { + public NullableClass arrayItemsNullable(@jakarta.annotation.Nullable List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; return this; @@ -411,11 +423,11 @@ public List getArrayItemsNullable() { @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayItemsNullable(List arrayItemsNullable) { + public void setArrayItemsNullable(@jakarta.annotation.Nullable List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; } - public NullableClass objectNullableProp(Map objectNullableProp) { + public NullableClass objectNullableProp(@jakarta.annotation.Nullable Map objectNullableProp) { this.objectNullableProp = JsonNullable.>of(objectNullableProp); return this; @@ -456,11 +468,11 @@ public void setObjectNullableProp_JsonNullable(JsonNullable> this.objectNullableProp = objectNullableProp; } - public void setObjectNullableProp(Map objectNullableProp) { + public void setObjectNullableProp(@jakarta.annotation.Nullable Map objectNullableProp) { this.objectNullableProp = JsonNullable.>of(objectNullableProp); } - public NullableClass objectAndItemsNullableProp(Map objectAndItemsNullableProp) { + public NullableClass objectAndItemsNullableProp(@jakarta.annotation.Nullable Map objectAndItemsNullableProp) { this.objectAndItemsNullableProp = JsonNullable.>of(objectAndItemsNullableProp); return this; @@ -501,11 +513,11 @@ public void setObjectAndItemsNullableProp_JsonNullable(JsonNullable objectAndItemsNullableProp) { + public void setObjectAndItemsNullableProp(@jakarta.annotation.Nullable Map objectAndItemsNullableProp) { this.objectAndItemsNullableProp = JsonNullable.>of(objectAndItemsNullableProp); } - public NullableClass objectItemsNullable(Map objectItemsNullable) { + public NullableClass objectItemsNullable(@jakarta.annotation.Nullable Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; return this; @@ -534,7 +546,7 @@ public Map getObjectItemsNullable() { @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setObjectItemsNullable(Map objectItemsNullable) { + public void setObjectItemsNullable(@jakarta.annotation.Nullable Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/NumberOnly.java index bffd77c2dcd1..ee3bd2d0db40 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -33,12 +33,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; + @jakarta.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } - public NumberOnly justNumber(BigDecimal justNumber) { + public NumberOnly justNumber(@jakarta.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; @@ -59,7 +60,7 @@ public BigDecimal getJustNumber() { @JsonProperty(JSON_PROPERTY_JUST_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJustNumber(BigDecimal justNumber) { + public void setJustNumber(@jakarta.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index a28a3d8e79c7..58aa20e6aaf0 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -40,21 +40,25 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ObjectWithDeprecatedFields { public static final String JSON_PROPERTY_UUID = "uuid"; + @jakarta.annotation.Nullable private String uuid; public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nullable private BigDecimal id; public static final String JSON_PROPERTY_DEPRECATED_REF = "deprecatedRef"; + @jakarta.annotation.Nullable private DeprecatedObject deprecatedRef; public static final String JSON_PROPERTY_BARS = "bars"; + @jakarta.annotation.Nullable private List bars = new ArrayList<>(); public ObjectWithDeprecatedFields() { } - public ObjectWithDeprecatedFields uuid(String uuid) { + public ObjectWithDeprecatedFields uuid(@jakarta.annotation.Nullable String uuid) { this.uuid = uuid; return this; @@ -75,11 +79,11 @@ public String getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(String uuid) { + public void setUuid(@jakarta.annotation.Nullable String uuid) { this.uuid = uuid; } - public ObjectWithDeprecatedFields id(BigDecimal id) { + public ObjectWithDeprecatedFields id(@jakarta.annotation.Nullable BigDecimal id) { this.id = id; return this; @@ -102,11 +106,11 @@ public BigDecimal getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(BigDecimal id) { + public void setId(@jakarta.annotation.Nullable BigDecimal id) { this.id = id; } - public ObjectWithDeprecatedFields deprecatedRef(DeprecatedObject deprecatedRef) { + public ObjectWithDeprecatedFields deprecatedRef(@jakarta.annotation.Nullable DeprecatedObject deprecatedRef) { this.deprecatedRef = deprecatedRef; return this; @@ -129,11 +133,11 @@ public DeprecatedObject getDeprecatedRef() { @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeprecatedRef(DeprecatedObject deprecatedRef) { + public void setDeprecatedRef(@jakarta.annotation.Nullable DeprecatedObject deprecatedRef) { this.deprecatedRef = deprecatedRef; } - public ObjectWithDeprecatedFields bars(List bars) { + public ObjectWithDeprecatedFields bars(@jakarta.annotation.Nullable List bars) { this.bars = bars; return this; @@ -164,7 +168,7 @@ public List getBars() { @JsonProperty(JSON_PROPERTY_BARS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBars(List bars) { + public void setBars(@jakarta.annotation.Nullable List bars) { this.bars = bars; } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Order.java index 413c1643238f..82fd6fcf22d1 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Order.java @@ -38,15 +38,19 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Order { public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; + @jakarta.annotation.Nullable private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; + @jakarta.annotation.Nullable private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; + @jakarta.annotation.Nullable private OffsetDateTime shipDate; /** @@ -87,15 +91,17 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @jakarta.annotation.Nullable private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; + @jakarta.annotation.Nullable private Boolean complete = false; public Order() { } - public Order id(Long id) { + public Order id(@jakarta.annotation.Nullable Long id) { this.id = id; return this; @@ -116,11 +122,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@jakarta.annotation.Nullable Long petId) { this.petId = petId; return this; @@ -141,11 +147,11 @@ public Long getPetId() { @JsonProperty(JSON_PROPERTY_PET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPetId(Long petId) { + public void setPetId(@jakarta.annotation.Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@jakarta.annotation.Nullable Integer quantity) { this.quantity = quantity; return this; @@ -166,11 +172,11 @@ public Integer getQuantity() { @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setQuantity(Integer quantity) { + public void setQuantity(@jakarta.annotation.Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@jakarta.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; @@ -191,11 +197,11 @@ public OffsetDateTime getShipDate() { @JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@jakarta.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -216,11 +222,11 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; } - public Order complete(Boolean complete) { + public Order complete(@jakarta.annotation.Nullable Boolean complete) { this.complete = complete; return this; @@ -241,7 +247,7 @@ public Boolean getComplete() { @JsonProperty(JSON_PROPERTY_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setComplete(Boolean complete) { + public void setComplete(@jakarta.annotation.Nullable Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/OuterComposite.java index cf317e534c8d..e68bee95105f 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -35,18 +35,21 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; + @jakarta.annotation.Nullable private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; + @jakarta.annotation.Nullable private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; + @jakarta.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } - public OuterComposite myNumber(BigDecimal myNumber) { + public OuterComposite myNumber(@jakarta.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; @@ -67,11 +70,11 @@ public BigDecimal getMyNumber() { @JsonProperty(JSON_PROPERTY_MY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyNumber(BigDecimal myNumber) { + public void setMyNumber(@jakarta.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; } - public OuterComposite myString(String myString) { + public OuterComposite myString(@jakarta.annotation.Nullable String myString) { this.myString = myString; return this; @@ -92,11 +95,11 @@ public String getMyString() { @JsonProperty(JSON_PROPERTY_MY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyString(String myString) { + public void setMyString(@jakarta.annotation.Nullable String myString) { this.myString = myString; } - public OuterComposite myBoolean(Boolean myBoolean) { + public OuterComposite myBoolean(@jakarta.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; return this; @@ -117,7 +120,7 @@ public Boolean getMyBoolean() { @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyBoolean(Boolean myBoolean) { + public void setMyBoolean(@jakarta.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java index 4411bec90d98..c64d3456049d 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java @@ -33,12 +33,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class OuterObjectWithEnumProperty { public static final String JSON_PROPERTY_VALUE = "value"; + @jakarta.annotation.Nonnull private OuterEnumInteger value; public OuterObjectWithEnumProperty() { } - public OuterObjectWithEnumProperty value(OuterEnumInteger value) { + public OuterObjectWithEnumProperty value(@jakarta.annotation.Nonnull OuterEnumInteger value) { this.value = value; return this; @@ -59,7 +60,7 @@ public OuterEnumInteger getValue() { @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setValue(OuterEnumInteger value) { + public void setValue(@jakarta.annotation.Nonnull OuterEnumInteger value) { this.value = value; } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ParentWithNullable.java index 15c420ba0e16..726ef8d173a1 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -82,15 +82,17 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nullable protected TypeEnum type; public static final String JSON_PROPERTY_NULLABLE_PROPERTY = "nullableProperty"; + @jakarta.annotation.Nullable protected JsonNullable nullableProperty = JsonNullable.undefined(); public ParentWithNullable() { } - public ParentWithNullable type(TypeEnum type) { + public ParentWithNullable type(@jakarta.annotation.Nullable TypeEnum type) { this.type = type; return this; @@ -111,11 +113,11 @@ public TypeEnum getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(TypeEnum type) { + public void setType(@jakarta.annotation.Nullable TypeEnum type) { this.type = type; } - public ParentWithNullable nullableProperty(String nullableProperty) { + public ParentWithNullable nullableProperty(@jakarta.annotation.Nullable String nullableProperty) { this.nullableProperty = JsonNullable.of(nullableProperty); return this; @@ -144,7 +146,7 @@ public void setNullableProperty_JsonNullable(JsonNullable nullableProper this.nullableProperty = nullableProperty; } - public void setNullableProperty(String nullableProperty) { + public void setNullableProperty(@jakarta.annotation.Nullable String nullableProperty) { this.nullableProperty = JsonNullable.of(nullableProperty); } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Pet.java index c45ddadd4ab3..8aa1062d80a0 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Pet.java @@ -45,18 +45,23 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Pet { public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; + @jakarta.annotation.Nullable private Category category; public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; + @jakarta.annotation.Nonnull private Set photoUrls = new LinkedHashSet<>(); public static final String JSON_PROPERTY_TAGS = "tags"; + @jakarta.annotation.Nullable private List tags = new ArrayList<>(); /** @@ -97,12 +102,13 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @jakarta.annotation.Nullable private StatusEnum status; public Pet() { } - public Pet id(Long id) { + public Pet id(@jakarta.annotation.Nullable Long id) { this.id = id; return this; @@ -123,11 +129,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@jakarta.annotation.Nullable Category category) { this.category = category; return this; @@ -148,11 +154,11 @@ public Category getCategory() { @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCategory(Category category) { + public void setCategory(@jakarta.annotation.Nullable Category category) { this.category = category; } - public Pet name(String name) { + public Pet name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; @@ -173,11 +179,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public Pet photoUrls(Set photoUrls) { + public Pet photoUrls(@jakarta.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; return this; @@ -207,11 +213,11 @@ public Set getPhotoUrls() { @JsonDeserialize(as = LinkedHashSet.class) @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPhotoUrls(Set photoUrls) { + public void setPhotoUrls(@jakarta.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; } - public Pet tags(List tags) { + public Pet tags(@jakarta.annotation.Nullable List tags) { this.tags = tags; return this; @@ -240,11 +246,11 @@ public List getTags() { @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTags(List tags) { + public void setTags(@jakarta.annotation.Nullable List tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -265,7 +271,7 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 16d08b2bc4f5..1e6fc09d92aa 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -33,9 +33,11 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; + @jakarta.annotation.Nullable private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; + @jakarta.annotation.Nullable private String baz; public ReadOnlyFirst() { @@ -65,7 +67,7 @@ public String getBar() { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@jakarta.annotation.Nullable String baz) { this.baz = baz; return this; @@ -86,7 +88,7 @@ public String getBaz() { @JsonProperty(JSON_PROPERTY_BAZ) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBaz(String baz) { + public void setBaz(@jakarta.annotation.Nullable String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/SpecialModelName.java index 9ce6173951fb..08b5f982cf96 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -33,12 +33,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; + @jakarta.annotation.Nullable private Long $specialPropertyName; public SpecialModelName() { } - public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + public SpecialModelName $specialPropertyName(@jakarta.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; return this; @@ -59,7 +60,7 @@ public SpecialModelName() { @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void set$SpecialPropertyName(Long $specialPropertyName) { + public void set$SpecialPropertyName(@jakarta.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Tag.java index 4f9df002d28e..fb61c8492e61 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Tag.java @@ -33,15 +33,17 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Tag { public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private String name; public Tag() { } - public Tag id(Long id) { + public Tag id(@jakarta.annotation.Nullable Long id) { this.id = id; return this; @@ -62,11 +64,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@jakarta.annotation.Nullable String name) { this.name = name; return this; @@ -87,7 +89,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index 6be6a48b0c82..7d8cdf76a603 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -35,13 +35,14 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class TestInlineFreeformAdditionalPropertiesRequest extends HashMap { public static final String JSON_PROPERTY_SOME_PROPERTY = "someProperty"; + @jakarta.annotation.Nullable private String someProperty; public TestInlineFreeformAdditionalPropertiesRequest() { } - public TestInlineFreeformAdditionalPropertiesRequest someProperty(String someProperty) { + public TestInlineFreeformAdditionalPropertiesRequest someProperty(@jakarta.annotation.Nullable String someProperty) { this.someProperty = someProperty; return this; @@ -62,7 +63,7 @@ public String getSomeProperty() { @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSomeProperty(String someProperty) { + public void setSomeProperty(@jakarta.annotation.Nullable String someProperty) { this.someProperty = someProperty; } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/User.java index 95f966792d23..b3b76f7252ef 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/User.java @@ -39,33 +39,41 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class User { public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; + @jakarta.annotation.Nullable private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; + @jakarta.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; + @jakarta.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; + @jakarta.annotation.Nullable private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; + @jakarta.annotation.Nullable private String password; public static final String JSON_PROPERTY_PHONE = "phone"; + @jakarta.annotation.Nullable private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; + @jakarta.annotation.Nullable private Integer userStatus; public User() { } - public User id(Long id) { + public User id(@jakarta.annotation.Nullable Long id) { this.id = id; return this; @@ -86,11 +94,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@jakarta.annotation.Nullable String username) { this.username = username; return this; @@ -111,11 +119,11 @@ public String getUsername() { @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsername(String username) { + public void setUsername(@jakarta.annotation.Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@jakarta.annotation.Nullable String firstName) { this.firstName = firstName; return this; @@ -136,11 +144,11 @@ public String getFirstName() { @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFirstName(String firstName) { + public void setFirstName(@jakarta.annotation.Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@jakarta.annotation.Nullable String lastName) { this.lastName = lastName; return this; @@ -161,11 +169,11 @@ public String getLastName() { @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLastName(String lastName) { + public void setLastName(@jakarta.annotation.Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@jakarta.annotation.Nullable String email) { this.email = email; return this; @@ -186,11 +194,11 @@ public String getEmail() { @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEmail(String email) { + public void setEmail(@jakarta.annotation.Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@jakarta.annotation.Nullable String password) { this.password = password; return this; @@ -211,11 +219,11 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPassword(String password) { + public void setPassword(@jakarta.annotation.Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@jakarta.annotation.Nullable String phone) { this.phone = phone; return this; @@ -236,11 +244,11 @@ public String getPhone() { @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPhone(String phone) { + public void setPhone(@jakarta.annotation.Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@jakarta.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; return this; @@ -261,7 +269,7 @@ public Integer getUserStatus() { @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@jakarta.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 6dbc3850c711..c3af72f3ab9c 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -35,15 +35,17 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_PROPERTY = "map_property"; + @jakarta.annotation.Nullable private Map mapProperty; public static final String JSON_PROPERTY_MAP_OF_MAP_PROPERTY = "map_of_map_property"; + @jakarta.annotation.Nullable private Map> mapOfMapProperty; public AdditionalPropertiesClass() { } - public AdditionalPropertiesClass mapProperty(Map mapProperty) { + public AdditionalPropertiesClass mapProperty(@jakarta.annotation.Nullable Map mapProperty) { this.mapProperty = mapProperty; return this; @@ -72,11 +74,11 @@ public Map getMapProperty() { @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapProperty(Map mapProperty) { + public void setMapProperty(@jakarta.annotation.Nullable Map mapProperty) { this.mapProperty = mapProperty; } - public AdditionalPropertiesClass mapOfMapProperty(Map> mapOfMapProperty) { + public AdditionalPropertiesClass mapOfMapProperty(@jakarta.annotation.Nullable Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; return this; @@ -105,7 +107,7 @@ public Map> getMapOfMapProperty() { @JsonProperty(JSON_PROPERTY_MAP_OF_MAP_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapOfMapProperty(Map> mapOfMapProperty) { + public void setMapOfMapProperty(@jakarta.annotation.Nullable Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java index 4d1fcc6fd64e..5ada291fee4d 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java @@ -34,15 +34,17 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AllOfWithSingleRef { public static final String JSON_PROPERTY_USERNAME = "username"; + @jakarta.annotation.Nullable private String username; public static final String JSON_PROPERTY_SINGLE_REF_TYPE = "SingleRefType"; + @jakarta.annotation.Nullable private SingleRefType singleRefType; public AllOfWithSingleRef() { } - public AllOfWithSingleRef username(String username) { + public AllOfWithSingleRef username(@jakarta.annotation.Nullable String username) { this.username = username; return this; @@ -63,11 +65,11 @@ public String getUsername() { @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsername(String username) { + public void setUsername(@jakarta.annotation.Nullable String username) { this.username = username; } - public AllOfWithSingleRef singleRefType(SingleRefType singleRefType) { + public AllOfWithSingleRef singleRefType(@jakarta.annotation.Nullable SingleRefType singleRefType) { this.singleRefType = singleRefType; return this; @@ -88,7 +90,7 @@ public SingleRefType getSingleRefType() { @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSingleRefType(SingleRefType singleRefType) { + public void setSingleRefType(@jakarta.annotation.Nullable SingleRefType singleRefType) { this.singleRefType = singleRefType; } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Animal.java index 112ce06cadeb..244b3f562b7b 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Animal.java @@ -46,15 +46,17 @@ public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; + @jakarta.annotation.Nonnull protected String className; public static final String JSON_PROPERTY_COLOR = "color"; + @jakarta.annotation.Nullable protected String color = "red"; public Animal() { } - public Animal className(String className) { + public Animal className(@jakarta.annotation.Nonnull String className) { this.className = className; return this; @@ -75,11 +77,11 @@ public String getClassName() { @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setClassName(String className) { + public void setClassName(@jakarta.annotation.Nonnull String className) { this.className = className; } - public Animal color(String color) { + public Animal color(@jakarta.annotation.Nullable String color) { this.color = color; return this; @@ -100,7 +102,7 @@ public String getColor() { @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setColor(String color) { + public void setColor(@jakarta.annotation.Nullable String color) { this.color = color; } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index c97d89c5e35c..d83dba435210 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -36,12 +36,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayOfArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; + @jakarta.annotation.Nullable private List> arrayArrayNumber; public ArrayOfArrayOfNumberOnly() { } - public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + public ArrayOfArrayOfNumberOnly arrayArrayNumber(@jakarta.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; return this; @@ -70,7 +71,7 @@ public List> getArrayArrayNumber() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayNumber(List> arrayArrayNumber) { + public void setArrayArrayNumber(@jakarta.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 002a8e456c94..531270fd7688 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -36,12 +36,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; + @jakarta.annotation.Nullable private List arrayNumber; public ArrayOfNumberOnly() { } - public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + public ArrayOfNumberOnly arrayNumber(@jakarta.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; return this; @@ -70,7 +71,7 @@ public List getArrayNumber() { @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayNumber(List arrayNumber) { + public void setArrayNumber(@jakarta.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ArrayTest.java index f812c8d99c9f..1f7aef89a0c7 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -38,18 +38,21 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; + @jakarta.annotation.Nullable private List arrayOfString; public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; + @jakarta.annotation.Nullable private List> arrayArrayOfInteger; public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; + @jakarta.annotation.Nullable private List> arrayArrayOfModel; public ArrayTest() { } - public ArrayTest arrayOfString(List arrayOfString) { + public ArrayTest arrayOfString(@jakarta.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; return this; @@ -78,11 +81,11 @@ public List getArrayOfString() { @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayOfString(List arrayOfString) { + public void setArrayOfString(@jakarta.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; } - public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + public ArrayTest arrayArrayOfInteger(@jakarta.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; return this; @@ -111,11 +114,11 @@ public List> getArrayArrayOfInteger() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { + public void setArrayArrayOfInteger(@jakarta.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } - public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + public ArrayTest arrayArrayOfModel(@jakarta.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; return this; @@ -144,7 +147,7 @@ public List> getArrayArrayOfModel() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayOfModel(List> arrayArrayOfModel) { + public void setArrayArrayOfModel(@jakarta.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Capitalization.java index bceecc154807..c7396f325bd2 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Capitalization.java @@ -37,27 +37,33 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Capitalization { public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; + @jakarta.annotation.Nullable private String smallCamel; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; + @jakarta.annotation.Nullable private String capitalCamel; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; + @jakarta.annotation.Nullable private String smallSnake; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; + @jakarta.annotation.Nullable private String capitalSnake; public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; + @jakarta.annotation.Nullable private String scAETHFlowPoints; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; + @jakarta.annotation.Nullable private String ATT_NAME; public Capitalization() { } - public Capitalization smallCamel(String smallCamel) { + public Capitalization smallCamel(@jakarta.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; return this; @@ -78,11 +84,11 @@ public String getSmallCamel() { @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmallCamel(String smallCamel) { + public void setSmallCamel(@jakarta.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; } - public Capitalization capitalCamel(String capitalCamel) { + public Capitalization capitalCamel(@jakarta.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; return this; @@ -103,11 +109,11 @@ public String getCapitalCamel() { @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCapitalCamel(String capitalCamel) { + public void setCapitalCamel(@jakarta.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; } - public Capitalization smallSnake(String smallSnake) { + public Capitalization smallSnake(@jakarta.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; return this; @@ -128,11 +134,11 @@ public String getSmallSnake() { @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmallSnake(String smallSnake) { + public void setSmallSnake(@jakarta.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; } - public Capitalization capitalSnake(String capitalSnake) { + public Capitalization capitalSnake(@jakarta.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; return this; @@ -153,11 +159,11 @@ public String getCapitalSnake() { @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCapitalSnake(String capitalSnake) { + public void setCapitalSnake(@jakarta.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; } - public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + public Capitalization scAETHFlowPoints(@jakarta.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; return this; @@ -178,11 +184,11 @@ public String getScAETHFlowPoints() { @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setScAETHFlowPoints(String scAETHFlowPoints) { + public void setScAETHFlowPoints(@jakarta.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } - public Capitalization ATT_NAME(String ATT_NAME) { + public Capitalization ATT_NAME(@jakarta.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; return this; @@ -203,7 +209,7 @@ public String getATTNAME() { @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setATTNAME(String ATT_NAME) { + public void setATTNAME(@jakarta.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Cat.java index b5d1e3620c76..a825019e2a8c 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Cat.java @@ -42,13 +42,14 @@ public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; + @jakarta.annotation.Nullable private Boolean declawed; public Cat() { } - public Cat declawed(Boolean declawed) { + public Cat declawed(@jakarta.annotation.Nullable Boolean declawed) { this.declawed = declawed; return this; @@ -69,18 +70,18 @@ public Boolean getDeclawed() { @JsonProperty(JSON_PROPERTY_DECLAWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@jakarta.annotation.Nullable Boolean declawed) { this.declawed = declawed; } @Override - public Cat className(String className) { + public Cat className(@jakarta.annotation.Nonnull String className) { this.setClassName(className); return this; } @Override - public Cat color(String color) { + public Cat color(@jakarta.annotation.Nullable String color) { this.setColor(color); return this; } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Category.java index 19ea5f000f5a..333f4861b033 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Category.java @@ -33,15 +33,17 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Category { public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nonnull private String name = "default-name"; public Category() { } - public Category id(Long id) { + public Category id(@jakarta.annotation.Nullable Long id) { this.id = id; return this; @@ -62,11 +64,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; @@ -87,7 +89,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ChildWithNullable.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ChildWithNullable.java index 299c5a5fdbf2..2790c4e75c1f 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ChildWithNullable.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ChildWithNullable.java @@ -43,13 +43,14 @@ public class ChildWithNullable extends ParentWithNullable { public static final String JSON_PROPERTY_OTHER_PROPERTY = "otherProperty"; + @jakarta.annotation.Nullable private String otherProperty; public ChildWithNullable() { } - public ChildWithNullable otherProperty(String otherProperty) { + public ChildWithNullable otherProperty(@jakarta.annotation.Nullable String otherProperty) { this.otherProperty = otherProperty; return this; @@ -70,18 +71,18 @@ public String getOtherProperty() { @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOtherProperty(String otherProperty) { + public void setOtherProperty(@jakarta.annotation.Nullable String otherProperty) { this.otherProperty = otherProperty; } @Override - public ChildWithNullable type(TypeEnum type) { + public ChildWithNullable type(@jakarta.annotation.Nullable TypeEnum type) { this.setType(type); return this; } @Override - public ChildWithNullable nullableProperty(String nullableProperty) { + public ChildWithNullable nullableProperty(@jakarta.annotation.Nullable String nullableProperty) { this.setNullableProperty(nullableProperty); return this; } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ClassModel.java index fa7933fc5db4..85cf1359977a 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ClassModel.java @@ -32,12 +32,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ClassModel { public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; + @jakarta.annotation.Nullable private String propertyClass; public ClassModel() { } - public ClassModel propertyClass(String propertyClass) { + public ClassModel propertyClass(@jakarta.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; @@ -58,7 +59,7 @@ public String getPropertyClass() { @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@jakarta.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Client.java index 12ad332e9cb2..273015cbeeac 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Client.java @@ -32,12 +32,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Client { public static final String JSON_PROPERTY_CLIENT = "client"; + @jakarta.annotation.Nullable private String client; public Client() { } - public Client client(String client) { + public Client client(@jakarta.annotation.Nullable String client) { this.client = client; return this; @@ -58,7 +59,7 @@ public String getClient() { @JsonProperty(JSON_PROPERTY_CLIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setClient(String client) { + public void setClient(@jakarta.annotation.Nullable String client) { this.client = client; } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/DeprecatedObject.java index dd527b09389c..26f0e6ca7282 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -34,12 +34,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class DeprecatedObject { public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private String name; public DeprecatedObject() { } - public DeprecatedObject name(String name) { + public DeprecatedObject name(@jakarta.annotation.Nullable String name) { this.name = name; return this; @@ -60,7 +61,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Dog.java index 2eed36781825..94d3ace44bea 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Dog.java @@ -42,13 +42,14 @@ public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; + @jakarta.annotation.Nullable private String breed; public Dog() { } - public Dog breed(String breed) { + public Dog breed(@jakarta.annotation.Nullable String breed) { this.breed = breed; return this; @@ -69,18 +70,18 @@ public String getBreed() { @JsonProperty(JSON_PROPERTY_BREED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBreed(String breed) { + public void setBreed(@jakarta.annotation.Nullable String breed) { this.breed = breed; } @Override - public Dog className(String className) { + public Dog className(@jakarta.annotation.Nonnull String className) { this.setClassName(className); return this; } @Override - public Dog color(String color) { + public Dog color(@jakarta.annotation.Nullable String color) { this.setColor(color); return this; } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/EnumArrays.java index cc8047fa41ac..340a5f095cb9 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -71,6 +71,7 @@ public static JustSymbolEnum fromValue(String value) { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; + @jakarta.annotation.Nullable private JustSymbolEnum justSymbol; /** @@ -109,12 +110,13 @@ public static ArrayEnumEnum fromValue(String value) { } public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; + @jakarta.annotation.Nullable private List arrayEnum; public EnumArrays() { } - public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + public EnumArrays justSymbol(@jakarta.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; @@ -135,11 +137,11 @@ public JustSymbolEnum getJustSymbol() { @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJustSymbol(JustSymbolEnum justSymbol) { + public void setJustSymbol(@jakarta.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } - public EnumArrays arrayEnum(List arrayEnum) { + public EnumArrays arrayEnum(@jakarta.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; return this; @@ -168,7 +170,7 @@ public List getArrayEnum() { @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayEnum(List arrayEnum) { + public void setArrayEnum(@jakarta.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/EnumTest.java index 42f9f8e206a7..a64c6d285168 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/EnumTest.java @@ -85,6 +85,7 @@ public static EnumStringEnum fromValue(String value) { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; + @jakarta.annotation.Nullable private EnumStringEnum enumString; /** @@ -125,6 +126,7 @@ public static EnumStringRequiredEnum fromValue(String value) { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; + @jakarta.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** @@ -163,6 +165,7 @@ public static EnumIntegerEnum fromValue(Integer value) { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; + @jakarta.annotation.Nullable private EnumIntegerEnum enumInteger; /** @@ -201,24 +204,29 @@ public static EnumNumberEnum fromValue(Double value) { } public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; + @jakarta.annotation.Nullable private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; + @jakarta.annotation.Nullable private JsonNullable outerEnum = JsonNullable.undefined(); public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER = "outerEnumInteger"; + @jakarta.annotation.Nullable private OuterEnumInteger outerEnumInteger; public static final String JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE = "outerEnumDefaultValue"; + @jakarta.annotation.Nullable private OuterEnumDefaultValue outerEnumDefaultValue = OuterEnumDefaultValue.PLACED; public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE = "outerEnumIntegerDefaultValue"; + @jakarta.annotation.Nullable private OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = OuterEnumIntegerDefaultValue.NUMBER_0; public EnumTest() { } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@jakarta.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; @@ -239,11 +247,11 @@ public EnumStringEnum getEnumString() { @JsonProperty(JSON_PROPERTY_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumString(EnumStringEnum enumString) { + public void setEnumString(@jakarta.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; } - public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public EnumTest enumStringRequired(@jakarta.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; return this; @@ -264,11 +272,11 @@ public EnumStringRequiredEnum getEnumStringRequired() { @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public void setEnumStringRequired(@jakarta.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@jakarta.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; @@ -289,11 +297,11 @@ public EnumIntegerEnum getEnumInteger() { @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumInteger(EnumIntegerEnum enumInteger) { + public void setEnumInteger(@jakarta.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } - public EnumTest enumNumber(EnumNumberEnum enumNumber) { + public EnumTest enumNumber(@jakarta.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; return this; @@ -314,11 +322,11 @@ public EnumNumberEnum getEnumNumber() { @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumNumber(EnumNumberEnum enumNumber) { + public void setEnumNumber(@jakarta.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } - public EnumTest outerEnum(OuterEnum outerEnum) { + public EnumTest outerEnum(@jakarta.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = JsonNullable.of(outerEnum); return this; @@ -347,11 +355,11 @@ public void setOuterEnum_JsonNullable(JsonNullable outerEnum) { this.outerEnum = outerEnum; } - public void setOuterEnum(OuterEnum outerEnum) { + public void setOuterEnum(@jakarta.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = JsonNullable.of(outerEnum); } - public EnumTest outerEnumInteger(OuterEnumInteger outerEnumInteger) { + public EnumTest outerEnumInteger(@jakarta.annotation.Nullable OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; return this; @@ -372,11 +380,11 @@ public OuterEnumInteger getOuterEnumInteger() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnumInteger(OuterEnumInteger outerEnumInteger) { + public void setOuterEnumInteger(@jakarta.annotation.Nullable OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; } - public EnumTest outerEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) { + public EnumTest outerEnumDefaultValue(@jakarta.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; return this; @@ -397,11 +405,11 @@ public OuterEnumDefaultValue getOuterEnumDefaultValue() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) { + public void setOuterEnumDefaultValue(@jakarta.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; } - public EnumTest outerEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { + public EnumTest outerEnumIntegerDefaultValue(@jakarta.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; return this; @@ -422,7 +430,7 @@ public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { + public void setOuterEnumIntegerDefaultValue(@jakarta.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java index 96948883b37b..5363fd3803f1 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java @@ -37,15 +37,17 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FakeBigDecimalMap200Response { public static final String JSON_PROPERTY_SOME_ID = "someId"; + @jakarta.annotation.Nullable private BigDecimal someId; public static final String JSON_PROPERTY_SOME_MAP = "someMap"; + @jakarta.annotation.Nullable private Map someMap; public FakeBigDecimalMap200Response() { } - public FakeBigDecimalMap200Response someId(BigDecimal someId) { + public FakeBigDecimalMap200Response someId(@jakarta.annotation.Nullable BigDecimal someId) { this.someId = someId; return this; @@ -66,11 +68,11 @@ public BigDecimal getSomeId() { @JsonProperty(JSON_PROPERTY_SOME_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSomeId(BigDecimal someId) { + public void setSomeId(@jakarta.annotation.Nullable BigDecimal someId) { this.someId = someId; } - public FakeBigDecimalMap200Response someMap(Map someMap) { + public FakeBigDecimalMap200Response someMap(@jakarta.annotation.Nullable Map someMap) { this.someMap = someMap; return this; @@ -99,7 +101,7 @@ public Map getSomeMap() { @JsonProperty(JSON_PROPERTY_SOME_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSomeMap(Map someMap) { + public void setSomeMap(@jakarta.annotation.Nullable Map someMap) { this.someMap = someMap; } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index a30551964099..c4c17add5571 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -37,15 +37,17 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; + @jakarta.annotation.Nullable private ModelFile _file; public static final String JSON_PROPERTY_FILES = "files"; + @jakarta.annotation.Nullable private List files; public FileSchemaTestClass() { } - public FileSchemaTestClass _file(ModelFile _file) { + public FileSchemaTestClass _file(@jakarta.annotation.Nullable ModelFile _file) { this._file = _file; return this; @@ -66,11 +68,11 @@ public ModelFile getFile() { @JsonProperty(JSON_PROPERTY_FILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFile(ModelFile _file) { + public void setFile(@jakarta.annotation.Nullable ModelFile _file) { this._file = _file; } - public FileSchemaTestClass files(List files) { + public FileSchemaTestClass files(@jakarta.annotation.Nullable List files) { this.files = files; return this; @@ -99,7 +101,7 @@ public List getFiles() { @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFiles(List files) { + public void setFiles(@jakarta.annotation.Nullable List files) { this.files = files; } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Foo.java index 678216d49059..6e2968f4b8a3 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Foo.java @@ -32,12 +32,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Foo { public static final String JSON_PROPERTY_BAR = "bar"; + @jakarta.annotation.Nullable private String bar = "bar"; public Foo() { } - public Foo bar(String bar) { + public Foo bar(@jakarta.annotation.Nullable String bar) { this.bar = bar; return this; @@ -58,7 +59,7 @@ public String getBar() { @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBar(String bar) { + public void setBar(@jakarta.annotation.Nullable String bar) { this.bar = bar; } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index bdf29ba505ff..562ab25f63ad 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -34,12 +34,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FooGetDefaultResponse { public static final String JSON_PROPERTY_STRING = "string"; + @jakarta.annotation.Nullable private Foo string; public FooGetDefaultResponse() { } - public FooGetDefaultResponse string(Foo string) { + public FooGetDefaultResponse string(@jakarta.annotation.Nullable Foo string) { this.string = string; return this; @@ -60,7 +61,7 @@ public Foo getString() { @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setString(Foo string) { + public void setString(@jakarta.annotation.Nullable Foo string) { this.string = string; } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/FormatTest.java index 53f950a50c14..7c994fe0b2e4 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/FormatTest.java @@ -53,57 +53,73 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; + @jakarta.annotation.Nullable private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; + @jakarta.annotation.Nullable private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; + @jakarta.annotation.Nullable private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; + @jakarta.annotation.Nonnull private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; + @jakarta.annotation.Nullable private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; + @jakarta.annotation.Nullable private Double _double; public static final String JSON_PROPERTY_DECIMAL = "decimal"; + @jakarta.annotation.Nullable private BigDecimal decimal; public static final String JSON_PROPERTY_STRING = "string"; + @jakarta.annotation.Nullable private String string; public static final String JSON_PROPERTY_BYTE = "byte"; + @jakarta.annotation.Nonnull private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; + @jakarta.annotation.Nullable private File binary; public static final String JSON_PROPERTY_DATE = "date"; + @jakarta.annotation.Nonnull private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; + @jakarta.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; + @jakarta.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; + @jakarta.annotation.Nonnull private String password; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS = "pattern_with_digits"; + @jakarta.annotation.Nullable private String patternWithDigits; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER = "pattern_with_digits_and_delimiter"; + @jakarta.annotation.Nullable private String patternWithDigitsAndDelimiter; public FormatTest() { } - public FormatTest integer(Integer integer) { + public FormatTest integer(@jakarta.annotation.Nullable Integer integer) { this.integer = integer; return this; @@ -126,11 +142,11 @@ public Integer getInteger() { @JsonProperty(JSON_PROPERTY_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInteger(Integer integer) { + public void setInteger(@jakarta.annotation.Nullable Integer integer) { this.integer = integer; } - public FormatTest int32(Integer int32) { + public FormatTest int32(@jakarta.annotation.Nullable Integer int32) { this.int32 = int32; return this; @@ -153,11 +169,11 @@ public Integer getInt32() { @JsonProperty(JSON_PROPERTY_INT32) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInt32(Integer int32) { + public void setInt32(@jakarta.annotation.Nullable Integer int32) { this.int32 = int32; } - public FormatTest int64(Long int64) { + public FormatTest int64(@jakarta.annotation.Nullable Long int64) { this.int64 = int64; return this; @@ -178,11 +194,11 @@ public Long getInt64() { @JsonProperty(JSON_PROPERTY_INT64) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInt64(Long int64) { + public void setInt64(@jakarta.annotation.Nullable Long int64) { this.int64 = int64; } - public FormatTest number(BigDecimal number) { + public FormatTest number(@jakarta.annotation.Nonnull BigDecimal number) { this.number = number; return this; @@ -205,11 +221,11 @@ public BigDecimal getNumber() { @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNumber(BigDecimal number) { + public void setNumber(@jakarta.annotation.Nonnull BigDecimal number) { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@jakarta.annotation.Nullable Float _float) { this._float = _float; return this; @@ -232,11 +248,11 @@ public Float getFloat() { @JsonProperty(JSON_PROPERTY_FLOAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFloat(Float _float) { + public void setFloat(@jakarta.annotation.Nullable Float _float) { this._float = _float; } - public FormatTest _double(Double _double) { + public FormatTest _double(@jakarta.annotation.Nullable Double _double) { this._double = _double; return this; @@ -259,11 +275,11 @@ public Double getDouble() { @JsonProperty(JSON_PROPERTY_DOUBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDouble(Double _double) { + public void setDouble(@jakarta.annotation.Nullable Double _double) { this._double = _double; } - public FormatTest decimal(BigDecimal decimal) { + public FormatTest decimal(@jakarta.annotation.Nullable BigDecimal decimal) { this.decimal = decimal; return this; @@ -284,11 +300,11 @@ public BigDecimal getDecimal() { @JsonProperty(JSON_PROPERTY_DECIMAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDecimal(BigDecimal decimal) { + public void setDecimal(@jakarta.annotation.Nullable BigDecimal decimal) { this.decimal = decimal; } - public FormatTest string(String string) { + public FormatTest string(@jakarta.annotation.Nullable String string) { this.string = string; return this; @@ -309,11 +325,11 @@ public String getString() { @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setString(String string) { + public void setString(@jakarta.annotation.Nullable String string) { this.string = string; } - public FormatTest _byte(byte[] _byte) { + public FormatTest _byte(@jakarta.annotation.Nonnull byte[] _byte) { this._byte = _byte; return this; @@ -334,11 +350,11 @@ public byte[] getByte() { @JsonProperty(JSON_PROPERTY_BYTE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setByte(byte[] _byte) { + public void setByte(@jakarta.annotation.Nonnull byte[] _byte) { this._byte = _byte; } - public FormatTest binary(File binary) { + public FormatTest binary(@jakarta.annotation.Nullable File binary) { this.binary = binary; return this; @@ -359,11 +375,11 @@ public File getBinary() { @JsonProperty(JSON_PROPERTY_BINARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBinary(File binary) { + public void setBinary(@jakarta.annotation.Nullable File binary) { this.binary = binary; } - public FormatTest date(LocalDate date) { + public FormatTest date(@jakarta.annotation.Nonnull LocalDate date) { this.date = date; return this; @@ -384,11 +400,11 @@ public LocalDate getDate() { @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDate(LocalDate date) { + public void setDate(@jakarta.annotation.Nonnull LocalDate date) { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@jakarta.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; @@ -409,11 +425,11 @@ public OffsetDateTime getDateTime() { @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@jakarta.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public FormatTest uuid(UUID uuid) { + public FormatTest uuid(@jakarta.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; @@ -434,11 +450,11 @@ public UUID getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(UUID uuid) { + public void setUuid(@jakarta.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public FormatTest password(String password) { + public FormatTest password(@jakarta.annotation.Nonnull String password) { this.password = password; return this; @@ -459,11 +475,11 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPassword(String password) { + public void setPassword(@jakarta.annotation.Nonnull String password) { this.password = password; } - public FormatTest patternWithDigits(String patternWithDigits) { + public FormatTest patternWithDigits(@jakarta.annotation.Nullable String patternWithDigits) { this.patternWithDigits = patternWithDigits; return this; @@ -484,11 +500,11 @@ public String getPatternWithDigits() { @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPatternWithDigits(String patternWithDigits) { + public void setPatternWithDigits(@jakarta.annotation.Nullable String patternWithDigits) { this.patternWithDigits = patternWithDigits; } - public FormatTest patternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) { + public FormatTest patternWithDigitsAndDelimiter(@jakarta.annotation.Nullable String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; return this; @@ -509,7 +525,7 @@ public String getPatternWithDigitsAndDelimiter() { @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPatternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) { + public void setPatternWithDigitsAndDelimiter(@jakarta.annotation.Nullable String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index ce701e1c82e0..14250318f11d 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -34,9 +34,11 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; + @jakarta.annotation.Nullable private String bar; public static final String JSON_PROPERTY_FOO = "foo"; + @jakarta.annotation.Nullable private String foo; public HasOnlyReadOnly() { diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/HealthCheckResult.java index 32a4fb8fd2cc..b3d43e1bf0b6 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -36,12 +36,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class HealthCheckResult { public static final String JSON_PROPERTY_NULLABLE_MESSAGE = "NullableMessage"; + @jakarta.annotation.Nullable private JsonNullable nullableMessage = JsonNullable.undefined(); public HealthCheckResult() { } - public HealthCheckResult nullableMessage(String nullableMessage) { + public HealthCheckResult nullableMessage(@jakarta.annotation.Nullable String nullableMessage) { this.nullableMessage = JsonNullable.of(nullableMessage); return this; @@ -70,7 +71,7 @@ public void setNullableMessage_JsonNullable(JsonNullable nullableMessage this.nullableMessage = nullableMessage; } - public void setNullableMessage(String nullableMessage) { + public void setNullableMessage(@jakarta.annotation.Nullable String nullableMessage) { this.nullableMessage = JsonNullable.of(nullableMessage); } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/MapTest.java index cab7d80c6b3d..3bcca7bf9687 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/MapTest.java @@ -37,6 +37,7 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; + @jakarta.annotation.Nullable private Map> mapMapOfString; /** @@ -75,18 +76,21 @@ public static InnerEnum fromValue(String value) { } public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; + @jakarta.annotation.Nullable private Map mapOfEnumString; public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; + @jakarta.annotation.Nullable private Map directMap; public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; + @jakarta.annotation.Nullable private Map indirectMap; public MapTest() { } - public MapTest mapMapOfString(Map> mapMapOfString) { + public MapTest mapMapOfString(@jakarta.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; return this; @@ -115,11 +119,11 @@ public Map> getMapMapOfString() { @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapMapOfString(Map> mapMapOfString) { + public void setMapMapOfString(@jakarta.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } - public MapTest mapOfEnumString(Map mapOfEnumString) { + public MapTest mapOfEnumString(@jakarta.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; return this; @@ -148,11 +152,11 @@ public Map getMapOfEnumString() { @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapOfEnumString(Map mapOfEnumString) { + public void setMapOfEnumString(@jakarta.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } - public MapTest directMap(Map directMap) { + public MapTest directMap(@jakarta.annotation.Nullable Map directMap) { this.directMap = directMap; return this; @@ -181,11 +185,11 @@ public Map getDirectMap() { @JsonProperty(JSON_PROPERTY_DIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDirectMap(Map directMap) { + public void setDirectMap(@jakarta.annotation.Nullable Map directMap) { this.directMap = directMap; } - public MapTest indirectMap(Map indirectMap) { + public MapTest indirectMap(@jakarta.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; return this; @@ -214,7 +218,7 @@ public Map getIndirectMap() { @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIndirectMap(Map indirectMap) { + public void setIndirectMap(@jakarta.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 450e0bae5ccd..746e4f84c137 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -39,18 +39,21 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; + @jakarta.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; + @jakarta.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; + @jakarta.annotation.Nullable private Map map; public MixedPropertiesAndAdditionalPropertiesClass() { } - public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClass uuid(@jakarta.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; @@ -71,11 +74,11 @@ public UUID getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(UUID uuid) { + public void setUuid(@jakarta.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + public MixedPropertiesAndAdditionalPropertiesClass dateTime(@jakarta.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; @@ -96,11 +99,11 @@ public OffsetDateTime getDateTime() { @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@jakarta.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + public MixedPropertiesAndAdditionalPropertiesClass map(@jakarta.annotation.Nullable Map map) { this.map = map; return this; @@ -129,7 +132,7 @@ public Map getMap() { @JsonProperty(JSON_PROPERTY_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMap(Map map) { + public void setMap(@jakarta.annotation.Nullable Map map) { this.map = map; } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Model200Response.java index b6abc8494163..af868031a0a6 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Model200Response.java @@ -34,15 +34,17 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; + @jakarta.annotation.Nullable private String propertyClass; public Model200Response() { } - public Model200Response name(Integer name) { + public Model200Response name(@jakarta.annotation.Nullable Integer name) { this.name = name; return this; @@ -63,11 +65,11 @@ public Integer getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(Integer name) { + public void setName(@jakarta.annotation.Nullable Integer name) { this.name = name; } - public Model200Response propertyClass(String propertyClass) { + public Model200Response propertyClass(@jakarta.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; @@ -88,7 +90,7 @@ public String getPropertyClass() { @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@jakarta.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 741efeb57cfc..8128617f5045 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -35,18 +35,21 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; + @jakarta.annotation.Nullable private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nullable private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; + @jakarta.annotation.Nullable private String message; public ModelApiResponse() { } - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@jakarta.annotation.Nullable Integer code) { this.code = code; return this; @@ -67,11 +70,11 @@ public Integer getCode() { @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCode(Integer code) { + public void setCode(@jakarta.annotation.Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@jakarta.annotation.Nullable String type) { this.type = type; return this; @@ -92,11 +95,11 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@jakarta.annotation.Nullable String message) { this.message = message; return this; @@ -117,7 +120,7 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ModelFile.java index df0edd675990..969b69bc0853 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ModelFile.java @@ -33,12 +33,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelFile { public static final String JSON_PROPERTY_SOURCE_U_R_I = "sourceURI"; + @jakarta.annotation.Nullable private String sourceURI; public ModelFile() { } - public ModelFile sourceURI(String sourceURI) { + public ModelFile sourceURI(@jakarta.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; return this; @@ -59,7 +60,7 @@ public String getSourceURI() { @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSourceURI(String sourceURI) { + public void setSourceURI(@jakarta.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ModelList.java index eca3b07877ce..98036c3a8b9b 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ModelList.java @@ -33,12 +33,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelList { public static final String JSON_PROPERTY_123LIST = "123-list"; + @jakarta.annotation.Nullable private String _123list; public ModelList() { } - public ModelList _123list(String _123list) { + public ModelList _123list(@jakarta.annotation.Nullable String _123list) { this._123list = _123list; return this; @@ -59,7 +60,7 @@ public String get123list() { @JsonProperty(JSON_PROPERTY_123LIST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void set123list(String _123list) { + public void set123list(@jakarta.annotation.Nullable String _123list) { this._123list = _123list; } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ModelReturn.java index 0b1f0ab48a8d..86805added9c 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -33,12 +33,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; + @jakarta.annotation.Nullable private Integer _return; public ModelReturn() { } - public ModelReturn _return(Integer _return) { + public ModelReturn _return(@jakarta.annotation.Nullable Integer _return) { this._return = _return; return this; @@ -59,7 +60,7 @@ public Integer getReturn() { @JsonProperty(JSON_PROPERTY_RETURN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setReturn(Integer _return) { + public void setReturn(@jakarta.annotation.Nullable Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Name.java index feb4f94c36d0..b338c0d4f311 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Name.java @@ -35,15 +35,19 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Name { public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nonnull private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; + @jakarta.annotation.Nullable private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; + @jakarta.annotation.Nullable private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; + @jakarta.annotation.Nullable private Integer _123number; public Name() { @@ -61,7 +65,7 @@ public Name( this._123number = _123number; } - public Name name(Integer name) { + public Name name(@jakarta.annotation.Nonnull Integer name) { this.name = name; return this; @@ -82,7 +86,7 @@ public Integer getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(Integer name) { + public void setName(@jakarta.annotation.Nonnull Integer name) { this.name = name; } @@ -100,7 +104,7 @@ public Integer getSnakeCase() { - public Name property(String property) { + public Name property(@jakarta.annotation.Nullable String property) { this.property = property; return this; @@ -121,7 +125,7 @@ public String getProperty() { @JsonProperty(JSON_PROPERTY_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProperty(String property) { + public void setProperty(@jakarta.annotation.Nullable String property) { this.property = property; } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/NullableClass.java index 6fdd48c98b56..57f696dd6310 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/NullableClass.java @@ -55,46 +55,58 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class NullableClass extends HashMap { public static final String JSON_PROPERTY_INTEGER_PROP = "integer_prop"; + @jakarta.annotation.Nullable private JsonNullable integerProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_NUMBER_PROP = "number_prop"; + @jakarta.annotation.Nullable private JsonNullable numberProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_BOOLEAN_PROP = "boolean_prop"; + @jakarta.annotation.Nullable private JsonNullable booleanProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_STRING_PROP = "string_prop"; + @jakarta.annotation.Nullable private JsonNullable stringProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_DATE_PROP = "date_prop"; + @jakarta.annotation.Nullable private JsonNullable dateProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_DATETIME_PROP = "datetime_prop"; + @jakarta.annotation.Nullable private JsonNullable datetimeProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_ARRAY_NULLABLE_PROP = "array_nullable_prop"; + @jakarta.annotation.Nullable private JsonNullable> arrayNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP = "array_and_items_nullable_prop"; + @jakarta.annotation.Nullable private JsonNullable> arrayAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_ITEMS_NULLABLE = "array_items_nullable"; + @jakarta.annotation.Nullable private List arrayItemsNullable; public static final String JSON_PROPERTY_OBJECT_NULLABLE_PROP = "object_nullable_prop"; + @jakarta.annotation.Nullable private JsonNullable> objectNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP = "object_and_items_nullable_prop"; + @jakarta.annotation.Nullable private JsonNullable> objectAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_OBJECT_ITEMS_NULLABLE = "object_items_nullable"; + @jakarta.annotation.Nullable private Map objectItemsNullable; public NullableClass() { } - public NullableClass integerProp(Integer integerProp) { + public NullableClass integerProp(@jakarta.annotation.Nullable Integer integerProp) { this.integerProp = JsonNullable.of(integerProp); return this; @@ -123,11 +135,11 @@ public void setIntegerProp_JsonNullable(JsonNullable integerProp) { this.integerProp = integerProp; } - public void setIntegerProp(Integer integerProp) { + public void setIntegerProp(@jakarta.annotation.Nullable Integer integerProp) { this.integerProp = JsonNullable.of(integerProp); } - public NullableClass numberProp(BigDecimal numberProp) { + public NullableClass numberProp(@jakarta.annotation.Nullable BigDecimal numberProp) { this.numberProp = JsonNullable.of(numberProp); return this; @@ -156,11 +168,11 @@ public void setNumberProp_JsonNullable(JsonNullable numberProp) { this.numberProp = numberProp; } - public void setNumberProp(BigDecimal numberProp) { + public void setNumberProp(@jakarta.annotation.Nullable BigDecimal numberProp) { this.numberProp = JsonNullable.of(numberProp); } - public NullableClass booleanProp(Boolean booleanProp) { + public NullableClass booleanProp(@jakarta.annotation.Nullable Boolean booleanProp) { this.booleanProp = JsonNullable.of(booleanProp); return this; @@ -189,11 +201,11 @@ public void setBooleanProp_JsonNullable(JsonNullable booleanProp) { this.booleanProp = booleanProp; } - public void setBooleanProp(Boolean booleanProp) { + public void setBooleanProp(@jakarta.annotation.Nullable Boolean booleanProp) { this.booleanProp = JsonNullable.of(booleanProp); } - public NullableClass stringProp(String stringProp) { + public NullableClass stringProp(@jakarta.annotation.Nullable String stringProp) { this.stringProp = JsonNullable.of(stringProp); return this; @@ -222,11 +234,11 @@ public void setStringProp_JsonNullable(JsonNullable stringProp) { this.stringProp = stringProp; } - public void setStringProp(String stringProp) { + public void setStringProp(@jakarta.annotation.Nullable String stringProp) { this.stringProp = JsonNullable.of(stringProp); } - public NullableClass dateProp(LocalDate dateProp) { + public NullableClass dateProp(@jakarta.annotation.Nullable LocalDate dateProp) { this.dateProp = JsonNullable.of(dateProp); return this; @@ -255,11 +267,11 @@ public void setDateProp_JsonNullable(JsonNullable dateProp) { this.dateProp = dateProp; } - public void setDateProp(LocalDate dateProp) { + public void setDateProp(@jakarta.annotation.Nullable LocalDate dateProp) { this.dateProp = JsonNullable.of(dateProp); } - public NullableClass datetimeProp(OffsetDateTime datetimeProp) { + public NullableClass datetimeProp(@jakarta.annotation.Nullable OffsetDateTime datetimeProp) { this.datetimeProp = JsonNullable.of(datetimeProp); return this; @@ -288,11 +300,11 @@ public void setDatetimeProp_JsonNullable(JsonNullable datetimePr this.datetimeProp = datetimeProp; } - public void setDatetimeProp(OffsetDateTime datetimeProp) { + public void setDatetimeProp(@jakarta.annotation.Nullable OffsetDateTime datetimeProp) { this.datetimeProp = JsonNullable.of(datetimeProp); } - public NullableClass arrayNullableProp(List arrayNullableProp) { + public NullableClass arrayNullableProp(@jakarta.annotation.Nullable List arrayNullableProp) { this.arrayNullableProp = JsonNullable.>of(arrayNullableProp); return this; @@ -333,11 +345,11 @@ public void setArrayNullableProp_JsonNullable(JsonNullable> arrayNu this.arrayNullableProp = arrayNullableProp; } - public void setArrayNullableProp(List arrayNullableProp) { + public void setArrayNullableProp(@jakarta.annotation.Nullable List arrayNullableProp) { this.arrayNullableProp = JsonNullable.>of(arrayNullableProp); } - public NullableClass arrayAndItemsNullableProp(List arrayAndItemsNullableProp) { + public NullableClass arrayAndItemsNullableProp(@jakarta.annotation.Nullable List arrayAndItemsNullableProp) { this.arrayAndItemsNullableProp = JsonNullable.>of(arrayAndItemsNullableProp); return this; @@ -378,11 +390,11 @@ public void setArrayAndItemsNullableProp_JsonNullable(JsonNullable> this.arrayAndItemsNullableProp = arrayAndItemsNullableProp; } - public void setArrayAndItemsNullableProp(List arrayAndItemsNullableProp) { + public void setArrayAndItemsNullableProp(@jakarta.annotation.Nullable List arrayAndItemsNullableProp) { this.arrayAndItemsNullableProp = JsonNullable.>of(arrayAndItemsNullableProp); } - public NullableClass arrayItemsNullable(List arrayItemsNullable) { + public NullableClass arrayItemsNullable(@jakarta.annotation.Nullable List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; return this; @@ -411,11 +423,11 @@ public List getArrayItemsNullable() { @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayItemsNullable(List arrayItemsNullable) { + public void setArrayItemsNullable(@jakarta.annotation.Nullable List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; } - public NullableClass objectNullableProp(Map objectNullableProp) { + public NullableClass objectNullableProp(@jakarta.annotation.Nullable Map objectNullableProp) { this.objectNullableProp = JsonNullable.>of(objectNullableProp); return this; @@ -456,11 +468,11 @@ public void setObjectNullableProp_JsonNullable(JsonNullable> this.objectNullableProp = objectNullableProp; } - public void setObjectNullableProp(Map objectNullableProp) { + public void setObjectNullableProp(@jakarta.annotation.Nullable Map objectNullableProp) { this.objectNullableProp = JsonNullable.>of(objectNullableProp); } - public NullableClass objectAndItemsNullableProp(Map objectAndItemsNullableProp) { + public NullableClass objectAndItemsNullableProp(@jakarta.annotation.Nullable Map objectAndItemsNullableProp) { this.objectAndItemsNullableProp = JsonNullable.>of(objectAndItemsNullableProp); return this; @@ -501,11 +513,11 @@ public void setObjectAndItemsNullableProp_JsonNullable(JsonNullable objectAndItemsNullableProp) { + public void setObjectAndItemsNullableProp(@jakarta.annotation.Nullable Map objectAndItemsNullableProp) { this.objectAndItemsNullableProp = JsonNullable.>of(objectAndItemsNullableProp); } - public NullableClass objectItemsNullable(Map objectItemsNullable) { + public NullableClass objectItemsNullable(@jakarta.annotation.Nullable Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; return this; @@ -534,7 +546,7 @@ public Map getObjectItemsNullable() { @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setObjectItemsNullable(Map objectItemsNullable) { + public void setObjectItemsNullable(@jakarta.annotation.Nullable Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/NumberOnly.java index bffd77c2dcd1..ee3bd2d0db40 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -33,12 +33,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; + @jakarta.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } - public NumberOnly justNumber(BigDecimal justNumber) { + public NumberOnly justNumber(@jakarta.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; @@ -59,7 +60,7 @@ public BigDecimal getJustNumber() { @JsonProperty(JSON_PROPERTY_JUST_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJustNumber(BigDecimal justNumber) { + public void setJustNumber(@jakarta.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index 687ef7c5f9ea..359632872704 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -40,21 +40,25 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ObjectWithDeprecatedFields { public static final String JSON_PROPERTY_UUID = "uuid"; + @jakarta.annotation.Nullable private String uuid; public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nullable private BigDecimal id; public static final String JSON_PROPERTY_DEPRECATED_REF = "deprecatedRef"; + @jakarta.annotation.Nullable private DeprecatedObject deprecatedRef; public static final String JSON_PROPERTY_BARS = "bars"; + @jakarta.annotation.Nullable private List bars; public ObjectWithDeprecatedFields() { } - public ObjectWithDeprecatedFields uuid(String uuid) { + public ObjectWithDeprecatedFields uuid(@jakarta.annotation.Nullable String uuid) { this.uuid = uuid; return this; @@ -75,11 +79,11 @@ public String getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(String uuid) { + public void setUuid(@jakarta.annotation.Nullable String uuid) { this.uuid = uuid; } - public ObjectWithDeprecatedFields id(BigDecimal id) { + public ObjectWithDeprecatedFields id(@jakarta.annotation.Nullable BigDecimal id) { this.id = id; return this; @@ -102,11 +106,11 @@ public BigDecimal getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(BigDecimal id) { + public void setId(@jakarta.annotation.Nullable BigDecimal id) { this.id = id; } - public ObjectWithDeprecatedFields deprecatedRef(DeprecatedObject deprecatedRef) { + public ObjectWithDeprecatedFields deprecatedRef(@jakarta.annotation.Nullable DeprecatedObject deprecatedRef) { this.deprecatedRef = deprecatedRef; return this; @@ -129,11 +133,11 @@ public DeprecatedObject getDeprecatedRef() { @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeprecatedRef(DeprecatedObject deprecatedRef) { + public void setDeprecatedRef(@jakarta.annotation.Nullable DeprecatedObject deprecatedRef) { this.deprecatedRef = deprecatedRef; } - public ObjectWithDeprecatedFields bars(List bars) { + public ObjectWithDeprecatedFields bars(@jakarta.annotation.Nullable List bars) { this.bars = bars; return this; @@ -164,7 +168,7 @@ public List getBars() { @JsonProperty(JSON_PROPERTY_BARS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBars(List bars) { + public void setBars(@jakarta.annotation.Nullable List bars) { this.bars = bars; } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Order.java index 413c1643238f..82fd6fcf22d1 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Order.java @@ -38,15 +38,19 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Order { public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; + @jakarta.annotation.Nullable private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; + @jakarta.annotation.Nullable private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; + @jakarta.annotation.Nullable private OffsetDateTime shipDate; /** @@ -87,15 +91,17 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @jakarta.annotation.Nullable private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; + @jakarta.annotation.Nullable private Boolean complete = false; public Order() { } - public Order id(Long id) { + public Order id(@jakarta.annotation.Nullable Long id) { this.id = id; return this; @@ -116,11 +122,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@jakarta.annotation.Nullable Long petId) { this.petId = petId; return this; @@ -141,11 +147,11 @@ public Long getPetId() { @JsonProperty(JSON_PROPERTY_PET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPetId(Long petId) { + public void setPetId(@jakarta.annotation.Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@jakarta.annotation.Nullable Integer quantity) { this.quantity = quantity; return this; @@ -166,11 +172,11 @@ public Integer getQuantity() { @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setQuantity(Integer quantity) { + public void setQuantity(@jakarta.annotation.Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@jakarta.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; @@ -191,11 +197,11 @@ public OffsetDateTime getShipDate() { @JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@jakarta.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -216,11 +222,11 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; } - public Order complete(Boolean complete) { + public Order complete(@jakarta.annotation.Nullable Boolean complete) { this.complete = complete; return this; @@ -241,7 +247,7 @@ public Boolean getComplete() { @JsonProperty(JSON_PROPERTY_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setComplete(Boolean complete) { + public void setComplete(@jakarta.annotation.Nullable Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/OuterComposite.java index cf317e534c8d..e68bee95105f 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -35,18 +35,21 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; + @jakarta.annotation.Nullable private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; + @jakarta.annotation.Nullable private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; + @jakarta.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } - public OuterComposite myNumber(BigDecimal myNumber) { + public OuterComposite myNumber(@jakarta.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; @@ -67,11 +70,11 @@ public BigDecimal getMyNumber() { @JsonProperty(JSON_PROPERTY_MY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyNumber(BigDecimal myNumber) { + public void setMyNumber(@jakarta.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; } - public OuterComposite myString(String myString) { + public OuterComposite myString(@jakarta.annotation.Nullable String myString) { this.myString = myString; return this; @@ -92,11 +95,11 @@ public String getMyString() { @JsonProperty(JSON_PROPERTY_MY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyString(String myString) { + public void setMyString(@jakarta.annotation.Nullable String myString) { this.myString = myString; } - public OuterComposite myBoolean(Boolean myBoolean) { + public OuterComposite myBoolean(@jakarta.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; return this; @@ -117,7 +120,7 @@ public Boolean getMyBoolean() { @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyBoolean(Boolean myBoolean) { + public void setMyBoolean(@jakarta.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java index 4411bec90d98..c64d3456049d 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java @@ -33,12 +33,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class OuterObjectWithEnumProperty { public static final String JSON_PROPERTY_VALUE = "value"; + @jakarta.annotation.Nonnull private OuterEnumInteger value; public OuterObjectWithEnumProperty() { } - public OuterObjectWithEnumProperty value(OuterEnumInteger value) { + public OuterObjectWithEnumProperty value(@jakarta.annotation.Nonnull OuterEnumInteger value) { this.value = value; return this; @@ -59,7 +60,7 @@ public OuterEnumInteger getValue() { @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setValue(OuterEnumInteger value) { + public void setValue(@jakarta.annotation.Nonnull OuterEnumInteger value) { this.value = value; } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ParentWithNullable.java index 15c420ba0e16..726ef8d173a1 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -82,15 +82,17 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nullable protected TypeEnum type; public static final String JSON_PROPERTY_NULLABLE_PROPERTY = "nullableProperty"; + @jakarta.annotation.Nullable protected JsonNullable nullableProperty = JsonNullable.undefined(); public ParentWithNullable() { } - public ParentWithNullable type(TypeEnum type) { + public ParentWithNullable type(@jakarta.annotation.Nullable TypeEnum type) { this.type = type; return this; @@ -111,11 +113,11 @@ public TypeEnum getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(TypeEnum type) { + public void setType(@jakarta.annotation.Nullable TypeEnum type) { this.type = type; } - public ParentWithNullable nullableProperty(String nullableProperty) { + public ParentWithNullable nullableProperty(@jakarta.annotation.Nullable String nullableProperty) { this.nullableProperty = JsonNullable.of(nullableProperty); return this; @@ -144,7 +146,7 @@ public void setNullableProperty_JsonNullable(JsonNullable nullableProper this.nullableProperty = nullableProperty; } - public void setNullableProperty(String nullableProperty) { + public void setNullableProperty(@jakarta.annotation.Nullable String nullableProperty) { this.nullableProperty = JsonNullable.of(nullableProperty); } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Pet.java index 7c0cb532da78..5399a74bede8 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Pet.java @@ -45,18 +45,23 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Pet { public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; + @jakarta.annotation.Nullable private Category category; public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; + @jakarta.annotation.Nonnull private Set photoUrls; public static final String JSON_PROPERTY_TAGS = "tags"; + @jakarta.annotation.Nullable private List tags; /** @@ -97,12 +102,13 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @jakarta.annotation.Nullable private StatusEnum status; public Pet() { } - public Pet id(Long id) { + public Pet id(@jakarta.annotation.Nullable Long id) { this.id = id; return this; @@ -123,11 +129,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@jakarta.annotation.Nullable Category category) { this.category = category; return this; @@ -148,11 +154,11 @@ public Category getCategory() { @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCategory(Category category) { + public void setCategory(@jakarta.annotation.Nullable Category category) { this.category = category; } - public Pet name(String name) { + public Pet name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; @@ -173,11 +179,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public Pet photoUrls(Set photoUrls) { + public Pet photoUrls(@jakarta.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; return this; @@ -207,11 +213,11 @@ public Set getPhotoUrls() { @JsonDeserialize(as = LinkedHashSet.class) @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPhotoUrls(Set photoUrls) { + public void setPhotoUrls(@jakarta.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; } - public Pet tags(List tags) { + public Pet tags(@jakarta.annotation.Nullable List tags) { this.tags = tags; return this; @@ -240,11 +246,11 @@ public List getTags() { @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTags(List tags) { + public void setTags(@jakarta.annotation.Nullable List tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -265,7 +271,7 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 16d08b2bc4f5..1e6fc09d92aa 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -33,9 +33,11 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; + @jakarta.annotation.Nullable private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; + @jakarta.annotation.Nullable private String baz; public ReadOnlyFirst() { @@ -65,7 +67,7 @@ public String getBar() { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@jakarta.annotation.Nullable String baz) { this.baz = baz; return this; @@ -86,7 +88,7 @@ public String getBaz() { @JsonProperty(JSON_PROPERTY_BAZ) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBaz(String baz) { + public void setBaz(@jakarta.annotation.Nullable String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/SpecialModelName.java index 9ce6173951fb..08b5f982cf96 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -33,12 +33,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; + @jakarta.annotation.Nullable private Long $specialPropertyName; public SpecialModelName() { } - public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + public SpecialModelName $specialPropertyName(@jakarta.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; return this; @@ -59,7 +60,7 @@ public SpecialModelName() { @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void set$SpecialPropertyName(Long $specialPropertyName) { + public void set$SpecialPropertyName(@jakarta.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Tag.java index 4f9df002d28e..fb61c8492e61 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Tag.java @@ -33,15 +33,17 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Tag { public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private String name; public Tag() { } - public Tag id(Long id) { + public Tag id(@jakarta.annotation.Nullable Long id) { this.id = id; return this; @@ -62,11 +64,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@jakarta.annotation.Nullable String name) { this.name = name; return this; @@ -87,7 +89,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index 6be6a48b0c82..7d8cdf76a603 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -35,13 +35,14 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class TestInlineFreeformAdditionalPropertiesRequest extends HashMap { public static final String JSON_PROPERTY_SOME_PROPERTY = "someProperty"; + @jakarta.annotation.Nullable private String someProperty; public TestInlineFreeformAdditionalPropertiesRequest() { } - public TestInlineFreeformAdditionalPropertiesRequest someProperty(String someProperty) { + public TestInlineFreeformAdditionalPropertiesRequest someProperty(@jakarta.annotation.Nullable String someProperty) { this.someProperty = someProperty; return this; @@ -62,7 +63,7 @@ public String getSomeProperty() { @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSomeProperty(String someProperty) { + public void setSomeProperty(@jakarta.annotation.Nullable String someProperty) { this.someProperty = someProperty; } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/User.java index 95f966792d23..b3b76f7252ef 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/User.java @@ -39,33 +39,41 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class User { public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; + @jakarta.annotation.Nullable private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; + @jakarta.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; + @jakarta.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; + @jakarta.annotation.Nullable private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; + @jakarta.annotation.Nullable private String password; public static final String JSON_PROPERTY_PHONE = "phone"; + @jakarta.annotation.Nullable private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; + @jakarta.annotation.Nullable private Integer userStatus; public User() { } - public User id(Long id) { + public User id(@jakarta.annotation.Nullable Long id) { this.id = id; return this; @@ -86,11 +94,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@jakarta.annotation.Nullable String username) { this.username = username; return this; @@ -111,11 +119,11 @@ public String getUsername() { @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsername(String username) { + public void setUsername(@jakarta.annotation.Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@jakarta.annotation.Nullable String firstName) { this.firstName = firstName; return this; @@ -136,11 +144,11 @@ public String getFirstName() { @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFirstName(String firstName) { + public void setFirstName(@jakarta.annotation.Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@jakarta.annotation.Nullable String lastName) { this.lastName = lastName; return this; @@ -161,11 +169,11 @@ public String getLastName() { @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLastName(String lastName) { + public void setLastName(@jakarta.annotation.Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@jakarta.annotation.Nullable String email) { this.email = email; return this; @@ -186,11 +194,11 @@ public String getEmail() { @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEmail(String email) { + public void setEmail(@jakarta.annotation.Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@jakarta.annotation.Nullable String password) { this.password = password; return this; @@ -211,11 +219,11 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPassword(String password) { + public void setPassword(@jakarta.annotation.Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@jakarta.annotation.Nullable String phone) { this.phone = phone; return this; @@ -236,11 +244,11 @@ public String getPhone() { @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPhone(String phone) { + public void setPhone(@jakarta.annotation.Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@jakarta.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; return this; @@ -261,7 +269,7 @@ public Integer getUserStatus() { @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@jakarta.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index c09dd4dc708e..d0fa26016054 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -35,15 +35,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_PROPERTY = "map_property"; + @javax.annotation.Nullable private Map mapProperty = new HashMap<>(); public static final String JSON_PROPERTY_MAP_OF_MAP_PROPERTY = "map_of_map_property"; + @javax.annotation.Nullable private Map> mapOfMapProperty = new HashMap<>(); public AdditionalPropertiesClass() { } - public AdditionalPropertiesClass mapProperty(Map mapProperty) { + public AdditionalPropertiesClass mapProperty(@javax.annotation.Nullable Map mapProperty) { this.mapProperty = mapProperty; return this; @@ -72,11 +74,11 @@ public Map getMapProperty() { @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapProperty(Map mapProperty) { + public void setMapProperty(@javax.annotation.Nullable Map mapProperty) { this.mapProperty = mapProperty; } - public AdditionalPropertiesClass mapOfMapProperty(Map> mapOfMapProperty) { + public AdditionalPropertiesClass mapOfMapProperty(@javax.annotation.Nullable Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; return this; @@ -105,7 +107,7 @@ public Map> getMapOfMapProperty() { @JsonProperty(JSON_PROPERTY_MAP_OF_MAP_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapOfMapProperty(Map> mapOfMapProperty) { + public void setMapOfMapProperty(@javax.annotation.Nullable Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java index 9f36b8d97bca..6321e51f3b99 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java @@ -34,15 +34,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AllOfWithSingleRef { public static final String JSON_PROPERTY_USERNAME = "username"; + @javax.annotation.Nullable private String username; public static final String JSON_PROPERTY_SINGLE_REF_TYPE = "SingleRefType"; + @javax.annotation.Nullable private SingleRefType singleRefType; public AllOfWithSingleRef() { } - public AllOfWithSingleRef username(String username) { + public AllOfWithSingleRef username(@javax.annotation.Nullable String username) { this.username = username; return this; @@ -63,11 +65,11 @@ public String getUsername() { @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsername(String username) { + public void setUsername(@javax.annotation.Nullable String username) { this.username = username; } - public AllOfWithSingleRef singleRefType(SingleRefType singleRefType) { + public AllOfWithSingleRef singleRefType(@javax.annotation.Nullable SingleRefType singleRefType) { this.singleRefType = singleRefType; return this; @@ -88,7 +90,7 @@ public SingleRefType getSingleRefType() { @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSingleRefType(SingleRefType singleRefType) { + public void setSingleRefType(@javax.annotation.Nullable SingleRefType singleRefType) { this.singleRefType = singleRefType; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Animal.java index 13951a8b1589..fb66712c5aef 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Animal.java @@ -46,15 +46,17 @@ public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; + @javax.annotation.Nonnull protected String className; public static final String JSON_PROPERTY_COLOR = "color"; + @javax.annotation.Nullable protected String color = "red"; public Animal() { } - public Animal className(String className) { + public Animal className(@javax.annotation.Nonnull String className) { this.className = className; return this; @@ -75,11 +77,11 @@ public String getClassName() { @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setClassName(String className) { + public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; } - public Animal color(String color) { + public Animal color(@javax.annotation.Nullable String color) { this.color = color; return this; @@ -100,7 +102,7 @@ public String getColor() { @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setColor(String color) { + public void setColor(@javax.annotation.Nullable String color) { this.color = color; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index bb5e1e064489..18a572cba180 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -36,12 +36,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayOfArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; + @javax.annotation.Nullable private List> arrayArrayNumber = new ArrayList<>(); public ArrayOfArrayOfNumberOnly() { } - public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + public ArrayOfArrayOfNumberOnly arrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; return this; @@ -70,7 +71,7 @@ public List> getArrayArrayNumber() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayNumber(List> arrayArrayNumber) { + public void setArrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index f807afcbd310..4aaa3f7fa616 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -36,12 +36,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; + @javax.annotation.Nullable private List arrayNumber = new ArrayList<>(); public ArrayOfNumberOnly() { } - public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + public ArrayOfNumberOnly arrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; return this; @@ -70,7 +71,7 @@ public List getArrayNumber() { @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayNumber(List arrayNumber) { + public void setArrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ArrayTest.java index 09f4fee4ae44..8229b3d48622 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -38,18 +38,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; + @javax.annotation.Nullable private List arrayOfString = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; + @javax.annotation.Nullable private List> arrayArrayOfInteger = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; + @javax.annotation.Nullable private List> arrayArrayOfModel = new ArrayList<>(); public ArrayTest() { } - public ArrayTest arrayOfString(List arrayOfString) { + public ArrayTest arrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; return this; @@ -78,11 +81,11 @@ public List getArrayOfString() { @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayOfString(List arrayOfString) { + public void setArrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; } - public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + public ArrayTest arrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; return this; @@ -111,11 +114,11 @@ public List> getArrayArrayOfInteger() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { + public void setArrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } - public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + public ArrayTest arrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; return this; @@ -144,7 +147,7 @@ public List> getArrayArrayOfModel() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayOfModel(List> arrayArrayOfModel) { + public void setArrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Capitalization.java index 43c174eab6c0..9ba3cfe4c4fb 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Capitalization.java @@ -37,27 +37,33 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Capitalization { public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; + @javax.annotation.Nullable private String smallCamel; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; + @javax.annotation.Nullable private String capitalCamel; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; + @javax.annotation.Nullable private String smallSnake; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; + @javax.annotation.Nullable private String capitalSnake; public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; + @javax.annotation.Nullable private String scAETHFlowPoints; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; + @javax.annotation.Nullable private String ATT_NAME; public Capitalization() { } - public Capitalization smallCamel(String smallCamel) { + public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; return this; @@ -78,11 +84,11 @@ public String getSmallCamel() { @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmallCamel(String smallCamel) { + public void setSmallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; } - public Capitalization capitalCamel(String capitalCamel) { + public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; return this; @@ -103,11 +109,11 @@ public String getCapitalCamel() { @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCapitalCamel(String capitalCamel) { + public void setCapitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; } - public Capitalization smallSnake(String smallSnake) { + public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; return this; @@ -128,11 +134,11 @@ public String getSmallSnake() { @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmallSnake(String smallSnake) { + public void setSmallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; } - public Capitalization capitalSnake(String capitalSnake) { + public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; return this; @@ -153,11 +159,11 @@ public String getCapitalSnake() { @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCapitalSnake(String capitalSnake) { + public void setCapitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; } - public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; return this; @@ -178,11 +184,11 @@ public String getScAETHFlowPoints() { @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setScAETHFlowPoints(String scAETHFlowPoints) { + public void setScAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } - public Capitalization ATT_NAME(String ATT_NAME) { + public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; return this; @@ -203,7 +209,7 @@ public String getATTNAME() { @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setATTNAME(String ATT_NAME) { + public void setATTNAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Cat.java index a099c51138c2..df339e893802 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Cat.java @@ -42,13 +42,14 @@ public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; + @javax.annotation.Nullable private Boolean declawed; public Cat() { } - public Cat declawed(Boolean declawed) { + public Cat declawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; return this; @@ -69,18 +70,18 @@ public Boolean getDeclawed() { @JsonProperty(JSON_PROPERTY_DECLAWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; } @Override - public Cat className(String className) { + public Cat className(@javax.annotation.Nonnull String className) { this.setClassName(className); return this; } @Override - public Cat color(String color) { + public Cat color(@javax.annotation.Nullable String color) { this.setColor(color); return this; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Category.java index 332aa92b9bd9..0c4ede2fd662 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Category.java @@ -33,15 +33,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Category { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private String name = "default-name"; public Category() { } - public Category id(Long id) { + public Category id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -62,11 +64,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@javax.annotation.Nonnull String name) { this.name = name; return this; @@ -87,7 +89,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ChildWithNullable.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ChildWithNullable.java index 04b7c20b41b0..446d01ecf76b 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ChildWithNullable.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ChildWithNullable.java @@ -43,13 +43,14 @@ public class ChildWithNullable extends ParentWithNullable { public static final String JSON_PROPERTY_OTHER_PROPERTY = "otherProperty"; + @javax.annotation.Nullable private String otherProperty; public ChildWithNullable() { } - public ChildWithNullable otherProperty(String otherProperty) { + public ChildWithNullable otherProperty(@javax.annotation.Nullable String otherProperty) { this.otherProperty = otherProperty; return this; @@ -70,18 +71,18 @@ public String getOtherProperty() { @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOtherProperty(String otherProperty) { + public void setOtherProperty(@javax.annotation.Nullable String otherProperty) { this.otherProperty = otherProperty; } @Override - public ChildWithNullable type(TypeEnum type) { + public ChildWithNullable type(@javax.annotation.Nullable TypeEnum type) { this.setType(type); return this; } @Override - public ChildWithNullable nullableProperty(String nullableProperty) { + public ChildWithNullable nullableProperty(@javax.annotation.Nullable String nullableProperty) { this.setNullableProperty(nullableProperty); return this; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ClassModel.java index eba862847664..15f206254637 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ClassModel.java @@ -32,12 +32,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ClassModel { public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; + @javax.annotation.Nullable private String propertyClass; public ClassModel() { } - public ClassModel propertyClass(String propertyClass) { + public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; @@ -58,7 +59,7 @@ public String getPropertyClass() { @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Client.java index a5f5a56f08f3..f9d821e024b9 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Client.java @@ -32,12 +32,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Client { public static final String JSON_PROPERTY_CLIENT = "client"; + @javax.annotation.Nullable private String client; public Client() { } - public Client client(String client) { + public Client client(@javax.annotation.Nullable String client) { this.client = client; return this; @@ -58,7 +59,7 @@ public String getClient() { @JsonProperty(JSON_PROPERTY_CLIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setClient(String client) { + public void setClient(@javax.annotation.Nullable String client) { this.client = client; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/DeprecatedObject.java index 039c1e25a9af..06e876f70333 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -34,12 +34,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class DeprecatedObject { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public DeprecatedObject() { } - public DeprecatedObject name(String name) { + public DeprecatedObject name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -60,7 +61,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Dog.java index cf9d1537e128..8c5a24918453 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Dog.java @@ -42,13 +42,14 @@ public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; + @javax.annotation.Nullable private String breed; public Dog() { } - public Dog breed(String breed) { + public Dog breed(@javax.annotation.Nullable String breed) { this.breed = breed; return this; @@ -69,18 +70,18 @@ public String getBreed() { @JsonProperty(JSON_PROPERTY_BREED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBreed(String breed) { + public void setBreed(@javax.annotation.Nullable String breed) { this.breed = breed; } @Override - public Dog className(String className) { + public Dog className(@javax.annotation.Nonnull String className) { this.setClassName(className); return this; } @Override - public Dog color(String color) { + public Dog color(@javax.annotation.Nullable String color) { this.setColor(color); return this; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/EnumArrays.java index ed3d3768e625..356e89c0f0cf 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -71,6 +71,7 @@ public static JustSymbolEnum fromValue(String value) { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** @@ -109,12 +110,13 @@ public static ArrayEnumEnum fromValue(String value) { } public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; + @javax.annotation.Nullable private List arrayEnum = new ArrayList<>(); public EnumArrays() { } - public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; @@ -135,11 +137,11 @@ public JustSymbolEnum getJustSymbol() { @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJustSymbol(JustSymbolEnum justSymbol) { + public void setJustSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } - public EnumArrays arrayEnum(List arrayEnum) { + public EnumArrays arrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; return this; @@ -168,7 +170,7 @@ public List getArrayEnum() { @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayEnum(List arrayEnum) { + public void setArrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/EnumTest.java index c84f2fa3fc8d..8523c6f30213 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/EnumTest.java @@ -85,6 +85,7 @@ public static EnumStringEnum fromValue(String value) { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; + @javax.annotation.Nullable private EnumStringEnum enumString; /** @@ -125,6 +126,7 @@ public static EnumStringRequiredEnum fromValue(String value) { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** @@ -163,6 +165,7 @@ public static EnumIntegerEnum fromValue(Integer value) { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** @@ -201,24 +204,29 @@ public static EnumNumberEnum fromValue(Double value) { } public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; + @javax.annotation.Nullable private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; + @javax.annotation.Nullable private JsonNullable outerEnum = JsonNullable.undefined(); public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER = "outerEnumInteger"; + @javax.annotation.Nullable private OuterEnumInteger outerEnumInteger; public static final String JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE = "outerEnumDefaultValue"; + @javax.annotation.Nullable private OuterEnumDefaultValue outerEnumDefaultValue = OuterEnumDefaultValue.PLACED; public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE = "outerEnumIntegerDefaultValue"; + @javax.annotation.Nullable private OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = OuterEnumIntegerDefaultValue.NUMBER_0; public EnumTest() { } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; @@ -239,11 +247,11 @@ public EnumStringEnum getEnumString() { @JsonProperty(JSON_PROPERTY_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumString(EnumStringEnum enumString) { + public void setEnumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; } - public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; return this; @@ -264,11 +272,11 @@ public EnumStringRequiredEnum getEnumStringRequired() { @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public void setEnumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; @@ -289,11 +297,11 @@ public EnumIntegerEnum getEnumInteger() { @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumInteger(EnumIntegerEnum enumInteger) { + public void setEnumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } - public EnumTest enumNumber(EnumNumberEnum enumNumber) { + public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; return this; @@ -314,11 +322,11 @@ public EnumNumberEnum getEnumNumber() { @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumNumber(EnumNumberEnum enumNumber) { + public void setEnumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } - public EnumTest outerEnum(OuterEnum outerEnum) { + public EnumTest outerEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = JsonNullable.of(outerEnum); return this; @@ -347,11 +355,11 @@ public void setOuterEnum_JsonNullable(JsonNullable outerEnum) { this.outerEnum = outerEnum; } - public void setOuterEnum(OuterEnum outerEnum) { + public void setOuterEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = JsonNullable.of(outerEnum); } - public EnumTest outerEnumInteger(OuterEnumInteger outerEnumInteger) { + public EnumTest outerEnumInteger(@javax.annotation.Nullable OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; return this; @@ -372,11 +380,11 @@ public OuterEnumInteger getOuterEnumInteger() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnumInteger(OuterEnumInteger outerEnumInteger) { + public void setOuterEnumInteger(@javax.annotation.Nullable OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; } - public EnumTest outerEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) { + public EnumTest outerEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; return this; @@ -397,11 +405,11 @@ public OuterEnumDefaultValue getOuterEnumDefaultValue() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) { + public void setOuterEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; } - public EnumTest outerEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { + public EnumTest outerEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; return this; @@ -422,7 +430,7 @@ public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { + public void setOuterEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java index b92b4b90912e..282dce2da2a4 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java @@ -37,15 +37,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FakeBigDecimalMap200Response { public static final String JSON_PROPERTY_SOME_ID = "someId"; + @javax.annotation.Nullable private BigDecimal someId; public static final String JSON_PROPERTY_SOME_MAP = "someMap"; + @javax.annotation.Nullable private Map someMap = new HashMap<>(); public FakeBigDecimalMap200Response() { } - public FakeBigDecimalMap200Response someId(BigDecimal someId) { + public FakeBigDecimalMap200Response someId(@javax.annotation.Nullable BigDecimal someId) { this.someId = someId; return this; @@ -66,11 +68,11 @@ public BigDecimal getSomeId() { @JsonProperty(JSON_PROPERTY_SOME_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSomeId(BigDecimal someId) { + public void setSomeId(@javax.annotation.Nullable BigDecimal someId) { this.someId = someId; } - public FakeBigDecimalMap200Response someMap(Map someMap) { + public FakeBigDecimalMap200Response someMap(@javax.annotation.Nullable Map someMap) { this.someMap = someMap; return this; @@ -99,7 +101,7 @@ public Map getSomeMap() { @JsonProperty(JSON_PROPERTY_SOME_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSomeMap(Map someMap) { + public void setSomeMap(@javax.annotation.Nullable Map someMap) { this.someMap = someMap; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 98b4699c06ec..e83e1fe54dfb 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -37,15 +37,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; + @javax.annotation.Nullable private ModelFile _file; public static final String JSON_PROPERTY_FILES = "files"; + @javax.annotation.Nullable private List files = new ArrayList<>(); public FileSchemaTestClass() { } - public FileSchemaTestClass _file(ModelFile _file) { + public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { this._file = _file; return this; @@ -66,11 +68,11 @@ public ModelFile getFile() { @JsonProperty(JSON_PROPERTY_FILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFile(ModelFile _file) { + public void setFile(@javax.annotation.Nullable ModelFile _file) { this._file = _file; } - public FileSchemaTestClass files(List files) { + public FileSchemaTestClass files(@javax.annotation.Nullable List files) { this.files = files; return this; @@ -99,7 +101,7 @@ public List getFiles() { @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFiles(List files) { + public void setFiles(@javax.annotation.Nullable List files) { this.files = files; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Foo.java index 3e3df1d63980..9e0817d8bf5c 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Foo.java @@ -32,12 +32,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Foo { public static final String JSON_PROPERTY_BAR = "bar"; + @javax.annotation.Nullable private String bar = "bar"; public Foo() { } - public Foo bar(String bar) { + public Foo bar(@javax.annotation.Nullable String bar) { this.bar = bar; return this; @@ -58,7 +59,7 @@ public String getBar() { @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBar(String bar) { + public void setBar(@javax.annotation.Nullable String bar) { this.bar = bar; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index 30872bb849fd..8d9414f27c03 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -34,12 +34,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FooGetDefaultResponse { public static final String JSON_PROPERTY_STRING = "string"; + @javax.annotation.Nullable private Foo string; public FooGetDefaultResponse() { } - public FooGetDefaultResponse string(Foo string) { + public FooGetDefaultResponse string(@javax.annotation.Nullable Foo string) { this.string = string; return this; @@ -60,7 +61,7 @@ public Foo getString() { @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setString(Foo string) { + public void setString(@javax.annotation.Nullable Foo string) { this.string = string; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FormatTest.java index 18219a322118..ff191e88ec62 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FormatTest.java @@ -53,57 +53,73 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; + @javax.annotation.Nullable private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; + @javax.annotation.Nullable private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; + @javax.annotation.Nullable private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; + @javax.annotation.Nonnull private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; + @javax.annotation.Nullable private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; + @javax.annotation.Nullable private Double _double; public static final String JSON_PROPERTY_DECIMAL = "decimal"; + @javax.annotation.Nullable private BigDecimal decimal; public static final String JSON_PROPERTY_STRING = "string"; + @javax.annotation.Nullable private String string; public static final String JSON_PROPERTY_BYTE = "byte"; + @javax.annotation.Nonnull private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; + @javax.annotation.Nullable private File binary; public static final String JSON_PROPERTY_DATE = "date"; + @javax.annotation.Nonnull private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; + @javax.annotation.Nonnull private String password; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS = "pattern_with_digits"; + @javax.annotation.Nullable private String patternWithDigits; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER = "pattern_with_digits_and_delimiter"; + @javax.annotation.Nullable private String patternWithDigitsAndDelimiter; public FormatTest() { } - public FormatTest integer(Integer integer) { + public FormatTest integer(@javax.annotation.Nullable Integer integer) { this.integer = integer; return this; @@ -126,11 +142,11 @@ public Integer getInteger() { @JsonProperty(JSON_PROPERTY_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInteger(Integer integer) { + public void setInteger(@javax.annotation.Nullable Integer integer) { this.integer = integer; } - public FormatTest int32(Integer int32) { + public FormatTest int32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; return this; @@ -153,11 +169,11 @@ public Integer getInt32() { @JsonProperty(JSON_PROPERTY_INT32) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInt32(Integer int32) { + public void setInt32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; } - public FormatTest int64(Long int64) { + public FormatTest int64(@javax.annotation.Nullable Long int64) { this.int64 = int64; return this; @@ -178,11 +194,11 @@ public Long getInt64() { @JsonProperty(JSON_PROPERTY_INT64) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInt64(Long int64) { + public void setInt64(@javax.annotation.Nullable Long int64) { this.int64 = int64; } - public FormatTest number(BigDecimal number) { + public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { this.number = number; return this; @@ -205,11 +221,11 @@ public BigDecimal getNumber() { @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNumber(BigDecimal number) { + public void setNumber(@javax.annotation.Nonnull BigDecimal number) { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@javax.annotation.Nullable Float _float) { this._float = _float; return this; @@ -232,11 +248,11 @@ public Float getFloat() { @JsonProperty(JSON_PROPERTY_FLOAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFloat(Float _float) { + public void setFloat(@javax.annotation.Nullable Float _float) { this._float = _float; } - public FormatTest _double(Double _double) { + public FormatTest _double(@javax.annotation.Nullable Double _double) { this._double = _double; return this; @@ -259,11 +275,11 @@ public Double getDouble() { @JsonProperty(JSON_PROPERTY_DOUBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDouble(Double _double) { + public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; } - public FormatTest decimal(BigDecimal decimal) { + public FormatTest decimal(@javax.annotation.Nullable BigDecimal decimal) { this.decimal = decimal; return this; @@ -284,11 +300,11 @@ public BigDecimal getDecimal() { @JsonProperty(JSON_PROPERTY_DECIMAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDecimal(BigDecimal decimal) { + public void setDecimal(@javax.annotation.Nullable BigDecimal decimal) { this.decimal = decimal; } - public FormatTest string(String string) { + public FormatTest string(@javax.annotation.Nullable String string) { this.string = string; return this; @@ -309,11 +325,11 @@ public String getString() { @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setString(String string) { + public void setString(@javax.annotation.Nullable String string) { this.string = string; } - public FormatTest _byte(byte[] _byte) { + public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; return this; @@ -334,11 +350,11 @@ public byte[] getByte() { @JsonProperty(JSON_PROPERTY_BYTE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setByte(byte[] _byte) { + public void setByte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; } - public FormatTest binary(File binary) { + public FormatTest binary(@javax.annotation.Nullable File binary) { this.binary = binary; return this; @@ -359,11 +375,11 @@ public File getBinary() { @JsonProperty(JSON_PROPERTY_BINARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBinary(File binary) { + public void setBinary(@javax.annotation.Nullable File binary) { this.binary = binary; } - public FormatTest date(LocalDate date) { + public FormatTest date(@javax.annotation.Nonnull LocalDate date) { this.date = date; return this; @@ -384,11 +400,11 @@ public LocalDate getDate() { @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDate(LocalDate date) { + public void setDate(@javax.annotation.Nonnull LocalDate date) { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; @@ -409,11 +425,11 @@ public OffsetDateTime getDateTime() { @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public FormatTest uuid(UUID uuid) { + public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; @@ -434,11 +450,11 @@ public UUID getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(UUID uuid) { + public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public FormatTest password(String password) { + public FormatTest password(@javax.annotation.Nonnull String password) { this.password = password; return this; @@ -459,11 +475,11 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nonnull String password) { this.password = password; } - public FormatTest patternWithDigits(String patternWithDigits) { + public FormatTest patternWithDigits(@javax.annotation.Nullable String patternWithDigits) { this.patternWithDigits = patternWithDigits; return this; @@ -484,11 +500,11 @@ public String getPatternWithDigits() { @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPatternWithDigits(String patternWithDigits) { + public void setPatternWithDigits(@javax.annotation.Nullable String patternWithDigits) { this.patternWithDigits = patternWithDigits; } - public FormatTest patternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) { + public FormatTest patternWithDigitsAndDelimiter(@javax.annotation.Nullable String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; return this; @@ -509,7 +525,7 @@ public String getPatternWithDigitsAndDelimiter() { @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPatternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) { + public void setPatternWithDigitsAndDelimiter(@javax.annotation.Nullable String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 89f9de6d3d41..ce79f11f55ac 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -34,9 +34,11 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_FOO = "foo"; + @javax.annotation.Nullable private String foo; public HasOnlyReadOnly() { diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/HealthCheckResult.java index 5e4657caa32e..62d2287cab62 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -36,12 +36,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class HealthCheckResult { public static final String JSON_PROPERTY_NULLABLE_MESSAGE = "NullableMessage"; + @javax.annotation.Nullable private JsonNullable nullableMessage = JsonNullable.undefined(); public HealthCheckResult() { } - public HealthCheckResult nullableMessage(String nullableMessage) { + public HealthCheckResult nullableMessage(@javax.annotation.Nullable String nullableMessage) { this.nullableMessage = JsonNullable.of(nullableMessage); return this; @@ -70,7 +71,7 @@ public void setNullableMessage_JsonNullable(JsonNullable nullableMessage this.nullableMessage = nullableMessage; } - public void setNullableMessage(String nullableMessage) { + public void setNullableMessage(@javax.annotation.Nullable String nullableMessage) { this.nullableMessage = JsonNullable.of(nullableMessage); } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/MapTest.java index 1ae40680e29e..34ba6c76e66d 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/MapTest.java @@ -37,6 +37,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; + @javax.annotation.Nullable private Map> mapMapOfString = new HashMap<>(); /** @@ -75,18 +76,21 @@ public static InnerEnum fromValue(String value) { } public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; + @javax.annotation.Nullable private Map mapOfEnumString = new HashMap<>(); public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; + @javax.annotation.Nullable private Map directMap = new HashMap<>(); public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; + @javax.annotation.Nullable private Map indirectMap = new HashMap<>(); public MapTest() { } - public MapTest mapMapOfString(Map> mapMapOfString) { + public MapTest mapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; return this; @@ -115,11 +119,11 @@ public Map> getMapMapOfString() { @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapMapOfString(Map> mapMapOfString) { + public void setMapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } - public MapTest mapOfEnumString(Map mapOfEnumString) { + public MapTest mapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; return this; @@ -148,11 +152,11 @@ public Map getMapOfEnumString() { @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapOfEnumString(Map mapOfEnumString) { + public void setMapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } - public MapTest directMap(Map directMap) { + public MapTest directMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; return this; @@ -181,11 +185,11 @@ public Map getDirectMap() { @JsonProperty(JSON_PROPERTY_DIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDirectMap(Map directMap) { + public void setDirectMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; } - public MapTest indirectMap(Map indirectMap) { + public MapTest indirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; return this; @@ -214,7 +218,7 @@ public Map getIndirectMap() { @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIndirectMap(Map indirectMap) { + public void setIndirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index a9cf93ce52e5..f1e0cc2daa7b 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -39,18 +39,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; + @javax.annotation.Nullable private Map map = new HashMap<>(); public MixedPropertiesAndAdditionalPropertiesClass() { } - public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; @@ -71,11 +74,11 @@ public UUID getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(UUID uuid) { + public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; @@ -96,11 +99,11 @@ public OffsetDateTime getDateTime() { @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + public MixedPropertiesAndAdditionalPropertiesClass map(@javax.annotation.Nullable Map map) { this.map = map; return this; @@ -129,7 +132,7 @@ public Map getMap() { @JsonProperty(JSON_PROPERTY_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMap(Map map) { + public void setMap(@javax.annotation.Nullable Map map) { this.map = map; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Model200Response.java index 9dd501519d94..81203bc5fec5 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Model200Response.java @@ -34,15 +34,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; + @javax.annotation.Nullable private String propertyClass; public Model200Response() { } - public Model200Response name(Integer name) { + public Model200Response name(@javax.annotation.Nullable Integer name) { this.name = name; return this; @@ -63,11 +65,11 @@ public Integer getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(Integer name) { + public void setName(@javax.annotation.Nullable Integer name) { this.name = name; } - public Model200Response propertyClass(String propertyClass) { + public Model200Response propertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; @@ -88,7 +90,7 @@ public String getPropertyClass() { @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 06f950e61809..8295041ee48a 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -35,18 +35,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nullable private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nullable private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; + @javax.annotation.Nullable private String message; public ModelApiResponse() { } - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@javax.annotation.Nullable Integer code) { this.code = code; return this; @@ -67,11 +70,11 @@ public Integer getCode() { @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCode(Integer code) { + public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@javax.annotation.Nullable String type) { this.type = type; return this; @@ -92,11 +95,11 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { + public void setType(@javax.annotation.Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@javax.annotation.Nullable String message) { this.message = message; return this; @@ -117,7 +120,7 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelFile.java index c57b589f9a93..5d4793a2e437 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelFile.java @@ -33,12 +33,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelFile { public static final String JSON_PROPERTY_SOURCE_U_R_I = "sourceURI"; + @javax.annotation.Nullable private String sourceURI; public ModelFile() { } - public ModelFile sourceURI(String sourceURI) { + public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; return this; @@ -59,7 +60,7 @@ public String getSourceURI() { @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSourceURI(String sourceURI) { + public void setSourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelList.java index 3dc09aa2be76..02dcc4b37e64 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelList.java @@ -33,12 +33,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelList { public static final String JSON_PROPERTY_123LIST = "123-list"; + @javax.annotation.Nullable private String _123list; public ModelList() { } - public ModelList _123list(String _123list) { + public ModelList _123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; return this; @@ -59,7 +60,7 @@ public String get123list() { @JsonProperty(JSON_PROPERTY_123LIST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void set123list(String _123list) { + public void set123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelReturn.java index 2d5696ac318a..d38260eee6db 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -33,12 +33,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; + @javax.annotation.Nullable private Integer _return; public ModelReturn() { } - public ModelReturn _return(Integer _return) { + public ModelReturn _return(@javax.annotation.Nullable Integer _return) { this._return = _return; return this; @@ -59,7 +60,7 @@ public Integer getReturn() { @JsonProperty(JSON_PROPERTY_RETURN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setReturn(Integer _return) { + public void setReturn(@javax.annotation.Nullable Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Name.java index a45307c099a0..c94d16233849 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Name.java @@ -35,15 +35,19 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Name { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; + @javax.annotation.Nullable private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; + @javax.annotation.Nullable private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; + @javax.annotation.Nullable private Integer _123number; public Name() { @@ -61,7 +65,7 @@ public Name( this._123number = _123number; } - public Name name(Integer name) { + public Name name(@javax.annotation.Nonnull Integer name) { this.name = name; return this; @@ -82,7 +86,7 @@ public Integer getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(Integer name) { + public void setName(@javax.annotation.Nonnull Integer name) { this.name = name; } @@ -100,7 +104,7 @@ public Integer getSnakeCase() { - public Name property(String property) { + public Name property(@javax.annotation.Nullable String property) { this.property = property; return this; @@ -121,7 +125,7 @@ public String getProperty() { @JsonProperty(JSON_PROPERTY_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProperty(String property) { + public void setProperty(@javax.annotation.Nullable String property) { this.property = property; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/NullableClass.java index 0bdc106cd684..adc18738b115 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/NullableClass.java @@ -55,46 +55,58 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class NullableClass extends HashMap { public static final String JSON_PROPERTY_INTEGER_PROP = "integer_prop"; + @javax.annotation.Nullable private JsonNullable integerProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_NUMBER_PROP = "number_prop"; + @javax.annotation.Nullable private JsonNullable numberProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_BOOLEAN_PROP = "boolean_prop"; + @javax.annotation.Nullable private JsonNullable booleanProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_STRING_PROP = "string_prop"; + @javax.annotation.Nullable private JsonNullable stringProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_DATE_PROP = "date_prop"; + @javax.annotation.Nullable private JsonNullable dateProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_DATETIME_PROP = "datetime_prop"; + @javax.annotation.Nullable private JsonNullable datetimeProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_ARRAY_NULLABLE_PROP = "array_nullable_prop"; + @javax.annotation.Nullable private JsonNullable> arrayNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP = "array_and_items_nullable_prop"; + @javax.annotation.Nullable private JsonNullable> arrayAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_ITEMS_NULLABLE = "array_items_nullable"; + @javax.annotation.Nullable private List arrayItemsNullable = new ArrayList<>(); public static final String JSON_PROPERTY_OBJECT_NULLABLE_PROP = "object_nullable_prop"; + @javax.annotation.Nullable private JsonNullable> objectNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP = "object_and_items_nullable_prop"; + @javax.annotation.Nullable private JsonNullable> objectAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_OBJECT_ITEMS_NULLABLE = "object_items_nullable"; + @javax.annotation.Nullable private Map objectItemsNullable = new HashMap<>(); public NullableClass() { } - public NullableClass integerProp(Integer integerProp) { + public NullableClass integerProp(@javax.annotation.Nullable Integer integerProp) { this.integerProp = JsonNullable.of(integerProp); return this; @@ -123,11 +135,11 @@ public void setIntegerProp_JsonNullable(JsonNullable integerProp) { this.integerProp = integerProp; } - public void setIntegerProp(Integer integerProp) { + public void setIntegerProp(@javax.annotation.Nullable Integer integerProp) { this.integerProp = JsonNullable.of(integerProp); } - public NullableClass numberProp(BigDecimal numberProp) { + public NullableClass numberProp(@javax.annotation.Nullable BigDecimal numberProp) { this.numberProp = JsonNullable.of(numberProp); return this; @@ -156,11 +168,11 @@ public void setNumberProp_JsonNullable(JsonNullable numberProp) { this.numberProp = numberProp; } - public void setNumberProp(BigDecimal numberProp) { + public void setNumberProp(@javax.annotation.Nullable BigDecimal numberProp) { this.numberProp = JsonNullable.of(numberProp); } - public NullableClass booleanProp(Boolean booleanProp) { + public NullableClass booleanProp(@javax.annotation.Nullable Boolean booleanProp) { this.booleanProp = JsonNullable.of(booleanProp); return this; @@ -189,11 +201,11 @@ public void setBooleanProp_JsonNullable(JsonNullable booleanProp) { this.booleanProp = booleanProp; } - public void setBooleanProp(Boolean booleanProp) { + public void setBooleanProp(@javax.annotation.Nullable Boolean booleanProp) { this.booleanProp = JsonNullable.of(booleanProp); } - public NullableClass stringProp(String stringProp) { + public NullableClass stringProp(@javax.annotation.Nullable String stringProp) { this.stringProp = JsonNullable.of(stringProp); return this; @@ -222,11 +234,11 @@ public void setStringProp_JsonNullable(JsonNullable stringProp) { this.stringProp = stringProp; } - public void setStringProp(String stringProp) { + public void setStringProp(@javax.annotation.Nullable String stringProp) { this.stringProp = JsonNullable.of(stringProp); } - public NullableClass dateProp(LocalDate dateProp) { + public NullableClass dateProp(@javax.annotation.Nullable LocalDate dateProp) { this.dateProp = JsonNullable.of(dateProp); return this; @@ -255,11 +267,11 @@ public void setDateProp_JsonNullable(JsonNullable dateProp) { this.dateProp = dateProp; } - public void setDateProp(LocalDate dateProp) { + public void setDateProp(@javax.annotation.Nullable LocalDate dateProp) { this.dateProp = JsonNullable.of(dateProp); } - public NullableClass datetimeProp(OffsetDateTime datetimeProp) { + public NullableClass datetimeProp(@javax.annotation.Nullable OffsetDateTime datetimeProp) { this.datetimeProp = JsonNullable.of(datetimeProp); return this; @@ -288,11 +300,11 @@ public void setDatetimeProp_JsonNullable(JsonNullable datetimePr this.datetimeProp = datetimeProp; } - public void setDatetimeProp(OffsetDateTime datetimeProp) { + public void setDatetimeProp(@javax.annotation.Nullable OffsetDateTime datetimeProp) { this.datetimeProp = JsonNullable.of(datetimeProp); } - public NullableClass arrayNullableProp(List arrayNullableProp) { + public NullableClass arrayNullableProp(@javax.annotation.Nullable List arrayNullableProp) { this.arrayNullableProp = JsonNullable.>of(arrayNullableProp); return this; @@ -333,11 +345,11 @@ public void setArrayNullableProp_JsonNullable(JsonNullable> arrayNu this.arrayNullableProp = arrayNullableProp; } - public void setArrayNullableProp(List arrayNullableProp) { + public void setArrayNullableProp(@javax.annotation.Nullable List arrayNullableProp) { this.arrayNullableProp = JsonNullable.>of(arrayNullableProp); } - public NullableClass arrayAndItemsNullableProp(List arrayAndItemsNullableProp) { + public NullableClass arrayAndItemsNullableProp(@javax.annotation.Nullable List arrayAndItemsNullableProp) { this.arrayAndItemsNullableProp = JsonNullable.>of(arrayAndItemsNullableProp); return this; @@ -378,11 +390,11 @@ public void setArrayAndItemsNullableProp_JsonNullable(JsonNullable> this.arrayAndItemsNullableProp = arrayAndItemsNullableProp; } - public void setArrayAndItemsNullableProp(List arrayAndItemsNullableProp) { + public void setArrayAndItemsNullableProp(@javax.annotation.Nullable List arrayAndItemsNullableProp) { this.arrayAndItemsNullableProp = JsonNullable.>of(arrayAndItemsNullableProp); } - public NullableClass arrayItemsNullable(List arrayItemsNullable) { + public NullableClass arrayItemsNullable(@javax.annotation.Nullable List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; return this; @@ -411,11 +423,11 @@ public List getArrayItemsNullable() { @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayItemsNullable(List arrayItemsNullable) { + public void setArrayItemsNullable(@javax.annotation.Nullable List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; } - public NullableClass objectNullableProp(Map objectNullableProp) { + public NullableClass objectNullableProp(@javax.annotation.Nullable Map objectNullableProp) { this.objectNullableProp = JsonNullable.>of(objectNullableProp); return this; @@ -456,11 +468,11 @@ public void setObjectNullableProp_JsonNullable(JsonNullable> this.objectNullableProp = objectNullableProp; } - public void setObjectNullableProp(Map objectNullableProp) { + public void setObjectNullableProp(@javax.annotation.Nullable Map objectNullableProp) { this.objectNullableProp = JsonNullable.>of(objectNullableProp); } - public NullableClass objectAndItemsNullableProp(Map objectAndItemsNullableProp) { + public NullableClass objectAndItemsNullableProp(@javax.annotation.Nullable Map objectAndItemsNullableProp) { this.objectAndItemsNullableProp = JsonNullable.>of(objectAndItemsNullableProp); return this; @@ -501,11 +513,11 @@ public void setObjectAndItemsNullableProp_JsonNullable(JsonNullable objectAndItemsNullableProp) { + public void setObjectAndItemsNullableProp(@javax.annotation.Nullable Map objectAndItemsNullableProp) { this.objectAndItemsNullableProp = JsonNullable.>of(objectAndItemsNullableProp); } - public NullableClass objectItemsNullable(Map objectItemsNullable) { + public NullableClass objectItemsNullable(@javax.annotation.Nullable Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; return this; @@ -534,7 +546,7 @@ public Map getObjectItemsNullable() { @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setObjectItemsNullable(Map objectItemsNullable) { + public void setObjectItemsNullable(@javax.annotation.Nullable Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/NumberOnly.java index ba7b026b3f6e..43f6d3fa6a62 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -33,12 +33,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; + @javax.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } - public NumberOnly justNumber(BigDecimal justNumber) { + public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; @@ -59,7 +60,7 @@ public BigDecimal getJustNumber() { @JsonProperty(JSON_PROPERTY_JUST_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJustNumber(BigDecimal justNumber) { + public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index c3fecc9691e6..12ff2a3155ad 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -40,21 +40,25 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ObjectWithDeprecatedFields { public static final String JSON_PROPERTY_UUID = "uuid"; + @javax.annotation.Nullable private String uuid; public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private BigDecimal id; public static final String JSON_PROPERTY_DEPRECATED_REF = "deprecatedRef"; + @javax.annotation.Nullable private DeprecatedObject deprecatedRef; public static final String JSON_PROPERTY_BARS = "bars"; + @javax.annotation.Nullable private List bars = new ArrayList<>(); public ObjectWithDeprecatedFields() { } - public ObjectWithDeprecatedFields uuid(String uuid) { + public ObjectWithDeprecatedFields uuid(@javax.annotation.Nullable String uuid) { this.uuid = uuid; return this; @@ -75,11 +79,11 @@ public String getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(String uuid) { + public void setUuid(@javax.annotation.Nullable String uuid) { this.uuid = uuid; } - public ObjectWithDeprecatedFields id(BigDecimal id) { + public ObjectWithDeprecatedFields id(@javax.annotation.Nullable BigDecimal id) { this.id = id; return this; @@ -102,11 +106,11 @@ public BigDecimal getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(BigDecimal id) { + public void setId(@javax.annotation.Nullable BigDecimal id) { this.id = id; } - public ObjectWithDeprecatedFields deprecatedRef(DeprecatedObject deprecatedRef) { + public ObjectWithDeprecatedFields deprecatedRef(@javax.annotation.Nullable DeprecatedObject deprecatedRef) { this.deprecatedRef = deprecatedRef; return this; @@ -129,11 +133,11 @@ public DeprecatedObject getDeprecatedRef() { @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeprecatedRef(DeprecatedObject deprecatedRef) { + public void setDeprecatedRef(@javax.annotation.Nullable DeprecatedObject deprecatedRef) { this.deprecatedRef = deprecatedRef; } - public ObjectWithDeprecatedFields bars(List bars) { + public ObjectWithDeprecatedFields bars(@javax.annotation.Nullable List bars) { this.bars = bars; return this; @@ -164,7 +168,7 @@ public List getBars() { @JsonProperty(JSON_PROPERTY_BARS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBars(List bars) { + public void setBars(@javax.annotation.Nullable List bars) { this.bars = bars; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Order.java index 31a2cd4aada5..7915f35bce17 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Order.java @@ -38,15 +38,19 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Order { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; + @javax.annotation.Nullable private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; + @javax.annotation.Nullable private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; + @javax.annotation.Nullable private OffsetDateTime shipDate; /** @@ -87,15 +91,17 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @javax.annotation.Nullable private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; + @javax.annotation.Nullable private Boolean complete = false; public Order() { } - public Order id(Long id) { + public Order id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -116,11 +122,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@javax.annotation.Nullable Long petId) { this.petId = petId; return this; @@ -141,11 +147,11 @@ public Long getPetId() { @JsonProperty(JSON_PROPERTY_PET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPetId(Long petId) { + public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; return this; @@ -166,11 +172,11 @@ public Integer getQuantity() { @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setQuantity(Integer quantity) { + public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; @@ -191,11 +197,11 @@ public OffsetDateTime getShipDate() { @JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -216,11 +222,11 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } - public Order complete(Boolean complete) { + public Order complete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; return this; @@ -241,7 +247,7 @@ public Boolean getComplete() { @JsonProperty(JSON_PROPERTY_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setComplete(Boolean complete) { + public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/OuterComposite.java index 37a130288c84..0134a6b50570 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -35,18 +35,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; + @javax.annotation.Nullable private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; + @javax.annotation.Nullable private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; + @javax.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } - public OuterComposite myNumber(BigDecimal myNumber) { + public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; @@ -67,11 +70,11 @@ public BigDecimal getMyNumber() { @JsonProperty(JSON_PROPERTY_MY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyNumber(BigDecimal myNumber) { + public void setMyNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; } - public OuterComposite myString(String myString) { + public OuterComposite myString(@javax.annotation.Nullable String myString) { this.myString = myString; return this; @@ -92,11 +95,11 @@ public String getMyString() { @JsonProperty(JSON_PROPERTY_MY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyString(String myString) { + public void setMyString(@javax.annotation.Nullable String myString) { this.myString = myString; } - public OuterComposite myBoolean(Boolean myBoolean) { + public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; return this; @@ -117,7 +120,7 @@ public Boolean getMyBoolean() { @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyBoolean(Boolean myBoolean) { + public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java index bdb4f1ae63ac..f58d0e4d1b52 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java @@ -33,12 +33,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class OuterObjectWithEnumProperty { public static final String JSON_PROPERTY_VALUE = "value"; + @javax.annotation.Nonnull private OuterEnumInteger value; public OuterObjectWithEnumProperty() { } - public OuterObjectWithEnumProperty value(OuterEnumInteger value) { + public OuterObjectWithEnumProperty value(@javax.annotation.Nonnull OuterEnumInteger value) { this.value = value; return this; @@ -59,7 +60,7 @@ public OuterEnumInteger getValue() { @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setValue(OuterEnumInteger value) { + public void setValue(@javax.annotation.Nonnull OuterEnumInteger value) { this.value = value; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ParentWithNullable.java index 6bf509ced477..77bba0f4f9f7 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -82,15 +82,17 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nullable protected TypeEnum type; public static final String JSON_PROPERTY_NULLABLE_PROPERTY = "nullableProperty"; + @javax.annotation.Nullable protected JsonNullable nullableProperty = JsonNullable.undefined(); public ParentWithNullable() { } - public ParentWithNullable type(TypeEnum type) { + public ParentWithNullable type(@javax.annotation.Nullable TypeEnum type) { this.type = type; return this; @@ -111,11 +113,11 @@ public TypeEnum getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(TypeEnum type) { + public void setType(@javax.annotation.Nullable TypeEnum type) { this.type = type; } - public ParentWithNullable nullableProperty(String nullableProperty) { + public ParentWithNullable nullableProperty(@javax.annotation.Nullable String nullableProperty) { this.nullableProperty = JsonNullable.of(nullableProperty); return this; @@ -144,7 +146,7 @@ public void setNullableProperty_JsonNullable(JsonNullable nullableProper this.nullableProperty = nullableProperty; } - public void setNullableProperty(String nullableProperty) { + public void setNullableProperty(@javax.annotation.Nullable String nullableProperty) { this.nullableProperty = JsonNullable.of(nullableProperty); } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Pet.java index 70732aa1ce55..2805d79e368d 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Pet.java @@ -45,18 +45,23 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Pet { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; + @javax.annotation.Nullable private Category category; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; + @javax.annotation.Nonnull private Set photoUrls = new LinkedHashSet<>(); public static final String JSON_PROPERTY_TAGS = "tags"; + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** @@ -97,12 +102,13 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } - public Pet id(Long id) { + public Pet id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -123,11 +129,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@javax.annotation.Nullable Category category) { this.category = category; return this; @@ -148,11 +154,11 @@ public Category getCategory() { @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCategory(Category category) { + public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; } - public Pet name(String name) { + public Pet name(@javax.annotation.Nonnull String name) { this.name = name; return this; @@ -173,11 +179,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } - public Pet photoUrls(Set photoUrls) { + public Pet photoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; return this; @@ -207,11 +213,11 @@ public Set getPhotoUrls() { @JsonDeserialize(as = LinkedHashSet.class) @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPhotoUrls(Set photoUrls) { + public void setPhotoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; } - public Pet tags(List tags) { + public Pet tags(@javax.annotation.Nullable List tags) { this.tags = tags; return this; @@ -240,11 +246,11 @@ public List getTags() { @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTags(List tags) { + public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -265,7 +271,7 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 0b012bd9c77d..b614b554c64a 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -33,9 +33,11 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; + @javax.annotation.Nullable private String baz; public ReadOnlyFirst() { @@ -65,7 +67,7 @@ public String getBar() { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { this.baz = baz; return this; @@ -86,7 +88,7 @@ public String getBaz() { @JsonProperty(JSON_PROPERTY_BAZ) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBaz(String baz) { + public void setBaz(@javax.annotation.Nullable String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/SpecialModelName.java index 064dcaec6b3f..2a0efc78ce44 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -33,12 +33,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; + @javax.annotation.Nullable private Long $specialPropertyName; public SpecialModelName() { } - public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + public SpecialModelName $specialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; return this; @@ -59,7 +60,7 @@ public SpecialModelName() { @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void set$SpecialPropertyName(Long $specialPropertyName) { + public void set$SpecialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Tag.java index 79472451f59a..17cd5fa1190b 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Tag.java @@ -33,15 +33,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Tag { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public Tag() { } - public Tag id(Long id) { + public Tag id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -62,11 +64,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -87,7 +89,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index d337286892a1..ddb16eb2f19f 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -35,13 +35,14 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class TestInlineFreeformAdditionalPropertiesRequest extends HashMap { public static final String JSON_PROPERTY_SOME_PROPERTY = "someProperty"; + @javax.annotation.Nullable private String someProperty; public TestInlineFreeformAdditionalPropertiesRequest() { } - public TestInlineFreeformAdditionalPropertiesRequest someProperty(String someProperty) { + public TestInlineFreeformAdditionalPropertiesRequest someProperty(@javax.annotation.Nullable String someProperty) { this.someProperty = someProperty; return this; @@ -62,7 +63,7 @@ public String getSomeProperty() { @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSomeProperty(String someProperty) { + public void setSomeProperty(@javax.annotation.Nullable String someProperty) { this.someProperty = someProperty; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/User.java index e6af180ceff6..26008e500259 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/User.java @@ -39,33 +39,41 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class User { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; + @javax.annotation.Nullable private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; + @javax.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; + @javax.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; + @javax.annotation.Nullable private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; + @javax.annotation.Nullable private String password; public static final String JSON_PROPERTY_PHONE = "phone"; + @javax.annotation.Nullable private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; + @javax.annotation.Nullable private Integer userStatus; public User() { } - public User id(Long id) { + public User id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -86,11 +94,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@javax.annotation.Nullable String username) { this.username = username; return this; @@ -111,11 +119,11 @@ public String getUsername() { @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsername(String username) { + public void setUsername(@javax.annotation.Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; return this; @@ -136,11 +144,11 @@ public String getFirstName() { @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFirstName(String firstName) { + public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; return this; @@ -161,11 +169,11 @@ public String getLastName() { @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLastName(String lastName) { + public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@javax.annotation.Nullable String email) { this.email = email; return this; @@ -186,11 +194,11 @@ public String getEmail() { @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEmail(String email) { + public void setEmail(@javax.annotation.Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@javax.annotation.Nullable String password) { this.password = password; return this; @@ -211,11 +219,11 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@javax.annotation.Nullable String phone) { this.phone = phone; return this; @@ -236,11 +244,11 @@ public String getPhone() { @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPhone(String phone) { + public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; return this; @@ -261,7 +269,7 @@ public Integer getUserStatus() { @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Category.java index 0c0c4528047f..0b1be81853a7 100644 --- a/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Category.java @@ -33,9 +33,11 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Category { public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private String name; public Category() { @@ -49,7 +51,7 @@ public Category(@JsonProperty(JSON_PROPERTY_ID) Long id, @JsonProperty(JSON_PROP this.name = name; } - public Category id(Long id) { + public Category id(@jakarta.annotation.Nullable Long id) { this.id = id; return this; @@ -70,11 +72,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@jakarta.annotation.Nullable String name) { this.name = name; return this; @@ -95,7 +97,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 079c3e3de4c6..110e7adebae0 100644 --- a/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -35,12 +35,15 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; + @jakarta.annotation.Nullable private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nullable private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; + @jakarta.annotation.Nullable private String message; public ModelApiResponse() { @@ -55,7 +58,7 @@ public ModelApiResponse(@JsonProperty(JSON_PROPERTY_CODE) Integer code, @JsonPro this.message = message; } - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@jakarta.annotation.Nullable Integer code) { this.code = code; return this; @@ -76,11 +79,11 @@ public Integer getCode() { @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCode(Integer code) { + public void setCode(@jakarta.annotation.Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@jakarta.annotation.Nullable String type) { this.type = type; return this; @@ -101,11 +104,11 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@jakarta.annotation.Nullable String message) { this.message = message; return this; @@ -126,7 +129,7 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } diff --git a/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Order.java index 7f30b5a338c8..25bc24f9ca1c 100644 --- a/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Order.java @@ -38,15 +38,19 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Order { public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; + @jakarta.annotation.Nullable private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; + @jakarta.annotation.Nullable private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; + @jakarta.annotation.Nullable private OffsetDateTime shipDate; /** @@ -87,9 +91,11 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @jakarta.annotation.Nullable private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; + @jakarta.annotation.Nullable private Boolean complete = false; public Order() { @@ -107,7 +113,7 @@ public Order(@JsonProperty(JSON_PROPERTY_ID) Long id, @JsonProperty(JSON_PROPERT this.complete = complete; } - public Order id(Long id) { + public Order id(@jakarta.annotation.Nullable Long id) { this.id = id; return this; @@ -128,11 +134,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@jakarta.annotation.Nullable Long petId) { this.petId = petId; return this; @@ -153,11 +159,11 @@ public Long getPetId() { @JsonProperty(JSON_PROPERTY_PET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPetId(Long petId) { + public void setPetId(@jakarta.annotation.Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@jakarta.annotation.Nullable Integer quantity) { this.quantity = quantity; return this; @@ -178,11 +184,11 @@ public Integer getQuantity() { @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setQuantity(Integer quantity) { + public void setQuantity(@jakarta.annotation.Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@jakarta.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; @@ -203,11 +209,11 @@ public OffsetDateTime getShipDate() { @JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@jakarta.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -228,11 +234,11 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; } - public Order complete(Boolean complete) { + public Order complete(@jakarta.annotation.Nullable Boolean complete) { this.complete = complete; return this; @@ -253,7 +259,7 @@ public Boolean getComplete() { @JsonProperty(JSON_PROPERTY_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setComplete(Boolean complete) { + public void setComplete(@jakarta.annotation.Nullable Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Pet.java index d0ffd0c62f7c..1b36c666fc63 100644 --- a/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Pet.java @@ -42,18 +42,23 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Pet { public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; + @jakarta.annotation.Nullable private Category category; public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; + @jakarta.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String JSON_PROPERTY_TAGS = "tags"; + @jakarta.annotation.Nullable private List tags = new ArrayList<>(); /** @@ -94,6 +99,7 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @jakarta.annotation.Nullable private StatusEnum status; public Pet() { @@ -111,7 +117,7 @@ public Pet(@JsonProperty(JSON_PROPERTY_ID) Long id, @JsonProperty(JSON_PROPERTY_ this.status = status; } - public Pet id(Long id) { + public Pet id(@jakarta.annotation.Nullable Long id) { this.id = id; return this; @@ -132,11 +138,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@jakarta.annotation.Nullable Category category) { this.category = category; return this; @@ -157,11 +163,11 @@ public Category getCategory() { @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCategory(Category category) { + public void setCategory(@jakarta.annotation.Nullable Category category) { this.category = category; } - public Pet name(String name) { + public Pet name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; @@ -182,11 +188,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public Pet photoUrls(List photoUrls) { + public Pet photoUrls(@jakarta.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; return this; @@ -215,11 +221,11 @@ public List getPhotoUrls() { @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPhotoUrls(List photoUrls) { + public void setPhotoUrls(@jakarta.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; } - public Pet tags(List tags) { + public Pet tags(@jakarta.annotation.Nullable List tags) { this.tags = tags; return this; @@ -248,11 +254,11 @@ public List getTags() { @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTags(List tags) { + public void setTags(@jakarta.annotation.Nullable List tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -275,7 +281,7 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Tag.java index 9864c8ec549c..696be383198c 100644 --- a/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Tag.java @@ -33,9 +33,11 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Tag { public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private String name; public Tag() { @@ -49,7 +51,7 @@ public Tag(@JsonProperty(JSON_PROPERTY_ID) Long id, @JsonProperty(JSON_PROPERTY_ this.name = name; } - public Tag id(Long id) { + public Tag id(@jakarta.annotation.Nullable Long id) { this.id = id; return this; @@ -70,11 +72,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@jakarta.annotation.Nullable String name) { this.name = name; return this; @@ -95,7 +97,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/User.java index 19662fb2b87a..e87564aceb95 100644 --- a/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/User.java @@ -39,27 +39,35 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class User { public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; + @jakarta.annotation.Nullable private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; + @jakarta.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; + @jakarta.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; + @jakarta.annotation.Nullable private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; + @jakarta.annotation.Nullable private String password; public static final String JSON_PROPERTY_PHONE = "phone"; + @jakarta.annotation.Nullable private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; + @jakarta.annotation.Nullable private Integer userStatus; public User() { @@ -79,7 +87,7 @@ public User(@JsonProperty(JSON_PROPERTY_ID) Long id, @JsonProperty(JSON_PROPERTY this.userStatus = userStatus; } - public User id(Long id) { + public User id(@jakarta.annotation.Nullable Long id) { this.id = id; return this; @@ -100,11 +108,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@jakarta.annotation.Nullable String username) { this.username = username; return this; @@ -125,11 +133,11 @@ public String getUsername() { @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsername(String username) { + public void setUsername(@jakarta.annotation.Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@jakarta.annotation.Nullable String firstName) { this.firstName = firstName; return this; @@ -150,11 +158,11 @@ public String getFirstName() { @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFirstName(String firstName) { + public void setFirstName(@jakarta.annotation.Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@jakarta.annotation.Nullable String lastName) { this.lastName = lastName; return this; @@ -175,11 +183,11 @@ public String getLastName() { @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLastName(String lastName) { + public void setLastName(@jakarta.annotation.Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@jakarta.annotation.Nullable String email) { this.email = email; return this; @@ -200,11 +208,11 @@ public String getEmail() { @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEmail(String email) { + public void setEmail(@jakarta.annotation.Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@jakarta.annotation.Nullable String password) { this.password = password; return this; @@ -225,11 +233,11 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPassword(String password) { + public void setPassword(@jakarta.annotation.Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@jakarta.annotation.Nullable String phone) { this.phone = phone; return this; @@ -250,11 +258,11 @@ public String getPhone() { @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPhone(String phone) { + public void setPhone(@jakarta.annotation.Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@jakarta.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; return this; @@ -275,7 +283,7 @@ public Integer getUserStatus() { @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@jakarta.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Category.java index 29ac843a6e6b..f0881018ee70 100644 --- a/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Category.java @@ -36,15 +36,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Category { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public Category() { } - public Category id(Long id) { + public Category id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -66,11 +68,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -92,7 +94,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/ModelApiResponse.java index ec0665c535b2..a793b6c0580e 100644 --- a/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -38,18 +38,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nullable private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nullable private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; + @javax.annotation.Nullable private String message; public ModelApiResponse() { } - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@javax.annotation.Nullable Integer code) { this.code = code; return this; @@ -71,11 +74,11 @@ public Integer getCode() { @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCode(Integer code) { + public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@javax.annotation.Nullable String type) { this.type = type; return this; @@ -97,11 +100,11 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { + public void setType(@javax.annotation.Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@javax.annotation.Nullable String message) { this.message = message; return this; @@ -123,7 +126,7 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } diff --git a/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Order.java index 2e4fc3409956..cf6b7b10439c 100644 --- a/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Order.java @@ -41,15 +41,19 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Order { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; + @javax.annotation.Nullable private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; + @javax.annotation.Nullable private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; + @javax.annotation.Nullable private OffsetDateTime shipDate; /** @@ -90,15 +94,17 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @javax.annotation.Nullable private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; + @javax.annotation.Nullable private Boolean complete = false; public Order() { } - public Order id(Long id) { + public Order id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -120,11 +126,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@javax.annotation.Nullable Long petId) { this.petId = petId; return this; @@ -146,11 +152,11 @@ public Long getPetId() { @JsonProperty(JSON_PROPERTY_PET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPetId(Long petId) { + public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; return this; @@ -172,11 +178,11 @@ public Integer getQuantity() { @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setQuantity(Integer quantity) { + public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; @@ -198,11 +204,11 @@ public OffsetDateTime getShipDate() { @JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -224,11 +230,11 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } - public Order complete(Boolean complete) { + public Order complete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; return this; @@ -250,7 +256,7 @@ public Boolean getComplete() { @JsonProperty(JSON_PROPERTY_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setComplete(Boolean complete) { + public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Pet.java index 6e58e1dbf2f9..5c111049df98 100644 --- a/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Pet.java @@ -45,18 +45,23 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Pet { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; + @javax.annotation.Nullable private Category category; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; + @javax.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String JSON_PROPERTY_TAGS = "tags"; + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** @@ -97,12 +102,13 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } - public Pet id(Long id) { + public Pet id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -124,11 +130,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@javax.annotation.Nullable Category category) { this.category = category; return this; @@ -150,11 +156,11 @@ public Category getCategory() { @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCategory(Category category) { + public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; } - public Pet name(String name) { + public Pet name(@javax.annotation.Nonnull String name) { this.name = name; return this; @@ -176,11 +182,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } - public Pet photoUrls(List photoUrls) { + public Pet photoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; return this; @@ -210,11 +216,11 @@ public List getPhotoUrls() { @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPhotoUrls(List photoUrls) { + public void setPhotoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; } - public Pet tags(List tags) { + public Pet tags(@javax.annotation.Nullable List tags) { this.tags = tags; return this; @@ -244,11 +250,11 @@ public List getTags() { @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTags(List tags) { + public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -272,7 +278,7 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Tag.java index 6a8e3fce53b4..169268b4ff19 100644 --- a/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Tag.java @@ -36,15 +36,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Tag { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public Tag() { } - public Tag id(Long id) { + public Tag id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -66,11 +68,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -92,7 +94,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/User.java index bbecf6d9d715..7f293673be17 100644 --- a/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/User.java @@ -42,33 +42,41 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class User { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; + @javax.annotation.Nullable private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; + @javax.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; + @javax.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; + @javax.annotation.Nullable private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; + @javax.annotation.Nullable private String password; public static final String JSON_PROPERTY_PHONE = "phone"; + @javax.annotation.Nullable private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; + @javax.annotation.Nullable private Integer userStatus; public User() { } - public User id(Long id) { + public User id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -90,11 +98,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@javax.annotation.Nullable String username) { this.username = username; return this; @@ -116,11 +124,11 @@ public String getUsername() { @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsername(String username) { + public void setUsername(@javax.annotation.Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; return this; @@ -142,11 +150,11 @@ public String getFirstName() { @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFirstName(String firstName) { + public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; return this; @@ -168,11 +176,11 @@ public String getLastName() { @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLastName(String lastName) { + public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@javax.annotation.Nullable String email) { this.email = email; return this; @@ -194,11 +202,11 @@ public String getEmail() { @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEmail(String email) { + public void setEmail(@javax.annotation.Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@javax.annotation.Nullable String password) { this.password = password; return this; @@ -220,11 +228,11 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@javax.annotation.Nullable String phone) { this.phone = phone; return this; @@ -246,11 +254,11 @@ public String getPhone() { @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPhone(String phone) { + public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; return this; @@ -272,7 +280,7 @@ public Integer getUserStatus() { @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Category.java index 58a60d788774..e317872bfc59 100644 --- a/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Category.java @@ -35,15 +35,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Category { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public Category() { } - public Category id(Long id) { + public Category id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -65,11 +67,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -91,7 +93,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 6e3c6c40b739..ebd5506e3c80 100644 --- a/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -37,18 +37,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nullable private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nullable private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; + @javax.annotation.Nullable private String message; public ModelApiResponse() { } - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@javax.annotation.Nullable Integer code) { this.code = code; return this; @@ -70,11 +73,11 @@ public Integer getCode() { @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCode(Integer code) { + public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@javax.annotation.Nullable String type) { this.type = type; return this; @@ -96,11 +99,11 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { + public void setType(@javax.annotation.Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@javax.annotation.Nullable String message) { this.message = message; return this; @@ -122,7 +125,7 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } diff --git a/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Order.java index a5b1998d21b0..e0ebe761fbd1 100644 --- a/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Order.java @@ -40,15 +40,19 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Order { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; + @javax.annotation.Nullable private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; + @javax.annotation.Nullable private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; + @javax.annotation.Nullable private OffsetDateTime shipDate; /** @@ -89,15 +93,17 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @javax.annotation.Nullable private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; + @javax.annotation.Nullable private Boolean complete = false; public Order() { } - public Order id(Long id) { + public Order id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -119,11 +125,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@javax.annotation.Nullable Long petId) { this.petId = petId; return this; @@ -145,11 +151,11 @@ public Long getPetId() { @JsonProperty(JSON_PROPERTY_PET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPetId(Long petId) { + public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; return this; @@ -171,11 +177,11 @@ public Integer getQuantity() { @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setQuantity(Integer quantity) { + public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; @@ -197,11 +203,11 @@ public OffsetDateTime getShipDate() { @JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -223,11 +229,11 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } - public Order complete(Boolean complete) { + public Order complete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; return this; @@ -249,7 +255,7 @@ public Boolean getComplete() { @JsonProperty(JSON_PROPERTY_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setComplete(Boolean complete) { + public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Pet.java index 8bae552528c8..f73e3e396eba 100644 --- a/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Pet.java @@ -44,18 +44,23 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Pet { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; + @javax.annotation.Nullable private Category category; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; + @javax.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String JSON_PROPERTY_TAGS = "tags"; + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** @@ -96,12 +101,13 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } - public Pet id(Long id) { + public Pet id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -123,11 +129,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@javax.annotation.Nullable Category category) { this.category = category; return this; @@ -149,11 +155,11 @@ public Category getCategory() { @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCategory(Category category) { + public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; } - public Pet name(String name) { + public Pet name(@javax.annotation.Nonnull String name) { this.name = name; return this; @@ -175,11 +181,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } - public Pet photoUrls(List photoUrls) { + public Pet photoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; return this; @@ -209,11 +215,11 @@ public List getPhotoUrls() { @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPhotoUrls(List photoUrls) { + public void setPhotoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; } - public Pet tags(List tags) { + public Pet tags(@javax.annotation.Nullable List tags) { this.tags = tags; return this; @@ -243,11 +249,11 @@ public List getTags() { @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTags(List tags) { + public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -271,7 +277,7 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Tag.java index 08974a145d3c..df7eea125690 100644 --- a/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Tag.java @@ -35,15 +35,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Tag { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public Tag() { } - public Tag id(Long id) { + public Tag id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -65,11 +67,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -91,7 +93,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/User.java index 610e0c2a479b..a1bad5c53677 100644 --- a/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/User.java @@ -41,33 +41,41 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class User { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; + @javax.annotation.Nullable private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; + @javax.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; + @javax.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; + @javax.annotation.Nullable private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; + @javax.annotation.Nullable private String password; public static final String JSON_PROPERTY_PHONE = "phone"; + @javax.annotation.Nullable private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; + @javax.annotation.Nullable private Integer userStatus; public User() { } - public User id(Long id) { + public User id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -89,11 +97,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@javax.annotation.Nullable String username) { this.username = username; return this; @@ -115,11 +123,11 @@ public String getUsername() { @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsername(String username) { + public void setUsername(@javax.annotation.Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; return this; @@ -141,11 +149,11 @@ public String getFirstName() { @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFirstName(String firstName) { + public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; return this; @@ -167,11 +175,11 @@ public String getLastName() { @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLastName(String lastName) { + public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@javax.annotation.Nullable String email) { this.email = email; return this; @@ -193,11 +201,11 @@ public String getEmail() { @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEmail(String email) { + public void setEmail(@javax.annotation.Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@javax.annotation.Nullable String password) { this.password = password; return this; @@ -219,11 +227,11 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@javax.annotation.Nullable String phone) { this.phone = phone; return this; @@ -245,11 +253,11 @@ public String getPhone() { @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPhone(String phone) { + public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; return this; @@ -271,7 +279,7 @@ public Integer getUserStatus() { @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 2217835f5fb9..8a6730e9c32f 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -43,16 +43,18 @@ public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_PROPERTY = "map_property"; @XmlElement(name = "map_property") + @javax.annotation.Nullable private Map mapProperty = new HashMap<>(); public static final String JSON_PROPERTY_MAP_OF_MAP_PROPERTY = "map_of_map_property"; @XmlElement(name = "map_of_map_property") + @javax.annotation.Nullable private Map> mapOfMapProperty = new HashMap<>(); public AdditionalPropertiesClass() { } - public AdditionalPropertiesClass mapProperty(Map mapProperty) { + public AdditionalPropertiesClass mapProperty(@javax.annotation.Nullable Map mapProperty) { this.mapProperty = mapProperty; return this; @@ -85,11 +87,11 @@ public Map getMapProperty() { @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "map_property") @JacksonXmlElementWrapper(useWrapping = false) - public void setMapProperty(Map mapProperty) { + public void setMapProperty(@javax.annotation.Nullable Map mapProperty) { this.mapProperty = mapProperty; } - public AdditionalPropertiesClass mapOfMapProperty(Map> mapOfMapProperty) { + public AdditionalPropertiesClass mapOfMapProperty(@javax.annotation.Nullable Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; return this; @@ -122,7 +124,7 @@ public Map> getMapOfMapProperty() { @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "map_of_map_property") @JacksonXmlElementWrapper(useWrapping = false) - public void setMapOfMapProperty(Map> mapOfMapProperty) { + public void setMapOfMapProperty(@javax.annotation.Nullable Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java index 62e4ffc6c052..3c6dcc52de06 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java @@ -42,16 +42,18 @@ public class AllOfWithSingleRef { public static final String JSON_PROPERTY_USERNAME = "username"; @XmlElement(name = "username") + @javax.annotation.Nullable private String username; public static final String JSON_PROPERTY_SINGLE_REF_TYPE = "SingleRefType"; @XmlElement(name = "SingleRefType") + @javax.annotation.Nullable private SingleRefType singleRefType; public AllOfWithSingleRef() { } - public AllOfWithSingleRef username(String username) { + public AllOfWithSingleRef username(@javax.annotation.Nullable String username) { this.username = username; return this; @@ -74,11 +76,11 @@ public String getUsername() { @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "username") - public void setUsername(String username) { + public void setUsername(@javax.annotation.Nullable String username) { this.username = username; } - public AllOfWithSingleRef singleRefType(SingleRefType singleRefType) { + public AllOfWithSingleRef singleRefType(@javax.annotation.Nullable SingleRefType singleRefType) { this.singleRefType = singleRefType; return this; @@ -101,7 +103,7 @@ public SingleRefType getSingleRefType() { @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "SingleRefType") - public void setSingleRefType(SingleRefType singleRefType) { + public void setSingleRefType(@javax.annotation.Nullable SingleRefType singleRefType) { this.singleRefType = singleRefType; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Animal.java index b9e9099e644b..48d734935365 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Animal.java @@ -54,16 +54,18 @@ public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; @XmlElement(name = "className") + @javax.annotation.Nonnull protected String className; public static final String JSON_PROPERTY_COLOR = "color"; @XmlElement(name = "color") + @javax.annotation.Nullable protected String color = "red"; public Animal() { } - public Animal className(String className) { + public Animal className(@javax.annotation.Nonnull String className) { this.className = className; return this; @@ -86,11 +88,11 @@ public String getClassName() { @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) @JacksonXmlProperty(localName = "className") - public void setClassName(String className) { + public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; } - public Animal color(String color) { + public Animal color(@javax.annotation.Nullable String color) { this.color = color; return this; @@ -113,7 +115,7 @@ public String getColor() { @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "color") - public void setColor(String color) { + public void setColor(@javax.annotation.Nullable String color) { this.color = color; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 95047de49d21..c1002cc56f03 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -44,12 +44,13 @@ public class ArrayOfArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; @XmlElement(name = "ArrayArrayNumber") + @javax.annotation.Nullable private List> arrayArrayNumber = new ArrayList<>(); public ArrayOfArrayOfNumberOnly() { } - public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + public ArrayOfArrayOfNumberOnly arrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; return this; @@ -82,7 +83,7 @@ public List> getArrayArrayNumber() { @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "ArrayArrayNumber") @JacksonXmlElementWrapper(useWrapping = false) - public void setArrayArrayNumber(List> arrayArrayNumber) { + public void setArrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 08cea5ca20b1..ef281fd56f32 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -44,12 +44,13 @@ public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; @XmlElement(name = "ArrayNumber") + @javax.annotation.Nullable private List arrayNumber = new ArrayList<>(); public ArrayOfNumberOnly() { } - public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + public ArrayOfNumberOnly arrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; return this; @@ -82,7 +83,7 @@ public List getArrayNumber() { @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "ArrayNumber") @JacksonXmlElementWrapper(useWrapping = false) - public void setArrayNumber(List arrayNumber) { + public void setArrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ArrayTest.java index c4929a75e9a8..039de9392d7c 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -46,20 +46,23 @@ public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; @XmlElement(name = "array_of_string") + @javax.annotation.Nullable private List arrayOfString = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; @XmlElement(name = "array_array_of_integer") + @javax.annotation.Nullable private List> arrayArrayOfInteger = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; @XmlElement(name = "array_array_of_model") + @javax.annotation.Nullable private List> arrayArrayOfModel = new ArrayList<>(); public ArrayTest() { } - public ArrayTest arrayOfString(List arrayOfString) { + public ArrayTest arrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; return this; @@ -92,11 +95,11 @@ public List getArrayOfString() { @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "array_of_string") @JacksonXmlElementWrapper(useWrapping = false) - public void setArrayOfString(List arrayOfString) { + public void setArrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; } - public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + public ArrayTest arrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; return this; @@ -129,11 +132,11 @@ public List> getArrayArrayOfInteger() { @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "array_array_of_integer") @JacksonXmlElementWrapper(useWrapping = false) - public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { + public void setArrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } - public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + public ArrayTest arrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; return this; @@ -166,7 +169,7 @@ public List> getArrayArrayOfModel() { @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "array_array_of_model") @JacksonXmlElementWrapper(useWrapping = false) - public void setArrayArrayOfModel(List> arrayArrayOfModel) { + public void setArrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Capitalization.java index b5e24c72e8b7..c4263afe7b07 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Capitalization.java @@ -45,32 +45,38 @@ public class Capitalization { public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; @XmlElement(name = "smallCamel") + @javax.annotation.Nullable private String smallCamel; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; @XmlElement(name = "CapitalCamel") + @javax.annotation.Nullable private String capitalCamel; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; @XmlElement(name = "small_Snake") + @javax.annotation.Nullable private String smallSnake; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; @XmlElement(name = "Capital_Snake") + @javax.annotation.Nullable private String capitalSnake; public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; @XmlElement(name = "SCA_ETH_Flow_Points") + @javax.annotation.Nullable private String scAETHFlowPoints; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; @XmlElement(name = "ATT_NAME") + @javax.annotation.Nullable private String ATT_NAME; public Capitalization() { } - public Capitalization smallCamel(String smallCamel) { + public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; return this; @@ -93,11 +99,11 @@ public String getSmallCamel() { @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "smallCamel") - public void setSmallCamel(String smallCamel) { + public void setSmallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; } - public Capitalization capitalCamel(String capitalCamel) { + public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; return this; @@ -120,11 +126,11 @@ public String getCapitalCamel() { @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "CapitalCamel") - public void setCapitalCamel(String capitalCamel) { + public void setCapitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; } - public Capitalization smallSnake(String smallSnake) { + public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; return this; @@ -147,11 +153,11 @@ public String getSmallSnake() { @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "small_Snake") - public void setSmallSnake(String smallSnake) { + public void setSmallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; } - public Capitalization capitalSnake(String capitalSnake) { + public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; return this; @@ -174,11 +180,11 @@ public String getCapitalSnake() { @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "Capital_Snake") - public void setCapitalSnake(String capitalSnake) { + public void setCapitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; } - public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; return this; @@ -201,11 +207,11 @@ public String getScAETHFlowPoints() { @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "SCA_ETH_Flow_Points") - public void setScAETHFlowPoints(String scAETHFlowPoints) { + public void setScAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } - public Capitalization ATT_NAME(String ATT_NAME) { + public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; return this; @@ -228,7 +234,7 @@ public String getATTNAME() { @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "ATT_NAME") - public void setATTNAME(String ATT_NAME) { + public void setATTNAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Cat.java index 0b8ffd815b3d..d5e610bac9b5 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Cat.java @@ -50,13 +50,14 @@ public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; @XmlElement(name = "declawed") + @javax.annotation.Nullable private Boolean declawed; public Cat() { } - public Cat declawed(Boolean declawed) { + public Cat declawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; return this; @@ -79,18 +80,18 @@ public Boolean getDeclawed() { @JsonProperty(JSON_PROPERTY_DECLAWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "declawed") - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; } @Override - public Cat className(String className) { + public Cat className(@javax.annotation.Nonnull String className) { this.setClassName(className); return this; } @Override - public Cat color(String color) { + public Cat color(@javax.annotation.Nullable String color) { this.setColor(color); return this; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Category.java index 6e7417a0c974..d9e0f576bac4 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Category.java @@ -41,16 +41,18 @@ public class Category { public static final String JSON_PROPERTY_ID = "id"; @XmlElement(name = "id") + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; @XmlElement(name = "name") + @javax.annotation.Nonnull private String name = "default-name"; public Category() { } - public Category id(Long id) { + public Category id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -73,11 +75,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "id") - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@javax.annotation.Nonnull String name) { this.name = name; return this; @@ -100,7 +102,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) @JacksonXmlProperty(localName = "name") - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ChildWithNullable.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ChildWithNullable.java index ddecdb9676f2..0d56dd8c124a 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ChildWithNullable.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ChildWithNullable.java @@ -51,13 +51,14 @@ public class ChildWithNullable extends ParentWithNullable { public static final String JSON_PROPERTY_OTHER_PROPERTY = "otherProperty"; @XmlElement(name = "otherProperty") + @javax.annotation.Nullable private String otherProperty; public ChildWithNullable() { } - public ChildWithNullable otherProperty(String otherProperty) { + public ChildWithNullable otherProperty(@javax.annotation.Nullable String otherProperty) { this.otherProperty = otherProperty; return this; @@ -80,18 +81,18 @@ public String getOtherProperty() { @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "otherProperty") - public void setOtherProperty(String otherProperty) { + public void setOtherProperty(@javax.annotation.Nullable String otherProperty) { this.otherProperty = otherProperty; } @Override - public ChildWithNullable type(TypeEnum type) { + public ChildWithNullable type(@javax.annotation.Nullable TypeEnum type) { this.setType(type); return this; } @Override - public ChildWithNullable nullableProperty(String nullableProperty) { + public ChildWithNullable nullableProperty(@javax.annotation.Nullable String nullableProperty) { this.setNullableProperty(nullableProperty); return this; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ClassModel.java index 23774abeb04d..d8cc739141c9 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ClassModel.java @@ -40,12 +40,13 @@ public class ClassModel { public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; @XmlElement(name = "_class") + @javax.annotation.Nullable private String propertyClass; public ClassModel() { } - public ClassModel propertyClass(String propertyClass) { + public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; @@ -68,7 +69,7 @@ public String getPropertyClass() { @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "_class") - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Client.java index 8394fc86f5d2..868333a7d9e6 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Client.java @@ -40,12 +40,13 @@ public class Client { public static final String JSON_PROPERTY_CLIENT = "client"; @XmlElement(name = "client") + @javax.annotation.Nullable private String client; public Client() { } - public Client client(String client) { + public Client client(@javax.annotation.Nullable String client) { this.client = client; return this; @@ -68,7 +69,7 @@ public String getClient() { @JsonProperty(JSON_PROPERTY_CLIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "client") - public void setClient(String client) { + public void setClient(@javax.annotation.Nullable String client) { this.client = client; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/DeprecatedObject.java index b82d23968e4b..66b98fde18eb 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -42,12 +42,13 @@ public class DeprecatedObject { public static final String JSON_PROPERTY_NAME = "name"; @XmlElement(name = "name") + @javax.annotation.Nullable private String name; public DeprecatedObject() { } - public DeprecatedObject name(String name) { + public DeprecatedObject name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -70,7 +71,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "name") - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Dog.java index 2a94093f440b..489bbaaa5d3c 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Dog.java @@ -50,13 +50,14 @@ public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; @XmlElement(name = "breed") + @javax.annotation.Nullable private String breed; public Dog() { } - public Dog breed(String breed) { + public Dog breed(@javax.annotation.Nullable String breed) { this.breed = breed; return this; @@ -79,18 +80,18 @@ public String getBreed() { @JsonProperty(JSON_PROPERTY_BREED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "breed") - public void setBreed(String breed) { + public void setBreed(@javax.annotation.Nullable String breed) { this.breed = breed; } @Override - public Dog className(String className) { + public Dog className(@javax.annotation.Nonnull String className) { this.setClassName(className); return this; } @Override - public Dog color(String color) { + public Dog color(@javax.annotation.Nullable String color) { this.setColor(color); return this; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/EnumArrays.java index 95a0a1e4e39c..29a6539de3a2 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -83,6 +83,7 @@ public static JustSymbolEnum fromValue(String value) { public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; @XmlElement(name = "just_symbol") + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** @@ -126,12 +127,13 @@ public static ArrayEnumEnum fromValue(String value) { public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; @XmlElement(name = "array_enum") + @javax.annotation.Nullable private List arrayEnum = new ArrayList<>(); public EnumArrays() { } - public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; @@ -154,11 +156,11 @@ public JustSymbolEnum getJustSymbol() { @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "just_symbol") - public void setJustSymbol(JustSymbolEnum justSymbol) { + public void setJustSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } - public EnumArrays arrayEnum(List arrayEnum) { + public EnumArrays arrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; return this; @@ -191,7 +193,7 @@ public List getArrayEnum() { @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "array_enum") @JacksonXmlElementWrapper(useWrapping = false) - public void setArrayEnum(List arrayEnum) { + public void setArrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/EnumTest.java index 92d2f1eee1f3..ab8d67d6d4a2 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/EnumTest.java @@ -98,6 +98,7 @@ public static EnumStringEnum fromValue(String value) { public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; @XmlElement(name = "enum_string") + @javax.annotation.Nullable private EnumStringEnum enumString; /** @@ -144,6 +145,7 @@ public static EnumStringRequiredEnum fromValue(String value) { public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; @XmlElement(name = "enum_string_required") + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** @@ -187,6 +189,7 @@ public static EnumIntegerEnum fromValue(Integer value) { public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; @XmlElement(name = "enum_integer") + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** @@ -230,28 +233,33 @@ public static EnumNumberEnum fromValue(Double value) { public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; @XmlElement(name = "enum_number") + @javax.annotation.Nullable private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; @XmlElement(name = "outerEnum") + @javax.annotation.Nullable private JsonNullable outerEnum = JsonNullable.undefined(); public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER = "outerEnumInteger"; @XmlElement(name = "outerEnumInteger") + @javax.annotation.Nullable private OuterEnumInteger outerEnumInteger; public static final String JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE = "outerEnumDefaultValue"; @XmlElement(name = "outerEnumDefaultValue") + @javax.annotation.Nullable private OuterEnumDefaultValue outerEnumDefaultValue = OuterEnumDefaultValue.PLACED; public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE = "outerEnumIntegerDefaultValue"; @XmlElement(name = "outerEnumIntegerDefaultValue") + @javax.annotation.Nullable private OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = OuterEnumIntegerDefaultValue.NUMBER_0; public EnumTest() { } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; @@ -274,11 +282,11 @@ public EnumStringEnum getEnumString() { @JsonProperty(JSON_PROPERTY_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "enum_string") - public void setEnumString(EnumStringEnum enumString) { + public void setEnumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; } - public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; return this; @@ -301,11 +309,11 @@ public EnumStringRequiredEnum getEnumStringRequired() { @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) @JsonInclude(value = JsonInclude.Include.ALWAYS) @JacksonXmlProperty(localName = "enum_string_required") - public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public void setEnumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; @@ -328,11 +336,11 @@ public EnumIntegerEnum getEnumInteger() { @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "enum_integer") - public void setEnumInteger(EnumIntegerEnum enumInteger) { + public void setEnumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } - public EnumTest enumNumber(EnumNumberEnum enumNumber) { + public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; return this; @@ -355,11 +363,11 @@ public EnumNumberEnum getEnumNumber() { @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "enum_number") - public void setEnumNumber(EnumNumberEnum enumNumber) { + public void setEnumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } - public EnumTest outerEnum(OuterEnum outerEnum) { + public EnumTest outerEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = JsonNullable.of(outerEnum); return this; @@ -389,11 +397,11 @@ public void setOuterEnum_JsonNullable(JsonNullable outerEnum) { this.outerEnum = outerEnum; } - public void setOuterEnum(OuterEnum outerEnum) { + public void setOuterEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = JsonNullable.of(outerEnum); } - public EnumTest outerEnumInteger(OuterEnumInteger outerEnumInteger) { + public EnumTest outerEnumInteger(@javax.annotation.Nullable OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; return this; @@ -416,11 +424,11 @@ public OuterEnumInteger getOuterEnumInteger() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "outerEnumInteger") - public void setOuterEnumInteger(OuterEnumInteger outerEnumInteger) { + public void setOuterEnumInteger(@javax.annotation.Nullable OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; } - public EnumTest outerEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) { + public EnumTest outerEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; return this; @@ -443,11 +451,11 @@ public OuterEnumDefaultValue getOuterEnumDefaultValue() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "outerEnumDefaultValue") - public void setOuterEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) { + public void setOuterEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; } - public EnumTest outerEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { + public EnumTest outerEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; return this; @@ -470,7 +478,7 @@ public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "outerEnumIntegerDefaultValue") - public void setOuterEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { + public void setOuterEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java index 724083e130db..84b93cd71a1d 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java @@ -45,16 +45,18 @@ public class FakeBigDecimalMap200Response { public static final String JSON_PROPERTY_SOME_ID = "someId"; @XmlElement(name = "someId") + @javax.annotation.Nullable private BigDecimal someId; public static final String JSON_PROPERTY_SOME_MAP = "someMap"; @XmlElement(name = "someMap") + @javax.annotation.Nullable private Map someMap = new HashMap<>(); public FakeBigDecimalMap200Response() { } - public FakeBigDecimalMap200Response someId(BigDecimal someId) { + public FakeBigDecimalMap200Response someId(@javax.annotation.Nullable BigDecimal someId) { this.someId = someId; return this; @@ -77,11 +79,11 @@ public BigDecimal getSomeId() { @JsonProperty(JSON_PROPERTY_SOME_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "someId") - public void setSomeId(BigDecimal someId) { + public void setSomeId(@javax.annotation.Nullable BigDecimal someId) { this.someId = someId; } - public FakeBigDecimalMap200Response someMap(Map someMap) { + public FakeBigDecimalMap200Response someMap(@javax.annotation.Nullable Map someMap) { this.someMap = someMap; return this; @@ -114,7 +116,7 @@ public Map getSomeMap() { @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "someMap") @JacksonXmlElementWrapper(useWrapping = false) - public void setSomeMap(Map someMap) { + public void setSomeMap(@javax.annotation.Nullable Map someMap) { this.someMap = someMap; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 0d13267e3bea..8fe2698f0bd8 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -45,16 +45,18 @@ public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; @XmlElement(name = "file") + @javax.annotation.Nullable private ModelFile _file; public static final String JSON_PROPERTY_FILES = "files"; @XmlElement(name = "files") + @javax.annotation.Nullable private List files = new ArrayList<>(); public FileSchemaTestClass() { } - public FileSchemaTestClass _file(ModelFile _file) { + public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { this._file = _file; return this; @@ -77,11 +79,11 @@ public ModelFile getFile() { @JsonProperty(JSON_PROPERTY_FILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "file") - public void setFile(ModelFile _file) { + public void setFile(@javax.annotation.Nullable ModelFile _file) { this._file = _file; } - public FileSchemaTestClass files(List files) { + public FileSchemaTestClass files(@javax.annotation.Nullable List files) { this.files = files; return this; @@ -114,7 +116,7 @@ public List getFiles() { @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "files") @JacksonXmlElementWrapper(useWrapping = false) - public void setFiles(List files) { + public void setFiles(@javax.annotation.Nullable List files) { this.files = files; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Foo.java index dfe1253a2f42..0aaef1258c4b 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Foo.java @@ -40,12 +40,13 @@ public class Foo { public static final String JSON_PROPERTY_BAR = "bar"; @XmlElement(name = "bar") + @javax.annotation.Nullable private String bar = "bar"; public Foo() { } - public Foo bar(String bar) { + public Foo bar(@javax.annotation.Nullable String bar) { this.bar = bar; return this; @@ -68,7 +69,7 @@ public String getBar() { @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "bar") - public void setBar(String bar) { + public void setBar(@javax.annotation.Nullable String bar) { this.bar = bar; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index 749660173cf2..b602904db4f0 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -42,12 +42,13 @@ public class FooGetDefaultResponse { public static final String JSON_PROPERTY_STRING = "string"; @XmlElement(name = "string") + @javax.annotation.Nullable private Foo string; public FooGetDefaultResponse() { } - public FooGetDefaultResponse string(Foo string) { + public FooGetDefaultResponse string(@javax.annotation.Nullable Foo string) { this.string = string; return this; @@ -70,7 +71,7 @@ public Foo getString() { @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "string") - public void setString(Foo string) { + public void setString(@javax.annotation.Nullable Foo string) { this.string = string; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FormatTest.java index fcc9ed2e67c5..8fb9b084de79 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FormatTest.java @@ -61,73 +61,89 @@ public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; @XmlElement(name = "integer") + @javax.annotation.Nullable private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; @XmlElement(name = "int32") + @javax.annotation.Nullable private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; @XmlElement(name = "int64") + @javax.annotation.Nullable private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; @XmlElement(name = "number") + @javax.annotation.Nonnull private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; @XmlElement(name = "float") + @javax.annotation.Nullable private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; @XmlElement(name = "double") + @javax.annotation.Nullable private Double _double; public static final String JSON_PROPERTY_DECIMAL = "decimal"; @XmlElement(name = "decimal") + @javax.annotation.Nullable private BigDecimal decimal; public static final String JSON_PROPERTY_STRING = "string"; @XmlElement(name = "string") + @javax.annotation.Nullable private String string; public static final String JSON_PROPERTY_BYTE = "byte"; @XmlElement(name = "byte") + @javax.annotation.Nonnull private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; @XmlElement(name = "binary") + @javax.annotation.Nullable private File binary; public static final String JSON_PROPERTY_DATE = "date"; @XmlElement(name = "date") + @javax.annotation.Nonnull private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; @XmlElement(name = "dateTime") @XmlJavaTypeAdapter(OffsetDateTimeXmlAdapter.class) + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; @XmlElement(name = "uuid") + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; @XmlElement(name = "password") + @javax.annotation.Nonnull private String password; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS = "pattern_with_digits"; @XmlElement(name = "pattern_with_digits") + @javax.annotation.Nullable private String patternWithDigits; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER = "pattern_with_digits_and_delimiter"; @XmlElement(name = "pattern_with_digits_and_delimiter") + @javax.annotation.Nullable private String patternWithDigitsAndDelimiter; public FormatTest() { } - public FormatTest integer(Integer integer) { + public FormatTest integer(@javax.annotation.Nullable Integer integer) { this.integer = integer; return this; @@ -152,11 +168,11 @@ public Integer getInteger() { @JsonProperty(JSON_PROPERTY_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "integer") - public void setInteger(Integer integer) { + public void setInteger(@javax.annotation.Nullable Integer integer) { this.integer = integer; } - public FormatTest int32(Integer int32) { + public FormatTest int32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; return this; @@ -181,11 +197,11 @@ public Integer getInt32() { @JsonProperty(JSON_PROPERTY_INT32) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "int32") - public void setInt32(Integer int32) { + public void setInt32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; } - public FormatTest int64(Long int64) { + public FormatTest int64(@javax.annotation.Nullable Long int64) { this.int64 = int64; return this; @@ -208,11 +224,11 @@ public Long getInt64() { @JsonProperty(JSON_PROPERTY_INT64) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "int64") - public void setInt64(Long int64) { + public void setInt64(@javax.annotation.Nullable Long int64) { this.int64 = int64; } - public FormatTest number(BigDecimal number) { + public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { this.number = number; return this; @@ -237,11 +253,11 @@ public BigDecimal getNumber() { @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) @JacksonXmlProperty(localName = "number") - public void setNumber(BigDecimal number) { + public void setNumber(@javax.annotation.Nonnull BigDecimal number) { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@javax.annotation.Nullable Float _float) { this._float = _float; return this; @@ -266,11 +282,11 @@ public Float getFloat() { @JsonProperty(JSON_PROPERTY_FLOAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "float") - public void setFloat(Float _float) { + public void setFloat(@javax.annotation.Nullable Float _float) { this._float = _float; } - public FormatTest _double(Double _double) { + public FormatTest _double(@javax.annotation.Nullable Double _double) { this._double = _double; return this; @@ -295,11 +311,11 @@ public Double getDouble() { @JsonProperty(JSON_PROPERTY_DOUBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "double") - public void setDouble(Double _double) { + public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; } - public FormatTest decimal(BigDecimal decimal) { + public FormatTest decimal(@javax.annotation.Nullable BigDecimal decimal) { this.decimal = decimal; return this; @@ -322,11 +338,11 @@ public BigDecimal getDecimal() { @JsonProperty(JSON_PROPERTY_DECIMAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "decimal") - public void setDecimal(BigDecimal decimal) { + public void setDecimal(@javax.annotation.Nullable BigDecimal decimal) { this.decimal = decimal; } - public FormatTest string(String string) { + public FormatTest string(@javax.annotation.Nullable String string) { this.string = string; return this; @@ -349,11 +365,11 @@ public String getString() { @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "string") - public void setString(String string) { + public void setString(@javax.annotation.Nullable String string) { this.string = string; } - public FormatTest _byte(byte[] _byte) { + public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; return this; @@ -376,11 +392,11 @@ public byte[] getByte() { @JsonProperty(JSON_PROPERTY_BYTE) @JsonInclude(value = JsonInclude.Include.ALWAYS) @JacksonXmlProperty(localName = "byte") - public void setByte(byte[] _byte) { + public void setByte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; } - public FormatTest binary(File binary) { + public FormatTest binary(@javax.annotation.Nullable File binary) { this.binary = binary; return this; @@ -403,11 +419,11 @@ public File getBinary() { @JsonProperty(JSON_PROPERTY_BINARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "binary") - public void setBinary(File binary) { + public void setBinary(@javax.annotation.Nullable File binary) { this.binary = binary; } - public FormatTest date(LocalDate date) { + public FormatTest date(@javax.annotation.Nonnull LocalDate date) { this.date = date; return this; @@ -430,11 +446,11 @@ public LocalDate getDate() { @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) @JacksonXmlProperty(localName = "date") - public void setDate(LocalDate date) { + public void setDate(@javax.annotation.Nonnull LocalDate date) { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; @@ -457,11 +473,11 @@ public OffsetDateTime getDateTime() { @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "dateTime") - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public FormatTest uuid(UUID uuid) { + public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; @@ -484,11 +500,11 @@ public UUID getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "uuid") - public void setUuid(UUID uuid) { + public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public FormatTest password(String password) { + public FormatTest password(@javax.annotation.Nonnull String password) { this.password = password; return this; @@ -511,11 +527,11 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.ALWAYS) @JacksonXmlProperty(localName = "password") - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nonnull String password) { this.password = password; } - public FormatTest patternWithDigits(String patternWithDigits) { + public FormatTest patternWithDigits(@javax.annotation.Nullable String patternWithDigits) { this.patternWithDigits = patternWithDigits; return this; @@ -538,11 +554,11 @@ public String getPatternWithDigits() { @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "pattern_with_digits") - public void setPatternWithDigits(String patternWithDigits) { + public void setPatternWithDigits(@javax.annotation.Nullable String patternWithDigits) { this.patternWithDigits = patternWithDigits; } - public FormatTest patternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) { + public FormatTest patternWithDigitsAndDelimiter(@javax.annotation.Nullable String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; return this; @@ -565,7 +581,7 @@ public String getPatternWithDigitsAndDelimiter() { @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "pattern_with_digits_and_delimiter") - public void setPatternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) { + public void setPatternWithDigitsAndDelimiter(@javax.annotation.Nullable String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 13b89d9d2a09..2716b30c765d 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -42,10 +42,12 @@ public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; @XmlElement(name = "bar") + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_FOO = "foo"; @XmlElement(name = "foo") + @javax.annotation.Nullable private String foo; public HasOnlyReadOnly() { diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/HealthCheckResult.java index 2c42af4ba80d..a020ea8594d8 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -44,12 +44,13 @@ public class HealthCheckResult { public static final String JSON_PROPERTY_NULLABLE_MESSAGE = "NullableMessage"; @XmlElement(name = "NullableMessage") + @javax.annotation.Nullable private JsonNullable nullableMessage = JsonNullable.undefined(); public HealthCheckResult() { } - public HealthCheckResult nullableMessage(String nullableMessage) { + public HealthCheckResult nullableMessage(@javax.annotation.Nullable String nullableMessage) { this.nullableMessage = JsonNullable.of(nullableMessage); return this; @@ -79,7 +80,7 @@ public void setNullableMessage_JsonNullable(JsonNullable nullableMessage this.nullableMessage = nullableMessage; } - public void setNullableMessage(String nullableMessage) { + public void setNullableMessage(@javax.annotation.Nullable String nullableMessage) { this.nullableMessage = JsonNullable.of(nullableMessage); } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/MapTest.java index ad8aaa9a108f..7aeba1458318 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/MapTest.java @@ -45,6 +45,7 @@ public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; @XmlElement(name = "map_map_of_string") + @javax.annotation.Nullable private Map> mapMapOfString = new HashMap<>(); /** @@ -88,20 +89,23 @@ public static InnerEnum fromValue(String value) { public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; @XmlElement(name = "map_of_enum_string") + @javax.annotation.Nullable private Map mapOfEnumString = new HashMap<>(); public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; @XmlElement(name = "direct_map") + @javax.annotation.Nullable private Map directMap = new HashMap<>(); public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; @XmlElement(name = "indirect_map") + @javax.annotation.Nullable private Map indirectMap = new HashMap<>(); public MapTest() { } - public MapTest mapMapOfString(Map> mapMapOfString) { + public MapTest mapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; return this; @@ -134,11 +138,11 @@ public Map> getMapMapOfString() { @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "map_map_of_string") @JacksonXmlElementWrapper(useWrapping = false) - public void setMapMapOfString(Map> mapMapOfString) { + public void setMapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } - public MapTest mapOfEnumString(Map mapOfEnumString) { + public MapTest mapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; return this; @@ -171,11 +175,11 @@ public Map getMapOfEnumString() { @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "map_of_enum_string") @JacksonXmlElementWrapper(useWrapping = false) - public void setMapOfEnumString(Map mapOfEnumString) { + public void setMapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } - public MapTest directMap(Map directMap) { + public MapTest directMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; return this; @@ -208,11 +212,11 @@ public Map getDirectMap() { @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "direct_map") @JacksonXmlElementWrapper(useWrapping = false) - public void setDirectMap(Map directMap) { + public void setDirectMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; } - public MapTest indirectMap(Map indirectMap) { + public MapTest indirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; return this; @@ -245,7 +249,7 @@ public Map getIndirectMap() { @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "indirect_map") @JacksonXmlElementWrapper(useWrapping = false) - public void setIndirectMap(Map indirectMap) { + public void setIndirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index b19db7b0fa96..a71833a18028 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -47,21 +47,24 @@ public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; @XmlElement(name = "uuid") + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; @XmlElement(name = "dateTime") @XmlJavaTypeAdapter(OffsetDateTimeXmlAdapter.class) + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; @XmlElement(name = "map") + @javax.annotation.Nullable private Map map = new HashMap<>(); public MixedPropertiesAndAdditionalPropertiesClass() { } - public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; @@ -84,11 +87,11 @@ public UUID getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "uuid") - public void setUuid(UUID uuid) { + public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; @@ -111,11 +114,11 @@ public OffsetDateTime getDateTime() { @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "dateTime") - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + public MixedPropertiesAndAdditionalPropertiesClass map(@javax.annotation.Nullable Map map) { this.map = map; return this; @@ -148,7 +151,7 @@ public Map getMap() { @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "map") @JacksonXmlElementWrapper(useWrapping = false) - public void setMap(Map map) { + public void setMap(@javax.annotation.Nullable Map map) { this.map = map; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Model200Response.java index 680518bfdf8d..934cb9b3420e 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Model200Response.java @@ -42,16 +42,18 @@ public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; @XmlElement(name = "name") + @javax.annotation.Nullable private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; @XmlElement(name = "class") + @javax.annotation.Nullable private String propertyClass; public Model200Response() { } - public Model200Response name(Integer name) { + public Model200Response name(@javax.annotation.Nullable Integer name) { this.name = name; return this; @@ -74,11 +76,11 @@ public Integer getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "name") - public void setName(Integer name) { + public void setName(@javax.annotation.Nullable Integer name) { this.name = name; } - public Model200Response propertyClass(String propertyClass) { + public Model200Response propertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; @@ -101,7 +103,7 @@ public String getPropertyClass() { @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "class") - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 665c53fc3738..312108947513 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -43,20 +43,23 @@ public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; @XmlElement(name = "code") + @javax.annotation.Nullable private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; @XmlElement(name = "type") + @javax.annotation.Nullable private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; @XmlElement(name = "message") + @javax.annotation.Nullable private String message; public ModelApiResponse() { } - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@javax.annotation.Nullable Integer code) { this.code = code; return this; @@ -79,11 +82,11 @@ public Integer getCode() { @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "code") - public void setCode(Integer code) { + public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@javax.annotation.Nullable String type) { this.type = type; return this; @@ -106,11 +109,11 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "type") - public void setType(String type) { + public void setType(@javax.annotation.Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@javax.annotation.Nullable String message) { this.message = message; return this; @@ -133,7 +136,7 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "message") - public void setMessage(String message) { + public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelFile.java index 5389f7966868..6f2c3d000f30 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelFile.java @@ -41,12 +41,13 @@ public class ModelFile { public static final String JSON_PROPERTY_SOURCE_U_R_I = "sourceURI"; @XmlElement(name = "sourceURI") + @javax.annotation.Nullable private String sourceURI; public ModelFile() { } - public ModelFile sourceURI(String sourceURI) { + public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; return this; @@ -69,7 +70,7 @@ public String getSourceURI() { @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "sourceURI") - public void setSourceURI(String sourceURI) { + public void setSourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelList.java index 91737ce49274..cb521af91ced 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelList.java @@ -41,12 +41,13 @@ public class ModelList { public static final String JSON_PROPERTY_123LIST = "123-list"; @XmlElement(name = "123-list") + @javax.annotation.Nullable private String _123list; public ModelList() { } - public ModelList _123list(String _123list) { + public ModelList _123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; return this; @@ -69,7 +70,7 @@ public String get123list() { @JsonProperty(JSON_PROPERTY_123LIST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "123-list") - public void set123list(String _123list) { + public void set123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelReturn.java index 8277511b0bdf..72b5bfcbd0e7 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -41,12 +41,13 @@ public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; @XmlElement(name = "return") + @javax.annotation.Nullable private Integer _return; public ModelReturn() { } - public ModelReturn _return(Integer _return) { + public ModelReturn _return(@javax.annotation.Nullable Integer _return) { this._return = _return; return this; @@ -69,7 +70,7 @@ public Integer getReturn() { @JsonProperty(JSON_PROPERTY_RETURN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "return") - public void setReturn(Integer _return) { + public void setReturn(@javax.annotation.Nullable Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Name.java index 52887521eeb7..a350a37f2910 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Name.java @@ -43,24 +43,28 @@ public class Name { public static final String JSON_PROPERTY_NAME = "name"; @XmlElement(name = "name") + @javax.annotation.Nonnull private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; @XmlElement(name = "snake_case") + @javax.annotation.Nullable private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; @XmlElement(name = "property") + @javax.annotation.Nullable private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; @XmlElement(name = "123Number") + @javax.annotation.Nullable private Integer _123number; public Name() { } - public Name name(Integer name) { + public Name name(@javax.annotation.Nonnull Integer name) { this.name = name; return this; @@ -83,7 +87,7 @@ public Integer getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) @JacksonXmlProperty(localName = "name") - public void setName(Integer name) { + public void setName(@javax.annotation.Nonnull Integer name) { this.name = name; } @@ -102,7 +106,7 @@ public Integer getSnakeCase() { - public Name property(String property) { + public Name property(@javax.annotation.Nullable String property) { this.property = property; return this; @@ -125,7 +129,7 @@ public String getProperty() { @JsonProperty(JSON_PROPERTY_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "property") - public void setProperty(String property) { + public void setProperty(@javax.annotation.Nullable String property) { this.property = property; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/NullableClass.java index e541b4ceed7d..3c58634ca07e 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/NullableClass.java @@ -63,58 +63,70 @@ public class NullableClass extends HashMap { public static final String JSON_PROPERTY_INTEGER_PROP = "integer_prop"; @XmlElement(name = "integer_prop") + @javax.annotation.Nullable private JsonNullable integerProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_NUMBER_PROP = "number_prop"; @XmlElement(name = "number_prop") + @javax.annotation.Nullable private JsonNullable numberProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_BOOLEAN_PROP = "boolean_prop"; @XmlElement(name = "boolean_prop") + @javax.annotation.Nullable private JsonNullable booleanProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_STRING_PROP = "string_prop"; @XmlElement(name = "string_prop") + @javax.annotation.Nullable private JsonNullable stringProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_DATE_PROP = "date_prop"; @XmlElement(name = "date_prop") + @javax.annotation.Nullable private JsonNullable dateProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_DATETIME_PROP = "datetime_prop"; @XmlElement(name = "datetime_prop") @XmlJavaTypeAdapter(OffsetDateTimeXmlAdapter.class) + @javax.annotation.Nullable private JsonNullable datetimeProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_ARRAY_NULLABLE_PROP = "array_nullable_prop"; @XmlElement(name = "array_nullable_prop") + @javax.annotation.Nullable private JsonNullable> arrayNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP = "array_and_items_nullable_prop"; @XmlElement(name = "array_and_items_nullable_prop") + @javax.annotation.Nullable private JsonNullable> arrayAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_ITEMS_NULLABLE = "array_items_nullable"; @XmlElement(name = "array_items_nullable") + @javax.annotation.Nullable private List arrayItemsNullable = new ArrayList<>(); public static final String JSON_PROPERTY_OBJECT_NULLABLE_PROP = "object_nullable_prop"; @XmlElement(name = "object_nullable_prop") + @javax.annotation.Nullable private JsonNullable> objectNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP = "object_and_items_nullable_prop"; @XmlElement(name = "object_and_items_nullable_prop") + @javax.annotation.Nullable private JsonNullable> objectAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_OBJECT_ITEMS_NULLABLE = "object_items_nullable"; @XmlElement(name = "object_items_nullable") + @javax.annotation.Nullable private Map objectItemsNullable = new HashMap<>(); public NullableClass() { } - public NullableClass integerProp(Integer integerProp) { + public NullableClass integerProp(@javax.annotation.Nullable Integer integerProp) { this.integerProp = JsonNullable.of(integerProp); return this; @@ -144,11 +156,11 @@ public void setIntegerProp_JsonNullable(JsonNullable integerProp) { this.integerProp = integerProp; } - public void setIntegerProp(Integer integerProp) { + public void setIntegerProp(@javax.annotation.Nullable Integer integerProp) { this.integerProp = JsonNullable.of(integerProp); } - public NullableClass numberProp(BigDecimal numberProp) { + public NullableClass numberProp(@javax.annotation.Nullable BigDecimal numberProp) { this.numberProp = JsonNullable.of(numberProp); return this; @@ -178,11 +190,11 @@ public void setNumberProp_JsonNullable(JsonNullable numberProp) { this.numberProp = numberProp; } - public void setNumberProp(BigDecimal numberProp) { + public void setNumberProp(@javax.annotation.Nullable BigDecimal numberProp) { this.numberProp = JsonNullable.of(numberProp); } - public NullableClass booleanProp(Boolean booleanProp) { + public NullableClass booleanProp(@javax.annotation.Nullable Boolean booleanProp) { this.booleanProp = JsonNullable.of(booleanProp); return this; @@ -212,11 +224,11 @@ public void setBooleanProp_JsonNullable(JsonNullable booleanProp) { this.booleanProp = booleanProp; } - public void setBooleanProp(Boolean booleanProp) { + public void setBooleanProp(@javax.annotation.Nullable Boolean booleanProp) { this.booleanProp = JsonNullable.of(booleanProp); } - public NullableClass stringProp(String stringProp) { + public NullableClass stringProp(@javax.annotation.Nullable String stringProp) { this.stringProp = JsonNullable.of(stringProp); return this; @@ -246,11 +258,11 @@ public void setStringProp_JsonNullable(JsonNullable stringProp) { this.stringProp = stringProp; } - public void setStringProp(String stringProp) { + public void setStringProp(@javax.annotation.Nullable String stringProp) { this.stringProp = JsonNullable.of(stringProp); } - public NullableClass dateProp(LocalDate dateProp) { + public NullableClass dateProp(@javax.annotation.Nullable LocalDate dateProp) { this.dateProp = JsonNullable.of(dateProp); return this; @@ -280,11 +292,11 @@ public void setDateProp_JsonNullable(JsonNullable dateProp) { this.dateProp = dateProp; } - public void setDateProp(LocalDate dateProp) { + public void setDateProp(@javax.annotation.Nullable LocalDate dateProp) { this.dateProp = JsonNullable.of(dateProp); } - public NullableClass datetimeProp(OffsetDateTime datetimeProp) { + public NullableClass datetimeProp(@javax.annotation.Nullable OffsetDateTime datetimeProp) { this.datetimeProp = JsonNullable.of(datetimeProp); return this; @@ -314,11 +326,11 @@ public void setDatetimeProp_JsonNullable(JsonNullable datetimePr this.datetimeProp = datetimeProp; } - public void setDatetimeProp(OffsetDateTime datetimeProp) { + public void setDatetimeProp(@javax.annotation.Nullable OffsetDateTime datetimeProp) { this.datetimeProp = JsonNullable.of(datetimeProp); } - public NullableClass arrayNullableProp(List arrayNullableProp) { + public NullableClass arrayNullableProp(@javax.annotation.Nullable List arrayNullableProp) { this.arrayNullableProp = JsonNullable.>of(arrayNullableProp); return this; @@ -361,11 +373,11 @@ public void setArrayNullableProp_JsonNullable(JsonNullable> arrayNu this.arrayNullableProp = arrayNullableProp; } - public void setArrayNullableProp(List arrayNullableProp) { + public void setArrayNullableProp(@javax.annotation.Nullable List arrayNullableProp) { this.arrayNullableProp = JsonNullable.>of(arrayNullableProp); } - public NullableClass arrayAndItemsNullableProp(List arrayAndItemsNullableProp) { + public NullableClass arrayAndItemsNullableProp(@javax.annotation.Nullable List arrayAndItemsNullableProp) { this.arrayAndItemsNullableProp = JsonNullable.>of(arrayAndItemsNullableProp); return this; @@ -408,11 +420,11 @@ public void setArrayAndItemsNullableProp_JsonNullable(JsonNullable> this.arrayAndItemsNullableProp = arrayAndItemsNullableProp; } - public void setArrayAndItemsNullableProp(List arrayAndItemsNullableProp) { + public void setArrayAndItemsNullableProp(@javax.annotation.Nullable List arrayAndItemsNullableProp) { this.arrayAndItemsNullableProp = JsonNullable.>of(arrayAndItemsNullableProp); } - public NullableClass arrayItemsNullable(List arrayItemsNullable) { + public NullableClass arrayItemsNullable(@javax.annotation.Nullable List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; return this; @@ -445,11 +457,11 @@ public List getArrayItemsNullable() { @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "array_items_nullable") @JacksonXmlElementWrapper(useWrapping = false) - public void setArrayItemsNullable(List arrayItemsNullable) { + public void setArrayItemsNullable(@javax.annotation.Nullable List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; } - public NullableClass objectNullableProp(Map objectNullableProp) { + public NullableClass objectNullableProp(@javax.annotation.Nullable Map objectNullableProp) { this.objectNullableProp = JsonNullable.>of(objectNullableProp); return this; @@ -492,11 +504,11 @@ public void setObjectNullableProp_JsonNullable(JsonNullable> this.objectNullableProp = objectNullableProp; } - public void setObjectNullableProp(Map objectNullableProp) { + public void setObjectNullableProp(@javax.annotation.Nullable Map objectNullableProp) { this.objectNullableProp = JsonNullable.>of(objectNullableProp); } - public NullableClass objectAndItemsNullableProp(Map objectAndItemsNullableProp) { + public NullableClass objectAndItemsNullableProp(@javax.annotation.Nullable Map objectAndItemsNullableProp) { this.objectAndItemsNullableProp = JsonNullable.>of(objectAndItemsNullableProp); return this; @@ -539,11 +551,11 @@ public void setObjectAndItemsNullableProp_JsonNullable(JsonNullable objectAndItemsNullableProp) { + public void setObjectAndItemsNullableProp(@javax.annotation.Nullable Map objectAndItemsNullableProp) { this.objectAndItemsNullableProp = JsonNullable.>of(objectAndItemsNullableProp); } - public NullableClass objectItemsNullable(Map objectItemsNullable) { + public NullableClass objectItemsNullable(@javax.annotation.Nullable Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; return this; @@ -576,7 +588,7 @@ public Map getObjectItemsNullable() { @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "object_items_nullable") @JacksonXmlElementWrapper(useWrapping = false) - public void setObjectItemsNullable(Map objectItemsNullable) { + public void setObjectItemsNullable(@javax.annotation.Nullable Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/NumberOnly.java index 6f1204afbf64..ff40d32565c7 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -41,12 +41,13 @@ public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; @XmlElement(name = "JustNumber") + @javax.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } - public NumberOnly justNumber(BigDecimal justNumber) { + public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; @@ -69,7 +70,7 @@ public BigDecimal getJustNumber() { @JsonProperty(JSON_PROPERTY_JUST_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "JustNumber") - public void setJustNumber(BigDecimal justNumber) { + public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index 06f5b1c2ad3d..4fa8c5e6887d 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -48,24 +48,28 @@ public class ObjectWithDeprecatedFields { public static final String JSON_PROPERTY_UUID = "uuid"; @XmlElement(name = "uuid") + @javax.annotation.Nullable private String uuid; public static final String JSON_PROPERTY_ID = "id"; @XmlElement(name = "id") + @javax.annotation.Nullable private BigDecimal id; public static final String JSON_PROPERTY_DEPRECATED_REF = "deprecatedRef"; @XmlElement(name = "deprecatedRef") + @javax.annotation.Nullable private DeprecatedObject deprecatedRef; public static final String JSON_PROPERTY_BARS = "bars"; @XmlElement(name = "bars") + @javax.annotation.Nullable private List bars = new ArrayList<>(); public ObjectWithDeprecatedFields() { } - public ObjectWithDeprecatedFields uuid(String uuid) { + public ObjectWithDeprecatedFields uuid(@javax.annotation.Nullable String uuid) { this.uuid = uuid; return this; @@ -88,11 +92,11 @@ public String getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "uuid") - public void setUuid(String uuid) { + public void setUuid(@javax.annotation.Nullable String uuid) { this.uuid = uuid; } - public ObjectWithDeprecatedFields id(BigDecimal id) { + public ObjectWithDeprecatedFields id(@javax.annotation.Nullable BigDecimal id) { this.id = id; return this; @@ -117,11 +121,11 @@ public BigDecimal getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "id") - public void setId(BigDecimal id) { + public void setId(@javax.annotation.Nullable BigDecimal id) { this.id = id; } - public ObjectWithDeprecatedFields deprecatedRef(DeprecatedObject deprecatedRef) { + public ObjectWithDeprecatedFields deprecatedRef(@javax.annotation.Nullable DeprecatedObject deprecatedRef) { this.deprecatedRef = deprecatedRef; return this; @@ -146,11 +150,11 @@ public DeprecatedObject getDeprecatedRef() { @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "deprecatedRef") - public void setDeprecatedRef(DeprecatedObject deprecatedRef) { + public void setDeprecatedRef(@javax.annotation.Nullable DeprecatedObject deprecatedRef) { this.deprecatedRef = deprecatedRef; } - public ObjectWithDeprecatedFields bars(List bars) { + public ObjectWithDeprecatedFields bars(@javax.annotation.Nullable List bars) { this.bars = bars; return this; @@ -185,7 +189,7 @@ public List getBars() { @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "bars") @JacksonXmlElementWrapper(useWrapping = false) - public void setBars(List bars) { + public void setBars(@javax.annotation.Nullable List bars) { this.bars = bars; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Order.java index 21168ec94d1f..b416932774b1 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Order.java @@ -46,19 +46,23 @@ public class Order { public static final String JSON_PROPERTY_ID = "id"; @XmlElement(name = "id") + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; @XmlElement(name = "petId") + @javax.annotation.Nullable private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; @XmlElement(name = "quantity") + @javax.annotation.Nullable private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; @XmlElement(name = "shipDate") @XmlJavaTypeAdapter(OffsetDateTimeXmlAdapter.class) + @javax.annotation.Nullable private OffsetDateTime shipDate; /** @@ -105,16 +109,18 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_STATUS = "status"; @XmlElement(name = "status") + @javax.annotation.Nullable private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; @XmlElement(name = "complete") + @javax.annotation.Nullable private Boolean complete = false; public Order() { } - public Order id(Long id) { + public Order id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -137,11 +143,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "id") - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@javax.annotation.Nullable Long petId) { this.petId = petId; return this; @@ -164,11 +170,11 @@ public Long getPetId() { @JsonProperty(JSON_PROPERTY_PET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "petId") - public void setPetId(Long petId) { + public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; return this; @@ -191,11 +197,11 @@ public Integer getQuantity() { @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "quantity") - public void setQuantity(Integer quantity) { + public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; @@ -218,11 +224,11 @@ public OffsetDateTime getShipDate() { @JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "shipDate") - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -245,11 +251,11 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "status") - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } - public Order complete(Boolean complete) { + public Order complete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; return this; @@ -272,7 +278,7 @@ public Boolean getComplete() { @JsonProperty(JSON_PROPERTY_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "complete") - public void setComplete(Boolean complete) { + public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/OuterComposite.java index b85caf088328..d1b78f830958 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -43,20 +43,23 @@ public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; @XmlElement(name = "my_number") + @javax.annotation.Nullable private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; @XmlElement(name = "my_string") + @javax.annotation.Nullable private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; @XmlElement(name = "my_boolean") + @javax.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } - public OuterComposite myNumber(BigDecimal myNumber) { + public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; @@ -79,11 +82,11 @@ public BigDecimal getMyNumber() { @JsonProperty(JSON_PROPERTY_MY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "my_number") - public void setMyNumber(BigDecimal myNumber) { + public void setMyNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; } - public OuterComposite myString(String myString) { + public OuterComposite myString(@javax.annotation.Nullable String myString) { this.myString = myString; return this; @@ -106,11 +109,11 @@ public String getMyString() { @JsonProperty(JSON_PROPERTY_MY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "my_string") - public void setMyString(String myString) { + public void setMyString(@javax.annotation.Nullable String myString) { this.myString = myString; } - public OuterComposite myBoolean(Boolean myBoolean) { + public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; return this; @@ -133,7 +136,7 @@ public Boolean getMyBoolean() { @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "my_boolean") - public void setMyBoolean(Boolean myBoolean) { + public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java index f406fced9e98..aa2e86eed794 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java @@ -41,12 +41,13 @@ public class OuterObjectWithEnumProperty { public static final String JSON_PROPERTY_VALUE = "value"; @XmlElement(name = "value") + @javax.annotation.Nonnull private OuterEnumInteger value; public OuterObjectWithEnumProperty() { } - public OuterObjectWithEnumProperty value(OuterEnumInteger value) { + public OuterObjectWithEnumProperty value(@javax.annotation.Nonnull OuterEnumInteger value) { this.value = value; return this; @@ -69,7 +70,7 @@ public OuterEnumInteger getValue() { @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.ALWAYS) @JacksonXmlProperty(localName = "value") - public void setValue(OuterEnumInteger value) { + public void setValue(@javax.annotation.Nonnull OuterEnumInteger value) { this.value = value; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ParentWithNullable.java index 7d7fa9971ffe..b7a71ee66ab5 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -93,16 +93,18 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_TYPE = "type"; @XmlElement(name = "type") + @javax.annotation.Nullable protected TypeEnum type; public static final String JSON_PROPERTY_NULLABLE_PROPERTY = "nullableProperty"; @XmlElement(name = "nullableProperty") + @javax.annotation.Nullable protected JsonNullable nullableProperty = JsonNullable.undefined(); public ParentWithNullable() { } - public ParentWithNullable type(TypeEnum type) { + public ParentWithNullable type(@javax.annotation.Nullable TypeEnum type) { this.type = type; return this; @@ -125,11 +127,11 @@ public TypeEnum getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "type") - public void setType(TypeEnum type) { + public void setType(@javax.annotation.Nullable TypeEnum type) { this.type = type; } - public ParentWithNullable nullableProperty(String nullableProperty) { + public ParentWithNullable nullableProperty(@javax.annotation.Nullable String nullableProperty) { this.nullableProperty = JsonNullable.of(nullableProperty); return this; @@ -159,7 +161,7 @@ public void setNullableProperty_JsonNullable(JsonNullable nullableProper this.nullableProperty = nullableProperty; } - public void setNullableProperty(String nullableProperty) { + public void setNullableProperty(@javax.annotation.Nullable String nullableProperty) { this.nullableProperty = JsonNullable.of(nullableProperty); } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Pet.java index de96c1578516..99cbbb8e75d1 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Pet.java @@ -53,24 +53,29 @@ public class Pet { public static final String JSON_PROPERTY_ID = "id"; @XmlElement(name = "id") + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; @XmlElement(name = "Category") + @javax.annotation.Nullable private Category category; public static final String JSON_PROPERTY_NAME = "name"; @XmlElement(name = "name") + @javax.annotation.Nonnull private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; @XmlElement(name = "photoUrl") @XmlElementWrapper(name = "photoUrls") + @javax.annotation.Nonnull private Set photoUrls = new LinkedHashSet<>(); public static final String JSON_PROPERTY_TAGS = "tags"; @XmlElement(name = "Tag") @XmlElementWrapper(name = "tag") + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** @@ -117,12 +122,13 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_STATUS = "status"; @XmlElement(name = "status") + @javax.annotation.Nullable private StatusEnum status; public Pet() { } - public Pet id(Long id) { + public Pet id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -145,11 +151,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "id") - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@javax.annotation.Nullable Category category) { this.category = category; return this; @@ -172,11 +178,11 @@ public Category getCategory() { @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "Category") - public void setCategory(Category category) { + public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; } - public Pet name(String name) { + public Pet name(@javax.annotation.Nonnull String name) { this.name = name; return this; @@ -199,11 +205,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) @JacksonXmlProperty(localName = "name") - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } - public Pet photoUrls(Set photoUrls) { + public Pet photoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; return this; @@ -237,11 +243,11 @@ public Set getPhotoUrls() { @JsonInclude(value = JsonInclude.Include.ALWAYS) @JacksonXmlProperty(localName = "photoUrl") @JacksonXmlElementWrapper(localName = "photoUrls", useWrapping = true) - public void setPhotoUrls(Set photoUrls) { + public void setPhotoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; } - public Pet tags(List tags) { + public Pet tags(@javax.annotation.Nullable List tags) { this.tags = tags; return this; @@ -274,11 +280,11 @@ public List getTags() { @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "Tag") @JacksonXmlElementWrapper(localName = "tag", useWrapping = true) - public void setTags(List tags) { + public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -301,7 +307,7 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "status") - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 38deb7bc35ab..6811e99e6999 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -41,10 +41,12 @@ public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; @XmlElement(name = "bar") + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; @XmlElement(name = "baz") + @javax.annotation.Nullable private String baz; public ReadOnlyFirst() { @@ -65,7 +67,7 @@ public String getBar() { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { this.baz = baz; return this; @@ -88,7 +90,7 @@ public String getBaz() { @JsonProperty(JSON_PROPERTY_BAZ) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "baz") - public void setBaz(String baz) { + public void setBaz(@javax.annotation.Nullable String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/SpecialModelName.java index d5b8a37e1cc4..9a5501390055 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -41,12 +41,13 @@ public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; @XmlElement(name = "$special[property.name]") + @javax.annotation.Nullable private Long $specialPropertyName; public SpecialModelName() { } - public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + public SpecialModelName $specialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; return this; @@ -69,7 +70,7 @@ public SpecialModelName() { @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "$special[property.name]") - public void set$SpecialPropertyName(Long $specialPropertyName) { + public void set$SpecialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Tag.java index 3c465558b890..11739968a6d7 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Tag.java @@ -41,16 +41,18 @@ public class Tag { public static final String JSON_PROPERTY_ID = "id"; @XmlElement(name = "id") + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; @XmlElement(name = "name") + @javax.annotation.Nullable private String name; public Tag() { } - public Tag id(Long id) { + public Tag id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -73,11 +75,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "id") - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -100,7 +102,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "name") - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index bec47c942026..a55823157613 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -43,13 +43,14 @@ public class TestInlineFreeformAdditionalPropertiesRequest extends HashMap { public static final String JSON_PROPERTY_SOME_PROPERTY = "someProperty"; @XmlElement(name = "someProperty") + @javax.annotation.Nullable private String someProperty; public TestInlineFreeformAdditionalPropertiesRequest() { } - public TestInlineFreeformAdditionalPropertiesRequest someProperty(String someProperty) { + public TestInlineFreeformAdditionalPropertiesRequest someProperty(@javax.annotation.Nullable String someProperty) { this.someProperty = someProperty; return this; @@ -72,7 +73,7 @@ public String getSomeProperty() { @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "someProperty") - public void setSomeProperty(String someProperty) { + public void setSomeProperty(@javax.annotation.Nullable String someProperty) { this.someProperty = someProperty; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/User.java index 6acd0a8613db..3ad4e8048d18 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/User.java @@ -47,40 +47,48 @@ public class User { public static final String JSON_PROPERTY_ID = "id"; @XmlElement(name = "id") + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; @XmlElement(name = "username") + @javax.annotation.Nullable private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; @XmlElement(name = "firstName") + @javax.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; @XmlElement(name = "lastName") + @javax.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; @XmlElement(name = "email") + @javax.annotation.Nullable private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; @XmlElement(name = "password") + @javax.annotation.Nullable private String password; public static final String JSON_PROPERTY_PHONE = "phone"; @XmlElement(name = "phone") + @javax.annotation.Nullable private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; @XmlElement(name = "userStatus") + @javax.annotation.Nullable private Integer userStatus; public User() { } - public User id(Long id) { + public User id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -103,11 +111,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "id") - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@javax.annotation.Nullable String username) { this.username = username; return this; @@ -130,11 +138,11 @@ public String getUsername() { @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "username") - public void setUsername(String username) { + public void setUsername(@javax.annotation.Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; return this; @@ -157,11 +165,11 @@ public String getFirstName() { @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "firstName") - public void setFirstName(String firstName) { + public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; return this; @@ -184,11 +192,11 @@ public String getLastName() { @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "lastName") - public void setLastName(String lastName) { + public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@javax.annotation.Nullable String email) { this.email = email; return this; @@ -211,11 +219,11 @@ public String getEmail() { @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "email") - public void setEmail(String email) { + public void setEmail(@javax.annotation.Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@javax.annotation.Nullable String password) { this.password = password; return this; @@ -238,11 +246,11 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "password") - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@javax.annotation.Nullable String phone) { this.phone = phone; return this; @@ -265,11 +273,11 @@ public String getPhone() { @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "phone") - public void setPhone(String phone) { + public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; return this; @@ -292,7 +300,7 @@ public Integer getUserStatus() { @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "userStatus") - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index f3a4388c6a8b..267b34d5de7c 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -35,9 +35,11 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_PROPERTY = "map_property"; + @javax.annotation.Nullable private Map mapProperty; public static final String JSON_PROPERTY_MAP_OF_MAP_PROPERTY = "map_of_map_property"; + @javax.annotation.Nullable private Map> mapOfMapProperty; public AdditionalPropertiesClass() { @@ -51,7 +53,7 @@ public AdditionalPropertiesClass(@JsonProperty(JSON_PROPERTY_MAP_PROPERTY) Map mapProperty) { + public AdditionalPropertiesClass mapProperty(@javax.annotation.Nullable Map mapProperty) { this.mapProperty = mapProperty; return this; @@ -80,11 +82,11 @@ public Map getMapProperty() { @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapProperty(Map mapProperty) { + public void setMapProperty(@javax.annotation.Nullable Map mapProperty) { this.mapProperty = mapProperty; } - public AdditionalPropertiesClass mapOfMapProperty(Map> mapOfMapProperty) { + public AdditionalPropertiesClass mapOfMapProperty(@javax.annotation.Nullable Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; return this; @@ -113,7 +115,7 @@ public Map> getMapOfMapProperty() { @JsonProperty(JSON_PROPERTY_MAP_OF_MAP_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapOfMapProperty(Map> mapOfMapProperty) { + public void setMapOfMapProperty(@javax.annotation.Nullable Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java index 23a704abc27f..f38519436fdf 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java @@ -34,9 +34,11 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AllOfWithSingleRef { public static final String JSON_PROPERTY_USERNAME = "username"; + @javax.annotation.Nullable private String username; public static final String JSON_PROPERTY_SINGLE_REF_TYPE = "SingleRefType"; + @javax.annotation.Nullable private SingleRefType singleRefType; public AllOfWithSingleRef() { @@ -50,7 +52,7 @@ public AllOfWithSingleRef(@JsonProperty(JSON_PROPERTY_USERNAME) String username, this.singleRefType = singleRefType; } - public AllOfWithSingleRef username(String username) { + public AllOfWithSingleRef username(@javax.annotation.Nullable String username) { this.username = username; return this; @@ -71,11 +73,11 @@ public String getUsername() { @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsername(String username) { + public void setUsername(@javax.annotation.Nullable String username) { this.username = username; } - public AllOfWithSingleRef singleRefType(SingleRefType singleRefType) { + public AllOfWithSingleRef singleRefType(@javax.annotation.Nullable SingleRefType singleRefType) { this.singleRefType = singleRefType; return this; @@ -96,7 +98,7 @@ public SingleRefType getSingleRefType() { @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSingleRefType(SingleRefType singleRefType) { + public void setSingleRefType(@javax.annotation.Nullable SingleRefType singleRefType) { this.singleRefType = singleRefType; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Animal.java index e030783bd8d7..2d72a35abd0c 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Animal.java @@ -46,9 +46,11 @@ public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; + @javax.annotation.Nonnull protected String className; public static final String JSON_PROPERTY_COLOR = "color"; + @javax.annotation.Nullable protected String color = "red"; public Animal() { @@ -62,7 +64,7 @@ public Animal(@JsonProperty(JSON_PROPERTY_CLASS_NAME) String className, @JsonPro this.color = color; } - public Animal className(String className) { + public Animal className(@javax.annotation.Nonnull String className) { this.className = className; return this; @@ -83,11 +85,11 @@ public String getClassName() { @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setClassName(String className) { + public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; } - public Animal color(String color) { + public Animal color(@javax.annotation.Nullable String color) { this.color = color; return this; @@ -108,7 +110,7 @@ public String getColor() { @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setColor(String color) { + public void setColor(@javax.annotation.Nullable String color) { this.color = color; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index f52e4ca8a90c..8d48839b8721 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -36,6 +36,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayOfArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; + @javax.annotation.Nullable private List> arrayArrayNumber; public ArrayOfArrayOfNumberOnly() { @@ -48,7 +49,7 @@ public ArrayOfArrayOfNumberOnly(@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) this.arrayArrayNumber = arrayArrayNumber; } - public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + public ArrayOfArrayOfNumberOnly arrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; return this; @@ -77,7 +78,7 @@ public List> getArrayArrayNumber() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayNumber(List> arrayArrayNumber) { + public void setArrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 5ec0dd726867..c3d17cc0f621 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -36,6 +36,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; + @javax.annotation.Nullable private List arrayNumber; public ArrayOfNumberOnly() { @@ -48,7 +49,7 @@ public ArrayOfNumberOnly(@JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) List arrayNumber) { + public ArrayOfNumberOnly arrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; return this; @@ -77,7 +78,7 @@ public List getArrayNumber() { @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayNumber(List arrayNumber) { + public void setArrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ArrayTest.java index 789ec1dcf1a1..6d4e1c19beaf 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -38,12 +38,15 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; + @javax.annotation.Nullable private List arrayOfString; public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; + @javax.annotation.Nullable private List> arrayArrayOfInteger; public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; + @javax.annotation.Nullable private List> arrayArrayOfModel; public ArrayTest() { @@ -58,7 +61,7 @@ public ArrayTest(@JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) List array this.arrayArrayOfModel = arrayArrayOfModel; } - public ArrayTest arrayOfString(List arrayOfString) { + public ArrayTest arrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; return this; @@ -87,11 +90,11 @@ public List getArrayOfString() { @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayOfString(List arrayOfString) { + public void setArrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; } - public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + public ArrayTest arrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; return this; @@ -120,11 +123,11 @@ public List> getArrayArrayOfInteger() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { + public void setArrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } - public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + public ArrayTest arrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; return this; @@ -153,7 +156,7 @@ public List> getArrayArrayOfModel() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayOfModel(List> arrayArrayOfModel) { + public void setArrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Capitalization.java index 55300c3c0497..0201b703a6f9 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Capitalization.java @@ -37,21 +37,27 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Capitalization { public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; + @javax.annotation.Nullable private String smallCamel; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; + @javax.annotation.Nullable private String capitalCamel; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; + @javax.annotation.Nullable private String smallSnake; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; + @javax.annotation.Nullable private String capitalSnake; public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; + @javax.annotation.Nullable private String scAETHFlowPoints; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; + @javax.annotation.Nullable private String ATT_NAME; public Capitalization() { @@ -69,7 +75,7 @@ public Capitalization(@JsonProperty(JSON_PROPERTY_SMALL_CAMEL) String smallCamel this.ATT_NAME = ATT_NAME; } - public Capitalization smallCamel(String smallCamel) { + public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; return this; @@ -90,11 +96,11 @@ public String getSmallCamel() { @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmallCamel(String smallCamel) { + public void setSmallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; } - public Capitalization capitalCamel(String capitalCamel) { + public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; return this; @@ -115,11 +121,11 @@ public String getCapitalCamel() { @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCapitalCamel(String capitalCamel) { + public void setCapitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; } - public Capitalization smallSnake(String smallSnake) { + public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; return this; @@ -140,11 +146,11 @@ public String getSmallSnake() { @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmallSnake(String smallSnake) { + public void setSmallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; } - public Capitalization capitalSnake(String capitalSnake) { + public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; return this; @@ -165,11 +171,11 @@ public String getCapitalSnake() { @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCapitalSnake(String capitalSnake) { + public void setCapitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; } - public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; return this; @@ -190,11 +196,11 @@ public String getScAETHFlowPoints() { @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setScAETHFlowPoints(String scAETHFlowPoints) { + public void setScAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } - public Capitalization ATT_NAME(String ATT_NAME) { + public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; return this; @@ -215,7 +221,7 @@ public String getATTNAME() { @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setATTNAME(String ATT_NAME) { + public void setATTNAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Cat.java index 4412e6434200..b430456d600b 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Cat.java @@ -42,6 +42,7 @@ public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; + @javax.annotation.Nullable private Boolean declawed; public Cat() { @@ -56,7 +57,7 @@ public Cat(@JsonProperty(JSON_PROPERTY_DECLAWED) Boolean declawed, @JsonProperty this.declawed = declawed; } - public Cat declawed(Boolean declawed) { + public Cat declawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; return this; @@ -77,18 +78,18 @@ public Boolean getDeclawed() { @JsonProperty(JSON_PROPERTY_DECLAWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; } @Override - public Cat className(String className) { + public Cat className(@javax.annotation.Nonnull String className) { this.setClassName(className); return this; } @Override - public Cat color(String color) { + public Cat color(@javax.annotation.Nullable String color) { this.setColor(color); return this; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Category.java index 67bc4519b5d9..c7a70132e91e 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Category.java @@ -33,9 +33,11 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Category { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private String name = "default-name"; public Category() { @@ -49,7 +51,7 @@ public Category(@JsonProperty(JSON_PROPERTY_ID) Long id, @JsonProperty(JSON_PROP this.name = name; } - public Category id(Long id) { + public Category id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -70,11 +72,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@javax.annotation.Nonnull String name) { this.name = name; return this; @@ -95,7 +97,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ChildWithNullable.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ChildWithNullable.java index 30a5fa82b310..9a1d127649b3 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ChildWithNullable.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ChildWithNullable.java @@ -43,6 +43,7 @@ public class ChildWithNullable extends ParentWithNullable { public static final String JSON_PROPERTY_OTHER_PROPERTY = "otherProperty"; + @javax.annotation.Nullable private String otherProperty; public ChildWithNullable() { @@ -57,7 +58,7 @@ public ChildWithNullable(@JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) String othe this.otherProperty = otherProperty; } - public ChildWithNullable otherProperty(String otherProperty) { + public ChildWithNullable otherProperty(@javax.annotation.Nullable String otherProperty) { this.otherProperty = otherProperty; return this; @@ -78,18 +79,18 @@ public String getOtherProperty() { @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOtherProperty(String otherProperty) { + public void setOtherProperty(@javax.annotation.Nullable String otherProperty) { this.otherProperty = otherProperty; } @Override - public ChildWithNullable type(TypeEnum type) { + public ChildWithNullable type(@javax.annotation.Nullable TypeEnum type) { this.setType(type); return this; } @Override - public ChildWithNullable nullableProperty(String nullableProperty) { + public ChildWithNullable nullableProperty(@javax.annotation.Nullable String nullableProperty) { this.setNullableProperty(nullableProperty); return this; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ClassModel.java index 852b3bec213d..e89734776579 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ClassModel.java @@ -32,6 +32,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ClassModel { public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; + @javax.annotation.Nullable private String propertyClass; public ClassModel() { @@ -44,7 +45,7 @@ public ClassModel(@JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) String propertyCla this.propertyClass = propertyClass; } - public ClassModel propertyClass(String propertyClass) { + public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; @@ -65,7 +66,7 @@ public String getPropertyClass() { @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Client.java index 31bb29947325..d29d82035958 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Client.java @@ -32,6 +32,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Client { public static final String JSON_PROPERTY_CLIENT = "client"; + @javax.annotation.Nullable private String client; public Client() { @@ -44,7 +45,7 @@ public Client(@JsonProperty(JSON_PROPERTY_CLIENT) String client) { this.client = client; } - public Client client(String client) { + public Client client(@javax.annotation.Nullable String client) { this.client = client; return this; @@ -65,7 +66,7 @@ public String getClient() { @JsonProperty(JSON_PROPERTY_CLIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setClient(String client) { + public void setClient(@javax.annotation.Nullable String client) { this.client = client; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/DeprecatedObject.java index 048143c4e39a..83cb68f8d532 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -34,6 +34,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class DeprecatedObject { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public DeprecatedObject() { @@ -46,7 +47,7 @@ public DeprecatedObject(@JsonProperty(JSON_PROPERTY_NAME) String name) { this.name = name; } - public DeprecatedObject name(String name) { + public DeprecatedObject name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -67,7 +68,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Dog.java index 7e4cb7a57167..5c0ffb8e721f 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Dog.java @@ -42,6 +42,7 @@ public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; + @javax.annotation.Nullable private String breed; public Dog() { @@ -56,7 +57,7 @@ public Dog(@JsonProperty(JSON_PROPERTY_BREED) String breed, @JsonProperty(JSON_P this.breed = breed; } - public Dog breed(String breed) { + public Dog breed(@javax.annotation.Nullable String breed) { this.breed = breed; return this; @@ -77,18 +78,18 @@ public String getBreed() { @JsonProperty(JSON_PROPERTY_BREED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBreed(String breed) { + public void setBreed(@javax.annotation.Nullable String breed) { this.breed = breed; } @Override - public Dog className(String className) { + public Dog className(@javax.annotation.Nonnull String className) { this.setClassName(className); return this; } @Override - public Dog color(String color) { + public Dog color(@javax.annotation.Nullable String color) { this.setColor(color); return this; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/EnumArrays.java index a7de4d14f760..25d7bdeae6ce 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -71,6 +71,7 @@ public static JustSymbolEnum fromValue(String value) { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** @@ -109,6 +110,7 @@ public static ArrayEnumEnum fromValue(String value) { } public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; + @javax.annotation.Nullable private List arrayEnum; public EnumArrays() { @@ -122,7 +124,7 @@ public EnumArrays(@JsonProperty(JSON_PROPERTY_JUST_SYMBOL) JustSymbolEnum justSy this.arrayEnum = arrayEnum; } - public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; @@ -143,11 +145,11 @@ public JustSymbolEnum getJustSymbol() { @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJustSymbol(JustSymbolEnum justSymbol) { + public void setJustSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } - public EnumArrays arrayEnum(List arrayEnum) { + public EnumArrays arrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; return this; @@ -176,7 +178,7 @@ public List getArrayEnum() { @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayEnum(List arrayEnum) { + public void setArrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/EnumTest.java index 836b9fc93fbb..4bbc207cf025 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/EnumTest.java @@ -85,6 +85,7 @@ public static EnumStringEnum fromValue(String value) { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; + @javax.annotation.Nullable private EnumStringEnum enumString; /** @@ -125,6 +126,7 @@ public static EnumStringRequiredEnum fromValue(String value) { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** @@ -163,6 +165,7 @@ public static EnumIntegerEnum fromValue(Integer value) { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** @@ -201,18 +204,23 @@ public static EnumNumberEnum fromValue(Double value) { } public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; + @javax.annotation.Nullable private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; + @javax.annotation.Nullable private JsonNullable outerEnum = JsonNullable.undefined(); public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER = "outerEnumInteger"; + @javax.annotation.Nullable private OuterEnumInteger outerEnumInteger; public static final String JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE = "outerEnumDefaultValue"; + @javax.annotation.Nullable private OuterEnumDefaultValue outerEnumDefaultValue = OuterEnumDefaultValue.PLACED; public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE = "outerEnumIntegerDefaultValue"; + @javax.annotation.Nullable private OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = OuterEnumIntegerDefaultValue.NUMBER_0; public EnumTest() { @@ -232,7 +240,7 @@ public EnumTest(@JsonProperty(JSON_PROPERTY_ENUM_STRING) EnumStringEnum enumStri this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; @@ -253,11 +261,11 @@ public EnumStringEnum getEnumString() { @JsonProperty(JSON_PROPERTY_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumString(EnumStringEnum enumString) { + public void setEnumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; } - public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; return this; @@ -278,11 +286,11 @@ public EnumStringRequiredEnum getEnumStringRequired() { @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public void setEnumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; @@ -303,11 +311,11 @@ public EnumIntegerEnum getEnumInteger() { @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumInteger(EnumIntegerEnum enumInteger) { + public void setEnumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } - public EnumTest enumNumber(EnumNumberEnum enumNumber) { + public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; return this; @@ -328,11 +336,11 @@ public EnumNumberEnum getEnumNumber() { @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumNumber(EnumNumberEnum enumNumber) { + public void setEnumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } - public EnumTest outerEnum(OuterEnum outerEnum) { + public EnumTest outerEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = JsonNullable.of(outerEnum); return this; @@ -361,11 +369,11 @@ public void setOuterEnum_JsonNullable(JsonNullable outerEnum) { this.outerEnum = outerEnum; } - public void setOuterEnum(OuterEnum outerEnum) { + public void setOuterEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = JsonNullable.of(outerEnum); } - public EnumTest outerEnumInteger(OuterEnumInteger outerEnumInteger) { + public EnumTest outerEnumInteger(@javax.annotation.Nullable OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; return this; @@ -386,11 +394,11 @@ public OuterEnumInteger getOuterEnumInteger() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnumInteger(OuterEnumInteger outerEnumInteger) { + public void setOuterEnumInteger(@javax.annotation.Nullable OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; } - public EnumTest outerEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) { + public EnumTest outerEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; return this; @@ -411,11 +419,11 @@ public OuterEnumDefaultValue getOuterEnumDefaultValue() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) { + public void setOuterEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; } - public EnumTest outerEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { + public EnumTest outerEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; return this; @@ -436,7 +444,7 @@ public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { + public void setOuterEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java index 274f80cec557..32e43610fd86 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java @@ -37,9 +37,11 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FakeBigDecimalMap200Response { public static final String JSON_PROPERTY_SOME_ID = "someId"; + @javax.annotation.Nullable private BigDecimal someId; public static final String JSON_PROPERTY_SOME_MAP = "someMap"; + @javax.annotation.Nullable private Map someMap; public FakeBigDecimalMap200Response() { @@ -53,7 +55,7 @@ public FakeBigDecimalMap200Response(@JsonProperty(JSON_PROPERTY_SOME_ID) BigDeci this.someMap = someMap; } - public FakeBigDecimalMap200Response someId(BigDecimal someId) { + public FakeBigDecimalMap200Response someId(@javax.annotation.Nullable BigDecimal someId) { this.someId = someId; return this; @@ -74,11 +76,11 @@ public BigDecimal getSomeId() { @JsonProperty(JSON_PROPERTY_SOME_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSomeId(BigDecimal someId) { + public void setSomeId(@javax.annotation.Nullable BigDecimal someId) { this.someId = someId; } - public FakeBigDecimalMap200Response someMap(Map someMap) { + public FakeBigDecimalMap200Response someMap(@javax.annotation.Nullable Map someMap) { this.someMap = someMap; return this; @@ -107,7 +109,7 @@ public Map getSomeMap() { @JsonProperty(JSON_PROPERTY_SOME_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSomeMap(Map someMap) { + public void setSomeMap(@javax.annotation.Nullable Map someMap) { this.someMap = someMap; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index be1a5b21a258..87c04a6ea50e 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -37,9 +37,11 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; + @javax.annotation.Nullable private ModelFile _file; public static final String JSON_PROPERTY_FILES = "files"; + @javax.annotation.Nullable private List files; public FileSchemaTestClass() { @@ -53,7 +55,7 @@ public FileSchemaTestClass(@JsonProperty(JSON_PROPERTY_FILE) ModelFile _file, @J this.files = files; } - public FileSchemaTestClass _file(ModelFile _file) { + public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { this._file = _file; return this; @@ -74,11 +76,11 @@ public ModelFile getFile() { @JsonProperty(JSON_PROPERTY_FILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFile(ModelFile _file) { + public void setFile(@javax.annotation.Nullable ModelFile _file) { this._file = _file; } - public FileSchemaTestClass files(List files) { + public FileSchemaTestClass files(@javax.annotation.Nullable List files) { this.files = files; return this; @@ -107,7 +109,7 @@ public List getFiles() { @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFiles(List files) { + public void setFiles(@javax.annotation.Nullable List files) { this.files = files; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Foo.java index 3db56b8118ba..067e51c638ea 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Foo.java @@ -32,6 +32,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Foo { public static final String JSON_PROPERTY_BAR = "bar"; + @javax.annotation.Nullable private String bar = "bar"; public Foo() { @@ -44,7 +45,7 @@ public Foo(@JsonProperty(JSON_PROPERTY_BAR) String bar) { this.bar = bar; } - public Foo bar(String bar) { + public Foo bar(@javax.annotation.Nullable String bar) { this.bar = bar; return this; @@ -65,7 +66,7 @@ public String getBar() { @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBar(String bar) { + public void setBar(@javax.annotation.Nullable String bar) { this.bar = bar; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index 96fabe1e7326..9d0afba5e836 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -34,6 +34,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FooGetDefaultResponse { public static final String JSON_PROPERTY_STRING = "string"; + @javax.annotation.Nullable private Foo string; public FooGetDefaultResponse() { @@ -46,7 +47,7 @@ public FooGetDefaultResponse(@JsonProperty(JSON_PROPERTY_STRING) Foo string) { this.string = string; } - public FooGetDefaultResponse string(Foo string) { + public FooGetDefaultResponse string(@javax.annotation.Nullable Foo string) { this.string = string; return this; @@ -67,7 +68,7 @@ public Foo getString() { @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setString(Foo string) { + public void setString(@javax.annotation.Nullable Foo string) { this.string = string; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FormatTest.java index ac3525596cef..3872879a70f2 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FormatTest.java @@ -53,51 +53,67 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; + @javax.annotation.Nullable private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; + @javax.annotation.Nullable private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; + @javax.annotation.Nullable private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; + @javax.annotation.Nonnull private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; + @javax.annotation.Nullable private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; + @javax.annotation.Nullable private Double _double; public static final String JSON_PROPERTY_DECIMAL = "decimal"; + @javax.annotation.Nullable private BigDecimal decimal; public static final String JSON_PROPERTY_STRING = "string"; + @javax.annotation.Nullable private String string; public static final String JSON_PROPERTY_BYTE = "byte"; + @javax.annotation.Nonnull private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; + @javax.annotation.Nullable private File binary; public static final String JSON_PROPERTY_DATE = "date"; + @javax.annotation.Nonnull private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; + @javax.annotation.Nonnull private String password; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS = "pattern_with_digits"; + @javax.annotation.Nullable private String patternWithDigits; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER = "pattern_with_digits_and_delimiter"; + @javax.annotation.Nullable private String patternWithDigitsAndDelimiter; public FormatTest() { @@ -125,7 +141,7 @@ public FormatTest(@JsonProperty(JSON_PROPERTY_INTEGER) Integer integer, @JsonPro this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; } - public FormatTest integer(Integer integer) { + public FormatTest integer(@javax.annotation.Nullable Integer integer) { this.integer = integer; return this; @@ -148,11 +164,11 @@ public Integer getInteger() { @JsonProperty(JSON_PROPERTY_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInteger(Integer integer) { + public void setInteger(@javax.annotation.Nullable Integer integer) { this.integer = integer; } - public FormatTest int32(Integer int32) { + public FormatTest int32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; return this; @@ -175,11 +191,11 @@ public Integer getInt32() { @JsonProperty(JSON_PROPERTY_INT32) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInt32(Integer int32) { + public void setInt32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; } - public FormatTest int64(Long int64) { + public FormatTest int64(@javax.annotation.Nullable Long int64) { this.int64 = int64; return this; @@ -200,11 +216,11 @@ public Long getInt64() { @JsonProperty(JSON_PROPERTY_INT64) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInt64(Long int64) { + public void setInt64(@javax.annotation.Nullable Long int64) { this.int64 = int64; } - public FormatTest number(BigDecimal number) { + public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { this.number = number; return this; @@ -227,11 +243,11 @@ public BigDecimal getNumber() { @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNumber(BigDecimal number) { + public void setNumber(@javax.annotation.Nonnull BigDecimal number) { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@javax.annotation.Nullable Float _float) { this._float = _float; return this; @@ -254,11 +270,11 @@ public Float getFloat() { @JsonProperty(JSON_PROPERTY_FLOAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFloat(Float _float) { + public void setFloat(@javax.annotation.Nullable Float _float) { this._float = _float; } - public FormatTest _double(Double _double) { + public FormatTest _double(@javax.annotation.Nullable Double _double) { this._double = _double; return this; @@ -281,11 +297,11 @@ public Double getDouble() { @JsonProperty(JSON_PROPERTY_DOUBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDouble(Double _double) { + public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; } - public FormatTest decimal(BigDecimal decimal) { + public FormatTest decimal(@javax.annotation.Nullable BigDecimal decimal) { this.decimal = decimal; return this; @@ -306,11 +322,11 @@ public BigDecimal getDecimal() { @JsonProperty(JSON_PROPERTY_DECIMAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDecimal(BigDecimal decimal) { + public void setDecimal(@javax.annotation.Nullable BigDecimal decimal) { this.decimal = decimal; } - public FormatTest string(String string) { + public FormatTest string(@javax.annotation.Nullable String string) { this.string = string; return this; @@ -331,11 +347,11 @@ public String getString() { @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setString(String string) { + public void setString(@javax.annotation.Nullable String string) { this.string = string; } - public FormatTest _byte(byte[] _byte) { + public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; return this; @@ -356,11 +372,11 @@ public byte[] getByte() { @JsonProperty(JSON_PROPERTY_BYTE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setByte(byte[] _byte) { + public void setByte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; } - public FormatTest binary(File binary) { + public FormatTest binary(@javax.annotation.Nullable File binary) { this.binary = binary; return this; @@ -381,11 +397,11 @@ public File getBinary() { @JsonProperty(JSON_PROPERTY_BINARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBinary(File binary) { + public void setBinary(@javax.annotation.Nullable File binary) { this.binary = binary; } - public FormatTest date(LocalDate date) { + public FormatTest date(@javax.annotation.Nonnull LocalDate date) { this.date = date; return this; @@ -406,11 +422,11 @@ public LocalDate getDate() { @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDate(LocalDate date) { + public void setDate(@javax.annotation.Nonnull LocalDate date) { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; @@ -431,11 +447,11 @@ public OffsetDateTime getDateTime() { @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public FormatTest uuid(UUID uuid) { + public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; @@ -456,11 +472,11 @@ public UUID getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(UUID uuid) { + public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public FormatTest password(String password) { + public FormatTest password(@javax.annotation.Nonnull String password) { this.password = password; return this; @@ -481,11 +497,11 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nonnull String password) { this.password = password; } - public FormatTest patternWithDigits(String patternWithDigits) { + public FormatTest patternWithDigits(@javax.annotation.Nullable String patternWithDigits) { this.patternWithDigits = patternWithDigits; return this; @@ -506,11 +522,11 @@ public String getPatternWithDigits() { @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPatternWithDigits(String patternWithDigits) { + public void setPatternWithDigits(@javax.annotation.Nullable String patternWithDigits) { this.patternWithDigits = patternWithDigits; } - public FormatTest patternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) { + public FormatTest patternWithDigitsAndDelimiter(@javax.annotation.Nullable String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; return this; @@ -531,7 +547,7 @@ public String getPatternWithDigitsAndDelimiter() { @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPatternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) { + public void setPatternWithDigitsAndDelimiter(@javax.annotation.Nullable String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 1ed4aa16f409..160b96d0b80e 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -34,9 +34,11 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_FOO = "foo"; + @javax.annotation.Nullable private String foo; public HasOnlyReadOnly() { diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/HealthCheckResult.java index b867142bdb01..d2d2117027fc 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -36,6 +36,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class HealthCheckResult { public static final String JSON_PROPERTY_NULLABLE_MESSAGE = "NullableMessage"; + @javax.annotation.Nullable private JsonNullable nullableMessage = JsonNullable.undefined(); public HealthCheckResult() { @@ -48,7 +49,7 @@ public HealthCheckResult(@JsonProperty(JSON_PROPERTY_NULLABLE_MESSAGE) String nu this.nullableMessage = nullableMessage == null ? JsonNullable.undefined() : JsonNullable.of(nullableMessage); } - public HealthCheckResult nullableMessage(String nullableMessage) { + public HealthCheckResult nullableMessage(@javax.annotation.Nullable String nullableMessage) { this.nullableMessage = JsonNullable.of(nullableMessage); return this; @@ -77,7 +78,7 @@ public void setNullableMessage_JsonNullable(JsonNullable nullableMessage this.nullableMessage = nullableMessage; } - public void setNullableMessage(String nullableMessage) { + public void setNullableMessage(@javax.annotation.Nullable String nullableMessage) { this.nullableMessage = JsonNullable.of(nullableMessage); } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/MapTest.java index 5e47cf69f7fb..2127802426fc 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/MapTest.java @@ -37,6 +37,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; + @javax.annotation.Nullable private Map> mapMapOfString; /** @@ -75,12 +76,15 @@ public static InnerEnum fromValue(String value) { } public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; + @javax.annotation.Nullable private Map mapOfEnumString; public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; + @javax.annotation.Nullable private Map directMap; public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; + @javax.annotation.Nullable private Map indirectMap; public MapTest() { @@ -96,7 +100,7 @@ public MapTest(@JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) Map> mapMapOfString) { + public MapTest mapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; return this; @@ -125,11 +129,11 @@ public Map> getMapMapOfString() { @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapMapOfString(Map> mapMapOfString) { + public void setMapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } - public MapTest mapOfEnumString(Map mapOfEnumString) { + public MapTest mapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; return this; @@ -158,11 +162,11 @@ public Map getMapOfEnumString() { @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapOfEnumString(Map mapOfEnumString) { + public void setMapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } - public MapTest directMap(Map directMap) { + public MapTest directMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; return this; @@ -191,11 +195,11 @@ public Map getDirectMap() { @JsonProperty(JSON_PROPERTY_DIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDirectMap(Map directMap) { + public void setDirectMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; } - public MapTest indirectMap(Map indirectMap) { + public MapTest indirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; return this; @@ -224,7 +228,7 @@ public Map getIndirectMap() { @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIndirectMap(Map indirectMap) { + public void setIndirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index a0e567150837..3964ef17a44f 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -39,12 +39,15 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; + @javax.annotation.Nullable private Map map; public MixedPropertiesAndAdditionalPropertiesClass() { @@ -59,7 +62,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(@JsonProperty(JSON_PROPERTY_U this.map = map; } - public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; @@ -80,11 +83,11 @@ public UUID getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(UUID uuid) { + public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; @@ -105,11 +108,11 @@ public OffsetDateTime getDateTime() { @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + public MixedPropertiesAndAdditionalPropertiesClass map(@javax.annotation.Nullable Map map) { this.map = map; return this; @@ -138,7 +141,7 @@ public Map getMap() { @JsonProperty(JSON_PROPERTY_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMap(Map map) { + public void setMap(@javax.annotation.Nullable Map map) { this.map = map; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Model200Response.java index 36ecf05f2258..8565a334f9b0 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Model200Response.java @@ -34,9 +34,11 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; + @javax.annotation.Nullable private String propertyClass; public Model200Response() { @@ -50,7 +52,7 @@ public Model200Response(@JsonProperty(JSON_PROPERTY_NAME) Integer name, @JsonPro this.propertyClass = propertyClass; } - public Model200Response name(Integer name) { + public Model200Response name(@javax.annotation.Nullable Integer name) { this.name = name; return this; @@ -71,11 +73,11 @@ public Integer getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(Integer name) { + public void setName(@javax.annotation.Nullable Integer name) { this.name = name; } - public Model200Response propertyClass(String propertyClass) { + public Model200Response propertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; @@ -96,7 +98,7 @@ public String getPropertyClass() { @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 3544720b02c8..d730532d7ebb 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -35,12 +35,15 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nullable private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nullable private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; + @javax.annotation.Nullable private String message; public ModelApiResponse() { @@ -55,7 +58,7 @@ public ModelApiResponse(@JsonProperty(JSON_PROPERTY_CODE) Integer code, @JsonPro this.message = message; } - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@javax.annotation.Nullable Integer code) { this.code = code; return this; @@ -76,11 +79,11 @@ public Integer getCode() { @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCode(Integer code) { + public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@javax.annotation.Nullable String type) { this.type = type; return this; @@ -101,11 +104,11 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { + public void setType(@javax.annotation.Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@javax.annotation.Nullable String message) { this.message = message; return this; @@ -126,7 +129,7 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelFile.java index 4071b1c7c1c5..346d12b05bf5 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelFile.java @@ -33,6 +33,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelFile { public static final String JSON_PROPERTY_SOURCE_U_R_I = "sourceURI"; + @javax.annotation.Nullable private String sourceURI; public ModelFile() { @@ -45,7 +46,7 @@ public ModelFile(@JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) String sourceURI) { this.sourceURI = sourceURI; } - public ModelFile sourceURI(String sourceURI) { + public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; return this; @@ -66,7 +67,7 @@ public String getSourceURI() { @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSourceURI(String sourceURI) { + public void setSourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelList.java index cca68831913b..ac97fde6c7d8 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelList.java @@ -33,6 +33,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelList { public static final String JSON_PROPERTY_123LIST = "123-list"; + @javax.annotation.Nullable private String _123list; public ModelList() { @@ -45,7 +46,7 @@ public ModelList(@JsonProperty(JSON_PROPERTY_123LIST) String _123list) { this._123list = _123list; } - public ModelList _123list(String _123list) { + public ModelList _123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; return this; @@ -66,7 +67,7 @@ public String get123list() { @JsonProperty(JSON_PROPERTY_123LIST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void set123list(String _123list) { + public void set123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelReturn.java index 65a080bb4efa..b853d1fb25f1 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -33,6 +33,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; + @javax.annotation.Nullable private Integer _return; public ModelReturn() { @@ -45,7 +46,7 @@ public ModelReturn(@JsonProperty(JSON_PROPERTY_RETURN) Integer _return) { this._return = _return; } - public ModelReturn _return(Integer _return) { + public ModelReturn _return(@javax.annotation.Nullable Integer _return) { this._return = _return; return this; @@ -66,7 +67,7 @@ public Integer getReturn() { @JsonProperty(JSON_PROPERTY_RETURN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setReturn(Integer _return) { + public void setReturn(@javax.annotation.Nullable Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Name.java index 09a69b043ffd..3b068a73e8eb 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Name.java @@ -35,15 +35,19 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Name { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; + @javax.annotation.Nullable private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; + @javax.annotation.Nullable private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; + @javax.annotation.Nullable private Integer _123number; public Name() { @@ -71,7 +75,7 @@ public Name(@JsonProperty(JSON_PROPERTY_NAME) Integer name, @JsonProperty(JSON_P this._123number = _123number; } - public Name name(Integer name) { + public Name name(@javax.annotation.Nonnull Integer name) { this.name = name; return this; @@ -92,7 +96,7 @@ public Integer getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(Integer name) { + public void setName(@javax.annotation.Nonnull Integer name) { this.name = name; } @@ -110,7 +114,7 @@ public Integer getSnakeCase() { - public Name property(String property) { + public Name property(@javax.annotation.Nullable String property) { this.property = property; return this; @@ -131,7 +135,7 @@ public String getProperty() { @JsonProperty(JSON_PROPERTY_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProperty(String property) { + public void setProperty(@javax.annotation.Nullable String property) { this.property = property; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/NullableClass.java index 199f81bf0722..0d2ef82a5c39 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/NullableClass.java @@ -55,39 +55,51 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class NullableClass extends HashMap { public static final String JSON_PROPERTY_INTEGER_PROP = "integer_prop"; + @javax.annotation.Nullable private JsonNullable integerProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_NUMBER_PROP = "number_prop"; + @javax.annotation.Nullable private JsonNullable numberProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_BOOLEAN_PROP = "boolean_prop"; + @javax.annotation.Nullable private JsonNullable booleanProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_STRING_PROP = "string_prop"; + @javax.annotation.Nullable private JsonNullable stringProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_DATE_PROP = "date_prop"; + @javax.annotation.Nullable private JsonNullable dateProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_DATETIME_PROP = "datetime_prop"; + @javax.annotation.Nullable private JsonNullable datetimeProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_ARRAY_NULLABLE_PROP = "array_nullable_prop"; + @javax.annotation.Nullable private JsonNullable> arrayNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP = "array_and_items_nullable_prop"; + @javax.annotation.Nullable private JsonNullable> arrayAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_ITEMS_NULLABLE = "array_items_nullable"; + @javax.annotation.Nullable private List arrayItemsNullable; public static final String JSON_PROPERTY_OBJECT_NULLABLE_PROP = "object_nullable_prop"; + @javax.annotation.Nullable private JsonNullable> objectNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP = "object_and_items_nullable_prop"; + @javax.annotation.Nullable private JsonNullable> objectAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_OBJECT_ITEMS_NULLABLE = "object_items_nullable"; + @javax.annotation.Nullable private Map objectItemsNullable; public NullableClass() { @@ -113,7 +125,7 @@ public NullableClass(@JsonProperty(JSON_PROPERTY_INTEGER_PROP) Integer integerPr this.objectItemsNullable = objectItemsNullable; } - public NullableClass integerProp(Integer integerProp) { + public NullableClass integerProp(@javax.annotation.Nullable Integer integerProp) { this.integerProp = JsonNullable.of(integerProp); return this; @@ -142,11 +154,11 @@ public void setIntegerProp_JsonNullable(JsonNullable integerProp) { this.integerProp = integerProp; } - public void setIntegerProp(Integer integerProp) { + public void setIntegerProp(@javax.annotation.Nullable Integer integerProp) { this.integerProp = JsonNullable.of(integerProp); } - public NullableClass numberProp(BigDecimal numberProp) { + public NullableClass numberProp(@javax.annotation.Nullable BigDecimal numberProp) { this.numberProp = JsonNullable.of(numberProp); return this; @@ -175,11 +187,11 @@ public void setNumberProp_JsonNullable(JsonNullable numberProp) { this.numberProp = numberProp; } - public void setNumberProp(BigDecimal numberProp) { + public void setNumberProp(@javax.annotation.Nullable BigDecimal numberProp) { this.numberProp = JsonNullable.of(numberProp); } - public NullableClass booleanProp(Boolean booleanProp) { + public NullableClass booleanProp(@javax.annotation.Nullable Boolean booleanProp) { this.booleanProp = JsonNullable.of(booleanProp); return this; @@ -208,11 +220,11 @@ public void setBooleanProp_JsonNullable(JsonNullable booleanProp) { this.booleanProp = booleanProp; } - public void setBooleanProp(Boolean booleanProp) { + public void setBooleanProp(@javax.annotation.Nullable Boolean booleanProp) { this.booleanProp = JsonNullable.of(booleanProp); } - public NullableClass stringProp(String stringProp) { + public NullableClass stringProp(@javax.annotation.Nullable String stringProp) { this.stringProp = JsonNullable.of(stringProp); return this; @@ -241,11 +253,11 @@ public void setStringProp_JsonNullable(JsonNullable stringProp) { this.stringProp = stringProp; } - public void setStringProp(String stringProp) { + public void setStringProp(@javax.annotation.Nullable String stringProp) { this.stringProp = JsonNullable.of(stringProp); } - public NullableClass dateProp(LocalDate dateProp) { + public NullableClass dateProp(@javax.annotation.Nullable LocalDate dateProp) { this.dateProp = JsonNullable.of(dateProp); return this; @@ -274,11 +286,11 @@ public void setDateProp_JsonNullable(JsonNullable dateProp) { this.dateProp = dateProp; } - public void setDateProp(LocalDate dateProp) { + public void setDateProp(@javax.annotation.Nullable LocalDate dateProp) { this.dateProp = JsonNullable.of(dateProp); } - public NullableClass datetimeProp(OffsetDateTime datetimeProp) { + public NullableClass datetimeProp(@javax.annotation.Nullable OffsetDateTime datetimeProp) { this.datetimeProp = JsonNullable.of(datetimeProp); return this; @@ -307,11 +319,11 @@ public void setDatetimeProp_JsonNullable(JsonNullable datetimePr this.datetimeProp = datetimeProp; } - public void setDatetimeProp(OffsetDateTime datetimeProp) { + public void setDatetimeProp(@javax.annotation.Nullable OffsetDateTime datetimeProp) { this.datetimeProp = JsonNullable.of(datetimeProp); } - public NullableClass arrayNullableProp(List arrayNullableProp) { + public NullableClass arrayNullableProp(@javax.annotation.Nullable List arrayNullableProp) { this.arrayNullableProp = JsonNullable.>of(arrayNullableProp); return this; @@ -352,11 +364,11 @@ public void setArrayNullableProp_JsonNullable(JsonNullable> arrayNu this.arrayNullableProp = arrayNullableProp; } - public void setArrayNullableProp(List arrayNullableProp) { + public void setArrayNullableProp(@javax.annotation.Nullable List arrayNullableProp) { this.arrayNullableProp = JsonNullable.>of(arrayNullableProp); } - public NullableClass arrayAndItemsNullableProp(List arrayAndItemsNullableProp) { + public NullableClass arrayAndItemsNullableProp(@javax.annotation.Nullable List arrayAndItemsNullableProp) { this.arrayAndItemsNullableProp = JsonNullable.>of(arrayAndItemsNullableProp); return this; @@ -397,11 +409,11 @@ public void setArrayAndItemsNullableProp_JsonNullable(JsonNullable> this.arrayAndItemsNullableProp = arrayAndItemsNullableProp; } - public void setArrayAndItemsNullableProp(List arrayAndItemsNullableProp) { + public void setArrayAndItemsNullableProp(@javax.annotation.Nullable List arrayAndItemsNullableProp) { this.arrayAndItemsNullableProp = JsonNullable.>of(arrayAndItemsNullableProp); } - public NullableClass arrayItemsNullable(List arrayItemsNullable) { + public NullableClass arrayItemsNullable(@javax.annotation.Nullable List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; return this; @@ -430,11 +442,11 @@ public List getArrayItemsNullable() { @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayItemsNullable(List arrayItemsNullable) { + public void setArrayItemsNullable(@javax.annotation.Nullable List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; } - public NullableClass objectNullableProp(Map objectNullableProp) { + public NullableClass objectNullableProp(@javax.annotation.Nullable Map objectNullableProp) { this.objectNullableProp = JsonNullable.>of(objectNullableProp); return this; @@ -475,11 +487,11 @@ public void setObjectNullableProp_JsonNullable(JsonNullable> this.objectNullableProp = objectNullableProp; } - public void setObjectNullableProp(Map objectNullableProp) { + public void setObjectNullableProp(@javax.annotation.Nullable Map objectNullableProp) { this.objectNullableProp = JsonNullable.>of(objectNullableProp); } - public NullableClass objectAndItemsNullableProp(Map objectAndItemsNullableProp) { + public NullableClass objectAndItemsNullableProp(@javax.annotation.Nullable Map objectAndItemsNullableProp) { this.objectAndItemsNullableProp = JsonNullable.>of(objectAndItemsNullableProp); return this; @@ -520,11 +532,11 @@ public void setObjectAndItemsNullableProp_JsonNullable(JsonNullable objectAndItemsNullableProp) { + public void setObjectAndItemsNullableProp(@javax.annotation.Nullable Map objectAndItemsNullableProp) { this.objectAndItemsNullableProp = JsonNullable.>of(objectAndItemsNullableProp); } - public NullableClass objectItemsNullable(Map objectItemsNullable) { + public NullableClass objectItemsNullable(@javax.annotation.Nullable Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; return this; @@ -553,7 +565,7 @@ public Map getObjectItemsNullable() { @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setObjectItemsNullable(Map objectItemsNullable) { + public void setObjectItemsNullable(@javax.annotation.Nullable Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/NumberOnly.java index c3cb81063fcc..b0b87c3330d7 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -33,6 +33,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; + @javax.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { @@ -45,7 +46,7 @@ public NumberOnly(@JsonProperty(JSON_PROPERTY_JUST_NUMBER) BigDecimal justNumber this.justNumber = justNumber; } - public NumberOnly justNumber(BigDecimal justNumber) { + public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; @@ -66,7 +67,7 @@ public BigDecimal getJustNumber() { @JsonProperty(JSON_PROPERTY_JUST_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJustNumber(BigDecimal justNumber) { + public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index 6b6413bdb7eb..73a2d8794de2 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -40,15 +40,19 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ObjectWithDeprecatedFields { public static final String JSON_PROPERTY_UUID = "uuid"; + @javax.annotation.Nullable private String uuid; public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private BigDecimal id; public static final String JSON_PROPERTY_DEPRECATED_REF = "deprecatedRef"; + @javax.annotation.Nullable private DeprecatedObject deprecatedRef; public static final String JSON_PROPERTY_BARS = "bars"; + @javax.annotation.Nullable private List bars; public ObjectWithDeprecatedFields() { @@ -64,7 +68,7 @@ public ObjectWithDeprecatedFields(@JsonProperty(JSON_PROPERTY_UUID) String uuid, this.bars = bars; } - public ObjectWithDeprecatedFields uuid(String uuid) { + public ObjectWithDeprecatedFields uuid(@javax.annotation.Nullable String uuid) { this.uuid = uuid; return this; @@ -85,11 +89,11 @@ public String getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(String uuid) { + public void setUuid(@javax.annotation.Nullable String uuid) { this.uuid = uuid; } - public ObjectWithDeprecatedFields id(BigDecimal id) { + public ObjectWithDeprecatedFields id(@javax.annotation.Nullable BigDecimal id) { this.id = id; return this; @@ -112,11 +116,11 @@ public BigDecimal getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(BigDecimal id) { + public void setId(@javax.annotation.Nullable BigDecimal id) { this.id = id; } - public ObjectWithDeprecatedFields deprecatedRef(DeprecatedObject deprecatedRef) { + public ObjectWithDeprecatedFields deprecatedRef(@javax.annotation.Nullable DeprecatedObject deprecatedRef) { this.deprecatedRef = deprecatedRef; return this; @@ -139,11 +143,11 @@ public DeprecatedObject getDeprecatedRef() { @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeprecatedRef(DeprecatedObject deprecatedRef) { + public void setDeprecatedRef(@javax.annotation.Nullable DeprecatedObject deprecatedRef) { this.deprecatedRef = deprecatedRef; } - public ObjectWithDeprecatedFields bars(List bars) { + public ObjectWithDeprecatedFields bars(@javax.annotation.Nullable List bars) { this.bars = bars; return this; @@ -174,7 +178,7 @@ public List getBars() { @JsonProperty(JSON_PROPERTY_BARS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBars(List bars) { + public void setBars(@javax.annotation.Nullable List bars) { this.bars = bars; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Order.java index e6f4cc9017ca..682cf05378fc 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Order.java @@ -38,15 +38,19 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Order { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; + @javax.annotation.Nullable private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; + @javax.annotation.Nullable private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; + @javax.annotation.Nullable private OffsetDateTime shipDate; /** @@ -87,9 +91,11 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @javax.annotation.Nullable private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; + @javax.annotation.Nullable private Boolean complete = false; public Order() { @@ -107,7 +113,7 @@ public Order(@JsonProperty(JSON_PROPERTY_ID) Long id, @JsonProperty(JSON_PROPERT this.complete = complete; } - public Order id(Long id) { + public Order id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -128,11 +134,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@javax.annotation.Nullable Long petId) { this.petId = petId; return this; @@ -153,11 +159,11 @@ public Long getPetId() { @JsonProperty(JSON_PROPERTY_PET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPetId(Long petId) { + public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; return this; @@ -178,11 +184,11 @@ public Integer getQuantity() { @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setQuantity(Integer quantity) { + public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; @@ -203,11 +209,11 @@ public OffsetDateTime getShipDate() { @JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -228,11 +234,11 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } - public Order complete(Boolean complete) { + public Order complete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; return this; @@ -253,7 +259,7 @@ public Boolean getComplete() { @JsonProperty(JSON_PROPERTY_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setComplete(Boolean complete) { + public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/OuterComposite.java index 33bbbc1288d4..e7395b98cf72 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -35,12 +35,15 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; + @javax.annotation.Nullable private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; + @javax.annotation.Nullable private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; + @javax.annotation.Nullable private Boolean myBoolean; public OuterComposite() { @@ -55,7 +58,7 @@ public OuterComposite(@JsonProperty(JSON_PROPERTY_MY_NUMBER) BigDecimal myNumber this.myBoolean = myBoolean; } - public OuterComposite myNumber(BigDecimal myNumber) { + public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; @@ -76,11 +79,11 @@ public BigDecimal getMyNumber() { @JsonProperty(JSON_PROPERTY_MY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyNumber(BigDecimal myNumber) { + public void setMyNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; } - public OuterComposite myString(String myString) { + public OuterComposite myString(@javax.annotation.Nullable String myString) { this.myString = myString; return this; @@ -101,11 +104,11 @@ public String getMyString() { @JsonProperty(JSON_PROPERTY_MY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyString(String myString) { + public void setMyString(@javax.annotation.Nullable String myString) { this.myString = myString; } - public OuterComposite myBoolean(Boolean myBoolean) { + public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; return this; @@ -126,7 +129,7 @@ public Boolean getMyBoolean() { @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyBoolean(Boolean myBoolean) { + public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java index ab1362f31e98..a0f39a930616 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java @@ -33,6 +33,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class OuterObjectWithEnumProperty { public static final String JSON_PROPERTY_VALUE = "value"; + @javax.annotation.Nonnull private OuterEnumInteger value; public OuterObjectWithEnumProperty() { @@ -45,7 +46,7 @@ public OuterObjectWithEnumProperty(@JsonProperty(JSON_PROPERTY_VALUE) OuterEnumI this.value = value; } - public OuterObjectWithEnumProperty value(OuterEnumInteger value) { + public OuterObjectWithEnumProperty value(@javax.annotation.Nonnull OuterEnumInteger value) { this.value = value; return this; @@ -66,7 +67,7 @@ public OuterEnumInteger getValue() { @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setValue(OuterEnumInteger value) { + public void setValue(@javax.annotation.Nonnull OuterEnumInteger value) { this.value = value; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ParentWithNullable.java index deb1c378819f..738c3b9c5afe 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -82,9 +82,11 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nullable protected TypeEnum type; public static final String JSON_PROPERTY_NULLABLE_PROPERTY = "nullableProperty"; + @javax.annotation.Nullable protected JsonNullable nullableProperty = JsonNullable.undefined(); public ParentWithNullable() { @@ -98,7 +100,7 @@ public ParentWithNullable(@JsonProperty(JSON_PROPERTY_TYPE) TypeEnum type, @Json this.nullableProperty = nullableProperty == null ? JsonNullable.undefined() : JsonNullable.of(nullableProperty); } - public ParentWithNullable type(TypeEnum type) { + public ParentWithNullable type(@javax.annotation.Nullable TypeEnum type) { this.type = type; return this; @@ -119,11 +121,11 @@ public TypeEnum getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(TypeEnum type) { + public void setType(@javax.annotation.Nullable TypeEnum type) { this.type = type; } - public ParentWithNullable nullableProperty(String nullableProperty) { + public ParentWithNullable nullableProperty(@javax.annotation.Nullable String nullableProperty) { this.nullableProperty = JsonNullable.of(nullableProperty); return this; @@ -152,7 +154,7 @@ public void setNullableProperty_JsonNullable(JsonNullable nullableProper this.nullableProperty = nullableProperty; } - public void setNullableProperty(String nullableProperty) { + public void setNullableProperty(@javax.annotation.Nullable String nullableProperty) { this.nullableProperty = JsonNullable.of(nullableProperty); } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Pet.java index a136dae000fc..1f984fe8834f 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Pet.java @@ -45,18 +45,23 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Pet { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; + @javax.annotation.Nullable private Category category; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; + @javax.annotation.Nonnull private Set photoUrls; public static final String JSON_PROPERTY_TAGS = "tags"; + @javax.annotation.Nullable private List tags; /** @@ -97,6 +102,7 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @javax.annotation.Nullable private StatusEnum status; public Pet() { @@ -114,7 +120,7 @@ public Pet(@JsonProperty(JSON_PROPERTY_ID) Long id, @JsonProperty(JSON_PROPERTY_ this.status = status; } - public Pet id(Long id) { + public Pet id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -135,11 +141,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@javax.annotation.Nullable Category category) { this.category = category; return this; @@ -160,11 +166,11 @@ public Category getCategory() { @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCategory(Category category) { + public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; } - public Pet name(String name) { + public Pet name(@javax.annotation.Nonnull String name) { this.name = name; return this; @@ -185,11 +191,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } - public Pet photoUrls(Set photoUrls) { + public Pet photoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; return this; @@ -219,11 +225,11 @@ public Set getPhotoUrls() { @JsonDeserialize(as = LinkedHashSet.class) @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPhotoUrls(Set photoUrls) { + public void setPhotoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; } - public Pet tags(List tags) { + public Pet tags(@javax.annotation.Nullable List tags) { this.tags = tags; return this; @@ -252,11 +258,11 @@ public List getTags() { @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTags(List tags) { + public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -277,7 +283,7 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index b8d5b12b8156..46ca0c461732 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -33,9 +33,11 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; + @javax.annotation.Nullable private String baz; public ReadOnlyFirst() { @@ -73,7 +75,7 @@ public String getBar() { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { this.baz = baz; return this; @@ -94,7 +96,7 @@ public String getBaz() { @JsonProperty(JSON_PROPERTY_BAZ) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBaz(String baz) { + public void setBaz(@javax.annotation.Nullable String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/SpecialModelName.java index ba9e4803ad1f..d1da12c6215d 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -33,6 +33,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; + @javax.annotation.Nullable private Long $specialPropertyName; public SpecialModelName() { @@ -45,7 +46,7 @@ public SpecialModelName(@JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) Lon this.$specialPropertyName = $specialPropertyName; } - public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + public SpecialModelName $specialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; return this; @@ -66,7 +67,7 @@ public SpecialModelName(@JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) Lon @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void set$SpecialPropertyName(Long $specialPropertyName) { + public void set$SpecialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Tag.java index c145badeda8d..c78632f61d8d 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Tag.java @@ -33,9 +33,11 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Tag { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public Tag() { @@ -49,7 +51,7 @@ public Tag(@JsonProperty(JSON_PROPERTY_ID) Long id, @JsonProperty(JSON_PROPERTY_ this.name = name; } - public Tag id(Long id) { + public Tag id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -70,11 +72,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -95,7 +97,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index cc9517876dd8..61e3fc04c961 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -35,6 +35,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class TestInlineFreeformAdditionalPropertiesRequest extends HashMap { public static final String JSON_PROPERTY_SOME_PROPERTY = "someProperty"; + @javax.annotation.Nullable private String someProperty; public TestInlineFreeformAdditionalPropertiesRequest() { @@ -49,7 +50,7 @@ public TestInlineFreeformAdditionalPropertiesRequest(@JsonProperty(JSON_PROPERTY this.someProperty = someProperty; } - public TestInlineFreeformAdditionalPropertiesRequest someProperty(String someProperty) { + public TestInlineFreeformAdditionalPropertiesRequest someProperty(@javax.annotation.Nullable String someProperty) { this.someProperty = someProperty; return this; @@ -70,7 +71,7 @@ public String getSomeProperty() { @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSomeProperty(String someProperty) { + public void setSomeProperty(@javax.annotation.Nullable String someProperty) { this.someProperty = someProperty; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/User.java index 79fa96a4b92e..5996fe83cb9a 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/User.java @@ -39,27 +39,35 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class User { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; + @javax.annotation.Nullable private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; + @javax.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; + @javax.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; + @javax.annotation.Nullable private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; + @javax.annotation.Nullable private String password; public static final String JSON_PROPERTY_PHONE = "phone"; + @javax.annotation.Nullable private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; + @javax.annotation.Nullable private Integer userStatus; public User() { @@ -79,7 +87,7 @@ public User(@JsonProperty(JSON_PROPERTY_ID) Long id, @JsonProperty(JSON_PROPERTY this.userStatus = userStatus; } - public User id(Long id) { + public User id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -100,11 +108,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@javax.annotation.Nullable String username) { this.username = username; return this; @@ -125,11 +133,11 @@ public String getUsername() { @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsername(String username) { + public void setUsername(@javax.annotation.Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; return this; @@ -150,11 +158,11 @@ public String getFirstName() { @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFirstName(String firstName) { + public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; return this; @@ -175,11 +183,11 @@ public String getLastName() { @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLastName(String lastName) { + public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@javax.annotation.Nullable String email) { this.email = email; return this; @@ -200,11 +208,11 @@ public String getEmail() { @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEmail(String email) { + public void setEmail(@javax.annotation.Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@javax.annotation.Nullable String password) { this.password = password; return this; @@ -225,11 +233,11 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@javax.annotation.Nullable String phone) { this.phone = phone; return this; @@ -250,11 +258,11 @@ public String getPhone() { @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPhone(String phone) { + public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; return this; @@ -275,7 +283,7 @@ public Integer getUserStatus() { @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index f767ff7d46fb..1caaeaae0487 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -36,13 +36,14 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesAnyType extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private String name; public AdditionalPropertiesAnyType() { } - public AdditionalPropertiesAnyType name(String name) { + public AdditionalPropertiesAnyType name(@jakarta.annotation.Nullable String name) { this.name = name; return this; @@ -64,7 +65,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 0d56e1e67587..239edc9079e3 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -37,13 +37,14 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesArray extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private String name; public AdditionalPropertiesArray() { } - public AdditionalPropertiesArray name(String name) { + public AdditionalPropertiesArray name(@jakarta.annotation.Nullable String name) { this.name = name; return this; @@ -65,7 +66,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 0a693976c79c..4b5e23917d2e 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -36,13 +36,14 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesBoolean extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private String name; public AdditionalPropertiesBoolean() { } - public AdditionalPropertiesBoolean name(String name) { + public AdditionalPropertiesBoolean name(@jakarta.annotation.Nullable String name) { this.name = name; return this; @@ -64,7 +65,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 6c751fe15df4..623dd92d303e 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -48,42 +48,53 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_STRING = "map_string"; + @jakarta.annotation.Nullable private Map mapString = new HashMap<>(); public static final String JSON_PROPERTY_MAP_NUMBER = "map_number"; + @jakarta.annotation.Nullable private Map mapNumber = new HashMap<>(); public static final String JSON_PROPERTY_MAP_INTEGER = "map_integer"; + @jakarta.annotation.Nullable private Map mapInteger = new HashMap<>(); public static final String JSON_PROPERTY_MAP_BOOLEAN = "map_boolean"; + @jakarta.annotation.Nullable private Map mapBoolean = new HashMap<>(); public static final String JSON_PROPERTY_MAP_ARRAY_INTEGER = "map_array_integer"; + @jakarta.annotation.Nullable private Map> mapArrayInteger = new HashMap<>(); public static final String JSON_PROPERTY_MAP_ARRAY_ANYTYPE = "map_array_anytype"; + @jakarta.annotation.Nullable private Map> mapArrayAnytype = new HashMap<>(); public static final String JSON_PROPERTY_MAP_MAP_STRING = "map_map_string"; + @jakarta.annotation.Nullable private Map> mapMapString = new HashMap<>(); public static final String JSON_PROPERTY_MAP_MAP_ANYTYPE = "map_map_anytype"; + @jakarta.annotation.Nullable private Map> mapMapAnytype = new HashMap<>(); public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1"; + @jakarta.annotation.Nullable private Object anytype1; public static final String JSON_PROPERTY_ANYTYPE2 = "anytype_2"; + @jakarta.annotation.Nullable private Object anytype2; public static final String JSON_PROPERTY_ANYTYPE3 = "anytype_3"; + @jakarta.annotation.Nullable private Object anytype3; public AdditionalPropertiesClass() { } - public AdditionalPropertiesClass mapString(Map mapString) { + public AdditionalPropertiesClass mapString(@jakarta.annotation.Nullable Map mapString) { this.mapString = mapString; return this; @@ -113,11 +124,11 @@ public Map getMapString() { @JsonProperty(JSON_PROPERTY_MAP_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapString(Map mapString) { + public void setMapString(@jakarta.annotation.Nullable Map mapString) { this.mapString = mapString; } - public AdditionalPropertiesClass mapNumber(Map mapNumber) { + public AdditionalPropertiesClass mapNumber(@jakarta.annotation.Nullable Map mapNumber) { this.mapNumber = mapNumber; return this; @@ -148,11 +159,11 @@ public Map getMapNumber() { @JsonProperty(JSON_PROPERTY_MAP_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapNumber(Map mapNumber) { + public void setMapNumber(@jakarta.annotation.Nullable Map mapNumber) { this.mapNumber = mapNumber; } - public AdditionalPropertiesClass mapInteger(Map mapInteger) { + public AdditionalPropertiesClass mapInteger(@jakarta.annotation.Nullable Map mapInteger) { this.mapInteger = mapInteger; return this; @@ -182,11 +193,11 @@ public Map getMapInteger() { @JsonProperty(JSON_PROPERTY_MAP_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapInteger(Map mapInteger) { + public void setMapInteger(@jakarta.annotation.Nullable Map mapInteger) { this.mapInteger = mapInteger; } - public AdditionalPropertiesClass mapBoolean(Map mapBoolean) { + public AdditionalPropertiesClass mapBoolean(@jakarta.annotation.Nullable Map mapBoolean) { this.mapBoolean = mapBoolean; return this; @@ -216,11 +227,11 @@ public Map getMapBoolean() { @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapBoolean(Map mapBoolean) { + public void setMapBoolean(@jakarta.annotation.Nullable Map mapBoolean) { this.mapBoolean = mapBoolean; } - public AdditionalPropertiesClass mapArrayInteger(Map> mapArrayInteger) { + public AdditionalPropertiesClass mapArrayInteger(@jakarta.annotation.Nullable Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; return this; @@ -251,11 +262,11 @@ public Map> getMapArrayInteger() { @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapArrayInteger(Map> mapArrayInteger) { + public void setMapArrayInteger(@jakarta.annotation.Nullable Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; } - public AdditionalPropertiesClass mapArrayAnytype(Map> mapArrayAnytype) { + public AdditionalPropertiesClass mapArrayAnytype(@jakarta.annotation.Nullable Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; return this; @@ -286,11 +297,11 @@ public Map> getMapArrayAnytype() { @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapArrayAnytype(Map> mapArrayAnytype) { + public void setMapArrayAnytype(@jakarta.annotation.Nullable Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; } - public AdditionalPropertiesClass mapMapString(Map> mapMapString) { + public AdditionalPropertiesClass mapMapString(@jakarta.annotation.Nullable Map> mapMapString) { this.mapMapString = mapMapString; return this; @@ -321,11 +332,11 @@ public Map> getMapMapString() { @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapMapString(Map> mapMapString) { + public void setMapMapString(@jakarta.annotation.Nullable Map> mapMapString) { this.mapMapString = mapMapString; } - public AdditionalPropertiesClass mapMapAnytype(Map> mapMapAnytype) { + public AdditionalPropertiesClass mapMapAnytype(@jakarta.annotation.Nullable Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; return this; @@ -356,11 +367,11 @@ public Map> getMapMapAnytype() { @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapMapAnytype(Map> mapMapAnytype) { + public void setMapMapAnytype(@jakarta.annotation.Nullable Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@jakarta.annotation.Nullable Object anytype1) { this.anytype1 = anytype1; return this; @@ -382,11 +393,11 @@ public Object getAnytype1() { @JsonProperty(JSON_PROPERTY_ANYTYPE1) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAnytype1(Object anytype1) { + public void setAnytype1(@jakarta.annotation.Nullable Object anytype1) { this.anytype1 = anytype1; } - public AdditionalPropertiesClass anytype2(Object anytype2) { + public AdditionalPropertiesClass anytype2(@jakarta.annotation.Nullable Object anytype2) { this.anytype2 = anytype2; return this; @@ -408,11 +419,11 @@ public Object getAnytype2() { @JsonProperty(JSON_PROPERTY_ANYTYPE2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAnytype2(Object anytype2) { + public void setAnytype2(@jakarta.annotation.Nullable Object anytype2) { this.anytype2 = anytype2; } - public AdditionalPropertiesClass anytype3(Object anytype3) { + public AdditionalPropertiesClass anytype3(@jakarta.annotation.Nullable Object anytype3) { this.anytype3 = anytype3; return this; @@ -434,7 +445,7 @@ public Object getAnytype3() { @JsonProperty(JSON_PROPERTY_ANYTYPE3) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAnytype3(Object anytype3) { + public void setAnytype3(@jakarta.annotation.Nullable Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 4f5db128f7ef..48109ba26256 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -36,13 +36,14 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesInteger extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private String name; public AdditionalPropertiesInteger() { } - public AdditionalPropertiesInteger name(String name) { + public AdditionalPropertiesInteger name(@jakarta.annotation.Nullable String name) { this.name = name; return this; @@ -64,7 +65,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index 9f45a8e9ae9f..af548313b25a 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -37,13 +37,14 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesNumber extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private String name; public AdditionalPropertiesNumber() { } - public AdditionalPropertiesNumber name(String name) { + public AdditionalPropertiesNumber name(@jakarta.annotation.Nullable String name) { this.name = name; return this; @@ -65,7 +66,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index 86c137da7dd3..eece9f8a7efa 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -36,13 +36,14 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesObject extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private String name; public AdditionalPropertiesObject() { } - public AdditionalPropertiesObject name(String name) { + public AdditionalPropertiesObject name(@jakarta.annotation.Nullable String name) { this.name = name; return this; @@ -64,7 +65,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 41e81dfc474a..55540978ce22 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -36,13 +36,14 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesString extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private String name; public AdditionalPropertiesString() { } - public AdditionalPropertiesString name(String name) { + public AdditionalPropertiesString name(@jakarta.annotation.Nullable String name) { this.name = name; return this; @@ -64,7 +65,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Animal.java index e6207330dde0..e261240e2d07 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Animal.java @@ -49,15 +49,17 @@ public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; + @jakarta.annotation.Nonnull protected String className; public static final String JSON_PROPERTY_COLOR = "color"; + @jakarta.annotation.Nullable protected String color = "red"; public Animal() { } - public Animal className(String className) { + public Animal className(@jakarta.annotation.Nonnull String className) { this.className = className; return this; @@ -80,11 +82,11 @@ public String getClassName() { @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setClassName(String className) { + public void setClassName(@jakarta.annotation.Nonnull String className) { this.className = className; } - public Animal color(String color) { + public Animal color(@jakarta.annotation.Nullable String color) { this.color = color; return this; @@ -106,7 +108,7 @@ public String getColor() { @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setColor(String color) { + public void setColor(@jakarta.annotation.Nullable String color) { this.color = color; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 68f14d4f9ee1..02a669c1fac1 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -38,12 +38,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayOfArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; + @jakarta.annotation.Nullable private List> arrayArrayNumber = new ArrayList<>(); public ArrayOfArrayOfNumberOnly() { } - public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + public ArrayOfArrayOfNumberOnly arrayArrayNumber(@jakarta.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; return this; @@ -74,7 +75,7 @@ public List> getArrayArrayNumber() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayNumber(List> arrayArrayNumber) { + public void setArrayArrayNumber(@jakarta.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index c2b67f2d0413..f426e889ab13 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -38,12 +38,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; + @jakarta.annotation.Nullable private List arrayNumber = new ArrayList<>(); public ArrayOfNumberOnly() { } - public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + public ArrayOfNumberOnly arrayNumber(@jakarta.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; return this; @@ -74,7 +75,7 @@ public List getArrayNumber() { @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayNumber(List arrayNumber) { + public void setArrayNumber(@jakarta.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ArrayTest.java index e67a6f9ff071..6897d446abc6 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -40,18 +40,21 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; + @jakarta.annotation.Nullable private List arrayOfString = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; + @jakarta.annotation.Nullable private List> arrayArrayOfInteger = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; + @jakarta.annotation.Nullable private List> arrayArrayOfModel = new ArrayList<>(); public ArrayTest() { } - public ArrayTest arrayOfString(List arrayOfString) { + public ArrayTest arrayOfString(@jakarta.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; return this; @@ -81,11 +84,11 @@ public List getArrayOfString() { @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayOfString(List arrayOfString) { + public void setArrayOfString(@jakarta.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; } - public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + public ArrayTest arrayArrayOfInteger(@jakarta.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; return this; @@ -116,11 +119,11 @@ public List> getArrayArrayOfInteger() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { + public void setArrayArrayOfInteger(@jakarta.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } - public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + public ArrayTest arrayArrayOfModel(@jakarta.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; return this; @@ -151,7 +154,7 @@ public ArrayTest addArrayArrayOfModelItem(List<@Valid ReadOnlyFirst> arrayArrayO @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayOfModel(List> arrayArrayOfModel) { + public void setArrayArrayOfModel(@jakarta.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/BigCat.java index 00cece6c6da9..d15c910a4287 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/BigCat.java @@ -83,13 +83,14 @@ public static KindEnum fromValue(String value) { } public static final String JSON_PROPERTY_KIND = "kind"; + @jakarta.annotation.Nullable private KindEnum kind; public BigCat() { } - public BigCat kind(KindEnum kind) { + public BigCat kind(@jakarta.annotation.Nullable KindEnum kind) { this.kind = kind; return this; @@ -111,18 +112,18 @@ public KindEnum getKind() { @JsonProperty(JSON_PROPERTY_KIND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setKind(KindEnum kind) { + public void setKind(@jakarta.annotation.Nullable KindEnum kind) { this.kind = kind; } @Override - public BigCat className(String className) { + public BigCat className(@jakarta.annotation.Nonnull String className) { this.setClassName(className); return this; } @Override - public BigCat color(String color) { + public BigCat color(@jakarta.annotation.Nullable String color) { this.setColor(color); return this; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Capitalization.java index 8dadef8dc187..926f0c1191ac 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Capitalization.java @@ -39,27 +39,33 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Capitalization { public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; + @jakarta.annotation.Nullable private String smallCamel; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; + @jakarta.annotation.Nullable private String capitalCamel; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; + @jakarta.annotation.Nullable private String smallSnake; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; + @jakarta.annotation.Nullable private String capitalSnake; public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; + @jakarta.annotation.Nullable private String scAETHFlowPoints; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; + @jakarta.annotation.Nullable private String ATT_NAME; public Capitalization() { } - public Capitalization smallCamel(String smallCamel) { + public Capitalization smallCamel(@jakarta.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; return this; @@ -81,11 +87,11 @@ public String getSmallCamel() { @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmallCamel(String smallCamel) { + public void setSmallCamel(@jakarta.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; } - public Capitalization capitalCamel(String capitalCamel) { + public Capitalization capitalCamel(@jakarta.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; return this; @@ -107,11 +113,11 @@ public String getCapitalCamel() { @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCapitalCamel(String capitalCamel) { + public void setCapitalCamel(@jakarta.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; } - public Capitalization smallSnake(String smallSnake) { + public Capitalization smallSnake(@jakarta.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; return this; @@ -133,11 +139,11 @@ public String getSmallSnake() { @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmallSnake(String smallSnake) { + public void setSmallSnake(@jakarta.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; } - public Capitalization capitalSnake(String capitalSnake) { + public Capitalization capitalSnake(@jakarta.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; return this; @@ -159,11 +165,11 @@ public String getCapitalSnake() { @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCapitalSnake(String capitalSnake) { + public void setCapitalSnake(@jakarta.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; } - public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + public Capitalization scAETHFlowPoints(@jakarta.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; return this; @@ -185,11 +191,11 @@ public String getScAETHFlowPoints() { @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setScAETHFlowPoints(String scAETHFlowPoints) { + public void setScAETHFlowPoints(@jakarta.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } - public Capitalization ATT_NAME(String ATT_NAME) { + public Capitalization ATT_NAME(@jakarta.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; return this; @@ -211,7 +217,7 @@ public String getATTNAME() { @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setATTNAME(String ATT_NAME) { + public void setATTNAME(@jakarta.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Cat.java index 41f743f4d760..3783db068ca2 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Cat.java @@ -47,13 +47,14 @@ public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; + @jakarta.annotation.Nullable protected Boolean declawed; public Cat() { } - public Cat declawed(Boolean declawed) { + public Cat declawed(@jakarta.annotation.Nullable Boolean declawed) { this.declawed = declawed; return this; @@ -75,18 +76,18 @@ public Boolean getDeclawed() { @JsonProperty(JSON_PROPERTY_DECLAWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@jakarta.annotation.Nullable Boolean declawed) { this.declawed = declawed; } @Override - public Cat className(String className) { + public Cat className(@jakarta.annotation.Nonnull String className) { this.setClassName(className); return this; } @Override - public Cat color(String color) { + public Cat color(@jakarta.annotation.Nullable String color) { this.setColor(color); return this; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Category.java index 6a03a39e0eac..3b4e1991d5b6 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Category.java @@ -35,15 +35,17 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Category { public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nonnull private String name = "default-name"; public Category() { } - public Category id(Long id) { + public Category id(@jakarta.annotation.Nullable Long id) { this.id = id; return this; @@ -65,11 +67,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; @@ -92,7 +94,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ClassModel.java index e66c554538d0..b2bbdfbcf9c1 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ClassModel.java @@ -34,12 +34,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ClassModel { public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; + @jakarta.annotation.Nullable private String propertyClass; public ClassModel() { } - public ClassModel propertyClass(String propertyClass) { + public ClassModel propertyClass(@jakarta.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; @@ -61,7 +62,7 @@ public String getPropertyClass() { @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@jakarta.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Client.java index 8567656dc3d2..1f0eae0a465a 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Client.java @@ -34,12 +34,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Client { public static final String JSON_PROPERTY_CLIENT = "client"; + @jakarta.annotation.Nullable private String client; public Client() { } - public Client client(String client) { + public Client client(@jakarta.annotation.Nullable String client) { this.client = client; return this; @@ -61,7 +62,7 @@ public String getClient() { @JsonProperty(JSON_PROPERTY_CLIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setClient(String client) { + public void setClient(@jakarta.annotation.Nullable String client) { this.client = client; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Dog.java index cf9c4ecce016..30de63dbc043 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Dog.java @@ -44,13 +44,14 @@ public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; + @jakarta.annotation.Nullable private String breed; public Dog() { } - public Dog breed(String breed) { + public Dog breed(@jakarta.annotation.Nullable String breed) { this.breed = breed; return this; @@ -72,18 +73,18 @@ public String getBreed() { @JsonProperty(JSON_PROPERTY_BREED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBreed(String breed) { + public void setBreed(@jakarta.annotation.Nullable String breed) { this.breed = breed; } @Override - public Dog className(String className) { + public Dog className(@jakarta.annotation.Nonnull String className) { this.setClassName(className); return this; } @Override - public Dog color(String color) { + public Dog color(@jakarta.annotation.Nullable String color) { this.setColor(color); return this; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/EnumArrays.java index cf019befcfa8..816c001d10ca 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -73,6 +73,7 @@ public static JustSymbolEnum fromValue(String value) { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; + @jakarta.annotation.Nullable private JustSymbolEnum justSymbol; /** @@ -111,12 +112,13 @@ public static ArrayEnumEnum fromValue(String value) { } public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; + @jakarta.annotation.Nullable private List arrayEnum = new ArrayList<>(); public EnumArrays() { } - public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + public EnumArrays justSymbol(@jakarta.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; @@ -138,11 +140,11 @@ public JustSymbolEnum getJustSymbol() { @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJustSymbol(JustSymbolEnum justSymbol) { + public void setJustSymbol(@jakarta.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } - public EnumArrays arrayEnum(List arrayEnum) { + public EnumArrays arrayEnum(@jakarta.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; return this; @@ -172,7 +174,7 @@ public List getArrayEnum() { @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayEnum(List arrayEnum) { + public void setArrayEnum(@jakarta.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/EnumTest.java index 268c45b7a657..5dd5f5ec7329 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/EnumTest.java @@ -77,6 +77,7 @@ public static EnumStringEnum fromValue(String value) { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; + @jakarta.annotation.Nullable private EnumStringEnum enumString; /** @@ -117,6 +118,7 @@ public static EnumStringRequiredEnum fromValue(String value) { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; + @jakarta.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** @@ -155,6 +157,7 @@ public static EnumIntegerEnum fromValue(Integer value) { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; + @jakarta.annotation.Nullable private EnumIntegerEnum enumInteger; /** @@ -193,15 +196,17 @@ public static EnumNumberEnum fromValue(Double value) { } public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; + @jakarta.annotation.Nullable private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; + @jakarta.annotation.Nullable private OuterEnum outerEnum; public EnumTest() { } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@jakarta.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; @@ -223,11 +228,11 @@ public EnumStringEnum getEnumString() { @JsonProperty(JSON_PROPERTY_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumString(EnumStringEnum enumString) { + public void setEnumString(@jakarta.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; } - public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public EnumTest enumStringRequired(@jakarta.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; return this; @@ -250,11 +255,11 @@ public EnumStringRequiredEnum getEnumStringRequired() { @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public void setEnumStringRequired(@jakarta.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@jakarta.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; @@ -276,11 +281,11 @@ public EnumIntegerEnum getEnumInteger() { @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumInteger(EnumIntegerEnum enumInteger) { + public void setEnumInteger(@jakarta.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } - public EnumTest enumNumber(EnumNumberEnum enumNumber) { + public EnumTest enumNumber(@jakarta.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; return this; @@ -302,11 +307,11 @@ public EnumNumberEnum getEnumNumber() { @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumNumber(EnumNumberEnum enumNumber) { + public void setEnumNumber(@jakarta.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } - public EnumTest outerEnum(OuterEnum outerEnum) { + public EnumTest outerEnum(@jakarta.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; return this; @@ -329,7 +334,7 @@ public OuterEnum getOuterEnum() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnum(OuterEnum outerEnum) { + public void setOuterEnum(@jakarta.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 3f999af04ad2..c9acd5f6bd59 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -39,15 +39,17 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; + @jakarta.annotation.Nullable private ModelFile _file; public static final String JSON_PROPERTY_FILES = "files"; + @jakarta.annotation.Nullable private List<@Valid ModelFile> files = new ArrayList<>(); public FileSchemaTestClass() { } - public FileSchemaTestClass _file(ModelFile _file) { + public FileSchemaTestClass _file(@jakarta.annotation.Nullable ModelFile _file) { this._file = _file; return this; @@ -70,11 +72,11 @@ public ModelFile getFile() { @JsonProperty(JSON_PROPERTY_FILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFile(ModelFile _file) { + public void setFile(@jakarta.annotation.Nullable ModelFile _file) { this._file = _file; } - public FileSchemaTestClass files(List<@Valid ModelFile> files) { + public FileSchemaTestClass files(@jakarta.annotation.Nullable List<@Valid ModelFile> files) { this.files = files; return this; @@ -105,7 +107,7 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFiles(List<@Valid ModelFile> files) { + public void setFiles(@jakarta.annotation.Nullable List<@Valid ModelFile> files) { this.files = files; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/FormatTest.java index 5b3f99202343..97d82e7ca486 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/FormatTest.java @@ -53,51 +53,65 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; + @jakarta.annotation.Nullable private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; + @jakarta.annotation.Nullable private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; + @jakarta.annotation.Nullable private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; + @jakarta.annotation.Nonnull private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; + @jakarta.annotation.Nullable private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; + @jakarta.annotation.Nullable private Double _double; public static final String JSON_PROPERTY_STRING = "string"; + @jakarta.annotation.Nullable private String string; public static final String JSON_PROPERTY_BYTE = "byte"; + @jakarta.annotation.Nonnull private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; + @jakarta.annotation.Nullable private File binary; public static final String JSON_PROPERTY_DATE = "date"; + @jakarta.annotation.Nonnull private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; + @jakarta.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; + @jakarta.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; + @jakarta.annotation.Nonnull private String password; public static final String JSON_PROPERTY_BIG_DECIMAL = "BigDecimal"; + @jakarta.annotation.Nullable private BigDecimal bigDecimal; public FormatTest() { } - public FormatTest integer(Integer integer) { + public FormatTest integer(@jakarta.annotation.Nullable Integer integer) { this.integer = integer; return this; @@ -121,11 +135,11 @@ public Integer getInteger() { @JsonProperty(JSON_PROPERTY_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInteger(Integer integer) { + public void setInteger(@jakarta.annotation.Nullable Integer integer) { this.integer = integer; } - public FormatTest int32(Integer int32) { + public FormatTest int32(@jakarta.annotation.Nullable Integer int32) { this.int32 = int32; return this; @@ -149,11 +163,11 @@ public Integer getInt32() { @JsonProperty(JSON_PROPERTY_INT32) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInt32(Integer int32) { + public void setInt32(@jakarta.annotation.Nullable Integer int32) { this.int32 = int32; } - public FormatTest int64(Long int64) { + public FormatTest int64(@jakarta.annotation.Nullable Long int64) { this.int64 = int64; return this; @@ -175,11 +189,11 @@ public Long getInt64() { @JsonProperty(JSON_PROPERTY_INT64) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInt64(Long int64) { + public void setInt64(@jakarta.annotation.Nullable Long int64) { this.int64 = int64; } - public FormatTest number(BigDecimal number) { + public FormatTest number(@jakarta.annotation.Nonnull BigDecimal number) { this.number = number; return this; @@ -205,11 +219,11 @@ public BigDecimal getNumber() { @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNumber(BigDecimal number) { + public void setNumber(@jakarta.annotation.Nonnull BigDecimal number) { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@jakarta.annotation.Nullable Float _float) { this._float = _float; return this; @@ -233,11 +247,11 @@ public Float getFloat() { @JsonProperty(JSON_PROPERTY_FLOAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFloat(Float _float) { + public void setFloat(@jakarta.annotation.Nullable Float _float) { this._float = _float; } - public FormatTest _double(Double _double) { + public FormatTest _double(@jakarta.annotation.Nullable Double _double) { this._double = _double; return this; @@ -261,11 +275,11 @@ public Double getDouble() { @JsonProperty(JSON_PROPERTY_DOUBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDouble(Double _double) { + public void setDouble(@jakarta.annotation.Nullable Double _double) { this._double = _double; } - public FormatTest string(String string) { + public FormatTest string(@jakarta.annotation.Nullable String string) { this.string = string; return this; @@ -287,11 +301,11 @@ public String getString() { @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setString(String string) { + public void setString(@jakarta.annotation.Nullable String string) { this.string = string; } - public FormatTest _byte(byte[] _byte) { + public FormatTest _byte(@jakarta.annotation.Nonnull byte[] _byte) { this._byte = _byte; return this; @@ -314,11 +328,11 @@ public byte[] getByte() { @JsonProperty(JSON_PROPERTY_BYTE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setByte(byte[] _byte) { + public void setByte(@jakarta.annotation.Nonnull byte[] _byte) { this._byte = _byte; } - public FormatTest binary(File binary) { + public FormatTest binary(@jakarta.annotation.Nullable File binary) { this.binary = binary; return this; @@ -341,11 +355,11 @@ public File getBinary() { @JsonProperty(JSON_PROPERTY_BINARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBinary(File binary) { + public void setBinary(@jakarta.annotation.Nullable File binary) { this.binary = binary; } - public FormatTest date(LocalDate date) { + public FormatTest date(@jakarta.annotation.Nonnull LocalDate date) { this.date = date; return this; @@ -369,11 +383,11 @@ public LocalDate getDate() { @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDate(LocalDate date) { + public void setDate(@jakarta.annotation.Nonnull LocalDate date) { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@jakarta.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; @@ -396,11 +410,11 @@ public OffsetDateTime getDateTime() { @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@jakarta.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public FormatTest uuid(UUID uuid) { + public FormatTest uuid(@jakarta.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; @@ -423,11 +437,11 @@ public UUID getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(UUID uuid) { + public void setUuid(@jakarta.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public FormatTest password(String password) { + public FormatTest password(@jakarta.annotation.Nonnull String password) { this.password = password; return this; @@ -450,11 +464,11 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPassword(String password) { + public void setPassword(@jakarta.annotation.Nonnull String password) { this.password = password; } - public FormatTest bigDecimal(BigDecimal bigDecimal) { + public FormatTest bigDecimal(@jakarta.annotation.Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; @@ -477,7 +491,7 @@ public BigDecimal getBigDecimal() { @JsonProperty(JSON_PROPERTY_BIG_DECIMAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBigDecimal(BigDecimal bigDecimal) { + public void setBigDecimal(@jakarta.annotation.Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 7f47ae3e7609..f82e47cb62aa 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -36,9 +36,11 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; + @jakarta.annotation.Nullable private String bar; public static final String JSON_PROPERTY_FOO = "foo"; + @jakarta.annotation.Nullable private String foo; public HasOnlyReadOnly() { diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/MapTest.java index 8bb9dacc9d12..55a6bc7b6c88 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/MapTest.java @@ -39,6 +39,7 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; + @jakarta.annotation.Nullable private Map> mapMapOfString = new HashMap<>(); /** @@ -77,18 +78,21 @@ public static InnerEnum fromValue(String value) { } public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; + @jakarta.annotation.Nullable private Map mapOfEnumString = new HashMap<>(); public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; + @jakarta.annotation.Nullable private Map directMap = new HashMap<>(); public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; + @jakarta.annotation.Nullable private Map indirectMap = new HashMap<>(); public MapTest() { } - public MapTest mapMapOfString(Map> mapMapOfString) { + public MapTest mapMapOfString(@jakarta.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; return this; @@ -119,11 +123,11 @@ public Map> getMapMapOfString() { @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapMapOfString(Map> mapMapOfString) { + public void setMapMapOfString(@jakarta.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } - public MapTest mapOfEnumString(Map mapOfEnumString) { + public MapTest mapOfEnumString(@jakarta.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; return this; @@ -153,11 +157,11 @@ public Map getMapOfEnumString() { @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapOfEnumString(Map mapOfEnumString) { + public void setMapOfEnumString(@jakarta.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } - public MapTest directMap(Map directMap) { + public MapTest directMap(@jakarta.annotation.Nullable Map directMap) { this.directMap = directMap; return this; @@ -187,11 +191,11 @@ public Map getDirectMap() { @JsonProperty(JSON_PROPERTY_DIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDirectMap(Map directMap) { + public void setDirectMap(@jakarta.annotation.Nullable Map directMap) { this.directMap = directMap; } - public MapTest indirectMap(Map indirectMap) { + public MapTest indirectMap(@jakarta.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; return this; @@ -221,7 +225,7 @@ public Map getIndirectMap() { @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIndirectMap(Map indirectMap) { + public void setIndirectMap(@jakarta.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 74faa5259e9a..213cf64f3c61 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -41,18 +41,21 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; + @jakarta.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; + @jakarta.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; + @jakarta.annotation.Nullable private Map map = new HashMap<>(); public MixedPropertiesAndAdditionalPropertiesClass() { } - public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClass uuid(@jakarta.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; @@ -75,11 +78,11 @@ public UUID getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(UUID uuid) { + public void setUuid(@jakarta.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + public MixedPropertiesAndAdditionalPropertiesClass dateTime(@jakarta.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; @@ -102,11 +105,11 @@ public OffsetDateTime getDateTime() { @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@jakarta.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + public MixedPropertiesAndAdditionalPropertiesClass map(@jakarta.annotation.Nullable Map map) { this.map = map; return this; @@ -137,7 +140,7 @@ public Map getMap() { @JsonProperty(JSON_PROPERTY_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMap(Map map) { + public void setMap(@jakarta.annotation.Nullable Map map) { this.map = map; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Model200Response.java index 822467936185..66ab686bf17b 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Model200Response.java @@ -36,15 +36,17 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; + @jakarta.annotation.Nullable private String propertyClass; public Model200Response() { } - public Model200Response name(Integer name) { + public Model200Response name(@jakarta.annotation.Nullable Integer name) { this.name = name; return this; @@ -66,11 +68,11 @@ public Integer getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(Integer name) { + public void setName(@jakarta.annotation.Nullable Integer name) { this.name = name; } - public Model200Response propertyClass(String propertyClass) { + public Model200Response propertyClass(@jakarta.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; @@ -92,7 +94,7 @@ public String getPropertyClass() { @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@jakarta.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelApiResponse.java index ad86f8135f1e..61e69fb6a997 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -37,18 +37,21 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; + @jakarta.annotation.Nullable private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nullable private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; + @jakarta.annotation.Nullable private String message; public ModelApiResponse() { } - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@jakarta.annotation.Nullable Integer code) { this.code = code; return this; @@ -70,11 +73,11 @@ public Integer getCode() { @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCode(Integer code) { + public void setCode(@jakarta.annotation.Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@jakarta.annotation.Nullable String type) { this.type = type; return this; @@ -96,11 +99,11 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@jakarta.annotation.Nullable String message) { this.message = message; return this; @@ -122,7 +125,7 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelFile.java index 0ba84a251b7c..f3b9cd71c336 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelFile.java @@ -35,12 +35,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelFile { public static final String JSON_PROPERTY_SOURCE_U_R_I = "sourceURI"; + @jakarta.annotation.Nullable private String sourceURI; public ModelFile() { } - public ModelFile sourceURI(String sourceURI) { + public ModelFile sourceURI(@jakarta.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; return this; @@ -62,7 +63,7 @@ public String getSourceURI() { @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSourceURI(String sourceURI) { + public void setSourceURI(@jakarta.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelList.java index d708de9c550b..3e5a9f3dbe5d 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelList.java @@ -35,12 +35,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelList { public static final String JSON_PROPERTY_123LIST = "123-list"; + @jakarta.annotation.Nullable private String _123list; public ModelList() { } - public ModelList _123list(String _123list) { + public ModelList _123list(@jakarta.annotation.Nullable String _123list) { this._123list = _123list; return this; @@ -62,7 +63,7 @@ public String get123list() { @JsonProperty(JSON_PROPERTY_123LIST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void set123list(String _123list) { + public void set123list(@jakarta.annotation.Nullable String _123list) { this._123list = _123list; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelReturn.java index 517c6a85fe4e..ac43a4562230 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -35,12 +35,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; + @jakarta.annotation.Nullable private Integer _return; public ModelReturn() { } - public ModelReturn _return(Integer _return) { + public ModelReturn _return(@jakarta.annotation.Nullable Integer _return) { this._return = _return; return this; @@ -62,7 +63,7 @@ public Integer getReturn() { @JsonProperty(JSON_PROPERTY_RETURN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setReturn(Integer _return) { + public void setReturn(@jakarta.annotation.Nullable Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Name.java index 6bd48db3600f..da6ec129dee3 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Name.java @@ -37,15 +37,19 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Name { public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nonnull private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; + @jakarta.annotation.Nullable private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; + @jakarta.annotation.Nullable private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; + @jakarta.annotation.Nullable private Integer _123number; public Name() { @@ -63,7 +67,7 @@ public Name( this._123number = _123number; } - public Name name(Integer name) { + public Name name(@jakarta.annotation.Nonnull Integer name) { this.name = name; return this; @@ -86,7 +90,7 @@ public Integer getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(Integer name) { + public void setName(@jakarta.annotation.Nonnull Integer name) { this.name = name; } @@ -105,7 +109,7 @@ public Integer getSnakeCase() { - public Name property(String property) { + public Name property(@jakarta.annotation.Nullable String property) { this.property = property; return this; @@ -127,7 +131,7 @@ public String getProperty() { @JsonProperty(JSON_PROPERTY_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProperty(String property) { + public void setProperty(@jakarta.annotation.Nullable String property) { this.property = property; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/NumberOnly.java index 77850475cf07..32d3f8e93a71 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -35,12 +35,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; + @jakarta.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } - public NumberOnly justNumber(BigDecimal justNumber) { + public NumberOnly justNumber(@jakarta.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; @@ -63,7 +64,7 @@ public BigDecimal getJustNumber() { @JsonProperty(JSON_PROPERTY_JUST_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJustNumber(BigDecimal justNumber) { + public void setJustNumber(@jakarta.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Order.java index 1e69466a1e3b..6aefe4e88107 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Order.java @@ -40,15 +40,19 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Order { public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; + @jakarta.annotation.Nullable private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; + @jakarta.annotation.Nullable private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; + @jakarta.annotation.Nullable private OffsetDateTime shipDate; /** @@ -89,15 +93,17 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @jakarta.annotation.Nullable private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; + @jakarta.annotation.Nullable private Boolean complete = false; public Order() { } - public Order id(Long id) { + public Order id(@jakarta.annotation.Nullable Long id) { this.id = id; return this; @@ -119,11 +125,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@jakarta.annotation.Nullable Long petId) { this.petId = petId; return this; @@ -145,11 +151,11 @@ public Long getPetId() { @JsonProperty(JSON_PROPERTY_PET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPetId(Long petId) { + public void setPetId(@jakarta.annotation.Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@jakarta.annotation.Nullable Integer quantity) { this.quantity = quantity; return this; @@ -171,11 +177,11 @@ public Integer getQuantity() { @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setQuantity(Integer quantity) { + public void setQuantity(@jakarta.annotation.Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@jakarta.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; @@ -198,11 +204,11 @@ public OffsetDateTime getShipDate() { @JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@jakarta.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -224,11 +230,11 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; } - public Order complete(Boolean complete) { + public Order complete(@jakarta.annotation.Nullable Boolean complete) { this.complete = complete; return this; @@ -250,7 +256,7 @@ public Boolean getComplete() { @JsonProperty(JSON_PROPERTY_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setComplete(Boolean complete) { + public void setComplete(@jakarta.annotation.Nullable Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/OuterComposite.java index 33f1a77c2e65..b7dde9d22d2e 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -37,18 +37,21 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; + @jakarta.annotation.Nullable private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; + @jakarta.annotation.Nullable private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; + @jakarta.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } - public OuterComposite myNumber(BigDecimal myNumber) { + public OuterComposite myNumber(@jakarta.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; @@ -71,11 +74,11 @@ public BigDecimal getMyNumber() { @JsonProperty(JSON_PROPERTY_MY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyNumber(BigDecimal myNumber) { + public void setMyNumber(@jakarta.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; } - public OuterComposite myString(String myString) { + public OuterComposite myString(@jakarta.annotation.Nullable String myString) { this.myString = myString; return this; @@ -97,11 +100,11 @@ public String getMyString() { @JsonProperty(JSON_PROPERTY_MY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyString(String myString) { + public void setMyString(@jakarta.annotation.Nullable String myString) { this.myString = myString; } - public OuterComposite myBoolean(Boolean myBoolean) { + public OuterComposite myBoolean(@jakarta.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; return this; @@ -123,7 +126,7 @@ public Boolean getMyBoolean() { @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyBoolean(Boolean myBoolean) { + public void setMyBoolean(@jakarta.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Pet.java index cc075ad35ab5..03e4942ba5c8 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Pet.java @@ -47,18 +47,23 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Pet { public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; + @jakarta.annotation.Nullable private Category category; public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; + @jakarta.annotation.Nonnull private Set photoUrls = new LinkedHashSet<>(); public static final String JSON_PROPERTY_TAGS = "tags"; + @jakarta.annotation.Nullable private List<@Valid Tag> tags = new ArrayList<>(); /** @@ -99,12 +104,13 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @jakarta.annotation.Nullable private StatusEnum status; public Pet() { } - public Pet id(Long id) { + public Pet id(@jakarta.annotation.Nullable Long id) { this.id = id; return this; @@ -126,11 +132,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@jakarta.annotation.Nullable Category category) { this.category = category; return this; @@ -153,11 +159,11 @@ public Category getCategory() { @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCategory(Category category) { + public void setCategory(@jakarta.annotation.Nullable Category category) { this.category = category; } - public Pet name(String name) { + public Pet name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; @@ -180,11 +186,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public Pet photoUrls(Set photoUrls) { + public Pet photoUrls(@jakarta.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; return this; @@ -216,11 +222,11 @@ public Set getPhotoUrls() { @JsonDeserialize(as = LinkedHashSet.class) @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPhotoUrls(Set photoUrls) { + public void setPhotoUrls(@jakarta.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; } - public Pet tags(List<@Valid Tag> tags) { + public Pet tags(@jakarta.annotation.Nullable List<@Valid Tag> tags) { this.tags = tags; return this; @@ -251,11 +257,11 @@ public Pet addTagsItem(Tag tagsItem) { @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTags(List<@Valid Tag> tags) { + public void setTags(@jakarta.annotation.Nullable List<@Valid Tag> tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -277,7 +283,7 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 79aeea6b517b..a5fb1cd5b008 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -35,9 +35,11 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; + @jakarta.annotation.Nullable private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; + @jakarta.annotation.Nullable private String baz; public ReadOnlyFirst() { @@ -68,7 +70,7 @@ public String getBar() { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@jakarta.annotation.Nullable String baz) { this.baz = baz; return this; @@ -90,7 +92,7 @@ public String getBaz() { @JsonProperty(JSON_PROPERTY_BAZ) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBaz(String baz) { + public void setBaz(@jakarta.annotation.Nullable String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/SpecialModelName.java index f09d2f541287..362dc7505241 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -35,12 +35,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; + @jakarta.annotation.Nullable private Long $specialPropertyName; public SpecialModelName() { } - public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + public SpecialModelName $specialPropertyName(@jakarta.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; return this; @@ -62,7 +63,7 @@ public SpecialModelName() { @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void set$SpecialPropertyName(Long $specialPropertyName) { + public void set$SpecialPropertyName(@jakarta.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Tag.java index 3ac779c6b30c..7547dcc5c096 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Tag.java @@ -35,15 +35,17 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Tag { public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private String name; public Tag() { } - public Tag id(Long id) { + public Tag id(@jakarta.annotation.Nullable Long id) { this.id = id; return this; @@ -65,11 +67,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@jakarta.annotation.Nullable String name) { this.name = name; return this; @@ -91,7 +93,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index 4d667cda5821..9c102828cd48 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -42,24 +42,29 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class TypeHolderDefault { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; + @jakarta.annotation.Nonnull private String stringItem = "what"; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; + @jakarta.annotation.Nonnull private BigDecimal numberItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; + @jakarta.annotation.Nonnull private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; + @jakarta.annotation.Nonnull private Boolean boolItem = true; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; + @jakarta.annotation.Nonnull private List arrayItem = new ArrayList<>(); public TypeHolderDefault() { } - public TypeHolderDefault stringItem(String stringItem) { + public TypeHolderDefault stringItem(@jakarta.annotation.Nonnull String stringItem) { this.stringItem = stringItem; return this; @@ -82,11 +87,11 @@ public String getStringItem() { @JsonProperty(JSON_PROPERTY_STRING_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStringItem(String stringItem) { + public void setStringItem(@jakarta.annotation.Nonnull String stringItem) { this.stringItem = stringItem; } - public TypeHolderDefault numberItem(BigDecimal numberItem) { + public TypeHolderDefault numberItem(@jakarta.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; return this; @@ -110,11 +115,11 @@ public BigDecimal getNumberItem() { @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNumberItem(BigDecimal numberItem) { + public void setNumberItem(@jakarta.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; } - public TypeHolderDefault integerItem(Integer integerItem) { + public TypeHolderDefault integerItem(@jakarta.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; return this; @@ -137,11 +142,11 @@ public Integer getIntegerItem() { @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setIntegerItem(Integer integerItem) { + public void setIntegerItem(@jakarta.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; } - public TypeHolderDefault boolItem(Boolean boolItem) { + public TypeHolderDefault boolItem(@jakarta.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; return this; @@ -164,11 +169,11 @@ public Boolean getBoolItem() { @JsonProperty(JSON_PROPERTY_BOOL_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBoolItem(Boolean boolItem) { + public void setBoolItem(@jakarta.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; } - public TypeHolderDefault arrayItem(List arrayItem) { + public TypeHolderDefault arrayItem(@jakarta.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; return this; @@ -199,7 +204,7 @@ public List getArrayItem() { @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setArrayItem(List arrayItem) { + public void setArrayItem(@jakarta.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/TypeHolderExample.java index 71e47b3c0f5e..e0cf3dcf7e03 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -43,27 +43,33 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class TypeHolderExample { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; + @jakarta.annotation.Nonnull private String stringItem; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; + @jakarta.annotation.Nonnull private BigDecimal numberItem; public static final String JSON_PROPERTY_FLOAT_ITEM = "float_item"; + @jakarta.annotation.Nonnull private Float floatItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; + @jakarta.annotation.Nonnull private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; + @jakarta.annotation.Nonnull private Boolean boolItem; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; + @jakarta.annotation.Nonnull private List arrayItem = new ArrayList<>(); public TypeHolderExample() { } - public TypeHolderExample stringItem(String stringItem) { + public TypeHolderExample stringItem(@jakarta.annotation.Nonnull String stringItem) { this.stringItem = stringItem; return this; @@ -86,11 +92,11 @@ public String getStringItem() { @JsonProperty(JSON_PROPERTY_STRING_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStringItem(String stringItem) { + public void setStringItem(@jakarta.annotation.Nonnull String stringItem) { this.stringItem = stringItem; } - public TypeHolderExample numberItem(BigDecimal numberItem) { + public TypeHolderExample numberItem(@jakarta.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; return this; @@ -114,11 +120,11 @@ public BigDecimal getNumberItem() { @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNumberItem(BigDecimal numberItem) { + public void setNumberItem(@jakarta.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; } - public TypeHolderExample floatItem(Float floatItem) { + public TypeHolderExample floatItem(@jakarta.annotation.Nonnull Float floatItem) { this.floatItem = floatItem; return this; @@ -141,11 +147,11 @@ public Float getFloatItem() { @JsonProperty(JSON_PROPERTY_FLOAT_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFloatItem(Float floatItem) { + public void setFloatItem(@jakarta.annotation.Nonnull Float floatItem) { this.floatItem = floatItem; } - public TypeHolderExample integerItem(Integer integerItem) { + public TypeHolderExample integerItem(@jakarta.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; return this; @@ -168,11 +174,11 @@ public Integer getIntegerItem() { @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setIntegerItem(Integer integerItem) { + public void setIntegerItem(@jakarta.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; } - public TypeHolderExample boolItem(Boolean boolItem) { + public TypeHolderExample boolItem(@jakarta.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; return this; @@ -195,11 +201,11 @@ public Boolean getBoolItem() { @JsonProperty(JSON_PROPERTY_BOOL_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBoolItem(Boolean boolItem) { + public void setBoolItem(@jakarta.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; } - public TypeHolderExample arrayItem(List arrayItem) { + public TypeHolderExample arrayItem(@jakarta.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; return this; @@ -230,7 +236,7 @@ public List getArrayItem() { @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setArrayItem(List arrayItem) { + public void setArrayItem(@jakarta.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/User.java index 6788e257183d..3baf1f525703 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/User.java @@ -41,33 +41,41 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class User { public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; + @jakarta.annotation.Nullable private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; + @jakarta.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; + @jakarta.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; + @jakarta.annotation.Nullable private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; + @jakarta.annotation.Nullable private String password; public static final String JSON_PROPERTY_PHONE = "phone"; + @jakarta.annotation.Nullable private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; + @jakarta.annotation.Nullable private Integer userStatus; public User() { } - public User id(Long id) { + public User id(@jakarta.annotation.Nullable Long id) { this.id = id; return this; @@ -89,11 +97,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@jakarta.annotation.Nullable String username) { this.username = username; return this; @@ -115,11 +123,11 @@ public String getUsername() { @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsername(String username) { + public void setUsername(@jakarta.annotation.Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@jakarta.annotation.Nullable String firstName) { this.firstName = firstName; return this; @@ -141,11 +149,11 @@ public String getFirstName() { @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFirstName(String firstName) { + public void setFirstName(@jakarta.annotation.Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@jakarta.annotation.Nullable String lastName) { this.lastName = lastName; return this; @@ -167,11 +175,11 @@ public String getLastName() { @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLastName(String lastName) { + public void setLastName(@jakarta.annotation.Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@jakarta.annotation.Nullable String email) { this.email = email; return this; @@ -193,11 +201,11 @@ public String getEmail() { @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEmail(String email) { + public void setEmail(@jakarta.annotation.Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@jakarta.annotation.Nullable String password) { this.password = password; return this; @@ -219,11 +227,11 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPassword(String password) { + public void setPassword(@jakarta.annotation.Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@jakarta.annotation.Nullable String phone) { this.phone = phone; return this; @@ -245,11 +253,11 @@ public String getPhone() { @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPhone(String phone) { + public void setPhone(@jakarta.annotation.Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@jakarta.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; return this; @@ -271,7 +279,7 @@ public Integer getUserStatus() { @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@jakarta.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/XmlItem.java index 1295eac54c8f..d609f90868f4 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/XmlItem.java @@ -66,96 +66,125 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class XmlItem { public static final String JSON_PROPERTY_ATTRIBUTE_STRING = "attribute_string"; + @jakarta.annotation.Nullable private String attributeString; public static final String JSON_PROPERTY_ATTRIBUTE_NUMBER = "attribute_number"; + @jakarta.annotation.Nullable private BigDecimal attributeNumber; public static final String JSON_PROPERTY_ATTRIBUTE_INTEGER = "attribute_integer"; + @jakarta.annotation.Nullable private Integer attributeInteger; public static final String JSON_PROPERTY_ATTRIBUTE_BOOLEAN = "attribute_boolean"; + @jakarta.annotation.Nullable private Boolean attributeBoolean; public static final String JSON_PROPERTY_WRAPPED_ARRAY = "wrapped_array"; + @jakarta.annotation.Nullable private List wrappedArray = new ArrayList<>(); public static final String JSON_PROPERTY_NAME_STRING = "name_string"; + @jakarta.annotation.Nullable private String nameString; public static final String JSON_PROPERTY_NAME_NUMBER = "name_number"; + @jakarta.annotation.Nullable private BigDecimal nameNumber; public static final String JSON_PROPERTY_NAME_INTEGER = "name_integer"; + @jakarta.annotation.Nullable private Integer nameInteger; public static final String JSON_PROPERTY_NAME_BOOLEAN = "name_boolean"; + @jakarta.annotation.Nullable private Boolean nameBoolean; public static final String JSON_PROPERTY_NAME_ARRAY = "name_array"; + @jakarta.annotation.Nullable private List nameArray = new ArrayList<>(); public static final String JSON_PROPERTY_NAME_WRAPPED_ARRAY = "name_wrapped_array"; + @jakarta.annotation.Nullable private List nameWrappedArray = new ArrayList<>(); public static final String JSON_PROPERTY_PREFIX_STRING = "prefix_string"; + @jakarta.annotation.Nullable private String prefixString; public static final String JSON_PROPERTY_PREFIX_NUMBER = "prefix_number"; + @jakarta.annotation.Nullable private BigDecimal prefixNumber; public static final String JSON_PROPERTY_PREFIX_INTEGER = "prefix_integer"; + @jakarta.annotation.Nullable private Integer prefixInteger; public static final String JSON_PROPERTY_PREFIX_BOOLEAN = "prefix_boolean"; + @jakarta.annotation.Nullable private Boolean prefixBoolean; public static final String JSON_PROPERTY_PREFIX_ARRAY = "prefix_array"; + @jakarta.annotation.Nullable private List prefixArray = new ArrayList<>(); public static final String JSON_PROPERTY_PREFIX_WRAPPED_ARRAY = "prefix_wrapped_array"; + @jakarta.annotation.Nullable private List prefixWrappedArray = new ArrayList<>(); public static final String JSON_PROPERTY_NAMESPACE_STRING = "namespace_string"; + @jakarta.annotation.Nullable private String namespaceString; public static final String JSON_PROPERTY_NAMESPACE_NUMBER = "namespace_number"; + @jakarta.annotation.Nullable private BigDecimal namespaceNumber; public static final String JSON_PROPERTY_NAMESPACE_INTEGER = "namespace_integer"; + @jakarta.annotation.Nullable private Integer namespaceInteger; public static final String JSON_PROPERTY_NAMESPACE_BOOLEAN = "namespace_boolean"; + @jakarta.annotation.Nullable private Boolean namespaceBoolean; public static final String JSON_PROPERTY_NAMESPACE_ARRAY = "namespace_array"; + @jakarta.annotation.Nullable private List namespaceArray = new ArrayList<>(); public static final String JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY = "namespace_wrapped_array"; + @jakarta.annotation.Nullable private List namespaceWrappedArray = new ArrayList<>(); public static final String JSON_PROPERTY_PREFIX_NS_STRING = "prefix_ns_string"; + @jakarta.annotation.Nullable private String prefixNsString; public static final String JSON_PROPERTY_PREFIX_NS_NUMBER = "prefix_ns_number"; + @jakarta.annotation.Nullable private BigDecimal prefixNsNumber; public static final String JSON_PROPERTY_PREFIX_NS_INTEGER = "prefix_ns_integer"; + @jakarta.annotation.Nullable private Integer prefixNsInteger; public static final String JSON_PROPERTY_PREFIX_NS_BOOLEAN = "prefix_ns_boolean"; + @jakarta.annotation.Nullable private Boolean prefixNsBoolean; public static final String JSON_PROPERTY_PREFIX_NS_ARRAY = "prefix_ns_array"; + @jakarta.annotation.Nullable private List prefixNsArray = new ArrayList<>(); public static final String JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY = "prefix_ns_wrapped_array"; + @jakarta.annotation.Nullable private List prefixNsWrappedArray = new ArrayList<>(); public XmlItem() { } - public XmlItem attributeString(String attributeString) { + public XmlItem attributeString(@jakarta.annotation.Nullable String attributeString) { this.attributeString = attributeString; return this; @@ -177,11 +206,11 @@ public String getAttributeString() { @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttributeString(String attributeString) { + public void setAttributeString(@jakarta.annotation.Nullable String attributeString) { this.attributeString = attributeString; } - public XmlItem attributeNumber(BigDecimal attributeNumber) { + public XmlItem attributeNumber(@jakarta.annotation.Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; return this; @@ -204,11 +233,11 @@ public BigDecimal getAttributeNumber() { @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttributeNumber(BigDecimal attributeNumber) { + public void setAttributeNumber(@jakarta.annotation.Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } - public XmlItem attributeInteger(Integer attributeInteger) { + public XmlItem attributeInteger(@jakarta.annotation.Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; return this; @@ -230,11 +259,11 @@ public Integer getAttributeInteger() { @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttributeInteger(Integer attributeInteger) { + public void setAttributeInteger(@jakarta.annotation.Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; } - public XmlItem attributeBoolean(Boolean attributeBoolean) { + public XmlItem attributeBoolean(@jakarta.annotation.Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; return this; @@ -256,11 +285,11 @@ public Boolean getAttributeBoolean() { @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttributeBoolean(Boolean attributeBoolean) { + public void setAttributeBoolean(@jakarta.annotation.Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } - public XmlItem wrappedArray(List wrappedArray) { + public XmlItem wrappedArray(@jakarta.annotation.Nullable List wrappedArray) { this.wrappedArray = wrappedArray; return this; @@ -290,11 +319,11 @@ public List getWrappedArray() { @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWrappedArray(List wrappedArray) { + public void setWrappedArray(@jakarta.annotation.Nullable List wrappedArray) { this.wrappedArray = wrappedArray; } - public XmlItem nameString(String nameString) { + public XmlItem nameString(@jakarta.annotation.Nullable String nameString) { this.nameString = nameString; return this; @@ -316,11 +345,11 @@ public String getNameString() { @JsonProperty(JSON_PROPERTY_NAME_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameString(String nameString) { + public void setNameString(@jakarta.annotation.Nullable String nameString) { this.nameString = nameString; } - public XmlItem nameNumber(BigDecimal nameNumber) { + public XmlItem nameNumber(@jakarta.annotation.Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; return this; @@ -343,11 +372,11 @@ public BigDecimal getNameNumber() { @JsonProperty(JSON_PROPERTY_NAME_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameNumber(BigDecimal nameNumber) { + public void setNameNumber(@jakarta.annotation.Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; } - public XmlItem nameInteger(Integer nameInteger) { + public XmlItem nameInteger(@jakarta.annotation.Nullable Integer nameInteger) { this.nameInteger = nameInteger; return this; @@ -369,11 +398,11 @@ public Integer getNameInteger() { @JsonProperty(JSON_PROPERTY_NAME_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameInteger(Integer nameInteger) { + public void setNameInteger(@jakarta.annotation.Nullable Integer nameInteger) { this.nameInteger = nameInteger; } - public XmlItem nameBoolean(Boolean nameBoolean) { + public XmlItem nameBoolean(@jakarta.annotation.Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; return this; @@ -395,11 +424,11 @@ public Boolean getNameBoolean() { @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameBoolean(Boolean nameBoolean) { + public void setNameBoolean(@jakarta.annotation.Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; } - public XmlItem nameArray(List nameArray) { + public XmlItem nameArray(@jakarta.annotation.Nullable List nameArray) { this.nameArray = nameArray; return this; @@ -429,11 +458,11 @@ public List getNameArray() { @JsonProperty(JSON_PROPERTY_NAME_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameArray(List nameArray) { + public void setNameArray(@jakarta.annotation.Nullable List nameArray) { this.nameArray = nameArray; } - public XmlItem nameWrappedArray(List nameWrappedArray) { + public XmlItem nameWrappedArray(@jakarta.annotation.Nullable List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; return this; @@ -463,11 +492,11 @@ public List getNameWrappedArray() { @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameWrappedArray(List nameWrappedArray) { + public void setNameWrappedArray(@jakarta.annotation.Nullable List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } - public XmlItem prefixString(String prefixString) { + public XmlItem prefixString(@jakarta.annotation.Nullable String prefixString) { this.prefixString = prefixString; return this; @@ -489,11 +518,11 @@ public String getPrefixString() { @JsonProperty(JSON_PROPERTY_PREFIX_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixString(String prefixString) { + public void setPrefixString(@jakarta.annotation.Nullable String prefixString) { this.prefixString = prefixString; } - public XmlItem prefixNumber(BigDecimal prefixNumber) { + public XmlItem prefixNumber(@jakarta.annotation.Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; return this; @@ -516,11 +545,11 @@ public BigDecimal getPrefixNumber() { @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNumber(BigDecimal prefixNumber) { + public void setPrefixNumber(@jakarta.annotation.Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } - public XmlItem prefixInteger(Integer prefixInteger) { + public XmlItem prefixInteger(@jakarta.annotation.Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; return this; @@ -542,11 +571,11 @@ public Integer getPrefixInteger() { @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixInteger(Integer prefixInteger) { + public void setPrefixInteger(@jakarta.annotation.Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; } - public XmlItem prefixBoolean(Boolean prefixBoolean) { + public XmlItem prefixBoolean(@jakarta.annotation.Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; return this; @@ -568,11 +597,11 @@ public Boolean getPrefixBoolean() { @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixBoolean(Boolean prefixBoolean) { + public void setPrefixBoolean(@jakarta.annotation.Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } - public XmlItem prefixArray(List prefixArray) { + public XmlItem prefixArray(@jakarta.annotation.Nullable List prefixArray) { this.prefixArray = prefixArray; return this; @@ -602,11 +631,11 @@ public List getPrefixArray() { @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixArray(List prefixArray) { + public void setPrefixArray(@jakarta.annotation.Nullable List prefixArray) { this.prefixArray = prefixArray; } - public XmlItem prefixWrappedArray(List prefixWrappedArray) { + public XmlItem prefixWrappedArray(@jakarta.annotation.Nullable List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; return this; @@ -636,11 +665,11 @@ public List getPrefixWrappedArray() { @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixWrappedArray(List prefixWrappedArray) { + public void setPrefixWrappedArray(@jakarta.annotation.Nullable List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem namespaceString(String namespaceString) { + public XmlItem namespaceString(@jakarta.annotation.Nullable String namespaceString) { this.namespaceString = namespaceString; return this; @@ -662,11 +691,11 @@ public String getNamespaceString() { @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNamespaceString(String namespaceString) { + public void setNamespaceString(@jakarta.annotation.Nullable String namespaceString) { this.namespaceString = namespaceString; } - public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + public XmlItem namespaceNumber(@jakarta.annotation.Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; return this; @@ -689,11 +718,11 @@ public BigDecimal getNamespaceNumber() { @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNamespaceNumber(BigDecimal namespaceNumber) { + public void setNamespaceNumber(@jakarta.annotation.Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } - public XmlItem namespaceInteger(Integer namespaceInteger) { + public XmlItem namespaceInteger(@jakarta.annotation.Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; return this; @@ -715,11 +744,11 @@ public Integer getNamespaceInteger() { @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNamespaceInteger(Integer namespaceInteger) { + public void setNamespaceInteger(@jakarta.annotation.Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } - public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + public XmlItem namespaceBoolean(@jakarta.annotation.Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; return this; @@ -741,11 +770,11 @@ public Boolean getNamespaceBoolean() { @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNamespaceBoolean(Boolean namespaceBoolean) { + public void setNamespaceBoolean(@jakarta.annotation.Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } - public XmlItem namespaceArray(List namespaceArray) { + public XmlItem namespaceArray(@jakarta.annotation.Nullable List namespaceArray) { this.namespaceArray = namespaceArray; return this; @@ -775,11 +804,11 @@ public List getNamespaceArray() { @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNamespaceArray(List namespaceArray) { + public void setNamespaceArray(@jakarta.annotation.Nullable List namespaceArray) { this.namespaceArray = namespaceArray; } - public XmlItem namespaceWrappedArray(List namespaceWrappedArray) { + public XmlItem namespaceWrappedArray(@jakarta.annotation.Nullable List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; return this; @@ -809,11 +838,11 @@ public List getNamespaceWrappedArray() { @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNamespaceWrappedArray(List namespaceWrappedArray) { + public void setNamespaceWrappedArray(@jakarta.annotation.Nullable List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem prefixNsString(String prefixNsString) { + public XmlItem prefixNsString(@jakarta.annotation.Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; @@ -835,11 +864,11 @@ public String getPrefixNsString() { @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNsString(String prefixNsString) { + public void setPrefixNsString(@jakarta.annotation.Nullable String prefixNsString) { this.prefixNsString = prefixNsString; } - public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + public XmlItem prefixNsNumber(@jakarta.annotation.Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; return this; @@ -862,11 +891,11 @@ public BigDecimal getPrefixNsNumber() { @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNsNumber(BigDecimal prefixNsNumber) { + public void setPrefixNsNumber(@jakarta.annotation.Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } - public XmlItem prefixNsInteger(Integer prefixNsInteger) { + public XmlItem prefixNsInteger(@jakarta.annotation.Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; return this; @@ -888,11 +917,11 @@ public Integer getPrefixNsInteger() { @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNsInteger(Integer prefixNsInteger) { + public void setPrefixNsInteger(@jakarta.annotation.Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } - public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + public XmlItem prefixNsBoolean(@jakarta.annotation.Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; return this; @@ -914,11 +943,11 @@ public Boolean getPrefixNsBoolean() { @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNsBoolean(Boolean prefixNsBoolean) { + public void setPrefixNsBoolean(@jakarta.annotation.Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } - public XmlItem prefixNsArray(List prefixNsArray) { + public XmlItem prefixNsArray(@jakarta.annotation.Nullable List prefixNsArray) { this.prefixNsArray = prefixNsArray; return this; @@ -948,11 +977,11 @@ public List getPrefixNsArray() { @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNsArray(List prefixNsArray) { + public void setPrefixNsArray(@jakarta.annotation.Nullable List prefixNsArray) { this.prefixNsArray = prefixNsArray; } - public XmlItem prefixNsWrappedArray(List prefixNsWrappedArray) { + public XmlItem prefixNsWrappedArray(@jakarta.annotation.Nullable List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; return this; @@ -982,7 +1011,7 @@ public List getPrefixNsWrappedArray() { @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { + public void setPrefixNsWrappedArray(@jakarta.annotation.Nullable List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index e7b80103a303..93be22f7b226 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -31,13 +31,14 @@ public class AdditionalPropertiesAnyType extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public AdditionalPropertiesAnyType() { } - public AdditionalPropertiesAnyType name(String name) { + public AdditionalPropertiesAnyType name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -54,7 +55,7 @@ public String getName() { } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index f777f015754c..ba8ed9b868d3 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -32,13 +32,14 @@ public class AdditionalPropertiesArray extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public AdditionalPropertiesArray() { } - public AdditionalPropertiesArray name(String name) { + public AdditionalPropertiesArray name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -55,7 +56,7 @@ public String getName() { } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index af2f4c14370a..dde2af1e44b4 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -31,13 +31,14 @@ public class AdditionalPropertiesBoolean extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public AdditionalPropertiesBoolean() { } - public AdditionalPropertiesBoolean name(String name) { + public AdditionalPropertiesBoolean name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -54,7 +55,7 @@ public String getName() { } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index dd80ea6e3bb8..1a1936e37860 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -33,52 +33,63 @@ public class AdditionalPropertiesClass { public static final String SERIALIZED_NAME_MAP_STRING = "map_string"; @SerializedName(SERIALIZED_NAME_MAP_STRING) + @javax.annotation.Nullable private Map mapString = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_NUMBER = "map_number"; @SerializedName(SERIALIZED_NAME_MAP_NUMBER) + @javax.annotation.Nullable private Map mapNumber = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_INTEGER = "map_integer"; @SerializedName(SERIALIZED_NAME_MAP_INTEGER) + @javax.annotation.Nullable private Map mapInteger = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_BOOLEAN = "map_boolean"; @SerializedName(SERIALIZED_NAME_MAP_BOOLEAN) + @javax.annotation.Nullable private Map mapBoolean = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_ARRAY_INTEGER = "map_array_integer"; @SerializedName(SERIALIZED_NAME_MAP_ARRAY_INTEGER) + @javax.annotation.Nullable private Map> mapArrayInteger = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_ARRAY_ANYTYPE = "map_array_anytype"; @SerializedName(SERIALIZED_NAME_MAP_ARRAY_ANYTYPE) + @javax.annotation.Nullable private Map> mapArrayAnytype = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_MAP_STRING = "map_map_string"; @SerializedName(SERIALIZED_NAME_MAP_MAP_STRING) + @javax.annotation.Nullable private Map> mapMapString = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_MAP_ANYTYPE = "map_map_anytype"; @SerializedName(SERIALIZED_NAME_MAP_MAP_ANYTYPE) + @javax.annotation.Nullable private Map> mapMapAnytype = new HashMap<>(); public static final String SERIALIZED_NAME_ANYTYPE1 = "anytype_1"; @SerializedName(SERIALIZED_NAME_ANYTYPE1) + @javax.annotation.Nullable private Object anytype1; public static final String SERIALIZED_NAME_ANYTYPE2 = "anytype_2"; @SerializedName(SERIALIZED_NAME_ANYTYPE2) + @javax.annotation.Nullable private Object anytype2; public static final String SERIALIZED_NAME_ANYTYPE3 = "anytype_3"; @SerializedName(SERIALIZED_NAME_ANYTYPE3) + @javax.annotation.Nullable private Object anytype3; public AdditionalPropertiesClass() { } - public AdditionalPropertiesClass mapString(Map mapString) { + public AdditionalPropertiesClass mapString(@javax.annotation.Nullable Map mapString) { this.mapString = mapString; return this; @@ -103,11 +114,11 @@ public Map getMapString() { } - public void setMapString(Map mapString) { + public void setMapString(@javax.annotation.Nullable Map mapString) { this.mapString = mapString; } - public AdditionalPropertiesClass mapNumber(Map mapNumber) { + public AdditionalPropertiesClass mapNumber(@javax.annotation.Nullable Map mapNumber) { this.mapNumber = mapNumber; return this; @@ -132,11 +143,11 @@ public Map getMapNumber() { } - public void setMapNumber(Map mapNumber) { + public void setMapNumber(@javax.annotation.Nullable Map mapNumber) { this.mapNumber = mapNumber; } - public AdditionalPropertiesClass mapInteger(Map mapInteger) { + public AdditionalPropertiesClass mapInteger(@javax.annotation.Nullable Map mapInteger) { this.mapInteger = mapInteger; return this; @@ -161,11 +172,11 @@ public Map getMapInteger() { } - public void setMapInteger(Map mapInteger) { + public void setMapInteger(@javax.annotation.Nullable Map mapInteger) { this.mapInteger = mapInteger; } - public AdditionalPropertiesClass mapBoolean(Map mapBoolean) { + public AdditionalPropertiesClass mapBoolean(@javax.annotation.Nullable Map mapBoolean) { this.mapBoolean = mapBoolean; return this; @@ -190,11 +201,11 @@ public Map getMapBoolean() { } - public void setMapBoolean(Map mapBoolean) { + public void setMapBoolean(@javax.annotation.Nullable Map mapBoolean) { this.mapBoolean = mapBoolean; } - public AdditionalPropertiesClass mapArrayInteger(Map> mapArrayInteger) { + public AdditionalPropertiesClass mapArrayInteger(@javax.annotation.Nullable Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; return this; @@ -219,11 +230,11 @@ public Map> getMapArrayInteger() { } - public void setMapArrayInteger(Map> mapArrayInteger) { + public void setMapArrayInteger(@javax.annotation.Nullable Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; } - public AdditionalPropertiesClass mapArrayAnytype(Map> mapArrayAnytype) { + public AdditionalPropertiesClass mapArrayAnytype(@javax.annotation.Nullable Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; return this; @@ -248,11 +259,11 @@ public Map> getMapArrayAnytype() { } - public void setMapArrayAnytype(Map> mapArrayAnytype) { + public void setMapArrayAnytype(@javax.annotation.Nullable Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; } - public AdditionalPropertiesClass mapMapString(Map> mapMapString) { + public AdditionalPropertiesClass mapMapString(@javax.annotation.Nullable Map> mapMapString) { this.mapMapString = mapMapString; return this; @@ -277,11 +288,11 @@ public Map> getMapMapString() { } - public void setMapMapString(Map> mapMapString) { + public void setMapMapString(@javax.annotation.Nullable Map> mapMapString) { this.mapMapString = mapMapString; } - public AdditionalPropertiesClass mapMapAnytype(Map> mapMapAnytype) { + public AdditionalPropertiesClass mapMapAnytype(@javax.annotation.Nullable Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; return this; @@ -306,11 +317,11 @@ public Map> getMapMapAnytype() { } - public void setMapMapAnytype(Map> mapMapAnytype) { + public void setMapMapAnytype(@javax.annotation.Nullable Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@javax.annotation.Nullable Object anytype1) { this.anytype1 = anytype1; return this; @@ -327,11 +338,11 @@ public Object getAnytype1() { } - public void setAnytype1(Object anytype1) { + public void setAnytype1(@javax.annotation.Nullable Object anytype1) { this.anytype1 = anytype1; } - public AdditionalPropertiesClass anytype2(Object anytype2) { + public AdditionalPropertiesClass anytype2(@javax.annotation.Nullable Object anytype2) { this.anytype2 = anytype2; return this; @@ -348,11 +359,11 @@ public Object getAnytype2() { } - public void setAnytype2(Object anytype2) { + public void setAnytype2(@javax.annotation.Nullable Object anytype2) { this.anytype2 = anytype2; } - public AdditionalPropertiesClass anytype3(Object anytype3) { + public AdditionalPropertiesClass anytype3(@javax.annotation.Nullable Object anytype3) { this.anytype3 = anytype3; return this; @@ -369,7 +380,7 @@ public Object getAnytype3() { } - public void setAnytype3(Object anytype3) { + public void setAnytype3(@javax.annotation.Nullable Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 976c09c61efe..92b4010fac52 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -31,13 +31,14 @@ public class AdditionalPropertiesInteger extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public AdditionalPropertiesInteger() { } - public AdditionalPropertiesInteger name(String name) { + public AdditionalPropertiesInteger name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -54,7 +55,7 @@ public String getName() { } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index 8ba8607b7d89..a54006b4d24b 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -32,13 +32,14 @@ public class AdditionalPropertiesNumber extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public AdditionalPropertiesNumber() { } - public AdditionalPropertiesNumber name(String name) { + public AdditionalPropertiesNumber name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -55,7 +56,7 @@ public String getName() { } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index 64f68e63ba85..219f09a397d3 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -31,13 +31,14 @@ public class AdditionalPropertiesObject extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public AdditionalPropertiesObject() { } - public AdditionalPropertiesObject name(String name) { + public AdditionalPropertiesObject name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -54,7 +55,7 @@ public String getName() { } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 47a24dd8f6d9..b537782f59b7 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -31,13 +31,14 @@ public class AdditionalPropertiesString extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public AdditionalPropertiesString() { } - public AdditionalPropertiesString name(String name) { + public AdditionalPropertiesString name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -54,7 +55,7 @@ public String getName() { } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Animal.java index ab37c80583b5..6abf36113f67 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Animal.java @@ -29,16 +29,18 @@ public class Animal { public static final String SERIALIZED_NAME_CLASS_NAME = "className"; @SerializedName(SERIALIZED_NAME_CLASS_NAME) + @javax.annotation.Nonnull protected String className; public static final String SERIALIZED_NAME_COLOR = "color"; @SerializedName(SERIALIZED_NAME_COLOR) + @javax.annotation.Nullable protected String color = "red"; public Animal() { } - public Animal className(String className) { + public Animal className(@javax.annotation.Nonnull String className) { this.className = className; return this; @@ -55,11 +57,11 @@ public String getClassName() { } - public void setClassName(String className) { + public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; } - public Animal color(String color) { + public Animal color(@javax.annotation.Nullable String color) { this.color = color; return this; @@ -76,7 +78,7 @@ public String getColor() { } - public void setColor(String color) { + public void setColor(@javax.annotation.Nullable String color) { this.color = color; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 31b2fa2b5141..b137a3883b1e 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -33,12 +33,13 @@ public class ArrayOfArrayOfNumberOnly { public static final String SERIALIZED_NAME_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_NUMBER) + @javax.annotation.Nullable private List> arrayArrayNumber = new ArrayList<>(); public ArrayOfArrayOfNumberOnly() { } - public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + public ArrayOfArrayOfNumberOnly arrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; return this; @@ -63,7 +64,7 @@ public List> getArrayArrayNumber() { } - public void setArrayArrayNumber(List> arrayArrayNumber) { + public void setArrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index f835685bb8eb..4a73ff868460 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -33,12 +33,13 @@ public class ArrayOfNumberOnly { public static final String SERIALIZED_NAME_ARRAY_NUMBER = "ArrayNumber"; @SerializedName(SERIALIZED_NAME_ARRAY_NUMBER) + @javax.annotation.Nullable private List arrayNumber = new ArrayList<>(); public ArrayOfNumberOnly() { } - public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + public ArrayOfNumberOnly arrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; return this; @@ -63,7 +64,7 @@ public List getArrayNumber() { } - public void setArrayNumber(List arrayNumber) { + public void setArrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ArrayTest.java index 6fbcf1b284b5..14b19f0f7976 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -33,20 +33,23 @@ public class ArrayTest { public static final String SERIALIZED_NAME_ARRAY_OF_STRING = "array_of_string"; @SerializedName(SERIALIZED_NAME_ARRAY_OF_STRING) + @javax.annotation.Nullable private List arrayOfString = new ArrayList<>(); public static final String SERIALIZED_NAME_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_OF_INTEGER) + @javax.annotation.Nullable private List> arrayArrayOfInteger = new ArrayList<>(); public static final String SERIALIZED_NAME_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_OF_MODEL) + @javax.annotation.Nullable private List> arrayArrayOfModel = new ArrayList<>(); public ArrayTest() { } - public ArrayTest arrayOfString(List arrayOfString) { + public ArrayTest arrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; return this; @@ -71,11 +74,11 @@ public List getArrayOfString() { } - public void setArrayOfString(List arrayOfString) { + public void setArrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; } - public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + public ArrayTest arrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; return this; @@ -100,11 +103,11 @@ public List> getArrayArrayOfInteger() { } - public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { + public void setArrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } - public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + public ArrayTest arrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; return this; @@ -129,7 +132,7 @@ public List> getArrayArrayOfModel() { } - public void setArrayArrayOfModel(List> arrayArrayOfModel) { + public void setArrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/BigCat.java index e6a37254cdd7..082ad2753011 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/BigCat.java @@ -81,13 +81,14 @@ public KindEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @javax.annotation.Nullable private KindEnum kind; public BigCat() { } - public BigCat kind(KindEnum kind) { + public BigCat kind(@javax.annotation.Nullable KindEnum kind) { this.kind = kind; return this; @@ -104,18 +105,18 @@ public KindEnum getKind() { } - public void setKind(KindEnum kind) { + public void setKind(@javax.annotation.Nullable KindEnum kind) { this.kind = kind; } @Override - public BigCat className(String className) { + public BigCat className(@javax.annotation.Nonnull String className) { this.setClassName(className); return this; } @Override - public BigCat color(String color) { + public BigCat color(@javax.annotation.Nullable String color) { this.setColor(color); return this; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Capitalization.java index 5b519c3a9b00..e48c13c1230a 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Capitalization.java @@ -29,32 +29,38 @@ public class Capitalization { public static final String SERIALIZED_NAME_SMALL_CAMEL = "smallCamel"; @SerializedName(SERIALIZED_NAME_SMALL_CAMEL) + @javax.annotation.Nullable private String smallCamel; public static final String SERIALIZED_NAME_CAPITAL_CAMEL = "CapitalCamel"; @SerializedName(SERIALIZED_NAME_CAPITAL_CAMEL) + @javax.annotation.Nullable private String capitalCamel; public static final String SERIALIZED_NAME_SMALL_SNAKE = "small_Snake"; @SerializedName(SERIALIZED_NAME_SMALL_SNAKE) + @javax.annotation.Nullable private String smallSnake; public static final String SERIALIZED_NAME_CAPITAL_SNAKE = "Capital_Snake"; @SerializedName(SERIALIZED_NAME_CAPITAL_SNAKE) + @javax.annotation.Nullable private String capitalSnake; public static final String SERIALIZED_NAME_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; @SerializedName(SERIALIZED_NAME_SC_A_E_T_H_FLOW_POINTS) + @javax.annotation.Nullable private String scAETHFlowPoints; public static final String SERIALIZED_NAME_A_T_T_N_A_M_E = "ATT_NAME"; @SerializedName(SERIALIZED_NAME_A_T_T_N_A_M_E) + @javax.annotation.Nullable private String ATT_NAME; public Capitalization() { } - public Capitalization smallCamel(String smallCamel) { + public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; return this; @@ -71,11 +77,11 @@ public String getSmallCamel() { } - public void setSmallCamel(String smallCamel) { + public void setSmallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; } - public Capitalization capitalCamel(String capitalCamel) { + public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; return this; @@ -92,11 +98,11 @@ public String getCapitalCamel() { } - public void setCapitalCamel(String capitalCamel) { + public void setCapitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; } - public Capitalization smallSnake(String smallSnake) { + public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; return this; @@ -113,11 +119,11 @@ public String getSmallSnake() { } - public void setSmallSnake(String smallSnake) { + public void setSmallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; } - public Capitalization capitalSnake(String capitalSnake) { + public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; return this; @@ -134,11 +140,11 @@ public String getCapitalSnake() { } - public void setCapitalSnake(String capitalSnake) { + public void setCapitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; } - public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; return this; @@ -155,11 +161,11 @@ public String getScAETHFlowPoints() { } - public void setScAETHFlowPoints(String scAETHFlowPoints) { + public void setScAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } - public Capitalization ATT_NAME(String ATT_NAME) { + public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; return this; @@ -176,7 +182,7 @@ public String getATTNAME() { } - public void setATTNAME(String ATT_NAME) { + public void setATTNAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Cat.java index 5a9da0422398..3c35bdebe454 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Cat.java @@ -30,13 +30,14 @@ public class Cat extends Animal { public static final String SERIALIZED_NAME_DECLAWED = "declawed"; @SerializedName(SERIALIZED_NAME_DECLAWED) + @javax.annotation.Nullable protected Boolean declawed; public Cat() { } - public Cat declawed(Boolean declawed) { + public Cat declawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; return this; @@ -53,18 +54,18 @@ public Boolean getDeclawed() { } - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; } @Override - public Cat className(String className) { + public Cat className(@javax.annotation.Nonnull String className) { this.setClassName(className); return this; } @Override - public Cat color(String color) { + public Cat color(@javax.annotation.Nullable String color) { this.setColor(color); return this; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Category.java index 0d1eb88408ac..98582ccc5bb9 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Category.java @@ -29,16 +29,18 @@ public class Category { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull private String name = "default-name"; public Category() { } - public Category id(Long id) { + public Category id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -55,11 +57,11 @@ public Long getId() { } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@javax.annotation.Nonnull String name) { this.name = name; return this; @@ -76,7 +78,7 @@ public String getName() { } - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ClassModel.java index aa8445ccfeb8..4d9537a52633 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ClassModel.java @@ -29,12 +29,13 @@ public class ClassModel { public static final String SERIALIZED_NAME_PROPERTY_CLASS = "_class"; @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) + @javax.annotation.Nullable private String propertyClass; public ClassModel() { } - public ClassModel propertyClass(String propertyClass) { + public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; @@ -51,7 +52,7 @@ public String getPropertyClass() { } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Client.java index 04ada677df70..db96c6445bef 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Client.java @@ -29,12 +29,13 @@ public class Client { public static final String SERIALIZED_NAME_CLIENT = "client"; @SerializedName(SERIALIZED_NAME_CLIENT) + @javax.annotation.Nullable private String client; public Client() { } - public Client client(String client) { + public Client client(@javax.annotation.Nullable String client) { this.client = client; return this; @@ -51,7 +52,7 @@ public String getClient() { } - public void setClient(String client) { + public void setClient(@javax.annotation.Nullable String client) { this.client = client; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Dog.java index 7e3a9d344cfd..4a8170f407ea 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Dog.java @@ -30,13 +30,14 @@ public class Dog extends Animal { public static final String SERIALIZED_NAME_BREED = "breed"; @SerializedName(SERIALIZED_NAME_BREED) + @javax.annotation.Nullable private String breed; public Dog() { } - public Dog breed(String breed) { + public Dog breed(@javax.annotation.Nullable String breed) { this.breed = breed; return this; @@ -53,18 +54,18 @@ public String getBreed() { } - public void setBreed(String breed) { + public void setBreed(@javax.annotation.Nullable String breed) { this.breed = breed; } @Override - public Dog className(String className) { + public Dog className(@javax.annotation.Nonnull String className) { this.setClassName(className); return this; } @Override - public Dog color(String color) { + public Dog color(@javax.annotation.Nullable String color) { this.setColor(color); return this; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/EnumArrays.java index ea03fa8eb58e..eb365689d66d 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -79,6 +79,7 @@ public JustSymbolEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_JUST_SYMBOL = "just_symbol"; @SerializedName(SERIALIZED_NAME_JUST_SYMBOL) + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** @@ -130,12 +131,13 @@ public ArrayEnumEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_ARRAY_ENUM = "array_enum"; @SerializedName(SERIALIZED_NAME_ARRAY_ENUM) + @javax.annotation.Nullable private List arrayEnum = new ArrayList<>(); public EnumArrays() { } - public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; @@ -152,11 +154,11 @@ public JustSymbolEnum getJustSymbol() { } - public void setJustSymbol(JustSymbolEnum justSymbol) { + public void setJustSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } - public EnumArrays arrayEnum(List arrayEnum) { + public EnumArrays arrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; return this; @@ -181,7 +183,7 @@ public List getArrayEnum() { } - public void setArrayEnum(List arrayEnum) { + public void setArrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/EnumTest.java index 7ae5e0b170b9..2f8dfe271b4c 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/EnumTest.java @@ -79,6 +79,7 @@ public EnumStringEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_ENUM_STRING = "enum_string"; @SerializedName(SERIALIZED_NAME_ENUM_STRING) + @javax.annotation.Nullable private EnumStringEnum enumString; /** @@ -132,6 +133,7 @@ public EnumStringRequiredEnum read(final JsonReader jsonReader) throws IOExcepti public static final String SERIALIZED_NAME_ENUM_STRING_REQUIRED = "enum_string_required"; @SerializedName(SERIALIZED_NAME_ENUM_STRING_REQUIRED) + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** @@ -183,6 +185,7 @@ public EnumIntegerEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_ENUM_INTEGER = "enum_integer"; @SerializedName(SERIALIZED_NAME_ENUM_INTEGER) + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** @@ -234,16 +237,18 @@ public EnumNumberEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_ENUM_NUMBER = "enum_number"; @SerializedName(SERIALIZED_NAME_ENUM_NUMBER) + @javax.annotation.Nullable private EnumNumberEnum enumNumber; public static final String SERIALIZED_NAME_OUTER_ENUM = "outerEnum"; @SerializedName(SERIALIZED_NAME_OUTER_ENUM) + @javax.annotation.Nullable private OuterEnum outerEnum; public EnumTest() { } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; @@ -260,11 +265,11 @@ public EnumStringEnum getEnumString() { } - public void setEnumString(EnumStringEnum enumString) { + public void setEnumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; } - public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; return this; @@ -281,11 +286,11 @@ public EnumStringRequiredEnum getEnumStringRequired() { } - public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public void setEnumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; @@ -302,11 +307,11 @@ public EnumIntegerEnum getEnumInteger() { } - public void setEnumInteger(EnumIntegerEnum enumInteger) { + public void setEnumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } - public EnumTest enumNumber(EnumNumberEnum enumNumber) { + public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; return this; @@ -323,11 +328,11 @@ public EnumNumberEnum getEnumNumber() { } - public void setEnumNumber(EnumNumberEnum enumNumber) { + public void setEnumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } - public EnumTest outerEnum(OuterEnum outerEnum) { + public EnumTest outerEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; return this; @@ -344,7 +349,7 @@ public OuterEnum getOuterEnum() { } - public void setOuterEnum(OuterEnum outerEnum) { + public void setOuterEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 3382b63f28c7..e117ea7b5bc3 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -33,16 +33,18 @@ public class FileSchemaTestClass { public static final String SERIALIZED_NAME_FILE = "file"; @SerializedName(SERIALIZED_NAME_FILE) + @javax.annotation.Nullable private ModelFile _file; public static final String SERIALIZED_NAME_FILES = "files"; @SerializedName(SERIALIZED_NAME_FILES) + @javax.annotation.Nullable private List files = new ArrayList<>(); public FileSchemaTestClass() { } - public FileSchemaTestClass _file(ModelFile _file) { + public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { this._file = _file; return this; @@ -59,11 +61,11 @@ public ModelFile getFile() { } - public void setFile(ModelFile _file) { + public void setFile(@javax.annotation.Nullable ModelFile _file) { this._file = _file; } - public FileSchemaTestClass files(List files) { + public FileSchemaTestClass files(@javax.annotation.Nullable List files) { this.files = files; return this; @@ -88,7 +90,7 @@ public List getFiles() { } - public void setFiles(List files) { + public void setFiles(@javax.annotation.Nullable List files) { this.files = files; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/FormatTest.java index 243e970f08e5..14a53b9107ca 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/FormatTest.java @@ -34,64 +34,78 @@ public class FormatTest { public static final String SERIALIZED_NAME_INTEGER = "integer"; @SerializedName(SERIALIZED_NAME_INTEGER) + @javax.annotation.Nullable private Integer integer; public static final String SERIALIZED_NAME_INT32 = "int32"; @SerializedName(SERIALIZED_NAME_INT32) + @javax.annotation.Nullable private Integer int32; public static final String SERIALIZED_NAME_INT64 = "int64"; @SerializedName(SERIALIZED_NAME_INT64) + @javax.annotation.Nullable private Long int64; public static final String SERIALIZED_NAME_NUMBER = "number"; @SerializedName(SERIALIZED_NAME_NUMBER) + @javax.annotation.Nonnull private BigDecimal number; public static final String SERIALIZED_NAME_FLOAT = "float"; @SerializedName(SERIALIZED_NAME_FLOAT) + @javax.annotation.Nullable private Float _float; public static final String SERIALIZED_NAME_DOUBLE = "double"; @SerializedName(SERIALIZED_NAME_DOUBLE) + @javax.annotation.Nullable private Double _double; public static final String SERIALIZED_NAME_STRING = "string"; @SerializedName(SERIALIZED_NAME_STRING) + @javax.annotation.Nullable private String string; public static final String SERIALIZED_NAME_BYTE = "byte"; @SerializedName(SERIALIZED_NAME_BYTE) + @javax.annotation.Nonnull private byte[] _byte; public static final String SERIALIZED_NAME_BINARY = "binary"; @SerializedName(SERIALIZED_NAME_BINARY) + @javax.annotation.Nullable private File binary; public static final String SERIALIZED_NAME_DATE = "date"; @SerializedName(SERIALIZED_NAME_DATE) + @javax.annotation.Nonnull private LocalDate date; public static final String SERIALIZED_NAME_DATE_TIME = "dateTime"; @SerializedName(SERIALIZED_NAME_DATE_TIME) + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) + @javax.annotation.Nullable private UUID uuid; public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) + @javax.annotation.Nonnull private String password; public static final String SERIALIZED_NAME_BIG_DECIMAL = "BigDecimal"; @SerializedName(SERIALIZED_NAME_BIG_DECIMAL) + @javax.annotation.Nullable private BigDecimal bigDecimal; public FormatTest() { } - public FormatTest integer(Integer integer) { + public FormatTest integer(@javax.annotation.Nullable Integer integer) { this.integer = integer; return this; @@ -110,11 +124,11 @@ public Integer getInteger() { } - public void setInteger(Integer integer) { + public void setInteger(@javax.annotation.Nullable Integer integer) { this.integer = integer; } - public FormatTest int32(Integer int32) { + public FormatTest int32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; return this; @@ -133,11 +147,11 @@ public Integer getInt32() { } - public void setInt32(Integer int32) { + public void setInt32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; } - public FormatTest int64(Long int64) { + public FormatTest int64(@javax.annotation.Nullable Long int64) { this.int64 = int64; return this; @@ -154,11 +168,11 @@ public Long getInt64() { } - public void setInt64(Long int64) { + public void setInt64(@javax.annotation.Nullable Long int64) { this.int64 = int64; } - public FormatTest number(BigDecimal number) { + public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { this.number = number; return this; @@ -177,11 +191,11 @@ public BigDecimal getNumber() { } - public void setNumber(BigDecimal number) { + public void setNumber(@javax.annotation.Nonnull BigDecimal number) { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@javax.annotation.Nullable Float _float) { this._float = _float; return this; @@ -200,11 +214,11 @@ public Float getFloat() { } - public void setFloat(Float _float) { + public void setFloat(@javax.annotation.Nullable Float _float) { this._float = _float; } - public FormatTest _double(Double _double) { + public FormatTest _double(@javax.annotation.Nullable Double _double) { this._double = _double; return this; @@ -223,11 +237,11 @@ public Double getDouble() { } - public void setDouble(Double _double) { + public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; } - public FormatTest string(String string) { + public FormatTest string(@javax.annotation.Nullable String string) { this.string = string; return this; @@ -244,11 +258,11 @@ public String getString() { } - public void setString(String string) { + public void setString(@javax.annotation.Nullable String string) { this.string = string; } - public FormatTest _byte(byte[] _byte) { + public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; return this; @@ -265,11 +279,11 @@ public byte[] getByte() { } - public void setByte(byte[] _byte) { + public void setByte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; } - public FormatTest binary(File binary) { + public FormatTest binary(@javax.annotation.Nullable File binary) { this.binary = binary; return this; @@ -286,11 +300,11 @@ public File getBinary() { } - public void setBinary(File binary) { + public void setBinary(@javax.annotation.Nullable File binary) { this.binary = binary; } - public FormatTest date(LocalDate date) { + public FormatTest date(@javax.annotation.Nonnull LocalDate date) { this.date = date; return this; @@ -307,11 +321,11 @@ public LocalDate getDate() { } - public void setDate(LocalDate date) { + public void setDate(@javax.annotation.Nonnull LocalDate date) { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; @@ -328,11 +342,11 @@ public OffsetDateTime getDateTime() { } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public FormatTest uuid(UUID uuid) { + public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; @@ -349,11 +363,11 @@ public UUID getUuid() { } - public void setUuid(UUID uuid) { + public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public FormatTest password(String password) { + public FormatTest password(@javax.annotation.Nonnull String password) { this.password = password; return this; @@ -370,11 +384,11 @@ public String getPassword() { } - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nonnull String password) { this.password = password; } - public FormatTest bigDecimal(BigDecimal bigDecimal) { + public FormatTest bigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; @@ -391,7 +405,7 @@ public BigDecimal getBigDecimal() { } - public void setBigDecimal(BigDecimal bigDecimal) { + public void setBigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index d93cd2bb1b7b..8d80b05fdf03 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -29,10 +29,12 @@ public class HasOnlyReadOnly { public static final String SERIALIZED_NAME_BAR = "bar"; @SerializedName(SERIALIZED_NAME_BAR) + @javax.annotation.Nullable private String bar; public static final String SERIALIZED_NAME_FOO = "foo"; @SerializedName(SERIALIZED_NAME_FOO) + @javax.annotation.Nullable private String foo; public HasOnlyReadOnly() { diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/MapTest.java index b87cc29d24fd..f21f6ac0606b 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/MapTest.java @@ -31,6 +31,7 @@ public class MapTest { public static final String SERIALIZED_NAME_MAP_MAP_OF_STRING = "map_map_of_string"; @SerializedName(SERIALIZED_NAME_MAP_MAP_OF_STRING) + @javax.annotation.Nullable private Map> mapMapOfString = new HashMap<>(); /** @@ -82,20 +83,23 @@ public InnerEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_MAP_OF_ENUM_STRING = "map_of_enum_string"; @SerializedName(SERIALIZED_NAME_MAP_OF_ENUM_STRING) + @javax.annotation.Nullable private Map mapOfEnumString = new HashMap<>(); public static final String SERIALIZED_NAME_DIRECT_MAP = "direct_map"; @SerializedName(SERIALIZED_NAME_DIRECT_MAP) + @javax.annotation.Nullable private Map directMap = new HashMap<>(); public static final String SERIALIZED_NAME_INDIRECT_MAP = "indirect_map"; @SerializedName(SERIALIZED_NAME_INDIRECT_MAP) + @javax.annotation.Nullable private Map indirectMap = new HashMap<>(); public MapTest() { } - public MapTest mapMapOfString(Map> mapMapOfString) { + public MapTest mapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; return this; @@ -120,11 +124,11 @@ public Map> getMapMapOfString() { } - public void setMapMapOfString(Map> mapMapOfString) { + public void setMapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } - public MapTest mapOfEnumString(Map mapOfEnumString) { + public MapTest mapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; return this; @@ -149,11 +153,11 @@ public Map getMapOfEnumString() { } - public void setMapOfEnumString(Map mapOfEnumString) { + public void setMapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } - public MapTest directMap(Map directMap) { + public MapTest directMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; return this; @@ -178,11 +182,11 @@ public Map getDirectMap() { } - public void setDirectMap(Map directMap) { + public void setDirectMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; } - public MapTest indirectMap(Map indirectMap) { + public MapTest indirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; return this; @@ -207,7 +211,7 @@ public Map getIndirectMap() { } - public void setIndirectMap(Map indirectMap) { + public void setIndirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 9aaee874dc69..f557019b6ec6 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -34,20 +34,23 @@ public class MixedPropertiesAndAdditionalPropertiesClass { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) + @javax.annotation.Nullable private UUID uuid; public static final String SERIALIZED_NAME_DATE_TIME = "dateTime"; @SerializedName(SERIALIZED_NAME_DATE_TIME) + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String SERIALIZED_NAME_MAP = "map"; @SerializedName(SERIALIZED_NAME_MAP) + @javax.annotation.Nullable private Map map = new HashMap<>(); public MixedPropertiesAndAdditionalPropertiesClass() { } - public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; @@ -64,11 +67,11 @@ public UUID getUuid() { } - public void setUuid(UUID uuid) { + public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; @@ -85,11 +88,11 @@ public OffsetDateTime getDateTime() { } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + public MixedPropertiesAndAdditionalPropertiesClass map(@javax.annotation.Nullable Map map) { this.map = map; return this; @@ -114,7 +117,7 @@ public Map getMap() { } - public void setMap(Map map) { + public void setMap(@javax.annotation.Nullable Map map) { this.map = map; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Model200Response.java index 1ca2f45d373d..88f5ff2718de 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Model200Response.java @@ -29,16 +29,18 @@ public class Model200Response { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private Integer name; public static final String SERIALIZED_NAME_PROPERTY_CLASS = "class"; @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) + @javax.annotation.Nullable private String propertyClass; public Model200Response() { } - public Model200Response name(Integer name) { + public Model200Response name(@javax.annotation.Nullable Integer name) { this.name = name; return this; @@ -55,11 +57,11 @@ public Integer getName() { } - public void setName(Integer name) { + public void setName(@javax.annotation.Nullable Integer name) { this.name = name; } - public Model200Response propertyClass(String propertyClass) { + public Model200Response propertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; @@ -76,7 +78,7 @@ public String getPropertyClass() { } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 045e730b774e..000ec96dfaf8 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -29,20 +29,23 @@ public class ModelApiResponse { public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) + @javax.annotation.Nullable private Integer code; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @javax.annotation.Nullable private String type; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable private String message; public ModelApiResponse() { } - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@javax.annotation.Nullable Integer code) { this.code = code; return this; @@ -59,11 +62,11 @@ public Integer getCode() { } - public void setCode(Integer code) { + public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@javax.annotation.Nullable String type) { this.type = type; return this; @@ -80,11 +83,11 @@ public String getType() { } - public void setType(String type) { + public void setType(@javax.annotation.Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@javax.annotation.Nullable String message) { this.message = message; return this; @@ -101,7 +104,7 @@ public String getMessage() { } - public void setMessage(String message) { + public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ModelFile.java index 8d505d63bc07..ae6d1ffbb9f1 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ModelFile.java @@ -29,12 +29,13 @@ public class ModelFile { public static final String SERIALIZED_NAME_SOURCE_U_R_I = "sourceURI"; @SerializedName(SERIALIZED_NAME_SOURCE_U_R_I) + @javax.annotation.Nullable private String sourceURI; public ModelFile() { } - public ModelFile sourceURI(String sourceURI) { + public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; return this; @@ -51,7 +52,7 @@ public String getSourceURI() { } - public void setSourceURI(String sourceURI) { + public void setSourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ModelList.java index d826b31417f4..015dc0edeed6 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ModelList.java @@ -29,12 +29,13 @@ public class ModelList { public static final String SERIALIZED_NAME_123LIST = "123-list"; @SerializedName(SERIALIZED_NAME_123LIST) + @javax.annotation.Nullable private String _123list; public ModelList() { } - public ModelList _123list(String _123list) { + public ModelList _123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; return this; @@ -51,7 +52,7 @@ public String get123list() { } - public void set123list(String _123list) { + public void set123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ModelReturn.java index 6e965ebc2f25..5cab34b89312 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -29,12 +29,13 @@ public class ModelReturn { public static final String SERIALIZED_NAME_RETURN = "return"; @SerializedName(SERIALIZED_NAME_RETURN) + @javax.annotation.Nullable private Integer _return; public ModelReturn() { } - public ModelReturn _return(Integer _return) { + public ModelReturn _return(@javax.annotation.Nullable Integer _return) { this._return = _return; return this; @@ -51,7 +52,7 @@ public Integer getReturn() { } - public void setReturn(Integer _return) { + public void setReturn(@javax.annotation.Nullable Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Name.java index 74a4761d4614..30ed7d4bf22e 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Name.java @@ -29,18 +29,22 @@ public class Name { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull private Integer name; public static final String SERIALIZED_NAME_SNAKE_CASE = "snake_case"; @SerializedName(SERIALIZED_NAME_SNAKE_CASE) + @javax.annotation.Nullable private Integer snakeCase; public static final String SERIALIZED_NAME_PROPERTY = "property"; @SerializedName(SERIALIZED_NAME_PROPERTY) + @javax.annotation.Nullable private String property; public static final String SERIALIZED_NAME_123NUMBER = "123Number"; @SerializedName(SERIALIZED_NAME_123NUMBER) + @javax.annotation.Nullable private Integer _123number; public Name() { @@ -58,7 +62,7 @@ public Name( this._123number = _123number; } - public Name name(Integer name) { + public Name name(@javax.annotation.Nonnull Integer name) { this.name = name; return this; @@ -75,7 +79,7 @@ public Integer getName() { } - public void setName(Integer name) { + public void setName(@javax.annotation.Nonnull Integer name) { this.name = name; } @@ -91,7 +95,7 @@ public Integer getSnakeCase() { - public Name property(String property) { + public Name property(@javax.annotation.Nullable String property) { this.property = property; return this; @@ -108,7 +112,7 @@ public String getProperty() { } - public void setProperty(String property) { + public void setProperty(@javax.annotation.Nullable String property) { this.property = property; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/NumberOnly.java index 177526f8f0de..911a6ded44d3 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -30,12 +30,13 @@ public class NumberOnly { public static final String SERIALIZED_NAME_JUST_NUMBER = "JustNumber"; @SerializedName(SERIALIZED_NAME_JUST_NUMBER) + @javax.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } - public NumberOnly justNumber(BigDecimal justNumber) { + public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; @@ -52,7 +53,7 @@ public BigDecimal getJustNumber() { } - public void setJustNumber(BigDecimal justNumber) { + public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Order.java index 001e4761b279..fdee5b340e64 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Order.java @@ -30,18 +30,22 @@ public class Order { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_PET_ID = "petId"; @SerializedName(SERIALIZED_NAME_PET_ID) + @javax.annotation.Nullable private Long petId; public static final String SERIALIZED_NAME_QUANTITY = "quantity"; @SerializedName(SERIALIZED_NAME_QUANTITY) + @javax.annotation.Nullable private Integer quantity; public static final String SERIALIZED_NAME_SHIP_DATE = "shipDate"; @SerializedName(SERIALIZED_NAME_SHIP_DATE) + @javax.annotation.Nullable private OffsetDateTime shipDate; /** @@ -95,16 +99,18 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable private StatusEnum status; public static final String SERIALIZED_NAME_COMPLETE = "complete"; @SerializedName(SERIALIZED_NAME_COMPLETE) + @javax.annotation.Nullable private Boolean complete = false; public Order() { } - public Order id(Long id) { + public Order id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -121,11 +127,11 @@ public Long getId() { } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@javax.annotation.Nullable Long petId) { this.petId = petId; return this; @@ -142,11 +148,11 @@ public Long getPetId() { } - public void setPetId(Long petId) { + public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; return this; @@ -163,11 +169,11 @@ public Integer getQuantity() { } - public void setQuantity(Integer quantity) { + public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; @@ -184,11 +190,11 @@ public OffsetDateTime getShipDate() { } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -205,11 +211,11 @@ public StatusEnum getStatus() { } - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } - public Order complete(Boolean complete) { + public Order complete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; return this; @@ -226,7 +232,7 @@ public Boolean getComplete() { } - public void setComplete(Boolean complete) { + public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/OuterComposite.java index 8fe0804219bd..496b881bdac1 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -30,20 +30,23 @@ public class OuterComposite { public static final String SERIALIZED_NAME_MY_NUMBER = "my_number"; @SerializedName(SERIALIZED_NAME_MY_NUMBER) + @javax.annotation.Nullable private BigDecimal myNumber; public static final String SERIALIZED_NAME_MY_STRING = "my_string"; @SerializedName(SERIALIZED_NAME_MY_STRING) + @javax.annotation.Nullable private String myString; public static final String SERIALIZED_NAME_MY_BOOLEAN = "my_boolean"; @SerializedName(SERIALIZED_NAME_MY_BOOLEAN) + @javax.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } - public OuterComposite myNumber(BigDecimal myNumber) { + public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; @@ -60,11 +63,11 @@ public BigDecimal getMyNumber() { } - public void setMyNumber(BigDecimal myNumber) { + public void setMyNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; } - public OuterComposite myString(String myString) { + public OuterComposite myString(@javax.annotation.Nullable String myString) { this.myString = myString; return this; @@ -81,11 +84,11 @@ public String getMyString() { } - public void setMyString(String myString) { + public void setMyString(@javax.annotation.Nullable String myString) { this.myString = myString; } - public OuterComposite myBoolean(Boolean myBoolean) { + public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; return this; @@ -102,7 +105,7 @@ public Boolean getMyBoolean() { } - public void setMyBoolean(Boolean myBoolean) { + public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Pet.java index 3deb8b3fe8ec..4678542a5bbd 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Pet.java @@ -36,22 +36,27 @@ public class Pet { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_CATEGORY = "category"; @SerializedName(SERIALIZED_NAME_CATEGORY) + @javax.annotation.Nullable private Category category; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; @SerializedName(SERIALIZED_NAME_PHOTO_URLS) + @javax.annotation.Nonnull private Set photoUrls = new LinkedHashSet<>(); public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** @@ -105,12 +110,13 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable private StatusEnum status; public Pet() { } - public Pet id(Long id) { + public Pet id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -127,11 +133,11 @@ public Long getId() { } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@javax.annotation.Nullable Category category) { this.category = category; return this; @@ -148,11 +154,11 @@ public Category getCategory() { } - public void setCategory(Category category) { + public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; } - public Pet name(String name) { + public Pet name(@javax.annotation.Nonnull String name) { this.name = name; return this; @@ -169,11 +175,11 @@ public String getName() { } - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } - public Pet photoUrls(Set photoUrls) { + public Pet photoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; return this; @@ -198,11 +204,11 @@ public Set getPhotoUrls() { } - public void setPhotoUrls(Set photoUrls) { + public void setPhotoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; } - public Pet tags(List tags) { + public Pet tags(@javax.annotation.Nullable List tags) { this.tags = tags; return this; @@ -227,11 +233,11 @@ public List getTags() { } - public void setTags(List tags) { + public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -248,7 +254,7 @@ public StatusEnum getStatus() { } - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index aa5be000c83b..691c938ff28c 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -29,10 +29,12 @@ public class ReadOnlyFirst { public static final String SERIALIZED_NAME_BAR = "bar"; @SerializedName(SERIALIZED_NAME_BAR) + @javax.annotation.Nullable private String bar; public static final String SERIALIZED_NAME_BAZ = "baz"; @SerializedName(SERIALIZED_NAME_BAZ) + @javax.annotation.Nullable private String baz; public ReadOnlyFirst() { @@ -60,7 +62,7 @@ public String getBar() { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { this.baz = baz; return this; @@ -77,7 +79,7 @@ public String getBaz() { } - public void setBaz(String baz) { + public void setBaz(@javax.annotation.Nullable String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/SpecialModelName.java index 7d5f1ac85ae8..84f8213c251b 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -29,12 +29,13 @@ public class SpecialModelName { public static final String SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; @SerializedName(SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME) + @javax.annotation.Nullable private Long $specialPropertyName; public SpecialModelName() { } - public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + public SpecialModelName $specialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; return this; @@ -51,7 +52,7 @@ public SpecialModelName() { } - public void set$SpecialPropertyName(Long $specialPropertyName) { + public void set$SpecialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Tag.java index 9d3ee5016b2a..80a485fe15bc 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Tag.java @@ -29,16 +29,18 @@ public class Tag { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public Tag() { } - public Tag id(Long id) { + public Tag id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -55,11 +57,11 @@ public Long getId() { } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -76,7 +78,7 @@ public String getName() { } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index 04ef511fe21d..9962f02a2163 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -33,28 +33,33 @@ public class TypeHolderDefault { public static final String SERIALIZED_NAME_STRING_ITEM = "string_item"; @SerializedName(SERIALIZED_NAME_STRING_ITEM) + @javax.annotation.Nonnull private String stringItem = "what"; public static final String SERIALIZED_NAME_NUMBER_ITEM = "number_item"; @SerializedName(SERIALIZED_NAME_NUMBER_ITEM) + @javax.annotation.Nonnull private BigDecimal numberItem; public static final String SERIALIZED_NAME_INTEGER_ITEM = "integer_item"; @SerializedName(SERIALIZED_NAME_INTEGER_ITEM) + @javax.annotation.Nonnull private Integer integerItem; public static final String SERIALIZED_NAME_BOOL_ITEM = "bool_item"; @SerializedName(SERIALIZED_NAME_BOOL_ITEM) + @javax.annotation.Nonnull private Boolean boolItem = true; public static final String SERIALIZED_NAME_ARRAY_ITEM = "array_item"; @SerializedName(SERIALIZED_NAME_ARRAY_ITEM) + @javax.annotation.Nonnull private List arrayItem = new ArrayList<>(); public TypeHolderDefault() { } - public TypeHolderDefault stringItem(String stringItem) { + public TypeHolderDefault stringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; return this; @@ -71,11 +76,11 @@ public String getStringItem() { } - public void setStringItem(String stringItem) { + public void setStringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; } - public TypeHolderDefault numberItem(BigDecimal numberItem) { + public TypeHolderDefault numberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; return this; @@ -92,11 +97,11 @@ public BigDecimal getNumberItem() { } - public void setNumberItem(BigDecimal numberItem) { + public void setNumberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; } - public TypeHolderDefault integerItem(Integer integerItem) { + public TypeHolderDefault integerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; return this; @@ -113,11 +118,11 @@ public Integer getIntegerItem() { } - public void setIntegerItem(Integer integerItem) { + public void setIntegerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; } - public TypeHolderDefault boolItem(Boolean boolItem) { + public TypeHolderDefault boolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; return this; @@ -134,11 +139,11 @@ public Boolean getBoolItem() { } - public void setBoolItem(Boolean boolItem) { + public void setBoolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; } - public TypeHolderDefault arrayItem(List arrayItem) { + public TypeHolderDefault arrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; return this; @@ -163,7 +168,7 @@ public List getArrayItem() { } - public void setArrayItem(List arrayItem) { + public void setArrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/TypeHolderExample.java index 4ed785c0c632..11e9d2d2d349 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -33,32 +33,38 @@ public class TypeHolderExample { public static final String SERIALIZED_NAME_STRING_ITEM = "string_item"; @SerializedName(SERIALIZED_NAME_STRING_ITEM) + @javax.annotation.Nonnull private String stringItem; public static final String SERIALIZED_NAME_NUMBER_ITEM = "number_item"; @SerializedName(SERIALIZED_NAME_NUMBER_ITEM) + @javax.annotation.Nonnull private BigDecimal numberItem; public static final String SERIALIZED_NAME_FLOAT_ITEM = "float_item"; @SerializedName(SERIALIZED_NAME_FLOAT_ITEM) + @javax.annotation.Nonnull private Float floatItem; public static final String SERIALIZED_NAME_INTEGER_ITEM = "integer_item"; @SerializedName(SERIALIZED_NAME_INTEGER_ITEM) + @javax.annotation.Nonnull private Integer integerItem; public static final String SERIALIZED_NAME_BOOL_ITEM = "bool_item"; @SerializedName(SERIALIZED_NAME_BOOL_ITEM) + @javax.annotation.Nonnull private Boolean boolItem; public static final String SERIALIZED_NAME_ARRAY_ITEM = "array_item"; @SerializedName(SERIALIZED_NAME_ARRAY_ITEM) + @javax.annotation.Nonnull private List arrayItem = new ArrayList<>(); public TypeHolderExample() { } - public TypeHolderExample stringItem(String stringItem) { + public TypeHolderExample stringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; return this; @@ -75,11 +81,11 @@ public String getStringItem() { } - public void setStringItem(String stringItem) { + public void setStringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; } - public TypeHolderExample numberItem(BigDecimal numberItem) { + public TypeHolderExample numberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; return this; @@ -96,11 +102,11 @@ public BigDecimal getNumberItem() { } - public void setNumberItem(BigDecimal numberItem) { + public void setNumberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; } - public TypeHolderExample floatItem(Float floatItem) { + public TypeHolderExample floatItem(@javax.annotation.Nonnull Float floatItem) { this.floatItem = floatItem; return this; @@ -117,11 +123,11 @@ public Float getFloatItem() { } - public void setFloatItem(Float floatItem) { + public void setFloatItem(@javax.annotation.Nonnull Float floatItem) { this.floatItem = floatItem; } - public TypeHolderExample integerItem(Integer integerItem) { + public TypeHolderExample integerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; return this; @@ -138,11 +144,11 @@ public Integer getIntegerItem() { } - public void setIntegerItem(Integer integerItem) { + public void setIntegerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; } - public TypeHolderExample boolItem(Boolean boolItem) { + public TypeHolderExample boolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; return this; @@ -159,11 +165,11 @@ public Boolean getBoolItem() { } - public void setBoolItem(Boolean boolItem) { + public void setBoolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; } - public TypeHolderExample arrayItem(List arrayItem) { + public TypeHolderExample arrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; return this; @@ -188,7 +194,7 @@ public List getArrayItem() { } - public void setArrayItem(List arrayItem) { + public void setArrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/User.java index e45116bcbf34..f01b412614b3 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/User.java @@ -29,40 +29,48 @@ public class User { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_USERNAME = "username"; @SerializedName(SERIALIZED_NAME_USERNAME) + @javax.annotation.Nullable private String username; public static final String SERIALIZED_NAME_FIRST_NAME = "firstName"; @SerializedName(SERIALIZED_NAME_FIRST_NAME) + @javax.annotation.Nullable private String firstName; public static final String SERIALIZED_NAME_LAST_NAME = "lastName"; @SerializedName(SERIALIZED_NAME_LAST_NAME) + @javax.annotation.Nullable private String lastName; public static final String SERIALIZED_NAME_EMAIL = "email"; @SerializedName(SERIALIZED_NAME_EMAIL) + @javax.annotation.Nullable private String email; public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) + @javax.annotation.Nullable private String password; public static final String SERIALIZED_NAME_PHONE = "phone"; @SerializedName(SERIALIZED_NAME_PHONE) + @javax.annotation.Nullable private String phone; public static final String SERIALIZED_NAME_USER_STATUS = "userStatus"; @SerializedName(SERIALIZED_NAME_USER_STATUS) + @javax.annotation.Nullable private Integer userStatus; public User() { } - public User id(Long id) { + public User id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -79,11 +87,11 @@ public Long getId() { } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@javax.annotation.Nullable String username) { this.username = username; return this; @@ -100,11 +108,11 @@ public String getUsername() { } - public void setUsername(String username) { + public void setUsername(@javax.annotation.Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; return this; @@ -121,11 +129,11 @@ public String getFirstName() { } - public void setFirstName(String firstName) { + public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; return this; @@ -142,11 +150,11 @@ public String getLastName() { } - public void setLastName(String lastName) { + public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@javax.annotation.Nullable String email) { this.email = email; return this; @@ -163,11 +171,11 @@ public String getEmail() { } - public void setEmail(String email) { + public void setEmail(@javax.annotation.Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@javax.annotation.Nullable String password) { this.password = password; return this; @@ -184,11 +192,11 @@ public String getPassword() { } - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@javax.annotation.Nullable String phone) { this.phone = phone; return this; @@ -205,11 +213,11 @@ public String getPhone() { } - public void setPhone(String phone) { + public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; return this; @@ -226,7 +234,7 @@ public Integer getUserStatus() { } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/XmlItem.java index da273cba73f7..fe04156a61c1 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/XmlItem.java @@ -33,124 +33,153 @@ public class XmlItem { public static final String SERIALIZED_NAME_ATTRIBUTE_STRING = "attribute_string"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_STRING) + @javax.annotation.Nullable private String attributeString; public static final String SERIALIZED_NAME_ATTRIBUTE_NUMBER = "attribute_number"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_NUMBER) + @javax.annotation.Nullable private BigDecimal attributeNumber; public static final String SERIALIZED_NAME_ATTRIBUTE_INTEGER = "attribute_integer"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_INTEGER) + @javax.annotation.Nullable private Integer attributeInteger; public static final String SERIALIZED_NAME_ATTRIBUTE_BOOLEAN = "attribute_boolean"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_BOOLEAN) + @javax.annotation.Nullable private Boolean attributeBoolean; public static final String SERIALIZED_NAME_WRAPPED_ARRAY = "wrapped_array"; @SerializedName(SERIALIZED_NAME_WRAPPED_ARRAY) + @javax.annotation.Nullable private List wrappedArray = new ArrayList<>(); public static final String SERIALIZED_NAME_NAME_STRING = "name_string"; @SerializedName(SERIALIZED_NAME_NAME_STRING) + @javax.annotation.Nullable private String nameString; public static final String SERIALIZED_NAME_NAME_NUMBER = "name_number"; @SerializedName(SERIALIZED_NAME_NAME_NUMBER) + @javax.annotation.Nullable private BigDecimal nameNumber; public static final String SERIALIZED_NAME_NAME_INTEGER = "name_integer"; @SerializedName(SERIALIZED_NAME_NAME_INTEGER) + @javax.annotation.Nullable private Integer nameInteger; public static final String SERIALIZED_NAME_NAME_BOOLEAN = "name_boolean"; @SerializedName(SERIALIZED_NAME_NAME_BOOLEAN) + @javax.annotation.Nullable private Boolean nameBoolean; public static final String SERIALIZED_NAME_NAME_ARRAY = "name_array"; @SerializedName(SERIALIZED_NAME_NAME_ARRAY) + @javax.annotation.Nullable private List nameArray = new ArrayList<>(); public static final String SERIALIZED_NAME_NAME_WRAPPED_ARRAY = "name_wrapped_array"; @SerializedName(SERIALIZED_NAME_NAME_WRAPPED_ARRAY) + @javax.annotation.Nullable private List nameWrappedArray = new ArrayList<>(); public static final String SERIALIZED_NAME_PREFIX_STRING = "prefix_string"; @SerializedName(SERIALIZED_NAME_PREFIX_STRING) + @javax.annotation.Nullable private String prefixString; public static final String SERIALIZED_NAME_PREFIX_NUMBER = "prefix_number"; @SerializedName(SERIALIZED_NAME_PREFIX_NUMBER) + @javax.annotation.Nullable private BigDecimal prefixNumber; public static final String SERIALIZED_NAME_PREFIX_INTEGER = "prefix_integer"; @SerializedName(SERIALIZED_NAME_PREFIX_INTEGER) + @javax.annotation.Nullable private Integer prefixInteger; public static final String SERIALIZED_NAME_PREFIX_BOOLEAN = "prefix_boolean"; @SerializedName(SERIALIZED_NAME_PREFIX_BOOLEAN) + @javax.annotation.Nullable private Boolean prefixBoolean; public static final String SERIALIZED_NAME_PREFIX_ARRAY = "prefix_array"; @SerializedName(SERIALIZED_NAME_PREFIX_ARRAY) + @javax.annotation.Nullable private List prefixArray = new ArrayList<>(); public static final String SERIALIZED_NAME_PREFIX_WRAPPED_ARRAY = "prefix_wrapped_array"; @SerializedName(SERIALIZED_NAME_PREFIX_WRAPPED_ARRAY) + @javax.annotation.Nullable private List prefixWrappedArray = new ArrayList<>(); public static final String SERIALIZED_NAME_NAMESPACE_STRING = "namespace_string"; @SerializedName(SERIALIZED_NAME_NAMESPACE_STRING) + @javax.annotation.Nullable private String namespaceString; public static final String SERIALIZED_NAME_NAMESPACE_NUMBER = "namespace_number"; @SerializedName(SERIALIZED_NAME_NAMESPACE_NUMBER) + @javax.annotation.Nullable private BigDecimal namespaceNumber; public static final String SERIALIZED_NAME_NAMESPACE_INTEGER = "namespace_integer"; @SerializedName(SERIALIZED_NAME_NAMESPACE_INTEGER) + @javax.annotation.Nullable private Integer namespaceInteger; public static final String SERIALIZED_NAME_NAMESPACE_BOOLEAN = "namespace_boolean"; @SerializedName(SERIALIZED_NAME_NAMESPACE_BOOLEAN) + @javax.annotation.Nullable private Boolean namespaceBoolean; public static final String SERIALIZED_NAME_NAMESPACE_ARRAY = "namespace_array"; @SerializedName(SERIALIZED_NAME_NAMESPACE_ARRAY) + @javax.annotation.Nullable private List namespaceArray = new ArrayList<>(); public static final String SERIALIZED_NAME_NAMESPACE_WRAPPED_ARRAY = "namespace_wrapped_array"; @SerializedName(SERIALIZED_NAME_NAMESPACE_WRAPPED_ARRAY) + @javax.annotation.Nullable private List namespaceWrappedArray = new ArrayList<>(); public static final String SERIALIZED_NAME_PREFIX_NS_STRING = "prefix_ns_string"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_STRING) + @javax.annotation.Nullable private String prefixNsString; public static final String SERIALIZED_NAME_PREFIX_NS_NUMBER = "prefix_ns_number"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_NUMBER) + @javax.annotation.Nullable private BigDecimal prefixNsNumber; public static final String SERIALIZED_NAME_PREFIX_NS_INTEGER = "prefix_ns_integer"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_INTEGER) + @javax.annotation.Nullable private Integer prefixNsInteger; public static final String SERIALIZED_NAME_PREFIX_NS_BOOLEAN = "prefix_ns_boolean"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_BOOLEAN) + @javax.annotation.Nullable private Boolean prefixNsBoolean; public static final String SERIALIZED_NAME_PREFIX_NS_ARRAY = "prefix_ns_array"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_ARRAY) + @javax.annotation.Nullable private List prefixNsArray = new ArrayList<>(); public static final String SERIALIZED_NAME_PREFIX_NS_WRAPPED_ARRAY = "prefix_ns_wrapped_array"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_WRAPPED_ARRAY) + @javax.annotation.Nullable private List prefixNsWrappedArray = new ArrayList<>(); public XmlItem() { } - public XmlItem attributeString(String attributeString) { + public XmlItem attributeString(@javax.annotation.Nullable String attributeString) { this.attributeString = attributeString; return this; @@ -167,11 +196,11 @@ public String getAttributeString() { } - public void setAttributeString(String attributeString) { + public void setAttributeString(@javax.annotation.Nullable String attributeString) { this.attributeString = attributeString; } - public XmlItem attributeNumber(BigDecimal attributeNumber) { + public XmlItem attributeNumber(@javax.annotation.Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; return this; @@ -188,11 +217,11 @@ public BigDecimal getAttributeNumber() { } - public void setAttributeNumber(BigDecimal attributeNumber) { + public void setAttributeNumber(@javax.annotation.Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } - public XmlItem attributeInteger(Integer attributeInteger) { + public XmlItem attributeInteger(@javax.annotation.Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; return this; @@ -209,11 +238,11 @@ public Integer getAttributeInteger() { } - public void setAttributeInteger(Integer attributeInteger) { + public void setAttributeInteger(@javax.annotation.Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; } - public XmlItem attributeBoolean(Boolean attributeBoolean) { + public XmlItem attributeBoolean(@javax.annotation.Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; return this; @@ -230,11 +259,11 @@ public Boolean getAttributeBoolean() { } - public void setAttributeBoolean(Boolean attributeBoolean) { + public void setAttributeBoolean(@javax.annotation.Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } - public XmlItem wrappedArray(List wrappedArray) { + public XmlItem wrappedArray(@javax.annotation.Nullable List wrappedArray) { this.wrappedArray = wrappedArray; return this; @@ -259,11 +288,11 @@ public List getWrappedArray() { } - public void setWrappedArray(List wrappedArray) { + public void setWrappedArray(@javax.annotation.Nullable List wrappedArray) { this.wrappedArray = wrappedArray; } - public XmlItem nameString(String nameString) { + public XmlItem nameString(@javax.annotation.Nullable String nameString) { this.nameString = nameString; return this; @@ -280,11 +309,11 @@ public String getNameString() { } - public void setNameString(String nameString) { + public void setNameString(@javax.annotation.Nullable String nameString) { this.nameString = nameString; } - public XmlItem nameNumber(BigDecimal nameNumber) { + public XmlItem nameNumber(@javax.annotation.Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; return this; @@ -301,11 +330,11 @@ public BigDecimal getNameNumber() { } - public void setNameNumber(BigDecimal nameNumber) { + public void setNameNumber(@javax.annotation.Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; } - public XmlItem nameInteger(Integer nameInteger) { + public XmlItem nameInteger(@javax.annotation.Nullable Integer nameInteger) { this.nameInteger = nameInteger; return this; @@ -322,11 +351,11 @@ public Integer getNameInteger() { } - public void setNameInteger(Integer nameInteger) { + public void setNameInteger(@javax.annotation.Nullable Integer nameInteger) { this.nameInteger = nameInteger; } - public XmlItem nameBoolean(Boolean nameBoolean) { + public XmlItem nameBoolean(@javax.annotation.Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; return this; @@ -343,11 +372,11 @@ public Boolean getNameBoolean() { } - public void setNameBoolean(Boolean nameBoolean) { + public void setNameBoolean(@javax.annotation.Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; } - public XmlItem nameArray(List nameArray) { + public XmlItem nameArray(@javax.annotation.Nullable List nameArray) { this.nameArray = nameArray; return this; @@ -372,11 +401,11 @@ public List getNameArray() { } - public void setNameArray(List nameArray) { + public void setNameArray(@javax.annotation.Nullable List nameArray) { this.nameArray = nameArray; } - public XmlItem nameWrappedArray(List nameWrappedArray) { + public XmlItem nameWrappedArray(@javax.annotation.Nullable List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; return this; @@ -401,11 +430,11 @@ public List getNameWrappedArray() { } - public void setNameWrappedArray(List nameWrappedArray) { + public void setNameWrappedArray(@javax.annotation.Nullable List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } - public XmlItem prefixString(String prefixString) { + public XmlItem prefixString(@javax.annotation.Nullable String prefixString) { this.prefixString = prefixString; return this; @@ -422,11 +451,11 @@ public String getPrefixString() { } - public void setPrefixString(String prefixString) { + public void setPrefixString(@javax.annotation.Nullable String prefixString) { this.prefixString = prefixString; } - public XmlItem prefixNumber(BigDecimal prefixNumber) { + public XmlItem prefixNumber(@javax.annotation.Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; return this; @@ -443,11 +472,11 @@ public BigDecimal getPrefixNumber() { } - public void setPrefixNumber(BigDecimal prefixNumber) { + public void setPrefixNumber(@javax.annotation.Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } - public XmlItem prefixInteger(Integer prefixInteger) { + public XmlItem prefixInteger(@javax.annotation.Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; return this; @@ -464,11 +493,11 @@ public Integer getPrefixInteger() { } - public void setPrefixInteger(Integer prefixInteger) { + public void setPrefixInteger(@javax.annotation.Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; } - public XmlItem prefixBoolean(Boolean prefixBoolean) { + public XmlItem prefixBoolean(@javax.annotation.Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; return this; @@ -485,11 +514,11 @@ public Boolean getPrefixBoolean() { } - public void setPrefixBoolean(Boolean prefixBoolean) { + public void setPrefixBoolean(@javax.annotation.Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } - public XmlItem prefixArray(List prefixArray) { + public XmlItem prefixArray(@javax.annotation.Nullable List prefixArray) { this.prefixArray = prefixArray; return this; @@ -514,11 +543,11 @@ public List getPrefixArray() { } - public void setPrefixArray(List prefixArray) { + public void setPrefixArray(@javax.annotation.Nullable List prefixArray) { this.prefixArray = prefixArray; } - public XmlItem prefixWrappedArray(List prefixWrappedArray) { + public XmlItem prefixWrappedArray(@javax.annotation.Nullable List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; return this; @@ -543,11 +572,11 @@ public List getPrefixWrappedArray() { } - public void setPrefixWrappedArray(List prefixWrappedArray) { + public void setPrefixWrappedArray(@javax.annotation.Nullable List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem namespaceString(String namespaceString) { + public XmlItem namespaceString(@javax.annotation.Nullable String namespaceString) { this.namespaceString = namespaceString; return this; @@ -564,11 +593,11 @@ public String getNamespaceString() { } - public void setNamespaceString(String namespaceString) { + public void setNamespaceString(@javax.annotation.Nullable String namespaceString) { this.namespaceString = namespaceString; } - public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + public XmlItem namespaceNumber(@javax.annotation.Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; return this; @@ -585,11 +614,11 @@ public BigDecimal getNamespaceNumber() { } - public void setNamespaceNumber(BigDecimal namespaceNumber) { + public void setNamespaceNumber(@javax.annotation.Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } - public XmlItem namespaceInteger(Integer namespaceInteger) { + public XmlItem namespaceInteger(@javax.annotation.Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; return this; @@ -606,11 +635,11 @@ public Integer getNamespaceInteger() { } - public void setNamespaceInteger(Integer namespaceInteger) { + public void setNamespaceInteger(@javax.annotation.Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } - public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + public XmlItem namespaceBoolean(@javax.annotation.Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; return this; @@ -627,11 +656,11 @@ public Boolean getNamespaceBoolean() { } - public void setNamespaceBoolean(Boolean namespaceBoolean) { + public void setNamespaceBoolean(@javax.annotation.Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } - public XmlItem namespaceArray(List namespaceArray) { + public XmlItem namespaceArray(@javax.annotation.Nullable List namespaceArray) { this.namespaceArray = namespaceArray; return this; @@ -656,11 +685,11 @@ public List getNamespaceArray() { } - public void setNamespaceArray(List namespaceArray) { + public void setNamespaceArray(@javax.annotation.Nullable List namespaceArray) { this.namespaceArray = namespaceArray; } - public XmlItem namespaceWrappedArray(List namespaceWrappedArray) { + public XmlItem namespaceWrappedArray(@javax.annotation.Nullable List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; return this; @@ -685,11 +714,11 @@ public List getNamespaceWrappedArray() { } - public void setNamespaceWrappedArray(List namespaceWrappedArray) { + public void setNamespaceWrappedArray(@javax.annotation.Nullable List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem prefixNsString(String prefixNsString) { + public XmlItem prefixNsString(@javax.annotation.Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; @@ -706,11 +735,11 @@ public String getPrefixNsString() { } - public void setPrefixNsString(String prefixNsString) { + public void setPrefixNsString(@javax.annotation.Nullable String prefixNsString) { this.prefixNsString = prefixNsString; } - public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + public XmlItem prefixNsNumber(@javax.annotation.Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; return this; @@ -727,11 +756,11 @@ public BigDecimal getPrefixNsNumber() { } - public void setPrefixNsNumber(BigDecimal prefixNsNumber) { + public void setPrefixNsNumber(@javax.annotation.Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } - public XmlItem prefixNsInteger(Integer prefixNsInteger) { + public XmlItem prefixNsInteger(@javax.annotation.Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; return this; @@ -748,11 +777,11 @@ public Integer getPrefixNsInteger() { } - public void setPrefixNsInteger(Integer prefixNsInteger) { + public void setPrefixNsInteger(@javax.annotation.Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } - public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + public XmlItem prefixNsBoolean(@javax.annotation.Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; return this; @@ -769,11 +798,11 @@ public Boolean getPrefixNsBoolean() { } - public void setPrefixNsBoolean(Boolean prefixNsBoolean) { + public void setPrefixNsBoolean(@javax.annotation.Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } - public XmlItem prefixNsArray(List prefixNsArray) { + public XmlItem prefixNsArray(@javax.annotation.Nullable List prefixNsArray) { this.prefixNsArray = prefixNsArray; return this; @@ -798,11 +827,11 @@ public List getPrefixNsArray() { } - public void setPrefixNsArray(List prefixNsArray) { + public void setPrefixNsArray(@javax.annotation.Nullable List prefixNsArray) { this.prefixNsArray = prefixNsArray; } - public XmlItem prefixNsWrappedArray(List prefixNsWrappedArray) { + public XmlItem prefixNsWrappedArray(@javax.annotation.Nullable List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; return this; @@ -827,7 +856,7 @@ public List getPrefixNsWrappedArray() { } - public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { + public void setPrefixNsWrappedArray(@javax.annotation.Nullable List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index e7b80103a303..93be22f7b226 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -31,13 +31,14 @@ public class AdditionalPropertiesAnyType extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public AdditionalPropertiesAnyType() { } - public AdditionalPropertiesAnyType name(String name) { + public AdditionalPropertiesAnyType name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -54,7 +55,7 @@ public String getName() { } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index f777f015754c..ba8ed9b868d3 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -32,13 +32,14 @@ public class AdditionalPropertiesArray extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public AdditionalPropertiesArray() { } - public AdditionalPropertiesArray name(String name) { + public AdditionalPropertiesArray name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -55,7 +56,7 @@ public String getName() { } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index af2f4c14370a..dde2af1e44b4 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -31,13 +31,14 @@ public class AdditionalPropertiesBoolean extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public AdditionalPropertiesBoolean() { } - public AdditionalPropertiesBoolean name(String name) { + public AdditionalPropertiesBoolean name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -54,7 +55,7 @@ public String getName() { } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index dd80ea6e3bb8..1a1936e37860 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -33,52 +33,63 @@ public class AdditionalPropertiesClass { public static final String SERIALIZED_NAME_MAP_STRING = "map_string"; @SerializedName(SERIALIZED_NAME_MAP_STRING) + @javax.annotation.Nullable private Map mapString = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_NUMBER = "map_number"; @SerializedName(SERIALIZED_NAME_MAP_NUMBER) + @javax.annotation.Nullable private Map mapNumber = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_INTEGER = "map_integer"; @SerializedName(SERIALIZED_NAME_MAP_INTEGER) + @javax.annotation.Nullable private Map mapInteger = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_BOOLEAN = "map_boolean"; @SerializedName(SERIALIZED_NAME_MAP_BOOLEAN) + @javax.annotation.Nullable private Map mapBoolean = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_ARRAY_INTEGER = "map_array_integer"; @SerializedName(SERIALIZED_NAME_MAP_ARRAY_INTEGER) + @javax.annotation.Nullable private Map> mapArrayInteger = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_ARRAY_ANYTYPE = "map_array_anytype"; @SerializedName(SERIALIZED_NAME_MAP_ARRAY_ANYTYPE) + @javax.annotation.Nullable private Map> mapArrayAnytype = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_MAP_STRING = "map_map_string"; @SerializedName(SERIALIZED_NAME_MAP_MAP_STRING) + @javax.annotation.Nullable private Map> mapMapString = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_MAP_ANYTYPE = "map_map_anytype"; @SerializedName(SERIALIZED_NAME_MAP_MAP_ANYTYPE) + @javax.annotation.Nullable private Map> mapMapAnytype = new HashMap<>(); public static final String SERIALIZED_NAME_ANYTYPE1 = "anytype_1"; @SerializedName(SERIALIZED_NAME_ANYTYPE1) + @javax.annotation.Nullable private Object anytype1; public static final String SERIALIZED_NAME_ANYTYPE2 = "anytype_2"; @SerializedName(SERIALIZED_NAME_ANYTYPE2) + @javax.annotation.Nullable private Object anytype2; public static final String SERIALIZED_NAME_ANYTYPE3 = "anytype_3"; @SerializedName(SERIALIZED_NAME_ANYTYPE3) + @javax.annotation.Nullable private Object anytype3; public AdditionalPropertiesClass() { } - public AdditionalPropertiesClass mapString(Map mapString) { + public AdditionalPropertiesClass mapString(@javax.annotation.Nullable Map mapString) { this.mapString = mapString; return this; @@ -103,11 +114,11 @@ public Map getMapString() { } - public void setMapString(Map mapString) { + public void setMapString(@javax.annotation.Nullable Map mapString) { this.mapString = mapString; } - public AdditionalPropertiesClass mapNumber(Map mapNumber) { + public AdditionalPropertiesClass mapNumber(@javax.annotation.Nullable Map mapNumber) { this.mapNumber = mapNumber; return this; @@ -132,11 +143,11 @@ public Map getMapNumber() { } - public void setMapNumber(Map mapNumber) { + public void setMapNumber(@javax.annotation.Nullable Map mapNumber) { this.mapNumber = mapNumber; } - public AdditionalPropertiesClass mapInteger(Map mapInteger) { + public AdditionalPropertiesClass mapInteger(@javax.annotation.Nullable Map mapInteger) { this.mapInteger = mapInteger; return this; @@ -161,11 +172,11 @@ public Map getMapInteger() { } - public void setMapInteger(Map mapInteger) { + public void setMapInteger(@javax.annotation.Nullable Map mapInteger) { this.mapInteger = mapInteger; } - public AdditionalPropertiesClass mapBoolean(Map mapBoolean) { + public AdditionalPropertiesClass mapBoolean(@javax.annotation.Nullable Map mapBoolean) { this.mapBoolean = mapBoolean; return this; @@ -190,11 +201,11 @@ public Map getMapBoolean() { } - public void setMapBoolean(Map mapBoolean) { + public void setMapBoolean(@javax.annotation.Nullable Map mapBoolean) { this.mapBoolean = mapBoolean; } - public AdditionalPropertiesClass mapArrayInteger(Map> mapArrayInteger) { + public AdditionalPropertiesClass mapArrayInteger(@javax.annotation.Nullable Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; return this; @@ -219,11 +230,11 @@ public Map> getMapArrayInteger() { } - public void setMapArrayInteger(Map> mapArrayInteger) { + public void setMapArrayInteger(@javax.annotation.Nullable Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; } - public AdditionalPropertiesClass mapArrayAnytype(Map> mapArrayAnytype) { + public AdditionalPropertiesClass mapArrayAnytype(@javax.annotation.Nullable Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; return this; @@ -248,11 +259,11 @@ public Map> getMapArrayAnytype() { } - public void setMapArrayAnytype(Map> mapArrayAnytype) { + public void setMapArrayAnytype(@javax.annotation.Nullable Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; } - public AdditionalPropertiesClass mapMapString(Map> mapMapString) { + public AdditionalPropertiesClass mapMapString(@javax.annotation.Nullable Map> mapMapString) { this.mapMapString = mapMapString; return this; @@ -277,11 +288,11 @@ public Map> getMapMapString() { } - public void setMapMapString(Map> mapMapString) { + public void setMapMapString(@javax.annotation.Nullable Map> mapMapString) { this.mapMapString = mapMapString; } - public AdditionalPropertiesClass mapMapAnytype(Map> mapMapAnytype) { + public AdditionalPropertiesClass mapMapAnytype(@javax.annotation.Nullable Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; return this; @@ -306,11 +317,11 @@ public Map> getMapMapAnytype() { } - public void setMapMapAnytype(Map> mapMapAnytype) { + public void setMapMapAnytype(@javax.annotation.Nullable Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@javax.annotation.Nullable Object anytype1) { this.anytype1 = anytype1; return this; @@ -327,11 +338,11 @@ public Object getAnytype1() { } - public void setAnytype1(Object anytype1) { + public void setAnytype1(@javax.annotation.Nullable Object anytype1) { this.anytype1 = anytype1; } - public AdditionalPropertiesClass anytype2(Object anytype2) { + public AdditionalPropertiesClass anytype2(@javax.annotation.Nullable Object anytype2) { this.anytype2 = anytype2; return this; @@ -348,11 +359,11 @@ public Object getAnytype2() { } - public void setAnytype2(Object anytype2) { + public void setAnytype2(@javax.annotation.Nullable Object anytype2) { this.anytype2 = anytype2; } - public AdditionalPropertiesClass anytype3(Object anytype3) { + public AdditionalPropertiesClass anytype3(@javax.annotation.Nullable Object anytype3) { this.anytype3 = anytype3; return this; @@ -369,7 +380,7 @@ public Object getAnytype3() { } - public void setAnytype3(Object anytype3) { + public void setAnytype3(@javax.annotation.Nullable Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 976c09c61efe..92b4010fac52 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -31,13 +31,14 @@ public class AdditionalPropertiesInteger extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public AdditionalPropertiesInteger() { } - public AdditionalPropertiesInteger name(String name) { + public AdditionalPropertiesInteger name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -54,7 +55,7 @@ public String getName() { } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index 8ba8607b7d89..a54006b4d24b 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -32,13 +32,14 @@ public class AdditionalPropertiesNumber extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public AdditionalPropertiesNumber() { } - public AdditionalPropertiesNumber name(String name) { + public AdditionalPropertiesNumber name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -55,7 +56,7 @@ public String getName() { } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index 64f68e63ba85..219f09a397d3 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -31,13 +31,14 @@ public class AdditionalPropertiesObject extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public AdditionalPropertiesObject() { } - public AdditionalPropertiesObject name(String name) { + public AdditionalPropertiesObject name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -54,7 +55,7 @@ public String getName() { } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 47a24dd8f6d9..b537782f59b7 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -31,13 +31,14 @@ public class AdditionalPropertiesString extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public AdditionalPropertiesString() { } - public AdditionalPropertiesString name(String name) { + public AdditionalPropertiesString name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -54,7 +55,7 @@ public String getName() { } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Animal.java index ab37c80583b5..6abf36113f67 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Animal.java @@ -29,16 +29,18 @@ public class Animal { public static final String SERIALIZED_NAME_CLASS_NAME = "className"; @SerializedName(SERIALIZED_NAME_CLASS_NAME) + @javax.annotation.Nonnull protected String className; public static final String SERIALIZED_NAME_COLOR = "color"; @SerializedName(SERIALIZED_NAME_COLOR) + @javax.annotation.Nullable protected String color = "red"; public Animal() { } - public Animal className(String className) { + public Animal className(@javax.annotation.Nonnull String className) { this.className = className; return this; @@ -55,11 +57,11 @@ public String getClassName() { } - public void setClassName(String className) { + public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; } - public Animal color(String color) { + public Animal color(@javax.annotation.Nullable String color) { this.color = color; return this; @@ -76,7 +78,7 @@ public String getColor() { } - public void setColor(String color) { + public void setColor(@javax.annotation.Nullable String color) { this.color = color; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 31b2fa2b5141..b137a3883b1e 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -33,12 +33,13 @@ public class ArrayOfArrayOfNumberOnly { public static final String SERIALIZED_NAME_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_NUMBER) + @javax.annotation.Nullable private List> arrayArrayNumber = new ArrayList<>(); public ArrayOfArrayOfNumberOnly() { } - public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + public ArrayOfArrayOfNumberOnly arrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; return this; @@ -63,7 +64,7 @@ public List> getArrayArrayNumber() { } - public void setArrayArrayNumber(List> arrayArrayNumber) { + public void setArrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index f835685bb8eb..4a73ff868460 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -33,12 +33,13 @@ public class ArrayOfNumberOnly { public static final String SERIALIZED_NAME_ARRAY_NUMBER = "ArrayNumber"; @SerializedName(SERIALIZED_NAME_ARRAY_NUMBER) + @javax.annotation.Nullable private List arrayNumber = new ArrayList<>(); public ArrayOfNumberOnly() { } - public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + public ArrayOfNumberOnly arrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; return this; @@ -63,7 +64,7 @@ public List getArrayNumber() { } - public void setArrayNumber(List arrayNumber) { + public void setArrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ArrayTest.java index 6fbcf1b284b5..14b19f0f7976 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -33,20 +33,23 @@ public class ArrayTest { public static final String SERIALIZED_NAME_ARRAY_OF_STRING = "array_of_string"; @SerializedName(SERIALIZED_NAME_ARRAY_OF_STRING) + @javax.annotation.Nullable private List arrayOfString = new ArrayList<>(); public static final String SERIALIZED_NAME_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_OF_INTEGER) + @javax.annotation.Nullable private List> arrayArrayOfInteger = new ArrayList<>(); public static final String SERIALIZED_NAME_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_OF_MODEL) + @javax.annotation.Nullable private List> arrayArrayOfModel = new ArrayList<>(); public ArrayTest() { } - public ArrayTest arrayOfString(List arrayOfString) { + public ArrayTest arrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; return this; @@ -71,11 +74,11 @@ public List getArrayOfString() { } - public void setArrayOfString(List arrayOfString) { + public void setArrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; } - public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + public ArrayTest arrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; return this; @@ -100,11 +103,11 @@ public List> getArrayArrayOfInteger() { } - public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { + public void setArrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } - public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + public ArrayTest arrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; return this; @@ -129,7 +132,7 @@ public List> getArrayArrayOfModel() { } - public void setArrayArrayOfModel(List> arrayArrayOfModel) { + public void setArrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/BigCat.java index e6a37254cdd7..082ad2753011 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/BigCat.java @@ -81,13 +81,14 @@ public KindEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @javax.annotation.Nullable private KindEnum kind; public BigCat() { } - public BigCat kind(KindEnum kind) { + public BigCat kind(@javax.annotation.Nullable KindEnum kind) { this.kind = kind; return this; @@ -104,18 +105,18 @@ public KindEnum getKind() { } - public void setKind(KindEnum kind) { + public void setKind(@javax.annotation.Nullable KindEnum kind) { this.kind = kind; } @Override - public BigCat className(String className) { + public BigCat className(@javax.annotation.Nonnull String className) { this.setClassName(className); return this; } @Override - public BigCat color(String color) { + public BigCat color(@javax.annotation.Nullable String color) { this.setColor(color); return this; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Capitalization.java index 5b519c3a9b00..e48c13c1230a 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Capitalization.java @@ -29,32 +29,38 @@ public class Capitalization { public static final String SERIALIZED_NAME_SMALL_CAMEL = "smallCamel"; @SerializedName(SERIALIZED_NAME_SMALL_CAMEL) + @javax.annotation.Nullable private String smallCamel; public static final String SERIALIZED_NAME_CAPITAL_CAMEL = "CapitalCamel"; @SerializedName(SERIALIZED_NAME_CAPITAL_CAMEL) + @javax.annotation.Nullable private String capitalCamel; public static final String SERIALIZED_NAME_SMALL_SNAKE = "small_Snake"; @SerializedName(SERIALIZED_NAME_SMALL_SNAKE) + @javax.annotation.Nullable private String smallSnake; public static final String SERIALIZED_NAME_CAPITAL_SNAKE = "Capital_Snake"; @SerializedName(SERIALIZED_NAME_CAPITAL_SNAKE) + @javax.annotation.Nullable private String capitalSnake; public static final String SERIALIZED_NAME_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; @SerializedName(SERIALIZED_NAME_SC_A_E_T_H_FLOW_POINTS) + @javax.annotation.Nullable private String scAETHFlowPoints; public static final String SERIALIZED_NAME_A_T_T_N_A_M_E = "ATT_NAME"; @SerializedName(SERIALIZED_NAME_A_T_T_N_A_M_E) + @javax.annotation.Nullable private String ATT_NAME; public Capitalization() { } - public Capitalization smallCamel(String smallCamel) { + public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; return this; @@ -71,11 +77,11 @@ public String getSmallCamel() { } - public void setSmallCamel(String smallCamel) { + public void setSmallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; } - public Capitalization capitalCamel(String capitalCamel) { + public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; return this; @@ -92,11 +98,11 @@ public String getCapitalCamel() { } - public void setCapitalCamel(String capitalCamel) { + public void setCapitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; } - public Capitalization smallSnake(String smallSnake) { + public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; return this; @@ -113,11 +119,11 @@ public String getSmallSnake() { } - public void setSmallSnake(String smallSnake) { + public void setSmallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; } - public Capitalization capitalSnake(String capitalSnake) { + public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; return this; @@ -134,11 +140,11 @@ public String getCapitalSnake() { } - public void setCapitalSnake(String capitalSnake) { + public void setCapitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; } - public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; return this; @@ -155,11 +161,11 @@ public String getScAETHFlowPoints() { } - public void setScAETHFlowPoints(String scAETHFlowPoints) { + public void setScAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } - public Capitalization ATT_NAME(String ATT_NAME) { + public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; return this; @@ -176,7 +182,7 @@ public String getATTNAME() { } - public void setATTNAME(String ATT_NAME) { + public void setATTNAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Cat.java index 5a9da0422398..3c35bdebe454 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Cat.java @@ -30,13 +30,14 @@ public class Cat extends Animal { public static final String SERIALIZED_NAME_DECLAWED = "declawed"; @SerializedName(SERIALIZED_NAME_DECLAWED) + @javax.annotation.Nullable protected Boolean declawed; public Cat() { } - public Cat declawed(Boolean declawed) { + public Cat declawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; return this; @@ -53,18 +54,18 @@ public Boolean getDeclawed() { } - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; } @Override - public Cat className(String className) { + public Cat className(@javax.annotation.Nonnull String className) { this.setClassName(className); return this; } @Override - public Cat color(String color) { + public Cat color(@javax.annotation.Nullable String color) { this.setColor(color); return this; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Category.java index 0d1eb88408ac..98582ccc5bb9 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Category.java @@ -29,16 +29,18 @@ public class Category { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull private String name = "default-name"; public Category() { } - public Category id(Long id) { + public Category id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -55,11 +57,11 @@ public Long getId() { } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@javax.annotation.Nonnull String name) { this.name = name; return this; @@ -76,7 +78,7 @@ public String getName() { } - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ClassModel.java index aa8445ccfeb8..4d9537a52633 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ClassModel.java @@ -29,12 +29,13 @@ public class ClassModel { public static final String SERIALIZED_NAME_PROPERTY_CLASS = "_class"; @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) + @javax.annotation.Nullable private String propertyClass; public ClassModel() { } - public ClassModel propertyClass(String propertyClass) { + public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; @@ -51,7 +52,7 @@ public String getPropertyClass() { } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Client.java index 04ada677df70..db96c6445bef 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Client.java @@ -29,12 +29,13 @@ public class Client { public static final String SERIALIZED_NAME_CLIENT = "client"; @SerializedName(SERIALIZED_NAME_CLIENT) + @javax.annotation.Nullable private String client; public Client() { } - public Client client(String client) { + public Client client(@javax.annotation.Nullable String client) { this.client = client; return this; @@ -51,7 +52,7 @@ public String getClient() { } - public void setClient(String client) { + public void setClient(@javax.annotation.Nullable String client) { this.client = client; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Dog.java index 7e3a9d344cfd..4a8170f407ea 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Dog.java @@ -30,13 +30,14 @@ public class Dog extends Animal { public static final String SERIALIZED_NAME_BREED = "breed"; @SerializedName(SERIALIZED_NAME_BREED) + @javax.annotation.Nullable private String breed; public Dog() { } - public Dog breed(String breed) { + public Dog breed(@javax.annotation.Nullable String breed) { this.breed = breed; return this; @@ -53,18 +54,18 @@ public String getBreed() { } - public void setBreed(String breed) { + public void setBreed(@javax.annotation.Nullable String breed) { this.breed = breed; } @Override - public Dog className(String className) { + public Dog className(@javax.annotation.Nonnull String className) { this.setClassName(className); return this; } @Override - public Dog color(String color) { + public Dog color(@javax.annotation.Nullable String color) { this.setColor(color); return this; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/EnumArrays.java index ea03fa8eb58e..eb365689d66d 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -79,6 +79,7 @@ public JustSymbolEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_JUST_SYMBOL = "just_symbol"; @SerializedName(SERIALIZED_NAME_JUST_SYMBOL) + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** @@ -130,12 +131,13 @@ public ArrayEnumEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_ARRAY_ENUM = "array_enum"; @SerializedName(SERIALIZED_NAME_ARRAY_ENUM) + @javax.annotation.Nullable private List arrayEnum = new ArrayList<>(); public EnumArrays() { } - public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; @@ -152,11 +154,11 @@ public JustSymbolEnum getJustSymbol() { } - public void setJustSymbol(JustSymbolEnum justSymbol) { + public void setJustSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } - public EnumArrays arrayEnum(List arrayEnum) { + public EnumArrays arrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; return this; @@ -181,7 +183,7 @@ public List getArrayEnum() { } - public void setArrayEnum(List arrayEnum) { + public void setArrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/EnumTest.java index 7ae5e0b170b9..2f8dfe271b4c 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/EnumTest.java @@ -79,6 +79,7 @@ public EnumStringEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_ENUM_STRING = "enum_string"; @SerializedName(SERIALIZED_NAME_ENUM_STRING) + @javax.annotation.Nullable private EnumStringEnum enumString; /** @@ -132,6 +133,7 @@ public EnumStringRequiredEnum read(final JsonReader jsonReader) throws IOExcepti public static final String SERIALIZED_NAME_ENUM_STRING_REQUIRED = "enum_string_required"; @SerializedName(SERIALIZED_NAME_ENUM_STRING_REQUIRED) + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** @@ -183,6 +185,7 @@ public EnumIntegerEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_ENUM_INTEGER = "enum_integer"; @SerializedName(SERIALIZED_NAME_ENUM_INTEGER) + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** @@ -234,16 +237,18 @@ public EnumNumberEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_ENUM_NUMBER = "enum_number"; @SerializedName(SERIALIZED_NAME_ENUM_NUMBER) + @javax.annotation.Nullable private EnumNumberEnum enumNumber; public static final String SERIALIZED_NAME_OUTER_ENUM = "outerEnum"; @SerializedName(SERIALIZED_NAME_OUTER_ENUM) + @javax.annotation.Nullable private OuterEnum outerEnum; public EnumTest() { } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; @@ -260,11 +265,11 @@ public EnumStringEnum getEnumString() { } - public void setEnumString(EnumStringEnum enumString) { + public void setEnumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; } - public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; return this; @@ -281,11 +286,11 @@ public EnumStringRequiredEnum getEnumStringRequired() { } - public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public void setEnumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; @@ -302,11 +307,11 @@ public EnumIntegerEnum getEnumInteger() { } - public void setEnumInteger(EnumIntegerEnum enumInteger) { + public void setEnumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } - public EnumTest enumNumber(EnumNumberEnum enumNumber) { + public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; return this; @@ -323,11 +328,11 @@ public EnumNumberEnum getEnumNumber() { } - public void setEnumNumber(EnumNumberEnum enumNumber) { + public void setEnumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } - public EnumTest outerEnum(OuterEnum outerEnum) { + public EnumTest outerEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; return this; @@ -344,7 +349,7 @@ public OuterEnum getOuterEnum() { } - public void setOuterEnum(OuterEnum outerEnum) { + public void setOuterEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 3382b63f28c7..e117ea7b5bc3 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -33,16 +33,18 @@ public class FileSchemaTestClass { public static final String SERIALIZED_NAME_FILE = "file"; @SerializedName(SERIALIZED_NAME_FILE) + @javax.annotation.Nullable private ModelFile _file; public static final String SERIALIZED_NAME_FILES = "files"; @SerializedName(SERIALIZED_NAME_FILES) + @javax.annotation.Nullable private List files = new ArrayList<>(); public FileSchemaTestClass() { } - public FileSchemaTestClass _file(ModelFile _file) { + public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { this._file = _file; return this; @@ -59,11 +61,11 @@ public ModelFile getFile() { } - public void setFile(ModelFile _file) { + public void setFile(@javax.annotation.Nullable ModelFile _file) { this._file = _file; } - public FileSchemaTestClass files(List files) { + public FileSchemaTestClass files(@javax.annotation.Nullable List files) { this.files = files; return this; @@ -88,7 +90,7 @@ public List getFiles() { } - public void setFiles(List files) { + public void setFiles(@javax.annotation.Nullable List files) { this.files = files; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/FormatTest.java index 243e970f08e5..14a53b9107ca 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/FormatTest.java @@ -34,64 +34,78 @@ public class FormatTest { public static final String SERIALIZED_NAME_INTEGER = "integer"; @SerializedName(SERIALIZED_NAME_INTEGER) + @javax.annotation.Nullable private Integer integer; public static final String SERIALIZED_NAME_INT32 = "int32"; @SerializedName(SERIALIZED_NAME_INT32) + @javax.annotation.Nullable private Integer int32; public static final String SERIALIZED_NAME_INT64 = "int64"; @SerializedName(SERIALIZED_NAME_INT64) + @javax.annotation.Nullable private Long int64; public static final String SERIALIZED_NAME_NUMBER = "number"; @SerializedName(SERIALIZED_NAME_NUMBER) + @javax.annotation.Nonnull private BigDecimal number; public static final String SERIALIZED_NAME_FLOAT = "float"; @SerializedName(SERIALIZED_NAME_FLOAT) + @javax.annotation.Nullable private Float _float; public static final String SERIALIZED_NAME_DOUBLE = "double"; @SerializedName(SERIALIZED_NAME_DOUBLE) + @javax.annotation.Nullable private Double _double; public static final String SERIALIZED_NAME_STRING = "string"; @SerializedName(SERIALIZED_NAME_STRING) + @javax.annotation.Nullable private String string; public static final String SERIALIZED_NAME_BYTE = "byte"; @SerializedName(SERIALIZED_NAME_BYTE) + @javax.annotation.Nonnull private byte[] _byte; public static final String SERIALIZED_NAME_BINARY = "binary"; @SerializedName(SERIALIZED_NAME_BINARY) + @javax.annotation.Nullable private File binary; public static final String SERIALIZED_NAME_DATE = "date"; @SerializedName(SERIALIZED_NAME_DATE) + @javax.annotation.Nonnull private LocalDate date; public static final String SERIALIZED_NAME_DATE_TIME = "dateTime"; @SerializedName(SERIALIZED_NAME_DATE_TIME) + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) + @javax.annotation.Nullable private UUID uuid; public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) + @javax.annotation.Nonnull private String password; public static final String SERIALIZED_NAME_BIG_DECIMAL = "BigDecimal"; @SerializedName(SERIALIZED_NAME_BIG_DECIMAL) + @javax.annotation.Nullable private BigDecimal bigDecimal; public FormatTest() { } - public FormatTest integer(Integer integer) { + public FormatTest integer(@javax.annotation.Nullable Integer integer) { this.integer = integer; return this; @@ -110,11 +124,11 @@ public Integer getInteger() { } - public void setInteger(Integer integer) { + public void setInteger(@javax.annotation.Nullable Integer integer) { this.integer = integer; } - public FormatTest int32(Integer int32) { + public FormatTest int32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; return this; @@ -133,11 +147,11 @@ public Integer getInt32() { } - public void setInt32(Integer int32) { + public void setInt32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; } - public FormatTest int64(Long int64) { + public FormatTest int64(@javax.annotation.Nullable Long int64) { this.int64 = int64; return this; @@ -154,11 +168,11 @@ public Long getInt64() { } - public void setInt64(Long int64) { + public void setInt64(@javax.annotation.Nullable Long int64) { this.int64 = int64; } - public FormatTest number(BigDecimal number) { + public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { this.number = number; return this; @@ -177,11 +191,11 @@ public BigDecimal getNumber() { } - public void setNumber(BigDecimal number) { + public void setNumber(@javax.annotation.Nonnull BigDecimal number) { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@javax.annotation.Nullable Float _float) { this._float = _float; return this; @@ -200,11 +214,11 @@ public Float getFloat() { } - public void setFloat(Float _float) { + public void setFloat(@javax.annotation.Nullable Float _float) { this._float = _float; } - public FormatTest _double(Double _double) { + public FormatTest _double(@javax.annotation.Nullable Double _double) { this._double = _double; return this; @@ -223,11 +237,11 @@ public Double getDouble() { } - public void setDouble(Double _double) { + public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; } - public FormatTest string(String string) { + public FormatTest string(@javax.annotation.Nullable String string) { this.string = string; return this; @@ -244,11 +258,11 @@ public String getString() { } - public void setString(String string) { + public void setString(@javax.annotation.Nullable String string) { this.string = string; } - public FormatTest _byte(byte[] _byte) { + public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; return this; @@ -265,11 +279,11 @@ public byte[] getByte() { } - public void setByte(byte[] _byte) { + public void setByte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; } - public FormatTest binary(File binary) { + public FormatTest binary(@javax.annotation.Nullable File binary) { this.binary = binary; return this; @@ -286,11 +300,11 @@ public File getBinary() { } - public void setBinary(File binary) { + public void setBinary(@javax.annotation.Nullable File binary) { this.binary = binary; } - public FormatTest date(LocalDate date) { + public FormatTest date(@javax.annotation.Nonnull LocalDate date) { this.date = date; return this; @@ -307,11 +321,11 @@ public LocalDate getDate() { } - public void setDate(LocalDate date) { + public void setDate(@javax.annotation.Nonnull LocalDate date) { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; @@ -328,11 +342,11 @@ public OffsetDateTime getDateTime() { } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public FormatTest uuid(UUID uuid) { + public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; @@ -349,11 +363,11 @@ public UUID getUuid() { } - public void setUuid(UUID uuid) { + public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public FormatTest password(String password) { + public FormatTest password(@javax.annotation.Nonnull String password) { this.password = password; return this; @@ -370,11 +384,11 @@ public String getPassword() { } - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nonnull String password) { this.password = password; } - public FormatTest bigDecimal(BigDecimal bigDecimal) { + public FormatTest bigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; @@ -391,7 +405,7 @@ public BigDecimal getBigDecimal() { } - public void setBigDecimal(BigDecimal bigDecimal) { + public void setBigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index d93cd2bb1b7b..8d80b05fdf03 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -29,10 +29,12 @@ public class HasOnlyReadOnly { public static final String SERIALIZED_NAME_BAR = "bar"; @SerializedName(SERIALIZED_NAME_BAR) + @javax.annotation.Nullable private String bar; public static final String SERIALIZED_NAME_FOO = "foo"; @SerializedName(SERIALIZED_NAME_FOO) + @javax.annotation.Nullable private String foo; public HasOnlyReadOnly() { diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/MapTest.java index b87cc29d24fd..f21f6ac0606b 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/MapTest.java @@ -31,6 +31,7 @@ public class MapTest { public static final String SERIALIZED_NAME_MAP_MAP_OF_STRING = "map_map_of_string"; @SerializedName(SERIALIZED_NAME_MAP_MAP_OF_STRING) + @javax.annotation.Nullable private Map> mapMapOfString = new HashMap<>(); /** @@ -82,20 +83,23 @@ public InnerEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_MAP_OF_ENUM_STRING = "map_of_enum_string"; @SerializedName(SERIALIZED_NAME_MAP_OF_ENUM_STRING) + @javax.annotation.Nullable private Map mapOfEnumString = new HashMap<>(); public static final String SERIALIZED_NAME_DIRECT_MAP = "direct_map"; @SerializedName(SERIALIZED_NAME_DIRECT_MAP) + @javax.annotation.Nullable private Map directMap = new HashMap<>(); public static final String SERIALIZED_NAME_INDIRECT_MAP = "indirect_map"; @SerializedName(SERIALIZED_NAME_INDIRECT_MAP) + @javax.annotation.Nullable private Map indirectMap = new HashMap<>(); public MapTest() { } - public MapTest mapMapOfString(Map> mapMapOfString) { + public MapTest mapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; return this; @@ -120,11 +124,11 @@ public Map> getMapMapOfString() { } - public void setMapMapOfString(Map> mapMapOfString) { + public void setMapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } - public MapTest mapOfEnumString(Map mapOfEnumString) { + public MapTest mapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; return this; @@ -149,11 +153,11 @@ public Map getMapOfEnumString() { } - public void setMapOfEnumString(Map mapOfEnumString) { + public void setMapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } - public MapTest directMap(Map directMap) { + public MapTest directMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; return this; @@ -178,11 +182,11 @@ public Map getDirectMap() { } - public void setDirectMap(Map directMap) { + public void setDirectMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; } - public MapTest indirectMap(Map indirectMap) { + public MapTest indirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; return this; @@ -207,7 +211,7 @@ public Map getIndirectMap() { } - public void setIndirectMap(Map indirectMap) { + public void setIndirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 9aaee874dc69..f557019b6ec6 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -34,20 +34,23 @@ public class MixedPropertiesAndAdditionalPropertiesClass { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) + @javax.annotation.Nullable private UUID uuid; public static final String SERIALIZED_NAME_DATE_TIME = "dateTime"; @SerializedName(SERIALIZED_NAME_DATE_TIME) + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String SERIALIZED_NAME_MAP = "map"; @SerializedName(SERIALIZED_NAME_MAP) + @javax.annotation.Nullable private Map map = new HashMap<>(); public MixedPropertiesAndAdditionalPropertiesClass() { } - public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; @@ -64,11 +67,11 @@ public UUID getUuid() { } - public void setUuid(UUID uuid) { + public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; @@ -85,11 +88,11 @@ public OffsetDateTime getDateTime() { } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + public MixedPropertiesAndAdditionalPropertiesClass map(@javax.annotation.Nullable Map map) { this.map = map; return this; @@ -114,7 +117,7 @@ public Map getMap() { } - public void setMap(Map map) { + public void setMap(@javax.annotation.Nullable Map map) { this.map = map; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Model200Response.java index 1ca2f45d373d..88f5ff2718de 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Model200Response.java @@ -29,16 +29,18 @@ public class Model200Response { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private Integer name; public static final String SERIALIZED_NAME_PROPERTY_CLASS = "class"; @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) + @javax.annotation.Nullable private String propertyClass; public Model200Response() { } - public Model200Response name(Integer name) { + public Model200Response name(@javax.annotation.Nullable Integer name) { this.name = name; return this; @@ -55,11 +57,11 @@ public Integer getName() { } - public void setName(Integer name) { + public void setName(@javax.annotation.Nullable Integer name) { this.name = name; } - public Model200Response propertyClass(String propertyClass) { + public Model200Response propertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; @@ -76,7 +78,7 @@ public String getPropertyClass() { } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 045e730b774e..000ec96dfaf8 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -29,20 +29,23 @@ public class ModelApiResponse { public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) + @javax.annotation.Nullable private Integer code; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @javax.annotation.Nullable private String type; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable private String message; public ModelApiResponse() { } - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@javax.annotation.Nullable Integer code) { this.code = code; return this; @@ -59,11 +62,11 @@ public Integer getCode() { } - public void setCode(Integer code) { + public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@javax.annotation.Nullable String type) { this.type = type; return this; @@ -80,11 +83,11 @@ public String getType() { } - public void setType(String type) { + public void setType(@javax.annotation.Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@javax.annotation.Nullable String message) { this.message = message; return this; @@ -101,7 +104,7 @@ public String getMessage() { } - public void setMessage(String message) { + public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ModelFile.java index 8d505d63bc07..ae6d1ffbb9f1 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ModelFile.java @@ -29,12 +29,13 @@ public class ModelFile { public static final String SERIALIZED_NAME_SOURCE_U_R_I = "sourceURI"; @SerializedName(SERIALIZED_NAME_SOURCE_U_R_I) + @javax.annotation.Nullable private String sourceURI; public ModelFile() { } - public ModelFile sourceURI(String sourceURI) { + public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; return this; @@ -51,7 +52,7 @@ public String getSourceURI() { } - public void setSourceURI(String sourceURI) { + public void setSourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ModelList.java index d826b31417f4..015dc0edeed6 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ModelList.java @@ -29,12 +29,13 @@ public class ModelList { public static final String SERIALIZED_NAME_123LIST = "123-list"; @SerializedName(SERIALIZED_NAME_123LIST) + @javax.annotation.Nullable private String _123list; public ModelList() { } - public ModelList _123list(String _123list) { + public ModelList _123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; return this; @@ -51,7 +52,7 @@ public String get123list() { } - public void set123list(String _123list) { + public void set123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ModelReturn.java index 6e965ebc2f25..5cab34b89312 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -29,12 +29,13 @@ public class ModelReturn { public static final String SERIALIZED_NAME_RETURN = "return"; @SerializedName(SERIALIZED_NAME_RETURN) + @javax.annotation.Nullable private Integer _return; public ModelReturn() { } - public ModelReturn _return(Integer _return) { + public ModelReturn _return(@javax.annotation.Nullable Integer _return) { this._return = _return; return this; @@ -51,7 +52,7 @@ public Integer getReturn() { } - public void setReturn(Integer _return) { + public void setReturn(@javax.annotation.Nullable Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Name.java index 74a4761d4614..30ed7d4bf22e 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Name.java @@ -29,18 +29,22 @@ public class Name { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull private Integer name; public static final String SERIALIZED_NAME_SNAKE_CASE = "snake_case"; @SerializedName(SERIALIZED_NAME_SNAKE_CASE) + @javax.annotation.Nullable private Integer snakeCase; public static final String SERIALIZED_NAME_PROPERTY = "property"; @SerializedName(SERIALIZED_NAME_PROPERTY) + @javax.annotation.Nullable private String property; public static final String SERIALIZED_NAME_123NUMBER = "123Number"; @SerializedName(SERIALIZED_NAME_123NUMBER) + @javax.annotation.Nullable private Integer _123number; public Name() { @@ -58,7 +62,7 @@ public Name( this._123number = _123number; } - public Name name(Integer name) { + public Name name(@javax.annotation.Nonnull Integer name) { this.name = name; return this; @@ -75,7 +79,7 @@ public Integer getName() { } - public void setName(Integer name) { + public void setName(@javax.annotation.Nonnull Integer name) { this.name = name; } @@ -91,7 +95,7 @@ public Integer getSnakeCase() { - public Name property(String property) { + public Name property(@javax.annotation.Nullable String property) { this.property = property; return this; @@ -108,7 +112,7 @@ public String getProperty() { } - public void setProperty(String property) { + public void setProperty(@javax.annotation.Nullable String property) { this.property = property; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/NumberOnly.java index 177526f8f0de..911a6ded44d3 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -30,12 +30,13 @@ public class NumberOnly { public static final String SERIALIZED_NAME_JUST_NUMBER = "JustNumber"; @SerializedName(SERIALIZED_NAME_JUST_NUMBER) + @javax.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } - public NumberOnly justNumber(BigDecimal justNumber) { + public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; @@ -52,7 +53,7 @@ public BigDecimal getJustNumber() { } - public void setJustNumber(BigDecimal justNumber) { + public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Order.java index 001e4761b279..fdee5b340e64 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Order.java @@ -30,18 +30,22 @@ public class Order { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_PET_ID = "petId"; @SerializedName(SERIALIZED_NAME_PET_ID) + @javax.annotation.Nullable private Long petId; public static final String SERIALIZED_NAME_QUANTITY = "quantity"; @SerializedName(SERIALIZED_NAME_QUANTITY) + @javax.annotation.Nullable private Integer quantity; public static final String SERIALIZED_NAME_SHIP_DATE = "shipDate"; @SerializedName(SERIALIZED_NAME_SHIP_DATE) + @javax.annotation.Nullable private OffsetDateTime shipDate; /** @@ -95,16 +99,18 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable private StatusEnum status; public static final String SERIALIZED_NAME_COMPLETE = "complete"; @SerializedName(SERIALIZED_NAME_COMPLETE) + @javax.annotation.Nullable private Boolean complete = false; public Order() { } - public Order id(Long id) { + public Order id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -121,11 +127,11 @@ public Long getId() { } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@javax.annotation.Nullable Long petId) { this.petId = petId; return this; @@ -142,11 +148,11 @@ public Long getPetId() { } - public void setPetId(Long petId) { + public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; return this; @@ -163,11 +169,11 @@ public Integer getQuantity() { } - public void setQuantity(Integer quantity) { + public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; @@ -184,11 +190,11 @@ public OffsetDateTime getShipDate() { } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -205,11 +211,11 @@ public StatusEnum getStatus() { } - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } - public Order complete(Boolean complete) { + public Order complete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; return this; @@ -226,7 +232,7 @@ public Boolean getComplete() { } - public void setComplete(Boolean complete) { + public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/OuterComposite.java index 8fe0804219bd..496b881bdac1 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -30,20 +30,23 @@ public class OuterComposite { public static final String SERIALIZED_NAME_MY_NUMBER = "my_number"; @SerializedName(SERIALIZED_NAME_MY_NUMBER) + @javax.annotation.Nullable private BigDecimal myNumber; public static final String SERIALIZED_NAME_MY_STRING = "my_string"; @SerializedName(SERIALIZED_NAME_MY_STRING) + @javax.annotation.Nullable private String myString; public static final String SERIALIZED_NAME_MY_BOOLEAN = "my_boolean"; @SerializedName(SERIALIZED_NAME_MY_BOOLEAN) + @javax.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } - public OuterComposite myNumber(BigDecimal myNumber) { + public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; @@ -60,11 +63,11 @@ public BigDecimal getMyNumber() { } - public void setMyNumber(BigDecimal myNumber) { + public void setMyNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; } - public OuterComposite myString(String myString) { + public OuterComposite myString(@javax.annotation.Nullable String myString) { this.myString = myString; return this; @@ -81,11 +84,11 @@ public String getMyString() { } - public void setMyString(String myString) { + public void setMyString(@javax.annotation.Nullable String myString) { this.myString = myString; } - public OuterComposite myBoolean(Boolean myBoolean) { + public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; return this; @@ -102,7 +105,7 @@ public Boolean getMyBoolean() { } - public void setMyBoolean(Boolean myBoolean) { + public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Pet.java index 3deb8b3fe8ec..4678542a5bbd 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Pet.java @@ -36,22 +36,27 @@ public class Pet { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_CATEGORY = "category"; @SerializedName(SERIALIZED_NAME_CATEGORY) + @javax.annotation.Nullable private Category category; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; @SerializedName(SERIALIZED_NAME_PHOTO_URLS) + @javax.annotation.Nonnull private Set photoUrls = new LinkedHashSet<>(); public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** @@ -105,12 +110,13 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable private StatusEnum status; public Pet() { } - public Pet id(Long id) { + public Pet id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -127,11 +133,11 @@ public Long getId() { } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@javax.annotation.Nullable Category category) { this.category = category; return this; @@ -148,11 +154,11 @@ public Category getCategory() { } - public void setCategory(Category category) { + public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; } - public Pet name(String name) { + public Pet name(@javax.annotation.Nonnull String name) { this.name = name; return this; @@ -169,11 +175,11 @@ public String getName() { } - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } - public Pet photoUrls(Set photoUrls) { + public Pet photoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; return this; @@ -198,11 +204,11 @@ public Set getPhotoUrls() { } - public void setPhotoUrls(Set photoUrls) { + public void setPhotoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; } - public Pet tags(List tags) { + public Pet tags(@javax.annotation.Nullable List tags) { this.tags = tags; return this; @@ -227,11 +233,11 @@ public List getTags() { } - public void setTags(List tags) { + public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -248,7 +254,7 @@ public StatusEnum getStatus() { } - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index aa5be000c83b..691c938ff28c 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -29,10 +29,12 @@ public class ReadOnlyFirst { public static final String SERIALIZED_NAME_BAR = "bar"; @SerializedName(SERIALIZED_NAME_BAR) + @javax.annotation.Nullable private String bar; public static final String SERIALIZED_NAME_BAZ = "baz"; @SerializedName(SERIALIZED_NAME_BAZ) + @javax.annotation.Nullable private String baz; public ReadOnlyFirst() { @@ -60,7 +62,7 @@ public String getBar() { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { this.baz = baz; return this; @@ -77,7 +79,7 @@ public String getBaz() { } - public void setBaz(String baz) { + public void setBaz(@javax.annotation.Nullable String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/SpecialModelName.java index 7d5f1ac85ae8..84f8213c251b 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -29,12 +29,13 @@ public class SpecialModelName { public static final String SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; @SerializedName(SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME) + @javax.annotation.Nullable private Long $specialPropertyName; public SpecialModelName() { } - public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + public SpecialModelName $specialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; return this; @@ -51,7 +52,7 @@ public SpecialModelName() { } - public void set$SpecialPropertyName(Long $specialPropertyName) { + public void set$SpecialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Tag.java index 9d3ee5016b2a..80a485fe15bc 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Tag.java @@ -29,16 +29,18 @@ public class Tag { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public Tag() { } - public Tag id(Long id) { + public Tag id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -55,11 +57,11 @@ public Long getId() { } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -76,7 +78,7 @@ public String getName() { } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index 04ef511fe21d..9962f02a2163 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -33,28 +33,33 @@ public class TypeHolderDefault { public static final String SERIALIZED_NAME_STRING_ITEM = "string_item"; @SerializedName(SERIALIZED_NAME_STRING_ITEM) + @javax.annotation.Nonnull private String stringItem = "what"; public static final String SERIALIZED_NAME_NUMBER_ITEM = "number_item"; @SerializedName(SERIALIZED_NAME_NUMBER_ITEM) + @javax.annotation.Nonnull private BigDecimal numberItem; public static final String SERIALIZED_NAME_INTEGER_ITEM = "integer_item"; @SerializedName(SERIALIZED_NAME_INTEGER_ITEM) + @javax.annotation.Nonnull private Integer integerItem; public static final String SERIALIZED_NAME_BOOL_ITEM = "bool_item"; @SerializedName(SERIALIZED_NAME_BOOL_ITEM) + @javax.annotation.Nonnull private Boolean boolItem = true; public static final String SERIALIZED_NAME_ARRAY_ITEM = "array_item"; @SerializedName(SERIALIZED_NAME_ARRAY_ITEM) + @javax.annotation.Nonnull private List arrayItem = new ArrayList<>(); public TypeHolderDefault() { } - public TypeHolderDefault stringItem(String stringItem) { + public TypeHolderDefault stringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; return this; @@ -71,11 +76,11 @@ public String getStringItem() { } - public void setStringItem(String stringItem) { + public void setStringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; } - public TypeHolderDefault numberItem(BigDecimal numberItem) { + public TypeHolderDefault numberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; return this; @@ -92,11 +97,11 @@ public BigDecimal getNumberItem() { } - public void setNumberItem(BigDecimal numberItem) { + public void setNumberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; } - public TypeHolderDefault integerItem(Integer integerItem) { + public TypeHolderDefault integerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; return this; @@ -113,11 +118,11 @@ public Integer getIntegerItem() { } - public void setIntegerItem(Integer integerItem) { + public void setIntegerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; } - public TypeHolderDefault boolItem(Boolean boolItem) { + public TypeHolderDefault boolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; return this; @@ -134,11 +139,11 @@ public Boolean getBoolItem() { } - public void setBoolItem(Boolean boolItem) { + public void setBoolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; } - public TypeHolderDefault arrayItem(List arrayItem) { + public TypeHolderDefault arrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; return this; @@ -163,7 +168,7 @@ public List getArrayItem() { } - public void setArrayItem(List arrayItem) { + public void setArrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/TypeHolderExample.java index 4ed785c0c632..11e9d2d2d349 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -33,32 +33,38 @@ public class TypeHolderExample { public static final String SERIALIZED_NAME_STRING_ITEM = "string_item"; @SerializedName(SERIALIZED_NAME_STRING_ITEM) + @javax.annotation.Nonnull private String stringItem; public static final String SERIALIZED_NAME_NUMBER_ITEM = "number_item"; @SerializedName(SERIALIZED_NAME_NUMBER_ITEM) + @javax.annotation.Nonnull private BigDecimal numberItem; public static final String SERIALIZED_NAME_FLOAT_ITEM = "float_item"; @SerializedName(SERIALIZED_NAME_FLOAT_ITEM) + @javax.annotation.Nonnull private Float floatItem; public static final String SERIALIZED_NAME_INTEGER_ITEM = "integer_item"; @SerializedName(SERIALIZED_NAME_INTEGER_ITEM) + @javax.annotation.Nonnull private Integer integerItem; public static final String SERIALIZED_NAME_BOOL_ITEM = "bool_item"; @SerializedName(SERIALIZED_NAME_BOOL_ITEM) + @javax.annotation.Nonnull private Boolean boolItem; public static final String SERIALIZED_NAME_ARRAY_ITEM = "array_item"; @SerializedName(SERIALIZED_NAME_ARRAY_ITEM) + @javax.annotation.Nonnull private List arrayItem = new ArrayList<>(); public TypeHolderExample() { } - public TypeHolderExample stringItem(String stringItem) { + public TypeHolderExample stringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; return this; @@ -75,11 +81,11 @@ public String getStringItem() { } - public void setStringItem(String stringItem) { + public void setStringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; } - public TypeHolderExample numberItem(BigDecimal numberItem) { + public TypeHolderExample numberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; return this; @@ -96,11 +102,11 @@ public BigDecimal getNumberItem() { } - public void setNumberItem(BigDecimal numberItem) { + public void setNumberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; } - public TypeHolderExample floatItem(Float floatItem) { + public TypeHolderExample floatItem(@javax.annotation.Nonnull Float floatItem) { this.floatItem = floatItem; return this; @@ -117,11 +123,11 @@ public Float getFloatItem() { } - public void setFloatItem(Float floatItem) { + public void setFloatItem(@javax.annotation.Nonnull Float floatItem) { this.floatItem = floatItem; } - public TypeHolderExample integerItem(Integer integerItem) { + public TypeHolderExample integerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; return this; @@ -138,11 +144,11 @@ public Integer getIntegerItem() { } - public void setIntegerItem(Integer integerItem) { + public void setIntegerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; } - public TypeHolderExample boolItem(Boolean boolItem) { + public TypeHolderExample boolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; return this; @@ -159,11 +165,11 @@ public Boolean getBoolItem() { } - public void setBoolItem(Boolean boolItem) { + public void setBoolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; } - public TypeHolderExample arrayItem(List arrayItem) { + public TypeHolderExample arrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; return this; @@ -188,7 +194,7 @@ public List getArrayItem() { } - public void setArrayItem(List arrayItem) { + public void setArrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/User.java index e45116bcbf34..f01b412614b3 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/User.java @@ -29,40 +29,48 @@ public class User { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_USERNAME = "username"; @SerializedName(SERIALIZED_NAME_USERNAME) + @javax.annotation.Nullable private String username; public static final String SERIALIZED_NAME_FIRST_NAME = "firstName"; @SerializedName(SERIALIZED_NAME_FIRST_NAME) + @javax.annotation.Nullable private String firstName; public static final String SERIALIZED_NAME_LAST_NAME = "lastName"; @SerializedName(SERIALIZED_NAME_LAST_NAME) + @javax.annotation.Nullable private String lastName; public static final String SERIALIZED_NAME_EMAIL = "email"; @SerializedName(SERIALIZED_NAME_EMAIL) + @javax.annotation.Nullable private String email; public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) + @javax.annotation.Nullable private String password; public static final String SERIALIZED_NAME_PHONE = "phone"; @SerializedName(SERIALIZED_NAME_PHONE) + @javax.annotation.Nullable private String phone; public static final String SERIALIZED_NAME_USER_STATUS = "userStatus"; @SerializedName(SERIALIZED_NAME_USER_STATUS) + @javax.annotation.Nullable private Integer userStatus; public User() { } - public User id(Long id) { + public User id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -79,11 +87,11 @@ public Long getId() { } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@javax.annotation.Nullable String username) { this.username = username; return this; @@ -100,11 +108,11 @@ public String getUsername() { } - public void setUsername(String username) { + public void setUsername(@javax.annotation.Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; return this; @@ -121,11 +129,11 @@ public String getFirstName() { } - public void setFirstName(String firstName) { + public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; return this; @@ -142,11 +150,11 @@ public String getLastName() { } - public void setLastName(String lastName) { + public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@javax.annotation.Nullable String email) { this.email = email; return this; @@ -163,11 +171,11 @@ public String getEmail() { } - public void setEmail(String email) { + public void setEmail(@javax.annotation.Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@javax.annotation.Nullable String password) { this.password = password; return this; @@ -184,11 +192,11 @@ public String getPassword() { } - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@javax.annotation.Nullable String phone) { this.phone = phone; return this; @@ -205,11 +213,11 @@ public String getPhone() { } - public void setPhone(String phone) { + public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; return this; @@ -226,7 +234,7 @@ public Integer getUserStatus() { } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/XmlItem.java index da273cba73f7..fe04156a61c1 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/XmlItem.java @@ -33,124 +33,153 @@ public class XmlItem { public static final String SERIALIZED_NAME_ATTRIBUTE_STRING = "attribute_string"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_STRING) + @javax.annotation.Nullable private String attributeString; public static final String SERIALIZED_NAME_ATTRIBUTE_NUMBER = "attribute_number"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_NUMBER) + @javax.annotation.Nullable private BigDecimal attributeNumber; public static final String SERIALIZED_NAME_ATTRIBUTE_INTEGER = "attribute_integer"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_INTEGER) + @javax.annotation.Nullable private Integer attributeInteger; public static final String SERIALIZED_NAME_ATTRIBUTE_BOOLEAN = "attribute_boolean"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_BOOLEAN) + @javax.annotation.Nullable private Boolean attributeBoolean; public static final String SERIALIZED_NAME_WRAPPED_ARRAY = "wrapped_array"; @SerializedName(SERIALIZED_NAME_WRAPPED_ARRAY) + @javax.annotation.Nullable private List wrappedArray = new ArrayList<>(); public static final String SERIALIZED_NAME_NAME_STRING = "name_string"; @SerializedName(SERIALIZED_NAME_NAME_STRING) + @javax.annotation.Nullable private String nameString; public static final String SERIALIZED_NAME_NAME_NUMBER = "name_number"; @SerializedName(SERIALIZED_NAME_NAME_NUMBER) + @javax.annotation.Nullable private BigDecimal nameNumber; public static final String SERIALIZED_NAME_NAME_INTEGER = "name_integer"; @SerializedName(SERIALIZED_NAME_NAME_INTEGER) + @javax.annotation.Nullable private Integer nameInteger; public static final String SERIALIZED_NAME_NAME_BOOLEAN = "name_boolean"; @SerializedName(SERIALIZED_NAME_NAME_BOOLEAN) + @javax.annotation.Nullable private Boolean nameBoolean; public static final String SERIALIZED_NAME_NAME_ARRAY = "name_array"; @SerializedName(SERIALIZED_NAME_NAME_ARRAY) + @javax.annotation.Nullable private List nameArray = new ArrayList<>(); public static final String SERIALIZED_NAME_NAME_WRAPPED_ARRAY = "name_wrapped_array"; @SerializedName(SERIALIZED_NAME_NAME_WRAPPED_ARRAY) + @javax.annotation.Nullable private List nameWrappedArray = new ArrayList<>(); public static final String SERIALIZED_NAME_PREFIX_STRING = "prefix_string"; @SerializedName(SERIALIZED_NAME_PREFIX_STRING) + @javax.annotation.Nullable private String prefixString; public static final String SERIALIZED_NAME_PREFIX_NUMBER = "prefix_number"; @SerializedName(SERIALIZED_NAME_PREFIX_NUMBER) + @javax.annotation.Nullable private BigDecimal prefixNumber; public static final String SERIALIZED_NAME_PREFIX_INTEGER = "prefix_integer"; @SerializedName(SERIALIZED_NAME_PREFIX_INTEGER) + @javax.annotation.Nullable private Integer prefixInteger; public static final String SERIALIZED_NAME_PREFIX_BOOLEAN = "prefix_boolean"; @SerializedName(SERIALIZED_NAME_PREFIX_BOOLEAN) + @javax.annotation.Nullable private Boolean prefixBoolean; public static final String SERIALIZED_NAME_PREFIX_ARRAY = "prefix_array"; @SerializedName(SERIALIZED_NAME_PREFIX_ARRAY) + @javax.annotation.Nullable private List prefixArray = new ArrayList<>(); public static final String SERIALIZED_NAME_PREFIX_WRAPPED_ARRAY = "prefix_wrapped_array"; @SerializedName(SERIALIZED_NAME_PREFIX_WRAPPED_ARRAY) + @javax.annotation.Nullable private List prefixWrappedArray = new ArrayList<>(); public static final String SERIALIZED_NAME_NAMESPACE_STRING = "namespace_string"; @SerializedName(SERIALIZED_NAME_NAMESPACE_STRING) + @javax.annotation.Nullable private String namespaceString; public static final String SERIALIZED_NAME_NAMESPACE_NUMBER = "namespace_number"; @SerializedName(SERIALIZED_NAME_NAMESPACE_NUMBER) + @javax.annotation.Nullable private BigDecimal namespaceNumber; public static final String SERIALIZED_NAME_NAMESPACE_INTEGER = "namespace_integer"; @SerializedName(SERIALIZED_NAME_NAMESPACE_INTEGER) + @javax.annotation.Nullable private Integer namespaceInteger; public static final String SERIALIZED_NAME_NAMESPACE_BOOLEAN = "namespace_boolean"; @SerializedName(SERIALIZED_NAME_NAMESPACE_BOOLEAN) + @javax.annotation.Nullable private Boolean namespaceBoolean; public static final String SERIALIZED_NAME_NAMESPACE_ARRAY = "namespace_array"; @SerializedName(SERIALIZED_NAME_NAMESPACE_ARRAY) + @javax.annotation.Nullable private List namespaceArray = new ArrayList<>(); public static final String SERIALIZED_NAME_NAMESPACE_WRAPPED_ARRAY = "namespace_wrapped_array"; @SerializedName(SERIALIZED_NAME_NAMESPACE_WRAPPED_ARRAY) + @javax.annotation.Nullable private List namespaceWrappedArray = new ArrayList<>(); public static final String SERIALIZED_NAME_PREFIX_NS_STRING = "prefix_ns_string"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_STRING) + @javax.annotation.Nullable private String prefixNsString; public static final String SERIALIZED_NAME_PREFIX_NS_NUMBER = "prefix_ns_number"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_NUMBER) + @javax.annotation.Nullable private BigDecimal prefixNsNumber; public static final String SERIALIZED_NAME_PREFIX_NS_INTEGER = "prefix_ns_integer"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_INTEGER) + @javax.annotation.Nullable private Integer prefixNsInteger; public static final String SERIALIZED_NAME_PREFIX_NS_BOOLEAN = "prefix_ns_boolean"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_BOOLEAN) + @javax.annotation.Nullable private Boolean prefixNsBoolean; public static final String SERIALIZED_NAME_PREFIX_NS_ARRAY = "prefix_ns_array"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_ARRAY) + @javax.annotation.Nullable private List prefixNsArray = new ArrayList<>(); public static final String SERIALIZED_NAME_PREFIX_NS_WRAPPED_ARRAY = "prefix_ns_wrapped_array"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_WRAPPED_ARRAY) + @javax.annotation.Nullable private List prefixNsWrappedArray = new ArrayList<>(); public XmlItem() { } - public XmlItem attributeString(String attributeString) { + public XmlItem attributeString(@javax.annotation.Nullable String attributeString) { this.attributeString = attributeString; return this; @@ -167,11 +196,11 @@ public String getAttributeString() { } - public void setAttributeString(String attributeString) { + public void setAttributeString(@javax.annotation.Nullable String attributeString) { this.attributeString = attributeString; } - public XmlItem attributeNumber(BigDecimal attributeNumber) { + public XmlItem attributeNumber(@javax.annotation.Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; return this; @@ -188,11 +217,11 @@ public BigDecimal getAttributeNumber() { } - public void setAttributeNumber(BigDecimal attributeNumber) { + public void setAttributeNumber(@javax.annotation.Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } - public XmlItem attributeInteger(Integer attributeInteger) { + public XmlItem attributeInteger(@javax.annotation.Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; return this; @@ -209,11 +238,11 @@ public Integer getAttributeInteger() { } - public void setAttributeInteger(Integer attributeInteger) { + public void setAttributeInteger(@javax.annotation.Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; } - public XmlItem attributeBoolean(Boolean attributeBoolean) { + public XmlItem attributeBoolean(@javax.annotation.Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; return this; @@ -230,11 +259,11 @@ public Boolean getAttributeBoolean() { } - public void setAttributeBoolean(Boolean attributeBoolean) { + public void setAttributeBoolean(@javax.annotation.Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } - public XmlItem wrappedArray(List wrappedArray) { + public XmlItem wrappedArray(@javax.annotation.Nullable List wrappedArray) { this.wrappedArray = wrappedArray; return this; @@ -259,11 +288,11 @@ public List getWrappedArray() { } - public void setWrappedArray(List wrappedArray) { + public void setWrappedArray(@javax.annotation.Nullable List wrappedArray) { this.wrappedArray = wrappedArray; } - public XmlItem nameString(String nameString) { + public XmlItem nameString(@javax.annotation.Nullable String nameString) { this.nameString = nameString; return this; @@ -280,11 +309,11 @@ public String getNameString() { } - public void setNameString(String nameString) { + public void setNameString(@javax.annotation.Nullable String nameString) { this.nameString = nameString; } - public XmlItem nameNumber(BigDecimal nameNumber) { + public XmlItem nameNumber(@javax.annotation.Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; return this; @@ -301,11 +330,11 @@ public BigDecimal getNameNumber() { } - public void setNameNumber(BigDecimal nameNumber) { + public void setNameNumber(@javax.annotation.Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; } - public XmlItem nameInteger(Integer nameInteger) { + public XmlItem nameInteger(@javax.annotation.Nullable Integer nameInteger) { this.nameInteger = nameInteger; return this; @@ -322,11 +351,11 @@ public Integer getNameInteger() { } - public void setNameInteger(Integer nameInteger) { + public void setNameInteger(@javax.annotation.Nullable Integer nameInteger) { this.nameInteger = nameInteger; } - public XmlItem nameBoolean(Boolean nameBoolean) { + public XmlItem nameBoolean(@javax.annotation.Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; return this; @@ -343,11 +372,11 @@ public Boolean getNameBoolean() { } - public void setNameBoolean(Boolean nameBoolean) { + public void setNameBoolean(@javax.annotation.Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; } - public XmlItem nameArray(List nameArray) { + public XmlItem nameArray(@javax.annotation.Nullable List nameArray) { this.nameArray = nameArray; return this; @@ -372,11 +401,11 @@ public List getNameArray() { } - public void setNameArray(List nameArray) { + public void setNameArray(@javax.annotation.Nullable List nameArray) { this.nameArray = nameArray; } - public XmlItem nameWrappedArray(List nameWrappedArray) { + public XmlItem nameWrappedArray(@javax.annotation.Nullable List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; return this; @@ -401,11 +430,11 @@ public List getNameWrappedArray() { } - public void setNameWrappedArray(List nameWrappedArray) { + public void setNameWrappedArray(@javax.annotation.Nullable List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } - public XmlItem prefixString(String prefixString) { + public XmlItem prefixString(@javax.annotation.Nullable String prefixString) { this.prefixString = prefixString; return this; @@ -422,11 +451,11 @@ public String getPrefixString() { } - public void setPrefixString(String prefixString) { + public void setPrefixString(@javax.annotation.Nullable String prefixString) { this.prefixString = prefixString; } - public XmlItem prefixNumber(BigDecimal prefixNumber) { + public XmlItem prefixNumber(@javax.annotation.Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; return this; @@ -443,11 +472,11 @@ public BigDecimal getPrefixNumber() { } - public void setPrefixNumber(BigDecimal prefixNumber) { + public void setPrefixNumber(@javax.annotation.Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } - public XmlItem prefixInteger(Integer prefixInteger) { + public XmlItem prefixInteger(@javax.annotation.Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; return this; @@ -464,11 +493,11 @@ public Integer getPrefixInteger() { } - public void setPrefixInteger(Integer prefixInteger) { + public void setPrefixInteger(@javax.annotation.Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; } - public XmlItem prefixBoolean(Boolean prefixBoolean) { + public XmlItem prefixBoolean(@javax.annotation.Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; return this; @@ -485,11 +514,11 @@ public Boolean getPrefixBoolean() { } - public void setPrefixBoolean(Boolean prefixBoolean) { + public void setPrefixBoolean(@javax.annotation.Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } - public XmlItem prefixArray(List prefixArray) { + public XmlItem prefixArray(@javax.annotation.Nullable List prefixArray) { this.prefixArray = prefixArray; return this; @@ -514,11 +543,11 @@ public List getPrefixArray() { } - public void setPrefixArray(List prefixArray) { + public void setPrefixArray(@javax.annotation.Nullable List prefixArray) { this.prefixArray = prefixArray; } - public XmlItem prefixWrappedArray(List prefixWrappedArray) { + public XmlItem prefixWrappedArray(@javax.annotation.Nullable List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; return this; @@ -543,11 +572,11 @@ public List getPrefixWrappedArray() { } - public void setPrefixWrappedArray(List prefixWrappedArray) { + public void setPrefixWrappedArray(@javax.annotation.Nullable List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem namespaceString(String namespaceString) { + public XmlItem namespaceString(@javax.annotation.Nullable String namespaceString) { this.namespaceString = namespaceString; return this; @@ -564,11 +593,11 @@ public String getNamespaceString() { } - public void setNamespaceString(String namespaceString) { + public void setNamespaceString(@javax.annotation.Nullable String namespaceString) { this.namespaceString = namespaceString; } - public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + public XmlItem namespaceNumber(@javax.annotation.Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; return this; @@ -585,11 +614,11 @@ public BigDecimal getNamespaceNumber() { } - public void setNamespaceNumber(BigDecimal namespaceNumber) { + public void setNamespaceNumber(@javax.annotation.Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } - public XmlItem namespaceInteger(Integer namespaceInteger) { + public XmlItem namespaceInteger(@javax.annotation.Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; return this; @@ -606,11 +635,11 @@ public Integer getNamespaceInteger() { } - public void setNamespaceInteger(Integer namespaceInteger) { + public void setNamespaceInteger(@javax.annotation.Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } - public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + public XmlItem namespaceBoolean(@javax.annotation.Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; return this; @@ -627,11 +656,11 @@ public Boolean getNamespaceBoolean() { } - public void setNamespaceBoolean(Boolean namespaceBoolean) { + public void setNamespaceBoolean(@javax.annotation.Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } - public XmlItem namespaceArray(List namespaceArray) { + public XmlItem namespaceArray(@javax.annotation.Nullable List namespaceArray) { this.namespaceArray = namespaceArray; return this; @@ -656,11 +685,11 @@ public List getNamespaceArray() { } - public void setNamespaceArray(List namespaceArray) { + public void setNamespaceArray(@javax.annotation.Nullable List namespaceArray) { this.namespaceArray = namespaceArray; } - public XmlItem namespaceWrappedArray(List namespaceWrappedArray) { + public XmlItem namespaceWrappedArray(@javax.annotation.Nullable List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; return this; @@ -685,11 +714,11 @@ public List getNamespaceWrappedArray() { } - public void setNamespaceWrappedArray(List namespaceWrappedArray) { + public void setNamespaceWrappedArray(@javax.annotation.Nullable List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem prefixNsString(String prefixNsString) { + public XmlItem prefixNsString(@javax.annotation.Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; @@ -706,11 +735,11 @@ public String getPrefixNsString() { } - public void setPrefixNsString(String prefixNsString) { + public void setPrefixNsString(@javax.annotation.Nullable String prefixNsString) { this.prefixNsString = prefixNsString; } - public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + public XmlItem prefixNsNumber(@javax.annotation.Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; return this; @@ -727,11 +756,11 @@ public BigDecimal getPrefixNsNumber() { } - public void setPrefixNsNumber(BigDecimal prefixNsNumber) { + public void setPrefixNsNumber(@javax.annotation.Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } - public XmlItem prefixNsInteger(Integer prefixNsInteger) { + public XmlItem prefixNsInteger(@javax.annotation.Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; return this; @@ -748,11 +777,11 @@ public Integer getPrefixNsInteger() { } - public void setPrefixNsInteger(Integer prefixNsInteger) { + public void setPrefixNsInteger(@javax.annotation.Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } - public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + public XmlItem prefixNsBoolean(@javax.annotation.Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; return this; @@ -769,11 +798,11 @@ public Boolean getPrefixNsBoolean() { } - public void setPrefixNsBoolean(Boolean prefixNsBoolean) { + public void setPrefixNsBoolean(@javax.annotation.Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } - public XmlItem prefixNsArray(List prefixNsArray) { + public XmlItem prefixNsArray(@javax.annotation.Nullable List prefixNsArray) { this.prefixNsArray = prefixNsArray; return this; @@ -798,11 +827,11 @@ public List getPrefixNsArray() { } - public void setPrefixNsArray(List prefixNsArray) { + public void setPrefixNsArray(@javax.annotation.Nullable List prefixNsArray) { this.prefixNsArray = prefixNsArray; } - public XmlItem prefixNsWrappedArray(List prefixNsWrappedArray) { + public XmlItem prefixNsWrappedArray(@javax.annotation.Nullable List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; return this; @@ -827,7 +856,7 @@ public List getPrefixNsWrappedArray() { } - public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { + public void setPrefixNsWrappedArray(@javax.annotation.Nullable List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index e7b80103a303..93be22f7b226 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -31,13 +31,14 @@ public class AdditionalPropertiesAnyType extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public AdditionalPropertiesAnyType() { } - public AdditionalPropertiesAnyType name(String name) { + public AdditionalPropertiesAnyType name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -54,7 +55,7 @@ public String getName() { } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index f777f015754c..ba8ed9b868d3 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -32,13 +32,14 @@ public class AdditionalPropertiesArray extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public AdditionalPropertiesArray() { } - public AdditionalPropertiesArray name(String name) { + public AdditionalPropertiesArray name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -55,7 +56,7 @@ public String getName() { } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index af2f4c14370a..dde2af1e44b4 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -31,13 +31,14 @@ public class AdditionalPropertiesBoolean extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public AdditionalPropertiesBoolean() { } - public AdditionalPropertiesBoolean name(String name) { + public AdditionalPropertiesBoolean name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -54,7 +55,7 @@ public String getName() { } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index dd80ea6e3bb8..1a1936e37860 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -33,52 +33,63 @@ public class AdditionalPropertiesClass { public static final String SERIALIZED_NAME_MAP_STRING = "map_string"; @SerializedName(SERIALIZED_NAME_MAP_STRING) + @javax.annotation.Nullable private Map mapString = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_NUMBER = "map_number"; @SerializedName(SERIALIZED_NAME_MAP_NUMBER) + @javax.annotation.Nullable private Map mapNumber = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_INTEGER = "map_integer"; @SerializedName(SERIALIZED_NAME_MAP_INTEGER) + @javax.annotation.Nullable private Map mapInteger = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_BOOLEAN = "map_boolean"; @SerializedName(SERIALIZED_NAME_MAP_BOOLEAN) + @javax.annotation.Nullable private Map mapBoolean = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_ARRAY_INTEGER = "map_array_integer"; @SerializedName(SERIALIZED_NAME_MAP_ARRAY_INTEGER) + @javax.annotation.Nullable private Map> mapArrayInteger = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_ARRAY_ANYTYPE = "map_array_anytype"; @SerializedName(SERIALIZED_NAME_MAP_ARRAY_ANYTYPE) + @javax.annotation.Nullable private Map> mapArrayAnytype = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_MAP_STRING = "map_map_string"; @SerializedName(SERIALIZED_NAME_MAP_MAP_STRING) + @javax.annotation.Nullable private Map> mapMapString = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_MAP_ANYTYPE = "map_map_anytype"; @SerializedName(SERIALIZED_NAME_MAP_MAP_ANYTYPE) + @javax.annotation.Nullable private Map> mapMapAnytype = new HashMap<>(); public static final String SERIALIZED_NAME_ANYTYPE1 = "anytype_1"; @SerializedName(SERIALIZED_NAME_ANYTYPE1) + @javax.annotation.Nullable private Object anytype1; public static final String SERIALIZED_NAME_ANYTYPE2 = "anytype_2"; @SerializedName(SERIALIZED_NAME_ANYTYPE2) + @javax.annotation.Nullable private Object anytype2; public static final String SERIALIZED_NAME_ANYTYPE3 = "anytype_3"; @SerializedName(SERIALIZED_NAME_ANYTYPE3) + @javax.annotation.Nullable private Object anytype3; public AdditionalPropertiesClass() { } - public AdditionalPropertiesClass mapString(Map mapString) { + public AdditionalPropertiesClass mapString(@javax.annotation.Nullable Map mapString) { this.mapString = mapString; return this; @@ -103,11 +114,11 @@ public Map getMapString() { } - public void setMapString(Map mapString) { + public void setMapString(@javax.annotation.Nullable Map mapString) { this.mapString = mapString; } - public AdditionalPropertiesClass mapNumber(Map mapNumber) { + public AdditionalPropertiesClass mapNumber(@javax.annotation.Nullable Map mapNumber) { this.mapNumber = mapNumber; return this; @@ -132,11 +143,11 @@ public Map getMapNumber() { } - public void setMapNumber(Map mapNumber) { + public void setMapNumber(@javax.annotation.Nullable Map mapNumber) { this.mapNumber = mapNumber; } - public AdditionalPropertiesClass mapInteger(Map mapInteger) { + public AdditionalPropertiesClass mapInteger(@javax.annotation.Nullable Map mapInteger) { this.mapInteger = mapInteger; return this; @@ -161,11 +172,11 @@ public Map getMapInteger() { } - public void setMapInteger(Map mapInteger) { + public void setMapInteger(@javax.annotation.Nullable Map mapInteger) { this.mapInteger = mapInteger; } - public AdditionalPropertiesClass mapBoolean(Map mapBoolean) { + public AdditionalPropertiesClass mapBoolean(@javax.annotation.Nullable Map mapBoolean) { this.mapBoolean = mapBoolean; return this; @@ -190,11 +201,11 @@ public Map getMapBoolean() { } - public void setMapBoolean(Map mapBoolean) { + public void setMapBoolean(@javax.annotation.Nullable Map mapBoolean) { this.mapBoolean = mapBoolean; } - public AdditionalPropertiesClass mapArrayInteger(Map> mapArrayInteger) { + public AdditionalPropertiesClass mapArrayInteger(@javax.annotation.Nullable Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; return this; @@ -219,11 +230,11 @@ public Map> getMapArrayInteger() { } - public void setMapArrayInteger(Map> mapArrayInteger) { + public void setMapArrayInteger(@javax.annotation.Nullable Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; } - public AdditionalPropertiesClass mapArrayAnytype(Map> mapArrayAnytype) { + public AdditionalPropertiesClass mapArrayAnytype(@javax.annotation.Nullable Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; return this; @@ -248,11 +259,11 @@ public Map> getMapArrayAnytype() { } - public void setMapArrayAnytype(Map> mapArrayAnytype) { + public void setMapArrayAnytype(@javax.annotation.Nullable Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; } - public AdditionalPropertiesClass mapMapString(Map> mapMapString) { + public AdditionalPropertiesClass mapMapString(@javax.annotation.Nullable Map> mapMapString) { this.mapMapString = mapMapString; return this; @@ -277,11 +288,11 @@ public Map> getMapMapString() { } - public void setMapMapString(Map> mapMapString) { + public void setMapMapString(@javax.annotation.Nullable Map> mapMapString) { this.mapMapString = mapMapString; } - public AdditionalPropertiesClass mapMapAnytype(Map> mapMapAnytype) { + public AdditionalPropertiesClass mapMapAnytype(@javax.annotation.Nullable Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; return this; @@ -306,11 +317,11 @@ public Map> getMapMapAnytype() { } - public void setMapMapAnytype(Map> mapMapAnytype) { + public void setMapMapAnytype(@javax.annotation.Nullable Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@javax.annotation.Nullable Object anytype1) { this.anytype1 = anytype1; return this; @@ -327,11 +338,11 @@ public Object getAnytype1() { } - public void setAnytype1(Object anytype1) { + public void setAnytype1(@javax.annotation.Nullable Object anytype1) { this.anytype1 = anytype1; } - public AdditionalPropertiesClass anytype2(Object anytype2) { + public AdditionalPropertiesClass anytype2(@javax.annotation.Nullable Object anytype2) { this.anytype2 = anytype2; return this; @@ -348,11 +359,11 @@ public Object getAnytype2() { } - public void setAnytype2(Object anytype2) { + public void setAnytype2(@javax.annotation.Nullable Object anytype2) { this.anytype2 = anytype2; } - public AdditionalPropertiesClass anytype3(Object anytype3) { + public AdditionalPropertiesClass anytype3(@javax.annotation.Nullable Object anytype3) { this.anytype3 = anytype3; return this; @@ -369,7 +380,7 @@ public Object getAnytype3() { } - public void setAnytype3(Object anytype3) { + public void setAnytype3(@javax.annotation.Nullable Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 976c09c61efe..92b4010fac52 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -31,13 +31,14 @@ public class AdditionalPropertiesInteger extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public AdditionalPropertiesInteger() { } - public AdditionalPropertiesInteger name(String name) { + public AdditionalPropertiesInteger name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -54,7 +55,7 @@ public String getName() { } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index 8ba8607b7d89..a54006b4d24b 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -32,13 +32,14 @@ public class AdditionalPropertiesNumber extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public AdditionalPropertiesNumber() { } - public AdditionalPropertiesNumber name(String name) { + public AdditionalPropertiesNumber name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -55,7 +56,7 @@ public String getName() { } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index 64f68e63ba85..219f09a397d3 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -31,13 +31,14 @@ public class AdditionalPropertiesObject extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public AdditionalPropertiesObject() { } - public AdditionalPropertiesObject name(String name) { + public AdditionalPropertiesObject name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -54,7 +55,7 @@ public String getName() { } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 47a24dd8f6d9..b537782f59b7 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -31,13 +31,14 @@ public class AdditionalPropertiesString extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public AdditionalPropertiesString() { } - public AdditionalPropertiesString name(String name) { + public AdditionalPropertiesString name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -54,7 +55,7 @@ public String getName() { } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Animal.java index ab37c80583b5..6abf36113f67 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Animal.java @@ -29,16 +29,18 @@ public class Animal { public static final String SERIALIZED_NAME_CLASS_NAME = "className"; @SerializedName(SERIALIZED_NAME_CLASS_NAME) + @javax.annotation.Nonnull protected String className; public static final String SERIALIZED_NAME_COLOR = "color"; @SerializedName(SERIALIZED_NAME_COLOR) + @javax.annotation.Nullable protected String color = "red"; public Animal() { } - public Animal className(String className) { + public Animal className(@javax.annotation.Nonnull String className) { this.className = className; return this; @@ -55,11 +57,11 @@ public String getClassName() { } - public void setClassName(String className) { + public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; } - public Animal color(String color) { + public Animal color(@javax.annotation.Nullable String color) { this.color = color; return this; @@ -76,7 +78,7 @@ public String getColor() { } - public void setColor(String color) { + public void setColor(@javax.annotation.Nullable String color) { this.color = color; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 31b2fa2b5141..b137a3883b1e 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -33,12 +33,13 @@ public class ArrayOfArrayOfNumberOnly { public static final String SERIALIZED_NAME_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_NUMBER) + @javax.annotation.Nullable private List> arrayArrayNumber = new ArrayList<>(); public ArrayOfArrayOfNumberOnly() { } - public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + public ArrayOfArrayOfNumberOnly arrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; return this; @@ -63,7 +64,7 @@ public List> getArrayArrayNumber() { } - public void setArrayArrayNumber(List> arrayArrayNumber) { + public void setArrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index f835685bb8eb..4a73ff868460 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -33,12 +33,13 @@ public class ArrayOfNumberOnly { public static final String SERIALIZED_NAME_ARRAY_NUMBER = "ArrayNumber"; @SerializedName(SERIALIZED_NAME_ARRAY_NUMBER) + @javax.annotation.Nullable private List arrayNumber = new ArrayList<>(); public ArrayOfNumberOnly() { } - public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + public ArrayOfNumberOnly arrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; return this; @@ -63,7 +64,7 @@ public List getArrayNumber() { } - public void setArrayNumber(List arrayNumber) { + public void setArrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ArrayTest.java index 6fbcf1b284b5..14b19f0f7976 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -33,20 +33,23 @@ public class ArrayTest { public static final String SERIALIZED_NAME_ARRAY_OF_STRING = "array_of_string"; @SerializedName(SERIALIZED_NAME_ARRAY_OF_STRING) + @javax.annotation.Nullable private List arrayOfString = new ArrayList<>(); public static final String SERIALIZED_NAME_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_OF_INTEGER) + @javax.annotation.Nullable private List> arrayArrayOfInteger = new ArrayList<>(); public static final String SERIALIZED_NAME_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_OF_MODEL) + @javax.annotation.Nullable private List> arrayArrayOfModel = new ArrayList<>(); public ArrayTest() { } - public ArrayTest arrayOfString(List arrayOfString) { + public ArrayTest arrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; return this; @@ -71,11 +74,11 @@ public List getArrayOfString() { } - public void setArrayOfString(List arrayOfString) { + public void setArrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; } - public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + public ArrayTest arrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; return this; @@ -100,11 +103,11 @@ public List> getArrayArrayOfInteger() { } - public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { + public void setArrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } - public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + public ArrayTest arrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; return this; @@ -129,7 +132,7 @@ public List> getArrayArrayOfModel() { } - public void setArrayArrayOfModel(List> arrayArrayOfModel) { + public void setArrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/BigCat.java index e6a37254cdd7..082ad2753011 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/BigCat.java @@ -81,13 +81,14 @@ public KindEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) + @javax.annotation.Nullable private KindEnum kind; public BigCat() { } - public BigCat kind(KindEnum kind) { + public BigCat kind(@javax.annotation.Nullable KindEnum kind) { this.kind = kind; return this; @@ -104,18 +105,18 @@ public KindEnum getKind() { } - public void setKind(KindEnum kind) { + public void setKind(@javax.annotation.Nullable KindEnum kind) { this.kind = kind; } @Override - public BigCat className(String className) { + public BigCat className(@javax.annotation.Nonnull String className) { this.setClassName(className); return this; } @Override - public BigCat color(String color) { + public BigCat color(@javax.annotation.Nullable String color) { this.setColor(color); return this; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Capitalization.java index 5b519c3a9b00..e48c13c1230a 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Capitalization.java @@ -29,32 +29,38 @@ public class Capitalization { public static final String SERIALIZED_NAME_SMALL_CAMEL = "smallCamel"; @SerializedName(SERIALIZED_NAME_SMALL_CAMEL) + @javax.annotation.Nullable private String smallCamel; public static final String SERIALIZED_NAME_CAPITAL_CAMEL = "CapitalCamel"; @SerializedName(SERIALIZED_NAME_CAPITAL_CAMEL) + @javax.annotation.Nullable private String capitalCamel; public static final String SERIALIZED_NAME_SMALL_SNAKE = "small_Snake"; @SerializedName(SERIALIZED_NAME_SMALL_SNAKE) + @javax.annotation.Nullable private String smallSnake; public static final String SERIALIZED_NAME_CAPITAL_SNAKE = "Capital_Snake"; @SerializedName(SERIALIZED_NAME_CAPITAL_SNAKE) + @javax.annotation.Nullable private String capitalSnake; public static final String SERIALIZED_NAME_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; @SerializedName(SERIALIZED_NAME_SC_A_E_T_H_FLOW_POINTS) + @javax.annotation.Nullable private String scAETHFlowPoints; public static final String SERIALIZED_NAME_A_T_T_N_A_M_E = "ATT_NAME"; @SerializedName(SERIALIZED_NAME_A_T_T_N_A_M_E) + @javax.annotation.Nullable private String ATT_NAME; public Capitalization() { } - public Capitalization smallCamel(String smallCamel) { + public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; return this; @@ -71,11 +77,11 @@ public String getSmallCamel() { } - public void setSmallCamel(String smallCamel) { + public void setSmallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; } - public Capitalization capitalCamel(String capitalCamel) { + public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; return this; @@ -92,11 +98,11 @@ public String getCapitalCamel() { } - public void setCapitalCamel(String capitalCamel) { + public void setCapitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; } - public Capitalization smallSnake(String smallSnake) { + public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; return this; @@ -113,11 +119,11 @@ public String getSmallSnake() { } - public void setSmallSnake(String smallSnake) { + public void setSmallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; } - public Capitalization capitalSnake(String capitalSnake) { + public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; return this; @@ -134,11 +140,11 @@ public String getCapitalSnake() { } - public void setCapitalSnake(String capitalSnake) { + public void setCapitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; } - public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; return this; @@ -155,11 +161,11 @@ public String getScAETHFlowPoints() { } - public void setScAETHFlowPoints(String scAETHFlowPoints) { + public void setScAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } - public Capitalization ATT_NAME(String ATT_NAME) { + public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; return this; @@ -176,7 +182,7 @@ public String getATTNAME() { } - public void setATTNAME(String ATT_NAME) { + public void setATTNAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Cat.java index 5a9da0422398..3c35bdebe454 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Cat.java @@ -30,13 +30,14 @@ public class Cat extends Animal { public static final String SERIALIZED_NAME_DECLAWED = "declawed"; @SerializedName(SERIALIZED_NAME_DECLAWED) + @javax.annotation.Nullable protected Boolean declawed; public Cat() { } - public Cat declawed(Boolean declawed) { + public Cat declawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; return this; @@ -53,18 +54,18 @@ public Boolean getDeclawed() { } - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; } @Override - public Cat className(String className) { + public Cat className(@javax.annotation.Nonnull String className) { this.setClassName(className); return this; } @Override - public Cat color(String color) { + public Cat color(@javax.annotation.Nullable String color) { this.setColor(color); return this; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Category.java index 0d1eb88408ac..98582ccc5bb9 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Category.java @@ -29,16 +29,18 @@ public class Category { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull private String name = "default-name"; public Category() { } - public Category id(Long id) { + public Category id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -55,11 +57,11 @@ public Long getId() { } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@javax.annotation.Nonnull String name) { this.name = name; return this; @@ -76,7 +78,7 @@ public String getName() { } - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ClassModel.java index aa8445ccfeb8..4d9537a52633 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ClassModel.java @@ -29,12 +29,13 @@ public class ClassModel { public static final String SERIALIZED_NAME_PROPERTY_CLASS = "_class"; @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) + @javax.annotation.Nullable private String propertyClass; public ClassModel() { } - public ClassModel propertyClass(String propertyClass) { + public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; @@ -51,7 +52,7 @@ public String getPropertyClass() { } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Client.java index 04ada677df70..db96c6445bef 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Client.java @@ -29,12 +29,13 @@ public class Client { public static final String SERIALIZED_NAME_CLIENT = "client"; @SerializedName(SERIALIZED_NAME_CLIENT) + @javax.annotation.Nullable private String client; public Client() { } - public Client client(String client) { + public Client client(@javax.annotation.Nullable String client) { this.client = client; return this; @@ -51,7 +52,7 @@ public String getClient() { } - public void setClient(String client) { + public void setClient(@javax.annotation.Nullable String client) { this.client = client; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Dog.java index 7e3a9d344cfd..4a8170f407ea 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Dog.java @@ -30,13 +30,14 @@ public class Dog extends Animal { public static final String SERIALIZED_NAME_BREED = "breed"; @SerializedName(SERIALIZED_NAME_BREED) + @javax.annotation.Nullable private String breed; public Dog() { } - public Dog breed(String breed) { + public Dog breed(@javax.annotation.Nullable String breed) { this.breed = breed; return this; @@ -53,18 +54,18 @@ public String getBreed() { } - public void setBreed(String breed) { + public void setBreed(@javax.annotation.Nullable String breed) { this.breed = breed; } @Override - public Dog className(String className) { + public Dog className(@javax.annotation.Nonnull String className) { this.setClassName(className); return this; } @Override - public Dog color(String color) { + public Dog color(@javax.annotation.Nullable String color) { this.setColor(color); return this; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/EnumArrays.java index ea03fa8eb58e..eb365689d66d 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -79,6 +79,7 @@ public JustSymbolEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_JUST_SYMBOL = "just_symbol"; @SerializedName(SERIALIZED_NAME_JUST_SYMBOL) + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** @@ -130,12 +131,13 @@ public ArrayEnumEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_ARRAY_ENUM = "array_enum"; @SerializedName(SERIALIZED_NAME_ARRAY_ENUM) + @javax.annotation.Nullable private List arrayEnum = new ArrayList<>(); public EnumArrays() { } - public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; @@ -152,11 +154,11 @@ public JustSymbolEnum getJustSymbol() { } - public void setJustSymbol(JustSymbolEnum justSymbol) { + public void setJustSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } - public EnumArrays arrayEnum(List arrayEnum) { + public EnumArrays arrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; return this; @@ -181,7 +183,7 @@ public List getArrayEnum() { } - public void setArrayEnum(List arrayEnum) { + public void setArrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/EnumTest.java index 7ae5e0b170b9..2f8dfe271b4c 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/EnumTest.java @@ -79,6 +79,7 @@ public EnumStringEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_ENUM_STRING = "enum_string"; @SerializedName(SERIALIZED_NAME_ENUM_STRING) + @javax.annotation.Nullable private EnumStringEnum enumString; /** @@ -132,6 +133,7 @@ public EnumStringRequiredEnum read(final JsonReader jsonReader) throws IOExcepti public static final String SERIALIZED_NAME_ENUM_STRING_REQUIRED = "enum_string_required"; @SerializedName(SERIALIZED_NAME_ENUM_STRING_REQUIRED) + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** @@ -183,6 +185,7 @@ public EnumIntegerEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_ENUM_INTEGER = "enum_integer"; @SerializedName(SERIALIZED_NAME_ENUM_INTEGER) + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** @@ -234,16 +237,18 @@ public EnumNumberEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_ENUM_NUMBER = "enum_number"; @SerializedName(SERIALIZED_NAME_ENUM_NUMBER) + @javax.annotation.Nullable private EnumNumberEnum enumNumber; public static final String SERIALIZED_NAME_OUTER_ENUM = "outerEnum"; @SerializedName(SERIALIZED_NAME_OUTER_ENUM) + @javax.annotation.Nullable private OuterEnum outerEnum; public EnumTest() { } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; @@ -260,11 +265,11 @@ public EnumStringEnum getEnumString() { } - public void setEnumString(EnumStringEnum enumString) { + public void setEnumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; } - public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; return this; @@ -281,11 +286,11 @@ public EnumStringRequiredEnum getEnumStringRequired() { } - public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public void setEnumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; @@ -302,11 +307,11 @@ public EnumIntegerEnum getEnumInteger() { } - public void setEnumInteger(EnumIntegerEnum enumInteger) { + public void setEnumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } - public EnumTest enumNumber(EnumNumberEnum enumNumber) { + public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; return this; @@ -323,11 +328,11 @@ public EnumNumberEnum getEnumNumber() { } - public void setEnumNumber(EnumNumberEnum enumNumber) { + public void setEnumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } - public EnumTest outerEnum(OuterEnum outerEnum) { + public EnumTest outerEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; return this; @@ -344,7 +349,7 @@ public OuterEnum getOuterEnum() { } - public void setOuterEnum(OuterEnum outerEnum) { + public void setOuterEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 3382b63f28c7..e117ea7b5bc3 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -33,16 +33,18 @@ public class FileSchemaTestClass { public static final String SERIALIZED_NAME_FILE = "file"; @SerializedName(SERIALIZED_NAME_FILE) + @javax.annotation.Nullable private ModelFile _file; public static final String SERIALIZED_NAME_FILES = "files"; @SerializedName(SERIALIZED_NAME_FILES) + @javax.annotation.Nullable private List files = new ArrayList<>(); public FileSchemaTestClass() { } - public FileSchemaTestClass _file(ModelFile _file) { + public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { this._file = _file; return this; @@ -59,11 +61,11 @@ public ModelFile getFile() { } - public void setFile(ModelFile _file) { + public void setFile(@javax.annotation.Nullable ModelFile _file) { this._file = _file; } - public FileSchemaTestClass files(List files) { + public FileSchemaTestClass files(@javax.annotation.Nullable List files) { this.files = files; return this; @@ -88,7 +90,7 @@ public List getFiles() { } - public void setFiles(List files) { + public void setFiles(@javax.annotation.Nullable List files) { this.files = files; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/FormatTest.java index 243e970f08e5..14a53b9107ca 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/FormatTest.java @@ -34,64 +34,78 @@ public class FormatTest { public static final String SERIALIZED_NAME_INTEGER = "integer"; @SerializedName(SERIALIZED_NAME_INTEGER) + @javax.annotation.Nullable private Integer integer; public static final String SERIALIZED_NAME_INT32 = "int32"; @SerializedName(SERIALIZED_NAME_INT32) + @javax.annotation.Nullable private Integer int32; public static final String SERIALIZED_NAME_INT64 = "int64"; @SerializedName(SERIALIZED_NAME_INT64) + @javax.annotation.Nullable private Long int64; public static final String SERIALIZED_NAME_NUMBER = "number"; @SerializedName(SERIALIZED_NAME_NUMBER) + @javax.annotation.Nonnull private BigDecimal number; public static final String SERIALIZED_NAME_FLOAT = "float"; @SerializedName(SERIALIZED_NAME_FLOAT) + @javax.annotation.Nullable private Float _float; public static final String SERIALIZED_NAME_DOUBLE = "double"; @SerializedName(SERIALIZED_NAME_DOUBLE) + @javax.annotation.Nullable private Double _double; public static final String SERIALIZED_NAME_STRING = "string"; @SerializedName(SERIALIZED_NAME_STRING) + @javax.annotation.Nullable private String string; public static final String SERIALIZED_NAME_BYTE = "byte"; @SerializedName(SERIALIZED_NAME_BYTE) + @javax.annotation.Nonnull private byte[] _byte; public static final String SERIALIZED_NAME_BINARY = "binary"; @SerializedName(SERIALIZED_NAME_BINARY) + @javax.annotation.Nullable private File binary; public static final String SERIALIZED_NAME_DATE = "date"; @SerializedName(SERIALIZED_NAME_DATE) + @javax.annotation.Nonnull private LocalDate date; public static final String SERIALIZED_NAME_DATE_TIME = "dateTime"; @SerializedName(SERIALIZED_NAME_DATE_TIME) + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) + @javax.annotation.Nullable private UUID uuid; public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) + @javax.annotation.Nonnull private String password; public static final String SERIALIZED_NAME_BIG_DECIMAL = "BigDecimal"; @SerializedName(SERIALIZED_NAME_BIG_DECIMAL) + @javax.annotation.Nullable private BigDecimal bigDecimal; public FormatTest() { } - public FormatTest integer(Integer integer) { + public FormatTest integer(@javax.annotation.Nullable Integer integer) { this.integer = integer; return this; @@ -110,11 +124,11 @@ public Integer getInteger() { } - public void setInteger(Integer integer) { + public void setInteger(@javax.annotation.Nullable Integer integer) { this.integer = integer; } - public FormatTest int32(Integer int32) { + public FormatTest int32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; return this; @@ -133,11 +147,11 @@ public Integer getInt32() { } - public void setInt32(Integer int32) { + public void setInt32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; } - public FormatTest int64(Long int64) { + public FormatTest int64(@javax.annotation.Nullable Long int64) { this.int64 = int64; return this; @@ -154,11 +168,11 @@ public Long getInt64() { } - public void setInt64(Long int64) { + public void setInt64(@javax.annotation.Nullable Long int64) { this.int64 = int64; } - public FormatTest number(BigDecimal number) { + public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { this.number = number; return this; @@ -177,11 +191,11 @@ public BigDecimal getNumber() { } - public void setNumber(BigDecimal number) { + public void setNumber(@javax.annotation.Nonnull BigDecimal number) { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@javax.annotation.Nullable Float _float) { this._float = _float; return this; @@ -200,11 +214,11 @@ public Float getFloat() { } - public void setFloat(Float _float) { + public void setFloat(@javax.annotation.Nullable Float _float) { this._float = _float; } - public FormatTest _double(Double _double) { + public FormatTest _double(@javax.annotation.Nullable Double _double) { this._double = _double; return this; @@ -223,11 +237,11 @@ public Double getDouble() { } - public void setDouble(Double _double) { + public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; } - public FormatTest string(String string) { + public FormatTest string(@javax.annotation.Nullable String string) { this.string = string; return this; @@ -244,11 +258,11 @@ public String getString() { } - public void setString(String string) { + public void setString(@javax.annotation.Nullable String string) { this.string = string; } - public FormatTest _byte(byte[] _byte) { + public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; return this; @@ -265,11 +279,11 @@ public byte[] getByte() { } - public void setByte(byte[] _byte) { + public void setByte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; } - public FormatTest binary(File binary) { + public FormatTest binary(@javax.annotation.Nullable File binary) { this.binary = binary; return this; @@ -286,11 +300,11 @@ public File getBinary() { } - public void setBinary(File binary) { + public void setBinary(@javax.annotation.Nullable File binary) { this.binary = binary; } - public FormatTest date(LocalDate date) { + public FormatTest date(@javax.annotation.Nonnull LocalDate date) { this.date = date; return this; @@ -307,11 +321,11 @@ public LocalDate getDate() { } - public void setDate(LocalDate date) { + public void setDate(@javax.annotation.Nonnull LocalDate date) { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; @@ -328,11 +342,11 @@ public OffsetDateTime getDateTime() { } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public FormatTest uuid(UUID uuid) { + public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; @@ -349,11 +363,11 @@ public UUID getUuid() { } - public void setUuid(UUID uuid) { + public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public FormatTest password(String password) { + public FormatTest password(@javax.annotation.Nonnull String password) { this.password = password; return this; @@ -370,11 +384,11 @@ public String getPassword() { } - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nonnull String password) { this.password = password; } - public FormatTest bigDecimal(BigDecimal bigDecimal) { + public FormatTest bigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; @@ -391,7 +405,7 @@ public BigDecimal getBigDecimal() { } - public void setBigDecimal(BigDecimal bigDecimal) { + public void setBigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index d93cd2bb1b7b..8d80b05fdf03 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -29,10 +29,12 @@ public class HasOnlyReadOnly { public static final String SERIALIZED_NAME_BAR = "bar"; @SerializedName(SERIALIZED_NAME_BAR) + @javax.annotation.Nullable private String bar; public static final String SERIALIZED_NAME_FOO = "foo"; @SerializedName(SERIALIZED_NAME_FOO) + @javax.annotation.Nullable private String foo; public HasOnlyReadOnly() { diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/MapTest.java index b87cc29d24fd..f21f6ac0606b 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/MapTest.java @@ -31,6 +31,7 @@ public class MapTest { public static final String SERIALIZED_NAME_MAP_MAP_OF_STRING = "map_map_of_string"; @SerializedName(SERIALIZED_NAME_MAP_MAP_OF_STRING) + @javax.annotation.Nullable private Map> mapMapOfString = new HashMap<>(); /** @@ -82,20 +83,23 @@ public InnerEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_MAP_OF_ENUM_STRING = "map_of_enum_string"; @SerializedName(SERIALIZED_NAME_MAP_OF_ENUM_STRING) + @javax.annotation.Nullable private Map mapOfEnumString = new HashMap<>(); public static final String SERIALIZED_NAME_DIRECT_MAP = "direct_map"; @SerializedName(SERIALIZED_NAME_DIRECT_MAP) + @javax.annotation.Nullable private Map directMap = new HashMap<>(); public static final String SERIALIZED_NAME_INDIRECT_MAP = "indirect_map"; @SerializedName(SERIALIZED_NAME_INDIRECT_MAP) + @javax.annotation.Nullable private Map indirectMap = new HashMap<>(); public MapTest() { } - public MapTest mapMapOfString(Map> mapMapOfString) { + public MapTest mapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; return this; @@ -120,11 +124,11 @@ public Map> getMapMapOfString() { } - public void setMapMapOfString(Map> mapMapOfString) { + public void setMapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } - public MapTest mapOfEnumString(Map mapOfEnumString) { + public MapTest mapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; return this; @@ -149,11 +153,11 @@ public Map getMapOfEnumString() { } - public void setMapOfEnumString(Map mapOfEnumString) { + public void setMapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } - public MapTest directMap(Map directMap) { + public MapTest directMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; return this; @@ -178,11 +182,11 @@ public Map getDirectMap() { } - public void setDirectMap(Map directMap) { + public void setDirectMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; } - public MapTest indirectMap(Map indirectMap) { + public MapTest indirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; return this; @@ -207,7 +211,7 @@ public Map getIndirectMap() { } - public void setIndirectMap(Map indirectMap) { + public void setIndirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 9aaee874dc69..f557019b6ec6 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -34,20 +34,23 @@ public class MixedPropertiesAndAdditionalPropertiesClass { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) + @javax.annotation.Nullable private UUID uuid; public static final String SERIALIZED_NAME_DATE_TIME = "dateTime"; @SerializedName(SERIALIZED_NAME_DATE_TIME) + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String SERIALIZED_NAME_MAP = "map"; @SerializedName(SERIALIZED_NAME_MAP) + @javax.annotation.Nullable private Map map = new HashMap<>(); public MixedPropertiesAndAdditionalPropertiesClass() { } - public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; @@ -64,11 +67,11 @@ public UUID getUuid() { } - public void setUuid(UUID uuid) { + public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; @@ -85,11 +88,11 @@ public OffsetDateTime getDateTime() { } - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + public MixedPropertiesAndAdditionalPropertiesClass map(@javax.annotation.Nullable Map map) { this.map = map; return this; @@ -114,7 +117,7 @@ public Map getMap() { } - public void setMap(Map map) { + public void setMap(@javax.annotation.Nullable Map map) { this.map = map; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Model200Response.java index 1ca2f45d373d..88f5ff2718de 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Model200Response.java @@ -29,16 +29,18 @@ public class Model200Response { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private Integer name; public static final String SERIALIZED_NAME_PROPERTY_CLASS = "class"; @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) + @javax.annotation.Nullable private String propertyClass; public Model200Response() { } - public Model200Response name(Integer name) { + public Model200Response name(@javax.annotation.Nullable Integer name) { this.name = name; return this; @@ -55,11 +57,11 @@ public Integer getName() { } - public void setName(Integer name) { + public void setName(@javax.annotation.Nullable Integer name) { this.name = name; } - public Model200Response propertyClass(String propertyClass) { + public Model200Response propertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; @@ -76,7 +78,7 @@ public String getPropertyClass() { } - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 045e730b774e..000ec96dfaf8 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -29,20 +29,23 @@ public class ModelApiResponse { public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) + @javax.annotation.Nullable private Integer code; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @javax.annotation.Nullable private String type; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable private String message; public ModelApiResponse() { } - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@javax.annotation.Nullable Integer code) { this.code = code; return this; @@ -59,11 +62,11 @@ public Integer getCode() { } - public void setCode(Integer code) { + public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@javax.annotation.Nullable String type) { this.type = type; return this; @@ -80,11 +83,11 @@ public String getType() { } - public void setType(String type) { + public void setType(@javax.annotation.Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@javax.annotation.Nullable String message) { this.message = message; return this; @@ -101,7 +104,7 @@ public String getMessage() { } - public void setMessage(String message) { + public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ModelFile.java index 8d505d63bc07..ae6d1ffbb9f1 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ModelFile.java @@ -29,12 +29,13 @@ public class ModelFile { public static final String SERIALIZED_NAME_SOURCE_U_R_I = "sourceURI"; @SerializedName(SERIALIZED_NAME_SOURCE_U_R_I) + @javax.annotation.Nullable private String sourceURI; public ModelFile() { } - public ModelFile sourceURI(String sourceURI) { + public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; return this; @@ -51,7 +52,7 @@ public String getSourceURI() { } - public void setSourceURI(String sourceURI) { + public void setSourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ModelList.java index d826b31417f4..015dc0edeed6 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ModelList.java @@ -29,12 +29,13 @@ public class ModelList { public static final String SERIALIZED_NAME_123LIST = "123-list"; @SerializedName(SERIALIZED_NAME_123LIST) + @javax.annotation.Nullable private String _123list; public ModelList() { } - public ModelList _123list(String _123list) { + public ModelList _123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; return this; @@ -51,7 +52,7 @@ public String get123list() { } - public void set123list(String _123list) { + public void set123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ModelReturn.java index 6e965ebc2f25..5cab34b89312 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -29,12 +29,13 @@ public class ModelReturn { public static final String SERIALIZED_NAME_RETURN = "return"; @SerializedName(SERIALIZED_NAME_RETURN) + @javax.annotation.Nullable private Integer _return; public ModelReturn() { } - public ModelReturn _return(Integer _return) { + public ModelReturn _return(@javax.annotation.Nullable Integer _return) { this._return = _return; return this; @@ -51,7 +52,7 @@ public Integer getReturn() { } - public void setReturn(Integer _return) { + public void setReturn(@javax.annotation.Nullable Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Name.java index 74a4761d4614..30ed7d4bf22e 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Name.java @@ -29,18 +29,22 @@ public class Name { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull private Integer name; public static final String SERIALIZED_NAME_SNAKE_CASE = "snake_case"; @SerializedName(SERIALIZED_NAME_SNAKE_CASE) + @javax.annotation.Nullable private Integer snakeCase; public static final String SERIALIZED_NAME_PROPERTY = "property"; @SerializedName(SERIALIZED_NAME_PROPERTY) + @javax.annotation.Nullable private String property; public static final String SERIALIZED_NAME_123NUMBER = "123Number"; @SerializedName(SERIALIZED_NAME_123NUMBER) + @javax.annotation.Nullable private Integer _123number; public Name() { @@ -58,7 +62,7 @@ public Name( this._123number = _123number; } - public Name name(Integer name) { + public Name name(@javax.annotation.Nonnull Integer name) { this.name = name; return this; @@ -75,7 +79,7 @@ public Integer getName() { } - public void setName(Integer name) { + public void setName(@javax.annotation.Nonnull Integer name) { this.name = name; } @@ -91,7 +95,7 @@ public Integer getSnakeCase() { - public Name property(String property) { + public Name property(@javax.annotation.Nullable String property) { this.property = property; return this; @@ -108,7 +112,7 @@ public String getProperty() { } - public void setProperty(String property) { + public void setProperty(@javax.annotation.Nullable String property) { this.property = property; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/NumberOnly.java index 177526f8f0de..911a6ded44d3 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -30,12 +30,13 @@ public class NumberOnly { public static final String SERIALIZED_NAME_JUST_NUMBER = "JustNumber"; @SerializedName(SERIALIZED_NAME_JUST_NUMBER) + @javax.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } - public NumberOnly justNumber(BigDecimal justNumber) { + public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; @@ -52,7 +53,7 @@ public BigDecimal getJustNumber() { } - public void setJustNumber(BigDecimal justNumber) { + public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Order.java index 001e4761b279..fdee5b340e64 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Order.java @@ -30,18 +30,22 @@ public class Order { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_PET_ID = "petId"; @SerializedName(SERIALIZED_NAME_PET_ID) + @javax.annotation.Nullable private Long petId; public static final String SERIALIZED_NAME_QUANTITY = "quantity"; @SerializedName(SERIALIZED_NAME_QUANTITY) + @javax.annotation.Nullable private Integer quantity; public static final String SERIALIZED_NAME_SHIP_DATE = "shipDate"; @SerializedName(SERIALIZED_NAME_SHIP_DATE) + @javax.annotation.Nullable private OffsetDateTime shipDate; /** @@ -95,16 +99,18 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable private StatusEnum status; public static final String SERIALIZED_NAME_COMPLETE = "complete"; @SerializedName(SERIALIZED_NAME_COMPLETE) + @javax.annotation.Nullable private Boolean complete = false; public Order() { } - public Order id(Long id) { + public Order id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -121,11 +127,11 @@ public Long getId() { } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@javax.annotation.Nullable Long petId) { this.petId = petId; return this; @@ -142,11 +148,11 @@ public Long getPetId() { } - public void setPetId(Long petId) { + public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; return this; @@ -163,11 +169,11 @@ public Integer getQuantity() { } - public void setQuantity(Integer quantity) { + public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; @@ -184,11 +190,11 @@ public OffsetDateTime getShipDate() { } - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -205,11 +211,11 @@ public StatusEnum getStatus() { } - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } - public Order complete(Boolean complete) { + public Order complete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; return this; @@ -226,7 +232,7 @@ public Boolean getComplete() { } - public void setComplete(Boolean complete) { + public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/OuterComposite.java index 8fe0804219bd..496b881bdac1 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -30,20 +30,23 @@ public class OuterComposite { public static final String SERIALIZED_NAME_MY_NUMBER = "my_number"; @SerializedName(SERIALIZED_NAME_MY_NUMBER) + @javax.annotation.Nullable private BigDecimal myNumber; public static final String SERIALIZED_NAME_MY_STRING = "my_string"; @SerializedName(SERIALIZED_NAME_MY_STRING) + @javax.annotation.Nullable private String myString; public static final String SERIALIZED_NAME_MY_BOOLEAN = "my_boolean"; @SerializedName(SERIALIZED_NAME_MY_BOOLEAN) + @javax.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } - public OuterComposite myNumber(BigDecimal myNumber) { + public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; @@ -60,11 +63,11 @@ public BigDecimal getMyNumber() { } - public void setMyNumber(BigDecimal myNumber) { + public void setMyNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; } - public OuterComposite myString(String myString) { + public OuterComposite myString(@javax.annotation.Nullable String myString) { this.myString = myString; return this; @@ -81,11 +84,11 @@ public String getMyString() { } - public void setMyString(String myString) { + public void setMyString(@javax.annotation.Nullable String myString) { this.myString = myString; } - public OuterComposite myBoolean(Boolean myBoolean) { + public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; return this; @@ -102,7 +105,7 @@ public Boolean getMyBoolean() { } - public void setMyBoolean(Boolean myBoolean) { + public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Pet.java index 3deb8b3fe8ec..4678542a5bbd 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Pet.java @@ -36,22 +36,27 @@ public class Pet { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_CATEGORY = "category"; @SerializedName(SERIALIZED_NAME_CATEGORY) + @javax.annotation.Nullable private Category category; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; @SerializedName(SERIALIZED_NAME_PHOTO_URLS) + @javax.annotation.Nonnull private Set photoUrls = new LinkedHashSet<>(); public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** @@ -105,12 +110,13 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable private StatusEnum status; public Pet() { } - public Pet id(Long id) { + public Pet id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -127,11 +133,11 @@ public Long getId() { } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@javax.annotation.Nullable Category category) { this.category = category; return this; @@ -148,11 +154,11 @@ public Category getCategory() { } - public void setCategory(Category category) { + public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; } - public Pet name(String name) { + public Pet name(@javax.annotation.Nonnull String name) { this.name = name; return this; @@ -169,11 +175,11 @@ public String getName() { } - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } - public Pet photoUrls(Set photoUrls) { + public Pet photoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; return this; @@ -198,11 +204,11 @@ public Set getPhotoUrls() { } - public void setPhotoUrls(Set photoUrls) { + public void setPhotoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; } - public Pet tags(List tags) { + public Pet tags(@javax.annotation.Nullable List tags) { this.tags = tags; return this; @@ -227,11 +233,11 @@ public List getTags() { } - public void setTags(List tags) { + public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -248,7 +254,7 @@ public StatusEnum getStatus() { } - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index aa5be000c83b..691c938ff28c 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -29,10 +29,12 @@ public class ReadOnlyFirst { public static final String SERIALIZED_NAME_BAR = "bar"; @SerializedName(SERIALIZED_NAME_BAR) + @javax.annotation.Nullable private String bar; public static final String SERIALIZED_NAME_BAZ = "baz"; @SerializedName(SERIALIZED_NAME_BAZ) + @javax.annotation.Nullable private String baz; public ReadOnlyFirst() { @@ -60,7 +62,7 @@ public String getBar() { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { this.baz = baz; return this; @@ -77,7 +79,7 @@ public String getBaz() { } - public void setBaz(String baz) { + public void setBaz(@javax.annotation.Nullable String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/SpecialModelName.java index 7d5f1ac85ae8..84f8213c251b 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -29,12 +29,13 @@ public class SpecialModelName { public static final String SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; @SerializedName(SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME) + @javax.annotation.Nullable private Long $specialPropertyName; public SpecialModelName() { } - public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + public SpecialModelName $specialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; return this; @@ -51,7 +52,7 @@ public SpecialModelName() { } - public void set$SpecialPropertyName(Long $specialPropertyName) { + public void set$SpecialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Tag.java index 9d3ee5016b2a..80a485fe15bc 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Tag.java @@ -29,16 +29,18 @@ public class Tag { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public Tag() { } - public Tag id(Long id) { + public Tag id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -55,11 +57,11 @@ public Long getId() { } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -76,7 +78,7 @@ public String getName() { } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index 04ef511fe21d..9962f02a2163 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -33,28 +33,33 @@ public class TypeHolderDefault { public static final String SERIALIZED_NAME_STRING_ITEM = "string_item"; @SerializedName(SERIALIZED_NAME_STRING_ITEM) + @javax.annotation.Nonnull private String stringItem = "what"; public static final String SERIALIZED_NAME_NUMBER_ITEM = "number_item"; @SerializedName(SERIALIZED_NAME_NUMBER_ITEM) + @javax.annotation.Nonnull private BigDecimal numberItem; public static final String SERIALIZED_NAME_INTEGER_ITEM = "integer_item"; @SerializedName(SERIALIZED_NAME_INTEGER_ITEM) + @javax.annotation.Nonnull private Integer integerItem; public static final String SERIALIZED_NAME_BOOL_ITEM = "bool_item"; @SerializedName(SERIALIZED_NAME_BOOL_ITEM) + @javax.annotation.Nonnull private Boolean boolItem = true; public static final String SERIALIZED_NAME_ARRAY_ITEM = "array_item"; @SerializedName(SERIALIZED_NAME_ARRAY_ITEM) + @javax.annotation.Nonnull private List arrayItem = new ArrayList<>(); public TypeHolderDefault() { } - public TypeHolderDefault stringItem(String stringItem) { + public TypeHolderDefault stringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; return this; @@ -71,11 +76,11 @@ public String getStringItem() { } - public void setStringItem(String stringItem) { + public void setStringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; } - public TypeHolderDefault numberItem(BigDecimal numberItem) { + public TypeHolderDefault numberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; return this; @@ -92,11 +97,11 @@ public BigDecimal getNumberItem() { } - public void setNumberItem(BigDecimal numberItem) { + public void setNumberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; } - public TypeHolderDefault integerItem(Integer integerItem) { + public TypeHolderDefault integerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; return this; @@ -113,11 +118,11 @@ public Integer getIntegerItem() { } - public void setIntegerItem(Integer integerItem) { + public void setIntegerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; } - public TypeHolderDefault boolItem(Boolean boolItem) { + public TypeHolderDefault boolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; return this; @@ -134,11 +139,11 @@ public Boolean getBoolItem() { } - public void setBoolItem(Boolean boolItem) { + public void setBoolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; } - public TypeHolderDefault arrayItem(List arrayItem) { + public TypeHolderDefault arrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; return this; @@ -163,7 +168,7 @@ public List getArrayItem() { } - public void setArrayItem(List arrayItem) { + public void setArrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/TypeHolderExample.java index 4ed785c0c632..11e9d2d2d349 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -33,32 +33,38 @@ public class TypeHolderExample { public static final String SERIALIZED_NAME_STRING_ITEM = "string_item"; @SerializedName(SERIALIZED_NAME_STRING_ITEM) + @javax.annotation.Nonnull private String stringItem; public static final String SERIALIZED_NAME_NUMBER_ITEM = "number_item"; @SerializedName(SERIALIZED_NAME_NUMBER_ITEM) + @javax.annotation.Nonnull private BigDecimal numberItem; public static final String SERIALIZED_NAME_FLOAT_ITEM = "float_item"; @SerializedName(SERIALIZED_NAME_FLOAT_ITEM) + @javax.annotation.Nonnull private Float floatItem; public static final String SERIALIZED_NAME_INTEGER_ITEM = "integer_item"; @SerializedName(SERIALIZED_NAME_INTEGER_ITEM) + @javax.annotation.Nonnull private Integer integerItem; public static final String SERIALIZED_NAME_BOOL_ITEM = "bool_item"; @SerializedName(SERIALIZED_NAME_BOOL_ITEM) + @javax.annotation.Nonnull private Boolean boolItem; public static final String SERIALIZED_NAME_ARRAY_ITEM = "array_item"; @SerializedName(SERIALIZED_NAME_ARRAY_ITEM) + @javax.annotation.Nonnull private List arrayItem = new ArrayList<>(); public TypeHolderExample() { } - public TypeHolderExample stringItem(String stringItem) { + public TypeHolderExample stringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; return this; @@ -75,11 +81,11 @@ public String getStringItem() { } - public void setStringItem(String stringItem) { + public void setStringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; } - public TypeHolderExample numberItem(BigDecimal numberItem) { + public TypeHolderExample numberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; return this; @@ -96,11 +102,11 @@ public BigDecimal getNumberItem() { } - public void setNumberItem(BigDecimal numberItem) { + public void setNumberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; } - public TypeHolderExample floatItem(Float floatItem) { + public TypeHolderExample floatItem(@javax.annotation.Nonnull Float floatItem) { this.floatItem = floatItem; return this; @@ -117,11 +123,11 @@ public Float getFloatItem() { } - public void setFloatItem(Float floatItem) { + public void setFloatItem(@javax.annotation.Nonnull Float floatItem) { this.floatItem = floatItem; } - public TypeHolderExample integerItem(Integer integerItem) { + public TypeHolderExample integerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; return this; @@ -138,11 +144,11 @@ public Integer getIntegerItem() { } - public void setIntegerItem(Integer integerItem) { + public void setIntegerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; } - public TypeHolderExample boolItem(Boolean boolItem) { + public TypeHolderExample boolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; return this; @@ -159,11 +165,11 @@ public Boolean getBoolItem() { } - public void setBoolItem(Boolean boolItem) { + public void setBoolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; } - public TypeHolderExample arrayItem(List arrayItem) { + public TypeHolderExample arrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; return this; @@ -188,7 +194,7 @@ public List getArrayItem() { } - public void setArrayItem(List arrayItem) { + public void setArrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/User.java index e45116bcbf34..f01b412614b3 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/User.java @@ -29,40 +29,48 @@ public class User { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_USERNAME = "username"; @SerializedName(SERIALIZED_NAME_USERNAME) + @javax.annotation.Nullable private String username; public static final String SERIALIZED_NAME_FIRST_NAME = "firstName"; @SerializedName(SERIALIZED_NAME_FIRST_NAME) + @javax.annotation.Nullable private String firstName; public static final String SERIALIZED_NAME_LAST_NAME = "lastName"; @SerializedName(SERIALIZED_NAME_LAST_NAME) + @javax.annotation.Nullable private String lastName; public static final String SERIALIZED_NAME_EMAIL = "email"; @SerializedName(SERIALIZED_NAME_EMAIL) + @javax.annotation.Nullable private String email; public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) + @javax.annotation.Nullable private String password; public static final String SERIALIZED_NAME_PHONE = "phone"; @SerializedName(SERIALIZED_NAME_PHONE) + @javax.annotation.Nullable private String phone; public static final String SERIALIZED_NAME_USER_STATUS = "userStatus"; @SerializedName(SERIALIZED_NAME_USER_STATUS) + @javax.annotation.Nullable private Integer userStatus; public User() { } - public User id(Long id) { + public User id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -79,11 +87,11 @@ public Long getId() { } - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@javax.annotation.Nullable String username) { this.username = username; return this; @@ -100,11 +108,11 @@ public String getUsername() { } - public void setUsername(String username) { + public void setUsername(@javax.annotation.Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; return this; @@ -121,11 +129,11 @@ public String getFirstName() { } - public void setFirstName(String firstName) { + public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; return this; @@ -142,11 +150,11 @@ public String getLastName() { } - public void setLastName(String lastName) { + public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@javax.annotation.Nullable String email) { this.email = email; return this; @@ -163,11 +171,11 @@ public String getEmail() { } - public void setEmail(String email) { + public void setEmail(@javax.annotation.Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@javax.annotation.Nullable String password) { this.password = password; return this; @@ -184,11 +192,11 @@ public String getPassword() { } - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@javax.annotation.Nullable String phone) { this.phone = phone; return this; @@ -205,11 +213,11 @@ public String getPhone() { } - public void setPhone(String phone) { + public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; return this; @@ -226,7 +234,7 @@ public Integer getUserStatus() { } - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/XmlItem.java index da273cba73f7..fe04156a61c1 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/XmlItem.java @@ -33,124 +33,153 @@ public class XmlItem { public static final String SERIALIZED_NAME_ATTRIBUTE_STRING = "attribute_string"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_STRING) + @javax.annotation.Nullable private String attributeString; public static final String SERIALIZED_NAME_ATTRIBUTE_NUMBER = "attribute_number"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_NUMBER) + @javax.annotation.Nullable private BigDecimal attributeNumber; public static final String SERIALIZED_NAME_ATTRIBUTE_INTEGER = "attribute_integer"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_INTEGER) + @javax.annotation.Nullable private Integer attributeInteger; public static final String SERIALIZED_NAME_ATTRIBUTE_BOOLEAN = "attribute_boolean"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_BOOLEAN) + @javax.annotation.Nullable private Boolean attributeBoolean; public static final String SERIALIZED_NAME_WRAPPED_ARRAY = "wrapped_array"; @SerializedName(SERIALIZED_NAME_WRAPPED_ARRAY) + @javax.annotation.Nullable private List wrappedArray = new ArrayList<>(); public static final String SERIALIZED_NAME_NAME_STRING = "name_string"; @SerializedName(SERIALIZED_NAME_NAME_STRING) + @javax.annotation.Nullable private String nameString; public static final String SERIALIZED_NAME_NAME_NUMBER = "name_number"; @SerializedName(SERIALIZED_NAME_NAME_NUMBER) + @javax.annotation.Nullable private BigDecimal nameNumber; public static final String SERIALIZED_NAME_NAME_INTEGER = "name_integer"; @SerializedName(SERIALIZED_NAME_NAME_INTEGER) + @javax.annotation.Nullable private Integer nameInteger; public static final String SERIALIZED_NAME_NAME_BOOLEAN = "name_boolean"; @SerializedName(SERIALIZED_NAME_NAME_BOOLEAN) + @javax.annotation.Nullable private Boolean nameBoolean; public static final String SERIALIZED_NAME_NAME_ARRAY = "name_array"; @SerializedName(SERIALIZED_NAME_NAME_ARRAY) + @javax.annotation.Nullable private List nameArray = new ArrayList<>(); public static final String SERIALIZED_NAME_NAME_WRAPPED_ARRAY = "name_wrapped_array"; @SerializedName(SERIALIZED_NAME_NAME_WRAPPED_ARRAY) + @javax.annotation.Nullable private List nameWrappedArray = new ArrayList<>(); public static final String SERIALIZED_NAME_PREFIX_STRING = "prefix_string"; @SerializedName(SERIALIZED_NAME_PREFIX_STRING) + @javax.annotation.Nullable private String prefixString; public static final String SERIALIZED_NAME_PREFIX_NUMBER = "prefix_number"; @SerializedName(SERIALIZED_NAME_PREFIX_NUMBER) + @javax.annotation.Nullable private BigDecimal prefixNumber; public static final String SERIALIZED_NAME_PREFIX_INTEGER = "prefix_integer"; @SerializedName(SERIALIZED_NAME_PREFIX_INTEGER) + @javax.annotation.Nullable private Integer prefixInteger; public static final String SERIALIZED_NAME_PREFIX_BOOLEAN = "prefix_boolean"; @SerializedName(SERIALIZED_NAME_PREFIX_BOOLEAN) + @javax.annotation.Nullable private Boolean prefixBoolean; public static final String SERIALIZED_NAME_PREFIX_ARRAY = "prefix_array"; @SerializedName(SERIALIZED_NAME_PREFIX_ARRAY) + @javax.annotation.Nullable private List prefixArray = new ArrayList<>(); public static final String SERIALIZED_NAME_PREFIX_WRAPPED_ARRAY = "prefix_wrapped_array"; @SerializedName(SERIALIZED_NAME_PREFIX_WRAPPED_ARRAY) + @javax.annotation.Nullable private List prefixWrappedArray = new ArrayList<>(); public static final String SERIALIZED_NAME_NAMESPACE_STRING = "namespace_string"; @SerializedName(SERIALIZED_NAME_NAMESPACE_STRING) + @javax.annotation.Nullable private String namespaceString; public static final String SERIALIZED_NAME_NAMESPACE_NUMBER = "namespace_number"; @SerializedName(SERIALIZED_NAME_NAMESPACE_NUMBER) + @javax.annotation.Nullable private BigDecimal namespaceNumber; public static final String SERIALIZED_NAME_NAMESPACE_INTEGER = "namespace_integer"; @SerializedName(SERIALIZED_NAME_NAMESPACE_INTEGER) + @javax.annotation.Nullable private Integer namespaceInteger; public static final String SERIALIZED_NAME_NAMESPACE_BOOLEAN = "namespace_boolean"; @SerializedName(SERIALIZED_NAME_NAMESPACE_BOOLEAN) + @javax.annotation.Nullable private Boolean namespaceBoolean; public static final String SERIALIZED_NAME_NAMESPACE_ARRAY = "namespace_array"; @SerializedName(SERIALIZED_NAME_NAMESPACE_ARRAY) + @javax.annotation.Nullable private List namespaceArray = new ArrayList<>(); public static final String SERIALIZED_NAME_NAMESPACE_WRAPPED_ARRAY = "namespace_wrapped_array"; @SerializedName(SERIALIZED_NAME_NAMESPACE_WRAPPED_ARRAY) + @javax.annotation.Nullable private List namespaceWrappedArray = new ArrayList<>(); public static final String SERIALIZED_NAME_PREFIX_NS_STRING = "prefix_ns_string"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_STRING) + @javax.annotation.Nullable private String prefixNsString; public static final String SERIALIZED_NAME_PREFIX_NS_NUMBER = "prefix_ns_number"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_NUMBER) + @javax.annotation.Nullable private BigDecimal prefixNsNumber; public static final String SERIALIZED_NAME_PREFIX_NS_INTEGER = "prefix_ns_integer"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_INTEGER) + @javax.annotation.Nullable private Integer prefixNsInteger; public static final String SERIALIZED_NAME_PREFIX_NS_BOOLEAN = "prefix_ns_boolean"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_BOOLEAN) + @javax.annotation.Nullable private Boolean prefixNsBoolean; public static final String SERIALIZED_NAME_PREFIX_NS_ARRAY = "prefix_ns_array"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_ARRAY) + @javax.annotation.Nullable private List prefixNsArray = new ArrayList<>(); public static final String SERIALIZED_NAME_PREFIX_NS_WRAPPED_ARRAY = "prefix_ns_wrapped_array"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_WRAPPED_ARRAY) + @javax.annotation.Nullable private List prefixNsWrappedArray = new ArrayList<>(); public XmlItem() { } - public XmlItem attributeString(String attributeString) { + public XmlItem attributeString(@javax.annotation.Nullable String attributeString) { this.attributeString = attributeString; return this; @@ -167,11 +196,11 @@ public String getAttributeString() { } - public void setAttributeString(String attributeString) { + public void setAttributeString(@javax.annotation.Nullable String attributeString) { this.attributeString = attributeString; } - public XmlItem attributeNumber(BigDecimal attributeNumber) { + public XmlItem attributeNumber(@javax.annotation.Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; return this; @@ -188,11 +217,11 @@ public BigDecimal getAttributeNumber() { } - public void setAttributeNumber(BigDecimal attributeNumber) { + public void setAttributeNumber(@javax.annotation.Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } - public XmlItem attributeInteger(Integer attributeInteger) { + public XmlItem attributeInteger(@javax.annotation.Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; return this; @@ -209,11 +238,11 @@ public Integer getAttributeInteger() { } - public void setAttributeInteger(Integer attributeInteger) { + public void setAttributeInteger(@javax.annotation.Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; } - public XmlItem attributeBoolean(Boolean attributeBoolean) { + public XmlItem attributeBoolean(@javax.annotation.Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; return this; @@ -230,11 +259,11 @@ public Boolean getAttributeBoolean() { } - public void setAttributeBoolean(Boolean attributeBoolean) { + public void setAttributeBoolean(@javax.annotation.Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } - public XmlItem wrappedArray(List wrappedArray) { + public XmlItem wrappedArray(@javax.annotation.Nullable List wrappedArray) { this.wrappedArray = wrappedArray; return this; @@ -259,11 +288,11 @@ public List getWrappedArray() { } - public void setWrappedArray(List wrappedArray) { + public void setWrappedArray(@javax.annotation.Nullable List wrappedArray) { this.wrappedArray = wrappedArray; } - public XmlItem nameString(String nameString) { + public XmlItem nameString(@javax.annotation.Nullable String nameString) { this.nameString = nameString; return this; @@ -280,11 +309,11 @@ public String getNameString() { } - public void setNameString(String nameString) { + public void setNameString(@javax.annotation.Nullable String nameString) { this.nameString = nameString; } - public XmlItem nameNumber(BigDecimal nameNumber) { + public XmlItem nameNumber(@javax.annotation.Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; return this; @@ -301,11 +330,11 @@ public BigDecimal getNameNumber() { } - public void setNameNumber(BigDecimal nameNumber) { + public void setNameNumber(@javax.annotation.Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; } - public XmlItem nameInteger(Integer nameInteger) { + public XmlItem nameInteger(@javax.annotation.Nullable Integer nameInteger) { this.nameInteger = nameInteger; return this; @@ -322,11 +351,11 @@ public Integer getNameInteger() { } - public void setNameInteger(Integer nameInteger) { + public void setNameInteger(@javax.annotation.Nullable Integer nameInteger) { this.nameInteger = nameInteger; } - public XmlItem nameBoolean(Boolean nameBoolean) { + public XmlItem nameBoolean(@javax.annotation.Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; return this; @@ -343,11 +372,11 @@ public Boolean getNameBoolean() { } - public void setNameBoolean(Boolean nameBoolean) { + public void setNameBoolean(@javax.annotation.Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; } - public XmlItem nameArray(List nameArray) { + public XmlItem nameArray(@javax.annotation.Nullable List nameArray) { this.nameArray = nameArray; return this; @@ -372,11 +401,11 @@ public List getNameArray() { } - public void setNameArray(List nameArray) { + public void setNameArray(@javax.annotation.Nullable List nameArray) { this.nameArray = nameArray; } - public XmlItem nameWrappedArray(List nameWrappedArray) { + public XmlItem nameWrappedArray(@javax.annotation.Nullable List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; return this; @@ -401,11 +430,11 @@ public List getNameWrappedArray() { } - public void setNameWrappedArray(List nameWrappedArray) { + public void setNameWrappedArray(@javax.annotation.Nullable List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } - public XmlItem prefixString(String prefixString) { + public XmlItem prefixString(@javax.annotation.Nullable String prefixString) { this.prefixString = prefixString; return this; @@ -422,11 +451,11 @@ public String getPrefixString() { } - public void setPrefixString(String prefixString) { + public void setPrefixString(@javax.annotation.Nullable String prefixString) { this.prefixString = prefixString; } - public XmlItem prefixNumber(BigDecimal prefixNumber) { + public XmlItem prefixNumber(@javax.annotation.Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; return this; @@ -443,11 +472,11 @@ public BigDecimal getPrefixNumber() { } - public void setPrefixNumber(BigDecimal prefixNumber) { + public void setPrefixNumber(@javax.annotation.Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } - public XmlItem prefixInteger(Integer prefixInteger) { + public XmlItem prefixInteger(@javax.annotation.Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; return this; @@ -464,11 +493,11 @@ public Integer getPrefixInteger() { } - public void setPrefixInteger(Integer prefixInteger) { + public void setPrefixInteger(@javax.annotation.Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; } - public XmlItem prefixBoolean(Boolean prefixBoolean) { + public XmlItem prefixBoolean(@javax.annotation.Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; return this; @@ -485,11 +514,11 @@ public Boolean getPrefixBoolean() { } - public void setPrefixBoolean(Boolean prefixBoolean) { + public void setPrefixBoolean(@javax.annotation.Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } - public XmlItem prefixArray(List prefixArray) { + public XmlItem prefixArray(@javax.annotation.Nullable List prefixArray) { this.prefixArray = prefixArray; return this; @@ -514,11 +543,11 @@ public List getPrefixArray() { } - public void setPrefixArray(List prefixArray) { + public void setPrefixArray(@javax.annotation.Nullable List prefixArray) { this.prefixArray = prefixArray; } - public XmlItem prefixWrappedArray(List prefixWrappedArray) { + public XmlItem prefixWrappedArray(@javax.annotation.Nullable List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; return this; @@ -543,11 +572,11 @@ public List getPrefixWrappedArray() { } - public void setPrefixWrappedArray(List prefixWrappedArray) { + public void setPrefixWrappedArray(@javax.annotation.Nullable List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem namespaceString(String namespaceString) { + public XmlItem namespaceString(@javax.annotation.Nullable String namespaceString) { this.namespaceString = namespaceString; return this; @@ -564,11 +593,11 @@ public String getNamespaceString() { } - public void setNamespaceString(String namespaceString) { + public void setNamespaceString(@javax.annotation.Nullable String namespaceString) { this.namespaceString = namespaceString; } - public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + public XmlItem namespaceNumber(@javax.annotation.Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; return this; @@ -585,11 +614,11 @@ public BigDecimal getNamespaceNumber() { } - public void setNamespaceNumber(BigDecimal namespaceNumber) { + public void setNamespaceNumber(@javax.annotation.Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } - public XmlItem namespaceInteger(Integer namespaceInteger) { + public XmlItem namespaceInteger(@javax.annotation.Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; return this; @@ -606,11 +635,11 @@ public Integer getNamespaceInteger() { } - public void setNamespaceInteger(Integer namespaceInteger) { + public void setNamespaceInteger(@javax.annotation.Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } - public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + public XmlItem namespaceBoolean(@javax.annotation.Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; return this; @@ -627,11 +656,11 @@ public Boolean getNamespaceBoolean() { } - public void setNamespaceBoolean(Boolean namespaceBoolean) { + public void setNamespaceBoolean(@javax.annotation.Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } - public XmlItem namespaceArray(List namespaceArray) { + public XmlItem namespaceArray(@javax.annotation.Nullable List namespaceArray) { this.namespaceArray = namespaceArray; return this; @@ -656,11 +685,11 @@ public List getNamespaceArray() { } - public void setNamespaceArray(List namespaceArray) { + public void setNamespaceArray(@javax.annotation.Nullable List namespaceArray) { this.namespaceArray = namespaceArray; } - public XmlItem namespaceWrappedArray(List namespaceWrappedArray) { + public XmlItem namespaceWrappedArray(@javax.annotation.Nullable List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; return this; @@ -685,11 +714,11 @@ public List getNamespaceWrappedArray() { } - public void setNamespaceWrappedArray(List namespaceWrappedArray) { + public void setNamespaceWrappedArray(@javax.annotation.Nullable List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem prefixNsString(String prefixNsString) { + public XmlItem prefixNsString(@javax.annotation.Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; @@ -706,11 +735,11 @@ public String getPrefixNsString() { } - public void setPrefixNsString(String prefixNsString) { + public void setPrefixNsString(@javax.annotation.Nullable String prefixNsString) { this.prefixNsString = prefixNsString; } - public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + public XmlItem prefixNsNumber(@javax.annotation.Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; return this; @@ -727,11 +756,11 @@ public BigDecimal getPrefixNsNumber() { } - public void setPrefixNsNumber(BigDecimal prefixNsNumber) { + public void setPrefixNsNumber(@javax.annotation.Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } - public XmlItem prefixNsInteger(Integer prefixNsInteger) { + public XmlItem prefixNsInteger(@javax.annotation.Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; return this; @@ -748,11 +777,11 @@ public Integer getPrefixNsInteger() { } - public void setPrefixNsInteger(Integer prefixNsInteger) { + public void setPrefixNsInteger(@javax.annotation.Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } - public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + public XmlItem prefixNsBoolean(@javax.annotation.Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; return this; @@ -769,11 +798,11 @@ public Boolean getPrefixNsBoolean() { } - public void setPrefixNsBoolean(Boolean prefixNsBoolean) { + public void setPrefixNsBoolean(@javax.annotation.Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } - public XmlItem prefixNsArray(List prefixNsArray) { + public XmlItem prefixNsArray(@javax.annotation.Nullable List prefixNsArray) { this.prefixNsArray = prefixNsArray; return this; @@ -798,11 +827,11 @@ public List getPrefixNsArray() { } - public void setPrefixNsArray(List prefixNsArray) { + public void setPrefixNsArray(@javax.annotation.Nullable List prefixNsArray) { this.prefixNsArray = prefixNsArray; } - public XmlItem prefixNsWrappedArray(List prefixNsWrappedArray) { + public XmlItem prefixNsWrappedArray(@javax.annotation.Nullable List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; return this; @@ -827,7 +856,7 @@ public List getPrefixNsWrappedArray() { } - public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { + public void setPrefixNsWrappedArray(@javax.annotation.Nullable List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index 7d76015c18dc..63a3f904eef9 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -34,13 +34,14 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesAnyType extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public AdditionalPropertiesAnyType() { } - public AdditionalPropertiesAnyType name(String name) { + public AdditionalPropertiesAnyType name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -61,7 +62,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index b204848d8b07..8ec5951dce5e 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -35,13 +35,14 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesArray extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public AdditionalPropertiesArray() { } - public AdditionalPropertiesArray name(String name) { + public AdditionalPropertiesArray name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -62,7 +63,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 390a17d46c04..2e1a6fc42022 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -34,13 +34,14 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesBoolean extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public AdditionalPropertiesBoolean() { } - public AdditionalPropertiesBoolean name(String name) { + public AdditionalPropertiesBoolean name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -61,7 +62,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 7f8a1aab0163..f3d5bcd5ea4e 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -46,42 +46,53 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_STRING = "map_string"; + @javax.annotation.Nullable private Map mapString = new HashMap<>(); public static final String JSON_PROPERTY_MAP_NUMBER = "map_number"; + @javax.annotation.Nullable private Map mapNumber = new HashMap<>(); public static final String JSON_PROPERTY_MAP_INTEGER = "map_integer"; + @javax.annotation.Nullable private Map mapInteger = new HashMap<>(); public static final String JSON_PROPERTY_MAP_BOOLEAN = "map_boolean"; + @javax.annotation.Nullable private Map mapBoolean = new HashMap<>(); public static final String JSON_PROPERTY_MAP_ARRAY_INTEGER = "map_array_integer"; + @javax.annotation.Nullable private Map> mapArrayInteger = new HashMap<>(); public static final String JSON_PROPERTY_MAP_ARRAY_ANYTYPE = "map_array_anytype"; + @javax.annotation.Nullable private Map> mapArrayAnytype = new HashMap<>(); public static final String JSON_PROPERTY_MAP_MAP_STRING = "map_map_string"; + @javax.annotation.Nullable private Map> mapMapString = new HashMap<>(); public static final String JSON_PROPERTY_MAP_MAP_ANYTYPE = "map_map_anytype"; + @javax.annotation.Nullable private Map> mapMapAnytype = new HashMap<>(); public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1"; + @javax.annotation.Nullable private Object anytype1; public static final String JSON_PROPERTY_ANYTYPE2 = "anytype_2"; + @javax.annotation.Nullable private Object anytype2; public static final String JSON_PROPERTY_ANYTYPE3 = "anytype_3"; + @javax.annotation.Nullable private Object anytype3; public AdditionalPropertiesClass() { } - public AdditionalPropertiesClass mapString(Map mapString) { + public AdditionalPropertiesClass mapString(@javax.annotation.Nullable Map mapString) { this.mapString = mapString; return this; @@ -110,11 +121,11 @@ public Map getMapString() { @JsonProperty(JSON_PROPERTY_MAP_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapString(Map mapString) { + public void setMapString(@javax.annotation.Nullable Map mapString) { this.mapString = mapString; } - public AdditionalPropertiesClass mapNumber(Map mapNumber) { + public AdditionalPropertiesClass mapNumber(@javax.annotation.Nullable Map mapNumber) { this.mapNumber = mapNumber; return this; @@ -143,11 +154,11 @@ public Map getMapNumber() { @JsonProperty(JSON_PROPERTY_MAP_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapNumber(Map mapNumber) { + public void setMapNumber(@javax.annotation.Nullable Map mapNumber) { this.mapNumber = mapNumber; } - public AdditionalPropertiesClass mapInteger(Map mapInteger) { + public AdditionalPropertiesClass mapInteger(@javax.annotation.Nullable Map mapInteger) { this.mapInteger = mapInteger; return this; @@ -176,11 +187,11 @@ public Map getMapInteger() { @JsonProperty(JSON_PROPERTY_MAP_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapInteger(Map mapInteger) { + public void setMapInteger(@javax.annotation.Nullable Map mapInteger) { this.mapInteger = mapInteger; } - public AdditionalPropertiesClass mapBoolean(Map mapBoolean) { + public AdditionalPropertiesClass mapBoolean(@javax.annotation.Nullable Map mapBoolean) { this.mapBoolean = mapBoolean; return this; @@ -209,11 +220,11 @@ public Map getMapBoolean() { @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapBoolean(Map mapBoolean) { + public void setMapBoolean(@javax.annotation.Nullable Map mapBoolean) { this.mapBoolean = mapBoolean; } - public AdditionalPropertiesClass mapArrayInteger(Map> mapArrayInteger) { + public AdditionalPropertiesClass mapArrayInteger(@javax.annotation.Nullable Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; return this; @@ -242,11 +253,11 @@ public Map> getMapArrayInteger() { @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapArrayInteger(Map> mapArrayInteger) { + public void setMapArrayInteger(@javax.annotation.Nullable Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; } - public AdditionalPropertiesClass mapArrayAnytype(Map> mapArrayAnytype) { + public AdditionalPropertiesClass mapArrayAnytype(@javax.annotation.Nullable Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; return this; @@ -275,11 +286,11 @@ public Map> getMapArrayAnytype() { @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapArrayAnytype(Map> mapArrayAnytype) { + public void setMapArrayAnytype(@javax.annotation.Nullable Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; } - public AdditionalPropertiesClass mapMapString(Map> mapMapString) { + public AdditionalPropertiesClass mapMapString(@javax.annotation.Nullable Map> mapMapString) { this.mapMapString = mapMapString; return this; @@ -308,11 +319,11 @@ public Map> getMapMapString() { @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapMapString(Map> mapMapString) { + public void setMapMapString(@javax.annotation.Nullable Map> mapMapString) { this.mapMapString = mapMapString; } - public AdditionalPropertiesClass mapMapAnytype(Map> mapMapAnytype) { + public AdditionalPropertiesClass mapMapAnytype(@javax.annotation.Nullable Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; return this; @@ -341,11 +352,11 @@ public Map> getMapMapAnytype() { @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapMapAnytype(Map> mapMapAnytype) { + public void setMapMapAnytype(@javax.annotation.Nullable Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@javax.annotation.Nullable Object anytype1) { this.anytype1 = anytype1; return this; @@ -366,11 +377,11 @@ public Object getAnytype1() { @JsonProperty(JSON_PROPERTY_ANYTYPE1) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAnytype1(Object anytype1) { + public void setAnytype1(@javax.annotation.Nullable Object anytype1) { this.anytype1 = anytype1; } - public AdditionalPropertiesClass anytype2(Object anytype2) { + public AdditionalPropertiesClass anytype2(@javax.annotation.Nullable Object anytype2) { this.anytype2 = anytype2; return this; @@ -391,11 +402,11 @@ public Object getAnytype2() { @JsonProperty(JSON_PROPERTY_ANYTYPE2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAnytype2(Object anytype2) { + public void setAnytype2(@javax.annotation.Nullable Object anytype2) { this.anytype2 = anytype2; } - public AdditionalPropertiesClass anytype3(Object anytype3) { + public AdditionalPropertiesClass anytype3(@javax.annotation.Nullable Object anytype3) { this.anytype3 = anytype3; return this; @@ -416,7 +427,7 @@ public Object getAnytype3() { @JsonProperty(JSON_PROPERTY_ANYTYPE3) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAnytype3(Object anytype3) { + public void setAnytype3(@javax.annotation.Nullable Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 7eec9f5de9ac..98cf431e8f5b 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -34,13 +34,14 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesInteger extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public AdditionalPropertiesInteger() { } - public AdditionalPropertiesInteger name(String name) { + public AdditionalPropertiesInteger name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -61,7 +62,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index d417229395da..7240349efafe 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -35,13 +35,14 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesNumber extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public AdditionalPropertiesNumber() { } - public AdditionalPropertiesNumber name(String name) { + public AdditionalPropertiesNumber name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -62,7 +63,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index 8fdbd471ca5f..e69c6b1386c2 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -34,13 +34,14 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesObject extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public AdditionalPropertiesObject() { } - public AdditionalPropertiesObject name(String name) { + public AdditionalPropertiesObject name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -61,7 +62,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 892681299380..b173f0e3470b 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -34,13 +34,14 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesString extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public AdditionalPropertiesString() { } - public AdditionalPropertiesString name(String name) { + public AdditionalPropertiesString name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -61,7 +62,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Animal.java index 3fa04854385b..4ec137f4a1bb 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Animal.java @@ -47,15 +47,17 @@ public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; + @javax.annotation.Nonnull protected String className; public static final String JSON_PROPERTY_COLOR = "color"; + @javax.annotation.Nullable protected String color = "red"; public Animal() { } - public Animal className(String className) { + public Animal className(@javax.annotation.Nonnull String className) { this.className = className; return this; @@ -76,11 +78,11 @@ public String getClassName() { @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setClassName(String className) { + public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; } - public Animal color(String color) { + public Animal color(@javax.annotation.Nullable String color) { this.color = color; return this; @@ -101,7 +103,7 @@ public String getColor() { @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setColor(String color) { + public void setColor(@javax.annotation.Nullable String color) { this.color = color; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index bb5e1e064489..18a572cba180 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -36,12 +36,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayOfArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; + @javax.annotation.Nullable private List> arrayArrayNumber = new ArrayList<>(); public ArrayOfArrayOfNumberOnly() { } - public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + public ArrayOfArrayOfNumberOnly arrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; return this; @@ -70,7 +71,7 @@ public List> getArrayArrayNumber() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayNumber(List> arrayArrayNumber) { + public void setArrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index f807afcbd310..4aaa3f7fa616 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -36,12 +36,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; + @javax.annotation.Nullable private List arrayNumber = new ArrayList<>(); public ArrayOfNumberOnly() { } - public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + public ArrayOfNumberOnly arrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; return this; @@ -70,7 +71,7 @@ public List getArrayNumber() { @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayNumber(List arrayNumber) { + public void setArrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ArrayTest.java index 09f4fee4ae44..8229b3d48622 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -38,18 +38,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; + @javax.annotation.Nullable private List arrayOfString = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; + @javax.annotation.Nullable private List> arrayArrayOfInteger = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; + @javax.annotation.Nullable private List> arrayArrayOfModel = new ArrayList<>(); public ArrayTest() { } - public ArrayTest arrayOfString(List arrayOfString) { + public ArrayTest arrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; return this; @@ -78,11 +81,11 @@ public List getArrayOfString() { @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayOfString(List arrayOfString) { + public void setArrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; } - public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + public ArrayTest arrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; return this; @@ -111,11 +114,11 @@ public List> getArrayArrayOfInteger() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { + public void setArrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } - public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + public ArrayTest arrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; return this; @@ -144,7 +147,7 @@ public List> getArrayArrayOfModel() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayOfModel(List> arrayArrayOfModel) { + public void setArrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/BigCat.java index 2de9987aacb5..0f1e19d5cdd7 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/BigCat.java @@ -81,13 +81,14 @@ public static KindEnum fromValue(String value) { } public static final String JSON_PROPERTY_KIND = "kind"; + @javax.annotation.Nullable private KindEnum kind; public BigCat() { } - public BigCat kind(KindEnum kind) { + public BigCat kind(@javax.annotation.Nullable KindEnum kind) { this.kind = kind; return this; @@ -108,18 +109,18 @@ public KindEnum getKind() { @JsonProperty(JSON_PROPERTY_KIND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setKind(KindEnum kind) { + public void setKind(@javax.annotation.Nullable KindEnum kind) { this.kind = kind; } @Override - public BigCat className(String className) { + public BigCat className(@javax.annotation.Nonnull String className) { this.setClassName(className); return this; } @Override - public BigCat color(String color) { + public BigCat color(@javax.annotation.Nullable String color) { this.setColor(color); return this; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Capitalization.java index 43c174eab6c0..9ba3cfe4c4fb 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Capitalization.java @@ -37,27 +37,33 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Capitalization { public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; + @javax.annotation.Nullable private String smallCamel; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; + @javax.annotation.Nullable private String capitalCamel; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; + @javax.annotation.Nullable private String smallSnake; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; + @javax.annotation.Nullable private String capitalSnake; public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; + @javax.annotation.Nullable private String scAETHFlowPoints; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; + @javax.annotation.Nullable private String ATT_NAME; public Capitalization() { } - public Capitalization smallCamel(String smallCamel) { + public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; return this; @@ -78,11 +84,11 @@ public String getSmallCamel() { @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmallCamel(String smallCamel) { + public void setSmallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; } - public Capitalization capitalCamel(String capitalCamel) { + public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; return this; @@ -103,11 +109,11 @@ public String getCapitalCamel() { @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCapitalCamel(String capitalCamel) { + public void setCapitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; } - public Capitalization smallSnake(String smallSnake) { + public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; return this; @@ -128,11 +134,11 @@ public String getSmallSnake() { @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmallSnake(String smallSnake) { + public void setSmallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; } - public Capitalization capitalSnake(String capitalSnake) { + public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; return this; @@ -153,11 +159,11 @@ public String getCapitalSnake() { @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCapitalSnake(String capitalSnake) { + public void setCapitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; } - public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; return this; @@ -178,11 +184,11 @@ public String getScAETHFlowPoints() { @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setScAETHFlowPoints(String scAETHFlowPoints) { + public void setScAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } - public Capitalization ATT_NAME(String ATT_NAME) { + public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; return this; @@ -203,7 +209,7 @@ public String getATTNAME() { @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setATTNAME(String ATT_NAME) { + public void setATTNAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Cat.java index 3251850ded05..6d0b632824fb 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Cat.java @@ -45,13 +45,14 @@ public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; + @javax.annotation.Nullable protected Boolean declawed; public Cat() { } - public Cat declawed(Boolean declawed) { + public Cat declawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; return this; @@ -72,18 +73,18 @@ public Boolean getDeclawed() { @JsonProperty(JSON_PROPERTY_DECLAWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; } @Override - public Cat className(String className) { + public Cat className(@javax.annotation.Nonnull String className) { this.setClassName(className); return this; } @Override - public Cat color(String color) { + public Cat color(@javax.annotation.Nullable String color) { this.setColor(color); return this; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Category.java index 332aa92b9bd9..0c4ede2fd662 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Category.java @@ -33,15 +33,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Category { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private String name = "default-name"; public Category() { } - public Category id(Long id) { + public Category id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -62,11 +64,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@javax.annotation.Nonnull String name) { this.name = name; return this; @@ -87,7 +89,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ClassModel.java index eba862847664..15f206254637 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ClassModel.java @@ -32,12 +32,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ClassModel { public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; + @javax.annotation.Nullable private String propertyClass; public ClassModel() { } - public ClassModel propertyClass(String propertyClass) { + public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; @@ -58,7 +59,7 @@ public String getPropertyClass() { @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Client.java index a5f5a56f08f3..f9d821e024b9 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Client.java @@ -32,12 +32,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Client { public static final String JSON_PROPERTY_CLIENT = "client"; + @javax.annotation.Nullable private String client; public Client() { } - public Client client(String client) { + public Client client(@javax.annotation.Nullable String client) { this.client = client; return this; @@ -58,7 +59,7 @@ public String getClient() { @JsonProperty(JSON_PROPERTY_CLIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setClient(String client) { + public void setClient(@javax.annotation.Nullable String client) { this.client = client; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Dog.java index cf9d1537e128..8c5a24918453 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Dog.java @@ -42,13 +42,14 @@ public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; + @javax.annotation.Nullable private String breed; public Dog() { } - public Dog breed(String breed) { + public Dog breed(@javax.annotation.Nullable String breed) { this.breed = breed; return this; @@ -69,18 +70,18 @@ public String getBreed() { @JsonProperty(JSON_PROPERTY_BREED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBreed(String breed) { + public void setBreed(@javax.annotation.Nullable String breed) { this.breed = breed; } @Override - public Dog className(String className) { + public Dog className(@javax.annotation.Nonnull String className) { this.setClassName(className); return this; } @Override - public Dog color(String color) { + public Dog color(@javax.annotation.Nullable String color) { this.setColor(color); return this; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/EnumArrays.java index ed3d3768e625..356e89c0f0cf 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -71,6 +71,7 @@ public static JustSymbolEnum fromValue(String value) { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** @@ -109,12 +110,13 @@ public static ArrayEnumEnum fromValue(String value) { } public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; + @javax.annotation.Nullable private List arrayEnum = new ArrayList<>(); public EnumArrays() { } - public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; @@ -135,11 +137,11 @@ public JustSymbolEnum getJustSymbol() { @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJustSymbol(JustSymbolEnum justSymbol) { + public void setJustSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } - public EnumArrays arrayEnum(List arrayEnum) { + public EnumArrays arrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; return this; @@ -168,7 +170,7 @@ public List getArrayEnum() { @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayEnum(List arrayEnum) { + public void setArrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/EnumTest.java index 726fcf37f13d..2ecab850f0ea 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/EnumTest.java @@ -75,6 +75,7 @@ public static EnumStringEnum fromValue(String value) { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; + @javax.annotation.Nullable private EnumStringEnum enumString; /** @@ -115,6 +116,7 @@ public static EnumStringRequiredEnum fromValue(String value) { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** @@ -153,6 +155,7 @@ public static EnumIntegerEnum fromValue(Integer value) { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** @@ -191,15 +194,17 @@ public static EnumNumberEnum fromValue(Double value) { } public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; + @javax.annotation.Nullable private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; + @javax.annotation.Nullable private OuterEnum outerEnum; public EnumTest() { } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; @@ -220,11 +225,11 @@ public EnumStringEnum getEnumString() { @JsonProperty(JSON_PROPERTY_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumString(EnumStringEnum enumString) { + public void setEnumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; } - public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; return this; @@ -245,11 +250,11 @@ public EnumStringRequiredEnum getEnumStringRequired() { @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public void setEnumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; @@ -270,11 +275,11 @@ public EnumIntegerEnum getEnumInteger() { @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumInteger(EnumIntegerEnum enumInteger) { + public void setEnumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } - public EnumTest enumNumber(EnumNumberEnum enumNumber) { + public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; return this; @@ -295,11 +300,11 @@ public EnumNumberEnum getEnumNumber() { @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumNumber(EnumNumberEnum enumNumber) { + public void setEnumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } - public EnumTest outerEnum(OuterEnum outerEnum) { + public EnumTest outerEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; return this; @@ -320,7 +325,7 @@ public OuterEnum getOuterEnum() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnum(OuterEnum outerEnum) { + public void setOuterEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 98b4699c06ec..e83e1fe54dfb 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -37,15 +37,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; + @javax.annotation.Nullable private ModelFile _file; public static final String JSON_PROPERTY_FILES = "files"; + @javax.annotation.Nullable private List files = new ArrayList<>(); public FileSchemaTestClass() { } - public FileSchemaTestClass _file(ModelFile _file) { + public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { this._file = _file; return this; @@ -66,11 +68,11 @@ public ModelFile getFile() { @JsonProperty(JSON_PROPERTY_FILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFile(ModelFile _file) { + public void setFile(@javax.annotation.Nullable ModelFile _file) { this._file = _file; } - public FileSchemaTestClass files(List files) { + public FileSchemaTestClass files(@javax.annotation.Nullable List files) { this.files = files; return this; @@ -99,7 +101,7 @@ public List getFiles() { @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFiles(List files) { + public void setFiles(@javax.annotation.Nullable List files) { this.files = files; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/FormatTest.java index ac2f90f5ce2c..8daa97704521 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/FormatTest.java @@ -51,51 +51,65 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; + @javax.annotation.Nullable private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; + @javax.annotation.Nullable private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; + @javax.annotation.Nullable private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; + @javax.annotation.Nonnull private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; + @javax.annotation.Nullable private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; + @javax.annotation.Nullable private Double _double; public static final String JSON_PROPERTY_STRING = "string"; + @javax.annotation.Nullable private String string; public static final String JSON_PROPERTY_BYTE = "byte"; + @javax.annotation.Nonnull private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; + @javax.annotation.Nullable private AsyncFile binary; public static final String JSON_PROPERTY_DATE = "date"; + @javax.annotation.Nonnull private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; + @javax.annotation.Nonnull private String password; public static final String JSON_PROPERTY_BIG_DECIMAL = "BigDecimal"; + @javax.annotation.Nullable private BigDecimal bigDecimal; public FormatTest() { } - public FormatTest integer(Integer integer) { + public FormatTest integer(@javax.annotation.Nullable Integer integer) { this.integer = integer; return this; @@ -118,11 +132,11 @@ public Integer getInteger() { @JsonProperty(JSON_PROPERTY_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInteger(Integer integer) { + public void setInteger(@javax.annotation.Nullable Integer integer) { this.integer = integer; } - public FormatTest int32(Integer int32) { + public FormatTest int32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; return this; @@ -145,11 +159,11 @@ public Integer getInt32() { @JsonProperty(JSON_PROPERTY_INT32) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInt32(Integer int32) { + public void setInt32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; } - public FormatTest int64(Long int64) { + public FormatTest int64(@javax.annotation.Nullable Long int64) { this.int64 = int64; return this; @@ -170,11 +184,11 @@ public Long getInt64() { @JsonProperty(JSON_PROPERTY_INT64) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInt64(Long int64) { + public void setInt64(@javax.annotation.Nullable Long int64) { this.int64 = int64; } - public FormatTest number(BigDecimal number) { + public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { this.number = number; return this; @@ -197,11 +211,11 @@ public BigDecimal getNumber() { @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNumber(BigDecimal number) { + public void setNumber(@javax.annotation.Nonnull BigDecimal number) { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@javax.annotation.Nullable Float _float) { this._float = _float; return this; @@ -224,11 +238,11 @@ public Float getFloat() { @JsonProperty(JSON_PROPERTY_FLOAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFloat(Float _float) { + public void setFloat(@javax.annotation.Nullable Float _float) { this._float = _float; } - public FormatTest _double(Double _double) { + public FormatTest _double(@javax.annotation.Nullable Double _double) { this._double = _double; return this; @@ -251,11 +265,11 @@ public Double getDouble() { @JsonProperty(JSON_PROPERTY_DOUBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDouble(Double _double) { + public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; } - public FormatTest string(String string) { + public FormatTest string(@javax.annotation.Nullable String string) { this.string = string; return this; @@ -276,11 +290,11 @@ public String getString() { @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setString(String string) { + public void setString(@javax.annotation.Nullable String string) { this.string = string; } - public FormatTest _byte(byte[] _byte) { + public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; return this; @@ -301,11 +315,11 @@ public byte[] getByte() { @JsonProperty(JSON_PROPERTY_BYTE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setByte(byte[] _byte) { + public void setByte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; } - public FormatTest binary(AsyncFile binary) { + public FormatTest binary(@javax.annotation.Nullable AsyncFile binary) { this.binary = binary; return this; @@ -326,11 +340,11 @@ public AsyncFile getBinary() { @JsonProperty(JSON_PROPERTY_BINARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBinary(AsyncFile binary) { + public void setBinary(@javax.annotation.Nullable AsyncFile binary) { this.binary = binary; } - public FormatTest date(LocalDate date) { + public FormatTest date(@javax.annotation.Nonnull LocalDate date) { this.date = date; return this; @@ -351,11 +365,11 @@ public LocalDate getDate() { @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDate(LocalDate date) { + public void setDate(@javax.annotation.Nonnull LocalDate date) { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; @@ -376,11 +390,11 @@ public OffsetDateTime getDateTime() { @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public FormatTest uuid(UUID uuid) { + public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; @@ -401,11 +415,11 @@ public UUID getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(UUID uuid) { + public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public FormatTest password(String password) { + public FormatTest password(@javax.annotation.Nonnull String password) { this.password = password; return this; @@ -426,11 +440,11 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nonnull String password) { this.password = password; } - public FormatTest bigDecimal(BigDecimal bigDecimal) { + public FormatTest bigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; return this; @@ -451,7 +465,7 @@ public BigDecimal getBigDecimal() { @JsonProperty(JSON_PROPERTY_BIG_DECIMAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBigDecimal(BigDecimal bigDecimal) { + public void setBigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 89f9de6d3d41..ce79f11f55ac 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -34,9 +34,11 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_FOO = "foo"; + @javax.annotation.Nullable private String foo; public HasOnlyReadOnly() { diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/MapTest.java index 1ae40680e29e..34ba6c76e66d 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/MapTest.java @@ -37,6 +37,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; + @javax.annotation.Nullable private Map> mapMapOfString = new HashMap<>(); /** @@ -75,18 +76,21 @@ public static InnerEnum fromValue(String value) { } public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; + @javax.annotation.Nullable private Map mapOfEnumString = new HashMap<>(); public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; + @javax.annotation.Nullable private Map directMap = new HashMap<>(); public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; + @javax.annotation.Nullable private Map indirectMap = new HashMap<>(); public MapTest() { } - public MapTest mapMapOfString(Map> mapMapOfString) { + public MapTest mapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; return this; @@ -115,11 +119,11 @@ public Map> getMapMapOfString() { @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapMapOfString(Map> mapMapOfString) { + public void setMapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } - public MapTest mapOfEnumString(Map mapOfEnumString) { + public MapTest mapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; return this; @@ -148,11 +152,11 @@ public Map getMapOfEnumString() { @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapOfEnumString(Map mapOfEnumString) { + public void setMapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } - public MapTest directMap(Map directMap) { + public MapTest directMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; return this; @@ -181,11 +185,11 @@ public Map getDirectMap() { @JsonProperty(JSON_PROPERTY_DIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDirectMap(Map directMap) { + public void setDirectMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; } - public MapTest indirectMap(Map indirectMap) { + public MapTest indirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; return this; @@ -214,7 +218,7 @@ public Map getIndirectMap() { @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIndirectMap(Map indirectMap) { + public void setIndirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index a9cf93ce52e5..f1e0cc2daa7b 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -39,18 +39,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; + @javax.annotation.Nullable private Map map = new HashMap<>(); public MixedPropertiesAndAdditionalPropertiesClass() { } - public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; @@ -71,11 +74,11 @@ public UUID getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(UUID uuid) { + public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; @@ -96,11 +99,11 @@ public OffsetDateTime getDateTime() { @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + public MixedPropertiesAndAdditionalPropertiesClass map(@javax.annotation.Nullable Map map) { this.map = map; return this; @@ -129,7 +132,7 @@ public Map getMap() { @JsonProperty(JSON_PROPERTY_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMap(Map map) { + public void setMap(@javax.annotation.Nullable Map map) { this.map = map; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Model200Response.java index 9dd501519d94..81203bc5fec5 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Model200Response.java @@ -34,15 +34,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; + @javax.annotation.Nullable private String propertyClass; public Model200Response() { } - public Model200Response name(Integer name) { + public Model200Response name(@javax.annotation.Nullable Integer name) { this.name = name; return this; @@ -63,11 +65,11 @@ public Integer getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(Integer name) { + public void setName(@javax.annotation.Nullable Integer name) { this.name = name; } - public Model200Response propertyClass(String propertyClass) { + public Model200Response propertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; @@ -88,7 +90,7 @@ public String getPropertyClass() { @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 06f950e61809..8295041ee48a 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -35,18 +35,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nullable private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nullable private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; + @javax.annotation.Nullable private String message; public ModelApiResponse() { } - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@javax.annotation.Nullable Integer code) { this.code = code; return this; @@ -67,11 +70,11 @@ public Integer getCode() { @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCode(Integer code) { + public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@javax.annotation.Nullable String type) { this.type = type; return this; @@ -92,11 +95,11 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { + public void setType(@javax.annotation.Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@javax.annotation.Nullable String message) { this.message = message; return this; @@ -117,7 +120,7 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelFile.java index c57b589f9a93..5d4793a2e437 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelFile.java @@ -33,12 +33,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelFile { public static final String JSON_PROPERTY_SOURCE_U_R_I = "sourceURI"; + @javax.annotation.Nullable private String sourceURI; public ModelFile() { } - public ModelFile sourceURI(String sourceURI) { + public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; return this; @@ -59,7 +60,7 @@ public String getSourceURI() { @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSourceURI(String sourceURI) { + public void setSourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelList.java index 3dc09aa2be76..02dcc4b37e64 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelList.java @@ -33,12 +33,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelList { public static final String JSON_PROPERTY_123LIST = "123-list"; + @javax.annotation.Nullable private String _123list; public ModelList() { } - public ModelList _123list(String _123list) { + public ModelList _123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; return this; @@ -59,7 +60,7 @@ public String get123list() { @JsonProperty(JSON_PROPERTY_123LIST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void set123list(String _123list) { + public void set123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelReturn.java index 2d5696ac318a..d38260eee6db 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -33,12 +33,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; + @javax.annotation.Nullable private Integer _return; public ModelReturn() { } - public ModelReturn _return(Integer _return) { + public ModelReturn _return(@javax.annotation.Nullable Integer _return) { this._return = _return; return this; @@ -59,7 +60,7 @@ public Integer getReturn() { @JsonProperty(JSON_PROPERTY_RETURN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setReturn(Integer _return) { + public void setReturn(@javax.annotation.Nullable Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Name.java index a45307c099a0..c94d16233849 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Name.java @@ -35,15 +35,19 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Name { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; + @javax.annotation.Nullable private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; + @javax.annotation.Nullable private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; + @javax.annotation.Nullable private Integer _123number; public Name() { @@ -61,7 +65,7 @@ public Name( this._123number = _123number; } - public Name name(Integer name) { + public Name name(@javax.annotation.Nonnull Integer name) { this.name = name; return this; @@ -82,7 +86,7 @@ public Integer getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(Integer name) { + public void setName(@javax.annotation.Nonnull Integer name) { this.name = name; } @@ -100,7 +104,7 @@ public Integer getSnakeCase() { - public Name property(String property) { + public Name property(@javax.annotation.Nullable String property) { this.property = property; return this; @@ -121,7 +125,7 @@ public String getProperty() { @JsonProperty(JSON_PROPERTY_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProperty(String property) { + public void setProperty(@javax.annotation.Nullable String property) { this.property = property; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/NumberOnly.java index ba7b026b3f6e..43f6d3fa6a62 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -33,12 +33,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; + @javax.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } - public NumberOnly justNumber(BigDecimal justNumber) { + public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; @@ -59,7 +60,7 @@ public BigDecimal getJustNumber() { @JsonProperty(JSON_PROPERTY_JUST_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJustNumber(BigDecimal justNumber) { + public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Order.java index 31a2cd4aada5..7915f35bce17 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Order.java @@ -38,15 +38,19 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Order { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; + @javax.annotation.Nullable private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; + @javax.annotation.Nullable private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; + @javax.annotation.Nullable private OffsetDateTime shipDate; /** @@ -87,15 +91,17 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @javax.annotation.Nullable private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; + @javax.annotation.Nullable private Boolean complete = false; public Order() { } - public Order id(Long id) { + public Order id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -116,11 +122,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@javax.annotation.Nullable Long petId) { this.petId = petId; return this; @@ -141,11 +147,11 @@ public Long getPetId() { @JsonProperty(JSON_PROPERTY_PET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPetId(Long petId) { + public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; return this; @@ -166,11 +172,11 @@ public Integer getQuantity() { @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setQuantity(Integer quantity) { + public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; @@ -191,11 +197,11 @@ public OffsetDateTime getShipDate() { @JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -216,11 +222,11 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } - public Order complete(Boolean complete) { + public Order complete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; return this; @@ -241,7 +247,7 @@ public Boolean getComplete() { @JsonProperty(JSON_PROPERTY_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setComplete(Boolean complete) { + public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/OuterComposite.java index 37a130288c84..0134a6b50570 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -35,18 +35,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; + @javax.annotation.Nullable private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; + @javax.annotation.Nullable private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; + @javax.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } - public OuterComposite myNumber(BigDecimal myNumber) { + public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; @@ -67,11 +70,11 @@ public BigDecimal getMyNumber() { @JsonProperty(JSON_PROPERTY_MY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyNumber(BigDecimal myNumber) { + public void setMyNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; } - public OuterComposite myString(String myString) { + public OuterComposite myString(@javax.annotation.Nullable String myString) { this.myString = myString; return this; @@ -92,11 +95,11 @@ public String getMyString() { @JsonProperty(JSON_PROPERTY_MY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyString(String myString) { + public void setMyString(@javax.annotation.Nullable String myString) { this.myString = myString; } - public OuterComposite myBoolean(Boolean myBoolean) { + public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; return this; @@ -117,7 +120,7 @@ public Boolean getMyBoolean() { @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyBoolean(Boolean myBoolean) { + public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Pet.java index 70732aa1ce55..2805d79e368d 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Pet.java @@ -45,18 +45,23 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Pet { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; + @javax.annotation.Nullable private Category category; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; + @javax.annotation.Nonnull private Set photoUrls = new LinkedHashSet<>(); public static final String JSON_PROPERTY_TAGS = "tags"; + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** @@ -97,12 +102,13 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } - public Pet id(Long id) { + public Pet id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -123,11 +129,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@javax.annotation.Nullable Category category) { this.category = category; return this; @@ -148,11 +154,11 @@ public Category getCategory() { @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCategory(Category category) { + public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; } - public Pet name(String name) { + public Pet name(@javax.annotation.Nonnull String name) { this.name = name; return this; @@ -173,11 +179,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } - public Pet photoUrls(Set photoUrls) { + public Pet photoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; return this; @@ -207,11 +213,11 @@ public Set getPhotoUrls() { @JsonDeserialize(as = LinkedHashSet.class) @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPhotoUrls(Set photoUrls) { + public void setPhotoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; } - public Pet tags(List tags) { + public Pet tags(@javax.annotation.Nullable List tags) { this.tags = tags; return this; @@ -240,11 +246,11 @@ public List getTags() { @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTags(List tags) { + public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -265,7 +271,7 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 0b012bd9c77d..b614b554c64a 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -33,9 +33,11 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; + @javax.annotation.Nullable private String baz; public ReadOnlyFirst() { @@ -65,7 +67,7 @@ public String getBar() { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { this.baz = baz; return this; @@ -86,7 +88,7 @@ public String getBaz() { @JsonProperty(JSON_PROPERTY_BAZ) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBaz(String baz) { + public void setBaz(@javax.annotation.Nullable String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/SpecialModelName.java index 313df185b5f9..8148d170cb3e 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -33,12 +33,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; + @javax.annotation.Nullable private Long $specialPropertyName; public SpecialModelName() { } - public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + public SpecialModelName $specialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; return this; @@ -59,7 +60,7 @@ public SpecialModelName() { @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void set$SpecialPropertyName(Long $specialPropertyName) { + public void set$SpecialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Tag.java index 79472451f59a..17cd5fa1190b 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Tag.java @@ -33,15 +33,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Tag { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public Tag() { } - public Tag id(Long id) { + public Tag id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -62,11 +64,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -87,7 +89,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index 0be3da1e6a09..1dfc87bc2473 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -40,24 +40,29 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class TypeHolderDefault { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; + @javax.annotation.Nonnull private String stringItem = "what"; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; + @javax.annotation.Nonnull private BigDecimal numberItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; + @javax.annotation.Nonnull private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; + @javax.annotation.Nonnull private Boolean boolItem = true; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; + @javax.annotation.Nonnull private List arrayItem = new ArrayList<>(); public TypeHolderDefault() { } - public TypeHolderDefault stringItem(String stringItem) { + public TypeHolderDefault stringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; return this; @@ -78,11 +83,11 @@ public String getStringItem() { @JsonProperty(JSON_PROPERTY_STRING_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStringItem(String stringItem) { + public void setStringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; } - public TypeHolderDefault numberItem(BigDecimal numberItem) { + public TypeHolderDefault numberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; return this; @@ -103,11 +108,11 @@ public BigDecimal getNumberItem() { @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNumberItem(BigDecimal numberItem) { + public void setNumberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; } - public TypeHolderDefault integerItem(Integer integerItem) { + public TypeHolderDefault integerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; return this; @@ -128,11 +133,11 @@ public Integer getIntegerItem() { @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setIntegerItem(Integer integerItem) { + public void setIntegerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; } - public TypeHolderDefault boolItem(Boolean boolItem) { + public TypeHolderDefault boolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; return this; @@ -153,11 +158,11 @@ public Boolean getBoolItem() { @JsonProperty(JSON_PROPERTY_BOOL_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBoolItem(Boolean boolItem) { + public void setBoolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; } - public TypeHolderDefault arrayItem(List arrayItem) { + public TypeHolderDefault arrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; return this; @@ -186,7 +191,7 @@ public List getArrayItem() { @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setArrayItem(List arrayItem) { + public void setArrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderExample.java index d497344ef9a6..cc75fb24f60a 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -41,27 +41,33 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class TypeHolderExample { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; + @javax.annotation.Nonnull private String stringItem; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; + @javax.annotation.Nonnull private BigDecimal numberItem; public static final String JSON_PROPERTY_FLOAT_ITEM = "float_item"; + @javax.annotation.Nonnull private Float floatItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; + @javax.annotation.Nonnull private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; + @javax.annotation.Nonnull private Boolean boolItem; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; + @javax.annotation.Nonnull private List arrayItem = new ArrayList<>(); public TypeHolderExample() { } - public TypeHolderExample stringItem(String stringItem) { + public TypeHolderExample stringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; return this; @@ -82,11 +88,11 @@ public String getStringItem() { @JsonProperty(JSON_PROPERTY_STRING_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStringItem(String stringItem) { + public void setStringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; } - public TypeHolderExample numberItem(BigDecimal numberItem) { + public TypeHolderExample numberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; return this; @@ -107,11 +113,11 @@ public BigDecimal getNumberItem() { @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNumberItem(BigDecimal numberItem) { + public void setNumberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; } - public TypeHolderExample floatItem(Float floatItem) { + public TypeHolderExample floatItem(@javax.annotation.Nonnull Float floatItem) { this.floatItem = floatItem; return this; @@ -132,11 +138,11 @@ public Float getFloatItem() { @JsonProperty(JSON_PROPERTY_FLOAT_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFloatItem(Float floatItem) { + public void setFloatItem(@javax.annotation.Nonnull Float floatItem) { this.floatItem = floatItem; } - public TypeHolderExample integerItem(Integer integerItem) { + public TypeHolderExample integerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; return this; @@ -157,11 +163,11 @@ public Integer getIntegerItem() { @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setIntegerItem(Integer integerItem) { + public void setIntegerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; } - public TypeHolderExample boolItem(Boolean boolItem) { + public TypeHolderExample boolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; return this; @@ -182,11 +188,11 @@ public Boolean getBoolItem() { @JsonProperty(JSON_PROPERTY_BOOL_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBoolItem(Boolean boolItem) { + public void setBoolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; } - public TypeHolderExample arrayItem(List arrayItem) { + public TypeHolderExample arrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; return this; @@ -215,7 +221,7 @@ public List getArrayItem() { @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setArrayItem(List arrayItem) { + public void setArrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/User.java index e6af180ceff6..26008e500259 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/User.java @@ -39,33 +39,41 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class User { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; + @javax.annotation.Nullable private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; + @javax.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; + @javax.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; + @javax.annotation.Nullable private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; + @javax.annotation.Nullable private String password; public static final String JSON_PROPERTY_PHONE = "phone"; + @javax.annotation.Nullable private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; + @javax.annotation.Nullable private Integer userStatus; public User() { } - public User id(Long id) { + public User id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -86,11 +94,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@javax.annotation.Nullable String username) { this.username = username; return this; @@ -111,11 +119,11 @@ public String getUsername() { @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsername(String username) { + public void setUsername(@javax.annotation.Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; return this; @@ -136,11 +144,11 @@ public String getFirstName() { @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFirstName(String firstName) { + public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; return this; @@ -161,11 +169,11 @@ public String getLastName() { @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLastName(String lastName) { + public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@javax.annotation.Nullable String email) { this.email = email; return this; @@ -186,11 +194,11 @@ public String getEmail() { @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEmail(String email) { + public void setEmail(@javax.annotation.Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@javax.annotation.Nullable String password) { this.password = password; return this; @@ -211,11 +219,11 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@javax.annotation.Nullable String phone) { this.phone = phone; return this; @@ -236,11 +244,11 @@ public String getPhone() { @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPhone(String phone) { + public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; return this; @@ -261,7 +269,7 @@ public Integer getUserStatus() { @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/XmlItem.java index f4de622204f6..a6656d6d7e71 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/XmlItem.java @@ -64,96 +64,125 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class XmlItem { public static final String JSON_PROPERTY_ATTRIBUTE_STRING = "attribute_string"; + @javax.annotation.Nullable private String attributeString; public static final String JSON_PROPERTY_ATTRIBUTE_NUMBER = "attribute_number"; + @javax.annotation.Nullable private BigDecimal attributeNumber; public static final String JSON_PROPERTY_ATTRIBUTE_INTEGER = "attribute_integer"; + @javax.annotation.Nullable private Integer attributeInteger; public static final String JSON_PROPERTY_ATTRIBUTE_BOOLEAN = "attribute_boolean"; + @javax.annotation.Nullable private Boolean attributeBoolean; public static final String JSON_PROPERTY_WRAPPED_ARRAY = "wrapped_array"; + @javax.annotation.Nullable private List wrappedArray = new ArrayList<>(); public static final String JSON_PROPERTY_NAME_STRING = "name_string"; + @javax.annotation.Nullable private String nameString; public static final String JSON_PROPERTY_NAME_NUMBER = "name_number"; + @javax.annotation.Nullable private BigDecimal nameNumber; public static final String JSON_PROPERTY_NAME_INTEGER = "name_integer"; + @javax.annotation.Nullable private Integer nameInteger; public static final String JSON_PROPERTY_NAME_BOOLEAN = "name_boolean"; + @javax.annotation.Nullable private Boolean nameBoolean; public static final String JSON_PROPERTY_NAME_ARRAY = "name_array"; + @javax.annotation.Nullable private List nameArray = new ArrayList<>(); public static final String JSON_PROPERTY_NAME_WRAPPED_ARRAY = "name_wrapped_array"; + @javax.annotation.Nullable private List nameWrappedArray = new ArrayList<>(); public static final String JSON_PROPERTY_PREFIX_STRING = "prefix_string"; + @javax.annotation.Nullable private String prefixString; public static final String JSON_PROPERTY_PREFIX_NUMBER = "prefix_number"; + @javax.annotation.Nullable private BigDecimal prefixNumber; public static final String JSON_PROPERTY_PREFIX_INTEGER = "prefix_integer"; + @javax.annotation.Nullable private Integer prefixInteger; public static final String JSON_PROPERTY_PREFIX_BOOLEAN = "prefix_boolean"; + @javax.annotation.Nullable private Boolean prefixBoolean; public static final String JSON_PROPERTY_PREFIX_ARRAY = "prefix_array"; + @javax.annotation.Nullable private List prefixArray = new ArrayList<>(); public static final String JSON_PROPERTY_PREFIX_WRAPPED_ARRAY = "prefix_wrapped_array"; + @javax.annotation.Nullable private List prefixWrappedArray = new ArrayList<>(); public static final String JSON_PROPERTY_NAMESPACE_STRING = "namespace_string"; + @javax.annotation.Nullable private String namespaceString; public static final String JSON_PROPERTY_NAMESPACE_NUMBER = "namespace_number"; + @javax.annotation.Nullable private BigDecimal namespaceNumber; public static final String JSON_PROPERTY_NAMESPACE_INTEGER = "namespace_integer"; + @javax.annotation.Nullable private Integer namespaceInteger; public static final String JSON_PROPERTY_NAMESPACE_BOOLEAN = "namespace_boolean"; + @javax.annotation.Nullable private Boolean namespaceBoolean; public static final String JSON_PROPERTY_NAMESPACE_ARRAY = "namespace_array"; + @javax.annotation.Nullable private List namespaceArray = new ArrayList<>(); public static final String JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY = "namespace_wrapped_array"; + @javax.annotation.Nullable private List namespaceWrappedArray = new ArrayList<>(); public static final String JSON_PROPERTY_PREFIX_NS_STRING = "prefix_ns_string"; + @javax.annotation.Nullable private String prefixNsString; public static final String JSON_PROPERTY_PREFIX_NS_NUMBER = "prefix_ns_number"; + @javax.annotation.Nullable private BigDecimal prefixNsNumber; public static final String JSON_PROPERTY_PREFIX_NS_INTEGER = "prefix_ns_integer"; + @javax.annotation.Nullable private Integer prefixNsInteger; public static final String JSON_PROPERTY_PREFIX_NS_BOOLEAN = "prefix_ns_boolean"; + @javax.annotation.Nullable private Boolean prefixNsBoolean; public static final String JSON_PROPERTY_PREFIX_NS_ARRAY = "prefix_ns_array"; + @javax.annotation.Nullable private List prefixNsArray = new ArrayList<>(); public static final String JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY = "prefix_ns_wrapped_array"; + @javax.annotation.Nullable private List prefixNsWrappedArray = new ArrayList<>(); public XmlItem() { } - public XmlItem attributeString(String attributeString) { + public XmlItem attributeString(@javax.annotation.Nullable String attributeString) { this.attributeString = attributeString; return this; @@ -174,11 +203,11 @@ public String getAttributeString() { @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttributeString(String attributeString) { + public void setAttributeString(@javax.annotation.Nullable String attributeString) { this.attributeString = attributeString; } - public XmlItem attributeNumber(BigDecimal attributeNumber) { + public XmlItem attributeNumber(@javax.annotation.Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; return this; @@ -199,11 +228,11 @@ public BigDecimal getAttributeNumber() { @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttributeNumber(BigDecimal attributeNumber) { + public void setAttributeNumber(@javax.annotation.Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } - public XmlItem attributeInteger(Integer attributeInteger) { + public XmlItem attributeInteger(@javax.annotation.Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; return this; @@ -224,11 +253,11 @@ public Integer getAttributeInteger() { @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttributeInteger(Integer attributeInteger) { + public void setAttributeInteger(@javax.annotation.Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; } - public XmlItem attributeBoolean(Boolean attributeBoolean) { + public XmlItem attributeBoolean(@javax.annotation.Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; return this; @@ -249,11 +278,11 @@ public Boolean getAttributeBoolean() { @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttributeBoolean(Boolean attributeBoolean) { + public void setAttributeBoolean(@javax.annotation.Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } - public XmlItem wrappedArray(List wrappedArray) { + public XmlItem wrappedArray(@javax.annotation.Nullable List wrappedArray) { this.wrappedArray = wrappedArray; return this; @@ -282,11 +311,11 @@ public List getWrappedArray() { @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWrappedArray(List wrappedArray) { + public void setWrappedArray(@javax.annotation.Nullable List wrappedArray) { this.wrappedArray = wrappedArray; } - public XmlItem nameString(String nameString) { + public XmlItem nameString(@javax.annotation.Nullable String nameString) { this.nameString = nameString; return this; @@ -307,11 +336,11 @@ public String getNameString() { @JsonProperty(JSON_PROPERTY_NAME_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameString(String nameString) { + public void setNameString(@javax.annotation.Nullable String nameString) { this.nameString = nameString; } - public XmlItem nameNumber(BigDecimal nameNumber) { + public XmlItem nameNumber(@javax.annotation.Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; return this; @@ -332,11 +361,11 @@ public BigDecimal getNameNumber() { @JsonProperty(JSON_PROPERTY_NAME_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameNumber(BigDecimal nameNumber) { + public void setNameNumber(@javax.annotation.Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; } - public XmlItem nameInteger(Integer nameInteger) { + public XmlItem nameInteger(@javax.annotation.Nullable Integer nameInteger) { this.nameInteger = nameInteger; return this; @@ -357,11 +386,11 @@ public Integer getNameInteger() { @JsonProperty(JSON_PROPERTY_NAME_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameInteger(Integer nameInteger) { + public void setNameInteger(@javax.annotation.Nullable Integer nameInteger) { this.nameInteger = nameInteger; } - public XmlItem nameBoolean(Boolean nameBoolean) { + public XmlItem nameBoolean(@javax.annotation.Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; return this; @@ -382,11 +411,11 @@ public Boolean getNameBoolean() { @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameBoolean(Boolean nameBoolean) { + public void setNameBoolean(@javax.annotation.Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; } - public XmlItem nameArray(List nameArray) { + public XmlItem nameArray(@javax.annotation.Nullable List nameArray) { this.nameArray = nameArray; return this; @@ -415,11 +444,11 @@ public List getNameArray() { @JsonProperty(JSON_PROPERTY_NAME_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameArray(List nameArray) { + public void setNameArray(@javax.annotation.Nullable List nameArray) { this.nameArray = nameArray; } - public XmlItem nameWrappedArray(List nameWrappedArray) { + public XmlItem nameWrappedArray(@javax.annotation.Nullable List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; return this; @@ -448,11 +477,11 @@ public List getNameWrappedArray() { @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNameWrappedArray(List nameWrappedArray) { + public void setNameWrappedArray(@javax.annotation.Nullable List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } - public XmlItem prefixString(String prefixString) { + public XmlItem prefixString(@javax.annotation.Nullable String prefixString) { this.prefixString = prefixString; return this; @@ -473,11 +502,11 @@ public String getPrefixString() { @JsonProperty(JSON_PROPERTY_PREFIX_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixString(String prefixString) { + public void setPrefixString(@javax.annotation.Nullable String prefixString) { this.prefixString = prefixString; } - public XmlItem prefixNumber(BigDecimal prefixNumber) { + public XmlItem prefixNumber(@javax.annotation.Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; return this; @@ -498,11 +527,11 @@ public BigDecimal getPrefixNumber() { @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNumber(BigDecimal prefixNumber) { + public void setPrefixNumber(@javax.annotation.Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } - public XmlItem prefixInteger(Integer prefixInteger) { + public XmlItem prefixInteger(@javax.annotation.Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; return this; @@ -523,11 +552,11 @@ public Integer getPrefixInteger() { @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixInteger(Integer prefixInteger) { + public void setPrefixInteger(@javax.annotation.Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; } - public XmlItem prefixBoolean(Boolean prefixBoolean) { + public XmlItem prefixBoolean(@javax.annotation.Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; return this; @@ -548,11 +577,11 @@ public Boolean getPrefixBoolean() { @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixBoolean(Boolean prefixBoolean) { + public void setPrefixBoolean(@javax.annotation.Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } - public XmlItem prefixArray(List prefixArray) { + public XmlItem prefixArray(@javax.annotation.Nullable List prefixArray) { this.prefixArray = prefixArray; return this; @@ -581,11 +610,11 @@ public List getPrefixArray() { @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixArray(List prefixArray) { + public void setPrefixArray(@javax.annotation.Nullable List prefixArray) { this.prefixArray = prefixArray; } - public XmlItem prefixWrappedArray(List prefixWrappedArray) { + public XmlItem prefixWrappedArray(@javax.annotation.Nullable List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; return this; @@ -614,11 +643,11 @@ public List getPrefixWrappedArray() { @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixWrappedArray(List prefixWrappedArray) { + public void setPrefixWrappedArray(@javax.annotation.Nullable List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem namespaceString(String namespaceString) { + public XmlItem namespaceString(@javax.annotation.Nullable String namespaceString) { this.namespaceString = namespaceString; return this; @@ -639,11 +668,11 @@ public String getNamespaceString() { @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNamespaceString(String namespaceString) { + public void setNamespaceString(@javax.annotation.Nullable String namespaceString) { this.namespaceString = namespaceString; } - public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + public XmlItem namespaceNumber(@javax.annotation.Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; return this; @@ -664,11 +693,11 @@ public BigDecimal getNamespaceNumber() { @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNamespaceNumber(BigDecimal namespaceNumber) { + public void setNamespaceNumber(@javax.annotation.Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } - public XmlItem namespaceInteger(Integer namespaceInteger) { + public XmlItem namespaceInteger(@javax.annotation.Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; return this; @@ -689,11 +718,11 @@ public Integer getNamespaceInteger() { @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNamespaceInteger(Integer namespaceInteger) { + public void setNamespaceInteger(@javax.annotation.Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } - public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + public XmlItem namespaceBoolean(@javax.annotation.Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; return this; @@ -714,11 +743,11 @@ public Boolean getNamespaceBoolean() { @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNamespaceBoolean(Boolean namespaceBoolean) { + public void setNamespaceBoolean(@javax.annotation.Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } - public XmlItem namespaceArray(List namespaceArray) { + public XmlItem namespaceArray(@javax.annotation.Nullable List namespaceArray) { this.namespaceArray = namespaceArray; return this; @@ -747,11 +776,11 @@ public List getNamespaceArray() { @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNamespaceArray(List namespaceArray) { + public void setNamespaceArray(@javax.annotation.Nullable List namespaceArray) { this.namespaceArray = namespaceArray; } - public XmlItem namespaceWrappedArray(List namespaceWrappedArray) { + public XmlItem namespaceWrappedArray(@javax.annotation.Nullable List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; return this; @@ -780,11 +809,11 @@ public List getNamespaceWrappedArray() { @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNamespaceWrappedArray(List namespaceWrappedArray) { + public void setNamespaceWrappedArray(@javax.annotation.Nullable List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem prefixNsString(String prefixNsString) { + public XmlItem prefixNsString(@javax.annotation.Nullable String prefixNsString) { this.prefixNsString = prefixNsString; return this; @@ -805,11 +834,11 @@ public String getPrefixNsString() { @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNsString(String prefixNsString) { + public void setPrefixNsString(@javax.annotation.Nullable String prefixNsString) { this.prefixNsString = prefixNsString; } - public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + public XmlItem prefixNsNumber(@javax.annotation.Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; return this; @@ -830,11 +859,11 @@ public BigDecimal getPrefixNsNumber() { @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNsNumber(BigDecimal prefixNsNumber) { + public void setPrefixNsNumber(@javax.annotation.Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } - public XmlItem prefixNsInteger(Integer prefixNsInteger) { + public XmlItem prefixNsInteger(@javax.annotation.Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; return this; @@ -855,11 +884,11 @@ public Integer getPrefixNsInteger() { @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNsInteger(Integer prefixNsInteger) { + public void setPrefixNsInteger(@javax.annotation.Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } - public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + public XmlItem prefixNsBoolean(@javax.annotation.Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; return this; @@ -880,11 +909,11 @@ public Boolean getPrefixNsBoolean() { @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNsBoolean(Boolean prefixNsBoolean) { + public void setPrefixNsBoolean(@javax.annotation.Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } - public XmlItem prefixNsArray(List prefixNsArray) { + public XmlItem prefixNsArray(@javax.annotation.Nullable List prefixNsArray) { this.prefixNsArray = prefixNsArray; return this; @@ -913,11 +942,11 @@ public List getPrefixNsArray() { @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNsArray(List prefixNsArray) { + public void setPrefixNsArray(@javax.annotation.Nullable List prefixNsArray) { this.prefixNsArray = prefixNsArray; } - public XmlItem prefixNsWrappedArray(List prefixNsWrappedArray) { + public XmlItem prefixNsWrappedArray(@javax.annotation.Nullable List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; return this; @@ -946,7 +975,7 @@ public List getPrefixNsWrappedArray() { @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { + public void setPrefixNsWrappedArray(@javax.annotation.Nullable List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index c09dd4dc708e..d0fa26016054 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -35,15 +35,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_PROPERTY = "map_property"; + @javax.annotation.Nullable private Map mapProperty = new HashMap<>(); public static final String JSON_PROPERTY_MAP_OF_MAP_PROPERTY = "map_of_map_property"; + @javax.annotation.Nullable private Map> mapOfMapProperty = new HashMap<>(); public AdditionalPropertiesClass() { } - public AdditionalPropertiesClass mapProperty(Map mapProperty) { + public AdditionalPropertiesClass mapProperty(@javax.annotation.Nullable Map mapProperty) { this.mapProperty = mapProperty; return this; @@ -72,11 +74,11 @@ public Map getMapProperty() { @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapProperty(Map mapProperty) { + public void setMapProperty(@javax.annotation.Nullable Map mapProperty) { this.mapProperty = mapProperty; } - public AdditionalPropertiesClass mapOfMapProperty(Map> mapOfMapProperty) { + public AdditionalPropertiesClass mapOfMapProperty(@javax.annotation.Nullable Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; return this; @@ -105,7 +107,7 @@ public Map> getMapOfMapProperty() { @JsonProperty(JSON_PROPERTY_MAP_OF_MAP_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapOfMapProperty(Map> mapOfMapProperty) { + public void setMapOfMapProperty(@javax.annotation.Nullable Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java index 9f36b8d97bca..6321e51f3b99 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java @@ -34,15 +34,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AllOfWithSingleRef { public static final String JSON_PROPERTY_USERNAME = "username"; + @javax.annotation.Nullable private String username; public static final String JSON_PROPERTY_SINGLE_REF_TYPE = "SingleRefType"; + @javax.annotation.Nullable private SingleRefType singleRefType; public AllOfWithSingleRef() { } - public AllOfWithSingleRef username(String username) { + public AllOfWithSingleRef username(@javax.annotation.Nullable String username) { this.username = username; return this; @@ -63,11 +65,11 @@ public String getUsername() { @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsername(String username) { + public void setUsername(@javax.annotation.Nullable String username) { this.username = username; } - public AllOfWithSingleRef singleRefType(SingleRefType singleRefType) { + public AllOfWithSingleRef singleRefType(@javax.annotation.Nullable SingleRefType singleRefType) { this.singleRefType = singleRefType; return this; @@ -88,7 +90,7 @@ public SingleRefType getSingleRefType() { @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSingleRefType(SingleRefType singleRefType) { + public void setSingleRefType(@javax.annotation.Nullable SingleRefType singleRefType) { this.singleRefType = singleRefType; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Animal.java index 13951a8b1589..fb66712c5aef 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Animal.java @@ -46,15 +46,17 @@ public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; + @javax.annotation.Nonnull protected String className; public static final String JSON_PROPERTY_COLOR = "color"; + @javax.annotation.Nullable protected String color = "red"; public Animal() { } - public Animal className(String className) { + public Animal className(@javax.annotation.Nonnull String className) { this.className = className; return this; @@ -75,11 +77,11 @@ public String getClassName() { @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setClassName(String className) { + public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; } - public Animal color(String color) { + public Animal color(@javax.annotation.Nullable String color) { this.color = color; return this; @@ -100,7 +102,7 @@ public String getColor() { @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setColor(String color) { + public void setColor(@javax.annotation.Nullable String color) { this.color = color; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index bb5e1e064489..18a572cba180 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -36,12 +36,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayOfArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; + @javax.annotation.Nullable private List> arrayArrayNumber = new ArrayList<>(); public ArrayOfArrayOfNumberOnly() { } - public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + public ArrayOfArrayOfNumberOnly arrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; return this; @@ -70,7 +71,7 @@ public List> getArrayArrayNumber() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayNumber(List> arrayArrayNumber) { + public void setArrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index f807afcbd310..4aaa3f7fa616 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -36,12 +36,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; + @javax.annotation.Nullable private List arrayNumber = new ArrayList<>(); public ArrayOfNumberOnly() { } - public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + public ArrayOfNumberOnly arrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; return this; @@ -70,7 +71,7 @@ public List getArrayNumber() { @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayNumber(List arrayNumber) { + public void setArrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ArrayTest.java index 09f4fee4ae44..8229b3d48622 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -38,18 +38,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; + @javax.annotation.Nullable private List arrayOfString = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; + @javax.annotation.Nullable private List> arrayArrayOfInteger = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; + @javax.annotation.Nullable private List> arrayArrayOfModel = new ArrayList<>(); public ArrayTest() { } - public ArrayTest arrayOfString(List arrayOfString) { + public ArrayTest arrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; return this; @@ -78,11 +81,11 @@ public List getArrayOfString() { @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayOfString(List arrayOfString) { + public void setArrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; } - public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + public ArrayTest arrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; return this; @@ -111,11 +114,11 @@ public List> getArrayArrayOfInteger() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { + public void setArrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } - public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + public ArrayTest arrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; return this; @@ -144,7 +147,7 @@ public List> getArrayArrayOfModel() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayOfModel(List> arrayArrayOfModel) { + public void setArrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Capitalization.java index 43c174eab6c0..9ba3cfe4c4fb 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Capitalization.java @@ -37,27 +37,33 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Capitalization { public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; + @javax.annotation.Nullable private String smallCamel; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; + @javax.annotation.Nullable private String capitalCamel; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; + @javax.annotation.Nullable private String smallSnake; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; + @javax.annotation.Nullable private String capitalSnake; public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; + @javax.annotation.Nullable private String scAETHFlowPoints; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; + @javax.annotation.Nullable private String ATT_NAME; public Capitalization() { } - public Capitalization smallCamel(String smallCamel) { + public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; return this; @@ -78,11 +84,11 @@ public String getSmallCamel() { @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmallCamel(String smallCamel) { + public void setSmallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; } - public Capitalization capitalCamel(String capitalCamel) { + public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; return this; @@ -103,11 +109,11 @@ public String getCapitalCamel() { @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCapitalCamel(String capitalCamel) { + public void setCapitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; } - public Capitalization smallSnake(String smallSnake) { + public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; return this; @@ -128,11 +134,11 @@ public String getSmallSnake() { @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmallSnake(String smallSnake) { + public void setSmallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; } - public Capitalization capitalSnake(String capitalSnake) { + public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; return this; @@ -153,11 +159,11 @@ public String getCapitalSnake() { @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCapitalSnake(String capitalSnake) { + public void setCapitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; } - public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; return this; @@ -178,11 +184,11 @@ public String getScAETHFlowPoints() { @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setScAETHFlowPoints(String scAETHFlowPoints) { + public void setScAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } - public Capitalization ATT_NAME(String ATT_NAME) { + public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; return this; @@ -203,7 +209,7 @@ public String getATTNAME() { @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setATTNAME(String ATT_NAME) { + public void setATTNAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Cat.java index a099c51138c2..df339e893802 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Cat.java @@ -42,13 +42,14 @@ public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; + @javax.annotation.Nullable private Boolean declawed; public Cat() { } - public Cat declawed(Boolean declawed) { + public Cat declawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; return this; @@ -69,18 +70,18 @@ public Boolean getDeclawed() { @JsonProperty(JSON_PROPERTY_DECLAWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; } @Override - public Cat className(String className) { + public Cat className(@javax.annotation.Nonnull String className) { this.setClassName(className); return this; } @Override - public Cat color(String color) { + public Cat color(@javax.annotation.Nullable String color) { this.setColor(color); return this; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Category.java index 332aa92b9bd9..0c4ede2fd662 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Category.java @@ -33,15 +33,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Category { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private String name = "default-name"; public Category() { } - public Category id(Long id) { + public Category id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -62,11 +64,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@javax.annotation.Nonnull String name) { this.name = name; return this; @@ -87,7 +89,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ChildWithNullable.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ChildWithNullable.java index 04b7c20b41b0..446d01ecf76b 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ChildWithNullable.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ChildWithNullable.java @@ -43,13 +43,14 @@ public class ChildWithNullable extends ParentWithNullable { public static final String JSON_PROPERTY_OTHER_PROPERTY = "otherProperty"; + @javax.annotation.Nullable private String otherProperty; public ChildWithNullable() { } - public ChildWithNullable otherProperty(String otherProperty) { + public ChildWithNullable otherProperty(@javax.annotation.Nullable String otherProperty) { this.otherProperty = otherProperty; return this; @@ -70,18 +71,18 @@ public String getOtherProperty() { @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOtherProperty(String otherProperty) { + public void setOtherProperty(@javax.annotation.Nullable String otherProperty) { this.otherProperty = otherProperty; } @Override - public ChildWithNullable type(TypeEnum type) { + public ChildWithNullable type(@javax.annotation.Nullable TypeEnum type) { this.setType(type); return this; } @Override - public ChildWithNullable nullableProperty(String nullableProperty) { + public ChildWithNullable nullableProperty(@javax.annotation.Nullable String nullableProperty) { this.setNullableProperty(nullableProperty); return this; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ClassModel.java index eba862847664..15f206254637 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ClassModel.java @@ -32,12 +32,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ClassModel { public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; + @javax.annotation.Nullable private String propertyClass; public ClassModel() { } - public ClassModel propertyClass(String propertyClass) { + public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; @@ -58,7 +59,7 @@ public String getPropertyClass() { @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Client.java index a5f5a56f08f3..f9d821e024b9 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Client.java @@ -32,12 +32,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Client { public static final String JSON_PROPERTY_CLIENT = "client"; + @javax.annotation.Nullable private String client; public Client() { } - public Client client(String client) { + public Client client(@javax.annotation.Nullable String client) { this.client = client; return this; @@ -58,7 +59,7 @@ public String getClient() { @JsonProperty(JSON_PROPERTY_CLIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setClient(String client) { + public void setClient(@javax.annotation.Nullable String client) { this.client = client; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/DeprecatedObject.java index 039c1e25a9af..06e876f70333 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -34,12 +34,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class DeprecatedObject { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public DeprecatedObject() { } - public DeprecatedObject name(String name) { + public DeprecatedObject name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -60,7 +61,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Dog.java index cf9d1537e128..8c5a24918453 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Dog.java @@ -42,13 +42,14 @@ public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; + @javax.annotation.Nullable private String breed; public Dog() { } - public Dog breed(String breed) { + public Dog breed(@javax.annotation.Nullable String breed) { this.breed = breed; return this; @@ -69,18 +70,18 @@ public String getBreed() { @JsonProperty(JSON_PROPERTY_BREED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBreed(String breed) { + public void setBreed(@javax.annotation.Nullable String breed) { this.breed = breed; } @Override - public Dog className(String className) { + public Dog className(@javax.annotation.Nonnull String className) { this.setClassName(className); return this; } @Override - public Dog color(String color) { + public Dog color(@javax.annotation.Nullable String color) { this.setColor(color); return this; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/EnumArrays.java index ed3d3768e625..356e89c0f0cf 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -71,6 +71,7 @@ public static JustSymbolEnum fromValue(String value) { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** @@ -109,12 +110,13 @@ public static ArrayEnumEnum fromValue(String value) { } public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; + @javax.annotation.Nullable private List arrayEnum = new ArrayList<>(); public EnumArrays() { } - public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; @@ -135,11 +137,11 @@ public JustSymbolEnum getJustSymbol() { @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJustSymbol(JustSymbolEnum justSymbol) { + public void setJustSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } - public EnumArrays arrayEnum(List arrayEnum) { + public EnumArrays arrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; return this; @@ -168,7 +170,7 @@ public List getArrayEnum() { @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayEnum(List arrayEnum) { + public void setArrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/EnumTest.java index c84f2fa3fc8d..8523c6f30213 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/EnumTest.java @@ -85,6 +85,7 @@ public static EnumStringEnum fromValue(String value) { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; + @javax.annotation.Nullable private EnumStringEnum enumString; /** @@ -125,6 +126,7 @@ public static EnumStringRequiredEnum fromValue(String value) { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** @@ -163,6 +165,7 @@ public static EnumIntegerEnum fromValue(Integer value) { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** @@ -201,24 +204,29 @@ public static EnumNumberEnum fromValue(Double value) { } public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; + @javax.annotation.Nullable private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; + @javax.annotation.Nullable private JsonNullable outerEnum = JsonNullable.undefined(); public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER = "outerEnumInteger"; + @javax.annotation.Nullable private OuterEnumInteger outerEnumInteger; public static final String JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE = "outerEnumDefaultValue"; + @javax.annotation.Nullable private OuterEnumDefaultValue outerEnumDefaultValue = OuterEnumDefaultValue.PLACED; public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE = "outerEnumIntegerDefaultValue"; + @javax.annotation.Nullable private OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = OuterEnumIntegerDefaultValue.NUMBER_0; public EnumTest() { } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; @@ -239,11 +247,11 @@ public EnumStringEnum getEnumString() { @JsonProperty(JSON_PROPERTY_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumString(EnumStringEnum enumString) { + public void setEnumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; } - public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; return this; @@ -264,11 +272,11 @@ public EnumStringRequiredEnum getEnumStringRequired() { @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public void setEnumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; @@ -289,11 +297,11 @@ public EnumIntegerEnum getEnumInteger() { @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumInteger(EnumIntegerEnum enumInteger) { + public void setEnumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } - public EnumTest enumNumber(EnumNumberEnum enumNumber) { + public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; return this; @@ -314,11 +322,11 @@ public EnumNumberEnum getEnumNumber() { @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumNumber(EnumNumberEnum enumNumber) { + public void setEnumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } - public EnumTest outerEnum(OuterEnum outerEnum) { + public EnumTest outerEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = JsonNullable.of(outerEnum); return this; @@ -347,11 +355,11 @@ public void setOuterEnum_JsonNullable(JsonNullable outerEnum) { this.outerEnum = outerEnum; } - public void setOuterEnum(OuterEnum outerEnum) { + public void setOuterEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = JsonNullable.of(outerEnum); } - public EnumTest outerEnumInteger(OuterEnumInteger outerEnumInteger) { + public EnumTest outerEnumInteger(@javax.annotation.Nullable OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; return this; @@ -372,11 +380,11 @@ public OuterEnumInteger getOuterEnumInteger() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnumInteger(OuterEnumInteger outerEnumInteger) { + public void setOuterEnumInteger(@javax.annotation.Nullable OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; } - public EnumTest outerEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) { + public EnumTest outerEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; return this; @@ -397,11 +405,11 @@ public OuterEnumDefaultValue getOuterEnumDefaultValue() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) { + public void setOuterEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; } - public EnumTest outerEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { + public EnumTest outerEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; return this; @@ -422,7 +430,7 @@ public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { + public void setOuterEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java index b92b4b90912e..282dce2da2a4 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java @@ -37,15 +37,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FakeBigDecimalMap200Response { public static final String JSON_PROPERTY_SOME_ID = "someId"; + @javax.annotation.Nullable private BigDecimal someId; public static final String JSON_PROPERTY_SOME_MAP = "someMap"; + @javax.annotation.Nullable private Map someMap = new HashMap<>(); public FakeBigDecimalMap200Response() { } - public FakeBigDecimalMap200Response someId(BigDecimal someId) { + public FakeBigDecimalMap200Response someId(@javax.annotation.Nullable BigDecimal someId) { this.someId = someId; return this; @@ -66,11 +68,11 @@ public BigDecimal getSomeId() { @JsonProperty(JSON_PROPERTY_SOME_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSomeId(BigDecimal someId) { + public void setSomeId(@javax.annotation.Nullable BigDecimal someId) { this.someId = someId; } - public FakeBigDecimalMap200Response someMap(Map someMap) { + public FakeBigDecimalMap200Response someMap(@javax.annotation.Nullable Map someMap) { this.someMap = someMap; return this; @@ -99,7 +101,7 @@ public Map getSomeMap() { @JsonProperty(JSON_PROPERTY_SOME_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSomeMap(Map someMap) { + public void setSomeMap(@javax.annotation.Nullable Map someMap) { this.someMap = someMap; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 98b4699c06ec..e83e1fe54dfb 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -37,15 +37,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; + @javax.annotation.Nullable private ModelFile _file; public static final String JSON_PROPERTY_FILES = "files"; + @javax.annotation.Nullable private List files = new ArrayList<>(); public FileSchemaTestClass() { } - public FileSchemaTestClass _file(ModelFile _file) { + public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { this._file = _file; return this; @@ -66,11 +68,11 @@ public ModelFile getFile() { @JsonProperty(JSON_PROPERTY_FILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFile(ModelFile _file) { + public void setFile(@javax.annotation.Nullable ModelFile _file) { this._file = _file; } - public FileSchemaTestClass files(List files) { + public FileSchemaTestClass files(@javax.annotation.Nullable List files) { this.files = files; return this; @@ -99,7 +101,7 @@ public List getFiles() { @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFiles(List files) { + public void setFiles(@javax.annotation.Nullable List files) { this.files = files; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Foo.java index 3e3df1d63980..9e0817d8bf5c 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Foo.java @@ -32,12 +32,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Foo { public static final String JSON_PROPERTY_BAR = "bar"; + @javax.annotation.Nullable private String bar = "bar"; public Foo() { } - public Foo bar(String bar) { + public Foo bar(@javax.annotation.Nullable String bar) { this.bar = bar; return this; @@ -58,7 +59,7 @@ public String getBar() { @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBar(String bar) { + public void setBar(@javax.annotation.Nullable String bar) { this.bar = bar; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index 30872bb849fd..8d9414f27c03 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -34,12 +34,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FooGetDefaultResponse { public static final String JSON_PROPERTY_STRING = "string"; + @javax.annotation.Nullable private Foo string; public FooGetDefaultResponse() { } - public FooGetDefaultResponse string(Foo string) { + public FooGetDefaultResponse string(@javax.annotation.Nullable Foo string) { this.string = string; return this; @@ -60,7 +61,7 @@ public Foo getString() { @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setString(Foo string) { + public void setString(@javax.annotation.Nullable Foo string) { this.string = string; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FormatTest.java index 3ef830a4cfbf..74466dc91832 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FormatTest.java @@ -53,57 +53,73 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; + @javax.annotation.Nullable private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; + @javax.annotation.Nullable private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; + @javax.annotation.Nullable private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; + @javax.annotation.Nonnull private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; + @javax.annotation.Nullable private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; + @javax.annotation.Nullable private Double _double; public static final String JSON_PROPERTY_DECIMAL = "decimal"; + @javax.annotation.Nullable private BigDecimal decimal; public static final String JSON_PROPERTY_STRING = "string"; + @javax.annotation.Nullable private String string; public static final String JSON_PROPERTY_BYTE = "byte"; + @javax.annotation.Nonnull private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; + @javax.annotation.Nullable private AsyncFile binary; public static final String JSON_PROPERTY_DATE = "date"; + @javax.annotation.Nonnull private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; + @javax.annotation.Nonnull private String password; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS = "pattern_with_digits"; + @javax.annotation.Nullable private String patternWithDigits; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER = "pattern_with_digits_and_delimiter"; + @javax.annotation.Nullable private String patternWithDigitsAndDelimiter; public FormatTest() { } - public FormatTest integer(Integer integer) { + public FormatTest integer(@javax.annotation.Nullable Integer integer) { this.integer = integer; return this; @@ -126,11 +142,11 @@ public Integer getInteger() { @JsonProperty(JSON_PROPERTY_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInteger(Integer integer) { + public void setInteger(@javax.annotation.Nullable Integer integer) { this.integer = integer; } - public FormatTest int32(Integer int32) { + public FormatTest int32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; return this; @@ -153,11 +169,11 @@ public Integer getInt32() { @JsonProperty(JSON_PROPERTY_INT32) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInt32(Integer int32) { + public void setInt32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; } - public FormatTest int64(Long int64) { + public FormatTest int64(@javax.annotation.Nullable Long int64) { this.int64 = int64; return this; @@ -178,11 +194,11 @@ public Long getInt64() { @JsonProperty(JSON_PROPERTY_INT64) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInt64(Long int64) { + public void setInt64(@javax.annotation.Nullable Long int64) { this.int64 = int64; } - public FormatTest number(BigDecimal number) { + public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { this.number = number; return this; @@ -205,11 +221,11 @@ public BigDecimal getNumber() { @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNumber(BigDecimal number) { + public void setNumber(@javax.annotation.Nonnull BigDecimal number) { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@javax.annotation.Nullable Float _float) { this._float = _float; return this; @@ -232,11 +248,11 @@ public Float getFloat() { @JsonProperty(JSON_PROPERTY_FLOAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFloat(Float _float) { + public void setFloat(@javax.annotation.Nullable Float _float) { this._float = _float; } - public FormatTest _double(Double _double) { + public FormatTest _double(@javax.annotation.Nullable Double _double) { this._double = _double; return this; @@ -259,11 +275,11 @@ public Double getDouble() { @JsonProperty(JSON_PROPERTY_DOUBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDouble(Double _double) { + public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; } - public FormatTest decimal(BigDecimal decimal) { + public FormatTest decimal(@javax.annotation.Nullable BigDecimal decimal) { this.decimal = decimal; return this; @@ -284,11 +300,11 @@ public BigDecimal getDecimal() { @JsonProperty(JSON_PROPERTY_DECIMAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDecimal(BigDecimal decimal) { + public void setDecimal(@javax.annotation.Nullable BigDecimal decimal) { this.decimal = decimal; } - public FormatTest string(String string) { + public FormatTest string(@javax.annotation.Nullable String string) { this.string = string; return this; @@ -309,11 +325,11 @@ public String getString() { @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setString(String string) { + public void setString(@javax.annotation.Nullable String string) { this.string = string; } - public FormatTest _byte(byte[] _byte) { + public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; return this; @@ -334,11 +350,11 @@ public byte[] getByte() { @JsonProperty(JSON_PROPERTY_BYTE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setByte(byte[] _byte) { + public void setByte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; } - public FormatTest binary(AsyncFile binary) { + public FormatTest binary(@javax.annotation.Nullable AsyncFile binary) { this.binary = binary; return this; @@ -359,11 +375,11 @@ public AsyncFile getBinary() { @JsonProperty(JSON_PROPERTY_BINARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBinary(AsyncFile binary) { + public void setBinary(@javax.annotation.Nullable AsyncFile binary) { this.binary = binary; } - public FormatTest date(LocalDate date) { + public FormatTest date(@javax.annotation.Nonnull LocalDate date) { this.date = date; return this; @@ -384,11 +400,11 @@ public LocalDate getDate() { @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDate(LocalDate date) { + public void setDate(@javax.annotation.Nonnull LocalDate date) { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; @@ -409,11 +425,11 @@ public OffsetDateTime getDateTime() { @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public FormatTest uuid(UUID uuid) { + public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; @@ -434,11 +450,11 @@ public UUID getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(UUID uuid) { + public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public FormatTest password(String password) { + public FormatTest password(@javax.annotation.Nonnull String password) { this.password = password; return this; @@ -459,11 +475,11 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nonnull String password) { this.password = password; } - public FormatTest patternWithDigits(String patternWithDigits) { + public FormatTest patternWithDigits(@javax.annotation.Nullable String patternWithDigits) { this.patternWithDigits = patternWithDigits; return this; @@ -484,11 +500,11 @@ public String getPatternWithDigits() { @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPatternWithDigits(String patternWithDigits) { + public void setPatternWithDigits(@javax.annotation.Nullable String patternWithDigits) { this.patternWithDigits = patternWithDigits; } - public FormatTest patternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) { + public FormatTest patternWithDigitsAndDelimiter(@javax.annotation.Nullable String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; return this; @@ -509,7 +525,7 @@ public String getPatternWithDigitsAndDelimiter() { @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPatternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) { + public void setPatternWithDigitsAndDelimiter(@javax.annotation.Nullable String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 89f9de6d3d41..ce79f11f55ac 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -34,9 +34,11 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_FOO = "foo"; + @javax.annotation.Nullable private String foo; public HasOnlyReadOnly() { diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/HealthCheckResult.java index 5e4657caa32e..62d2287cab62 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -36,12 +36,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class HealthCheckResult { public static final String JSON_PROPERTY_NULLABLE_MESSAGE = "NullableMessage"; + @javax.annotation.Nullable private JsonNullable nullableMessage = JsonNullable.undefined(); public HealthCheckResult() { } - public HealthCheckResult nullableMessage(String nullableMessage) { + public HealthCheckResult nullableMessage(@javax.annotation.Nullable String nullableMessage) { this.nullableMessage = JsonNullable.of(nullableMessage); return this; @@ -70,7 +71,7 @@ public void setNullableMessage_JsonNullable(JsonNullable nullableMessage this.nullableMessage = nullableMessage; } - public void setNullableMessage(String nullableMessage) { + public void setNullableMessage(@javax.annotation.Nullable String nullableMessage) { this.nullableMessage = JsonNullable.of(nullableMessage); } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/MapTest.java index 1ae40680e29e..34ba6c76e66d 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/MapTest.java @@ -37,6 +37,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; + @javax.annotation.Nullable private Map> mapMapOfString = new HashMap<>(); /** @@ -75,18 +76,21 @@ public static InnerEnum fromValue(String value) { } public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; + @javax.annotation.Nullable private Map mapOfEnumString = new HashMap<>(); public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; + @javax.annotation.Nullable private Map directMap = new HashMap<>(); public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; + @javax.annotation.Nullable private Map indirectMap = new HashMap<>(); public MapTest() { } - public MapTest mapMapOfString(Map> mapMapOfString) { + public MapTest mapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; return this; @@ -115,11 +119,11 @@ public Map> getMapMapOfString() { @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapMapOfString(Map> mapMapOfString) { + public void setMapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } - public MapTest mapOfEnumString(Map mapOfEnumString) { + public MapTest mapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; return this; @@ -148,11 +152,11 @@ public Map getMapOfEnumString() { @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapOfEnumString(Map mapOfEnumString) { + public void setMapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } - public MapTest directMap(Map directMap) { + public MapTest directMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; return this; @@ -181,11 +185,11 @@ public Map getDirectMap() { @JsonProperty(JSON_PROPERTY_DIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDirectMap(Map directMap) { + public void setDirectMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; } - public MapTest indirectMap(Map indirectMap) { + public MapTest indirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; return this; @@ -214,7 +218,7 @@ public Map getIndirectMap() { @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIndirectMap(Map indirectMap) { + public void setIndirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index a9cf93ce52e5..f1e0cc2daa7b 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -39,18 +39,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; + @javax.annotation.Nullable private Map map = new HashMap<>(); public MixedPropertiesAndAdditionalPropertiesClass() { } - public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; @@ -71,11 +74,11 @@ public UUID getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(UUID uuid) { + public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; @@ -96,11 +99,11 @@ public OffsetDateTime getDateTime() { @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + public MixedPropertiesAndAdditionalPropertiesClass map(@javax.annotation.Nullable Map map) { this.map = map; return this; @@ -129,7 +132,7 @@ public Map getMap() { @JsonProperty(JSON_PROPERTY_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMap(Map map) { + public void setMap(@javax.annotation.Nullable Map map) { this.map = map; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Model200Response.java index 9dd501519d94..81203bc5fec5 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Model200Response.java @@ -34,15 +34,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; + @javax.annotation.Nullable private String propertyClass; public Model200Response() { } - public Model200Response name(Integer name) { + public Model200Response name(@javax.annotation.Nullable Integer name) { this.name = name; return this; @@ -63,11 +65,11 @@ public Integer getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(Integer name) { + public void setName(@javax.annotation.Nullable Integer name) { this.name = name; } - public Model200Response propertyClass(String propertyClass) { + public Model200Response propertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; @@ -88,7 +90,7 @@ public String getPropertyClass() { @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 06f950e61809..8295041ee48a 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -35,18 +35,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nullable private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nullable private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; + @javax.annotation.Nullable private String message; public ModelApiResponse() { } - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@javax.annotation.Nullable Integer code) { this.code = code; return this; @@ -67,11 +70,11 @@ public Integer getCode() { @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCode(Integer code) { + public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@javax.annotation.Nullable String type) { this.type = type; return this; @@ -92,11 +95,11 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { + public void setType(@javax.annotation.Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@javax.annotation.Nullable String message) { this.message = message; return this; @@ -117,7 +120,7 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelFile.java index c57b589f9a93..5d4793a2e437 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelFile.java @@ -33,12 +33,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelFile { public static final String JSON_PROPERTY_SOURCE_U_R_I = "sourceURI"; + @javax.annotation.Nullable private String sourceURI; public ModelFile() { } - public ModelFile sourceURI(String sourceURI) { + public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; return this; @@ -59,7 +60,7 @@ public String getSourceURI() { @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSourceURI(String sourceURI) { + public void setSourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelList.java index 3dc09aa2be76..02dcc4b37e64 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelList.java @@ -33,12 +33,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelList { public static final String JSON_PROPERTY_123LIST = "123-list"; + @javax.annotation.Nullable private String _123list; public ModelList() { } - public ModelList _123list(String _123list) { + public ModelList _123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; return this; @@ -59,7 +60,7 @@ public String get123list() { @JsonProperty(JSON_PROPERTY_123LIST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void set123list(String _123list) { + public void set123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelReturn.java index 2d5696ac318a..d38260eee6db 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -33,12 +33,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; + @javax.annotation.Nullable private Integer _return; public ModelReturn() { } - public ModelReturn _return(Integer _return) { + public ModelReturn _return(@javax.annotation.Nullable Integer _return) { this._return = _return; return this; @@ -59,7 +60,7 @@ public Integer getReturn() { @JsonProperty(JSON_PROPERTY_RETURN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setReturn(Integer _return) { + public void setReturn(@javax.annotation.Nullable Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Name.java index a45307c099a0..c94d16233849 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Name.java @@ -35,15 +35,19 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Name { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; + @javax.annotation.Nullable private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; + @javax.annotation.Nullable private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; + @javax.annotation.Nullable private Integer _123number; public Name() { @@ -61,7 +65,7 @@ public Name( this._123number = _123number; } - public Name name(Integer name) { + public Name name(@javax.annotation.Nonnull Integer name) { this.name = name; return this; @@ -82,7 +86,7 @@ public Integer getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(Integer name) { + public void setName(@javax.annotation.Nonnull Integer name) { this.name = name; } @@ -100,7 +104,7 @@ public Integer getSnakeCase() { - public Name property(String property) { + public Name property(@javax.annotation.Nullable String property) { this.property = property; return this; @@ -121,7 +125,7 @@ public String getProperty() { @JsonProperty(JSON_PROPERTY_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProperty(String property) { + public void setProperty(@javax.annotation.Nullable String property) { this.property = property; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/NullableClass.java index 0bdc106cd684..adc18738b115 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/NullableClass.java @@ -55,46 +55,58 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class NullableClass extends HashMap { public static final String JSON_PROPERTY_INTEGER_PROP = "integer_prop"; + @javax.annotation.Nullable private JsonNullable integerProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_NUMBER_PROP = "number_prop"; + @javax.annotation.Nullable private JsonNullable numberProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_BOOLEAN_PROP = "boolean_prop"; + @javax.annotation.Nullable private JsonNullable booleanProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_STRING_PROP = "string_prop"; + @javax.annotation.Nullable private JsonNullable stringProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_DATE_PROP = "date_prop"; + @javax.annotation.Nullable private JsonNullable dateProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_DATETIME_PROP = "datetime_prop"; + @javax.annotation.Nullable private JsonNullable datetimeProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_ARRAY_NULLABLE_PROP = "array_nullable_prop"; + @javax.annotation.Nullable private JsonNullable> arrayNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP = "array_and_items_nullable_prop"; + @javax.annotation.Nullable private JsonNullable> arrayAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_ITEMS_NULLABLE = "array_items_nullable"; + @javax.annotation.Nullable private List arrayItemsNullable = new ArrayList<>(); public static final String JSON_PROPERTY_OBJECT_NULLABLE_PROP = "object_nullable_prop"; + @javax.annotation.Nullable private JsonNullable> objectNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP = "object_and_items_nullable_prop"; + @javax.annotation.Nullable private JsonNullable> objectAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_OBJECT_ITEMS_NULLABLE = "object_items_nullable"; + @javax.annotation.Nullable private Map objectItemsNullable = new HashMap<>(); public NullableClass() { } - public NullableClass integerProp(Integer integerProp) { + public NullableClass integerProp(@javax.annotation.Nullable Integer integerProp) { this.integerProp = JsonNullable.of(integerProp); return this; @@ -123,11 +135,11 @@ public void setIntegerProp_JsonNullable(JsonNullable integerProp) { this.integerProp = integerProp; } - public void setIntegerProp(Integer integerProp) { + public void setIntegerProp(@javax.annotation.Nullable Integer integerProp) { this.integerProp = JsonNullable.of(integerProp); } - public NullableClass numberProp(BigDecimal numberProp) { + public NullableClass numberProp(@javax.annotation.Nullable BigDecimal numberProp) { this.numberProp = JsonNullable.of(numberProp); return this; @@ -156,11 +168,11 @@ public void setNumberProp_JsonNullable(JsonNullable numberProp) { this.numberProp = numberProp; } - public void setNumberProp(BigDecimal numberProp) { + public void setNumberProp(@javax.annotation.Nullable BigDecimal numberProp) { this.numberProp = JsonNullable.of(numberProp); } - public NullableClass booleanProp(Boolean booleanProp) { + public NullableClass booleanProp(@javax.annotation.Nullable Boolean booleanProp) { this.booleanProp = JsonNullable.of(booleanProp); return this; @@ -189,11 +201,11 @@ public void setBooleanProp_JsonNullable(JsonNullable booleanProp) { this.booleanProp = booleanProp; } - public void setBooleanProp(Boolean booleanProp) { + public void setBooleanProp(@javax.annotation.Nullable Boolean booleanProp) { this.booleanProp = JsonNullable.of(booleanProp); } - public NullableClass stringProp(String stringProp) { + public NullableClass stringProp(@javax.annotation.Nullable String stringProp) { this.stringProp = JsonNullable.of(stringProp); return this; @@ -222,11 +234,11 @@ public void setStringProp_JsonNullable(JsonNullable stringProp) { this.stringProp = stringProp; } - public void setStringProp(String stringProp) { + public void setStringProp(@javax.annotation.Nullable String stringProp) { this.stringProp = JsonNullable.of(stringProp); } - public NullableClass dateProp(LocalDate dateProp) { + public NullableClass dateProp(@javax.annotation.Nullable LocalDate dateProp) { this.dateProp = JsonNullable.of(dateProp); return this; @@ -255,11 +267,11 @@ public void setDateProp_JsonNullable(JsonNullable dateProp) { this.dateProp = dateProp; } - public void setDateProp(LocalDate dateProp) { + public void setDateProp(@javax.annotation.Nullable LocalDate dateProp) { this.dateProp = JsonNullable.of(dateProp); } - public NullableClass datetimeProp(OffsetDateTime datetimeProp) { + public NullableClass datetimeProp(@javax.annotation.Nullable OffsetDateTime datetimeProp) { this.datetimeProp = JsonNullable.of(datetimeProp); return this; @@ -288,11 +300,11 @@ public void setDatetimeProp_JsonNullable(JsonNullable datetimePr this.datetimeProp = datetimeProp; } - public void setDatetimeProp(OffsetDateTime datetimeProp) { + public void setDatetimeProp(@javax.annotation.Nullable OffsetDateTime datetimeProp) { this.datetimeProp = JsonNullable.of(datetimeProp); } - public NullableClass arrayNullableProp(List arrayNullableProp) { + public NullableClass arrayNullableProp(@javax.annotation.Nullable List arrayNullableProp) { this.arrayNullableProp = JsonNullable.>of(arrayNullableProp); return this; @@ -333,11 +345,11 @@ public void setArrayNullableProp_JsonNullable(JsonNullable> arrayNu this.arrayNullableProp = arrayNullableProp; } - public void setArrayNullableProp(List arrayNullableProp) { + public void setArrayNullableProp(@javax.annotation.Nullable List arrayNullableProp) { this.arrayNullableProp = JsonNullable.>of(arrayNullableProp); } - public NullableClass arrayAndItemsNullableProp(List arrayAndItemsNullableProp) { + public NullableClass arrayAndItemsNullableProp(@javax.annotation.Nullable List arrayAndItemsNullableProp) { this.arrayAndItemsNullableProp = JsonNullable.>of(arrayAndItemsNullableProp); return this; @@ -378,11 +390,11 @@ public void setArrayAndItemsNullableProp_JsonNullable(JsonNullable> this.arrayAndItemsNullableProp = arrayAndItemsNullableProp; } - public void setArrayAndItemsNullableProp(List arrayAndItemsNullableProp) { + public void setArrayAndItemsNullableProp(@javax.annotation.Nullable List arrayAndItemsNullableProp) { this.arrayAndItemsNullableProp = JsonNullable.>of(arrayAndItemsNullableProp); } - public NullableClass arrayItemsNullable(List arrayItemsNullable) { + public NullableClass arrayItemsNullable(@javax.annotation.Nullable List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; return this; @@ -411,11 +423,11 @@ public List getArrayItemsNullable() { @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayItemsNullable(List arrayItemsNullable) { + public void setArrayItemsNullable(@javax.annotation.Nullable List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; } - public NullableClass objectNullableProp(Map objectNullableProp) { + public NullableClass objectNullableProp(@javax.annotation.Nullable Map objectNullableProp) { this.objectNullableProp = JsonNullable.>of(objectNullableProp); return this; @@ -456,11 +468,11 @@ public void setObjectNullableProp_JsonNullable(JsonNullable> this.objectNullableProp = objectNullableProp; } - public void setObjectNullableProp(Map objectNullableProp) { + public void setObjectNullableProp(@javax.annotation.Nullable Map objectNullableProp) { this.objectNullableProp = JsonNullable.>of(objectNullableProp); } - public NullableClass objectAndItemsNullableProp(Map objectAndItemsNullableProp) { + public NullableClass objectAndItemsNullableProp(@javax.annotation.Nullable Map objectAndItemsNullableProp) { this.objectAndItemsNullableProp = JsonNullable.>of(objectAndItemsNullableProp); return this; @@ -501,11 +513,11 @@ public void setObjectAndItemsNullableProp_JsonNullable(JsonNullable objectAndItemsNullableProp) { + public void setObjectAndItemsNullableProp(@javax.annotation.Nullable Map objectAndItemsNullableProp) { this.objectAndItemsNullableProp = JsonNullable.>of(objectAndItemsNullableProp); } - public NullableClass objectItemsNullable(Map objectItemsNullable) { + public NullableClass objectItemsNullable(@javax.annotation.Nullable Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; return this; @@ -534,7 +546,7 @@ public Map getObjectItemsNullable() { @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setObjectItemsNullable(Map objectItemsNullable) { + public void setObjectItemsNullable(@javax.annotation.Nullable Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/NumberOnly.java index ba7b026b3f6e..43f6d3fa6a62 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -33,12 +33,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; + @javax.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } - public NumberOnly justNumber(BigDecimal justNumber) { + public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; @@ -59,7 +60,7 @@ public BigDecimal getJustNumber() { @JsonProperty(JSON_PROPERTY_JUST_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJustNumber(BigDecimal justNumber) { + public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index c3fecc9691e6..12ff2a3155ad 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -40,21 +40,25 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ObjectWithDeprecatedFields { public static final String JSON_PROPERTY_UUID = "uuid"; + @javax.annotation.Nullable private String uuid; public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private BigDecimal id; public static final String JSON_PROPERTY_DEPRECATED_REF = "deprecatedRef"; + @javax.annotation.Nullable private DeprecatedObject deprecatedRef; public static final String JSON_PROPERTY_BARS = "bars"; + @javax.annotation.Nullable private List bars = new ArrayList<>(); public ObjectWithDeprecatedFields() { } - public ObjectWithDeprecatedFields uuid(String uuid) { + public ObjectWithDeprecatedFields uuid(@javax.annotation.Nullable String uuid) { this.uuid = uuid; return this; @@ -75,11 +79,11 @@ public String getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(String uuid) { + public void setUuid(@javax.annotation.Nullable String uuid) { this.uuid = uuid; } - public ObjectWithDeprecatedFields id(BigDecimal id) { + public ObjectWithDeprecatedFields id(@javax.annotation.Nullable BigDecimal id) { this.id = id; return this; @@ -102,11 +106,11 @@ public BigDecimal getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(BigDecimal id) { + public void setId(@javax.annotation.Nullable BigDecimal id) { this.id = id; } - public ObjectWithDeprecatedFields deprecatedRef(DeprecatedObject deprecatedRef) { + public ObjectWithDeprecatedFields deprecatedRef(@javax.annotation.Nullable DeprecatedObject deprecatedRef) { this.deprecatedRef = deprecatedRef; return this; @@ -129,11 +133,11 @@ public DeprecatedObject getDeprecatedRef() { @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeprecatedRef(DeprecatedObject deprecatedRef) { + public void setDeprecatedRef(@javax.annotation.Nullable DeprecatedObject deprecatedRef) { this.deprecatedRef = deprecatedRef; } - public ObjectWithDeprecatedFields bars(List bars) { + public ObjectWithDeprecatedFields bars(@javax.annotation.Nullable List bars) { this.bars = bars; return this; @@ -164,7 +168,7 @@ public List getBars() { @JsonProperty(JSON_PROPERTY_BARS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBars(List bars) { + public void setBars(@javax.annotation.Nullable List bars) { this.bars = bars; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Order.java index 31a2cd4aada5..7915f35bce17 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Order.java @@ -38,15 +38,19 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Order { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; + @javax.annotation.Nullable private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; + @javax.annotation.Nullable private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; + @javax.annotation.Nullable private OffsetDateTime shipDate; /** @@ -87,15 +91,17 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @javax.annotation.Nullable private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; + @javax.annotation.Nullable private Boolean complete = false; public Order() { } - public Order id(Long id) { + public Order id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -116,11 +122,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@javax.annotation.Nullable Long petId) { this.petId = petId; return this; @@ -141,11 +147,11 @@ public Long getPetId() { @JsonProperty(JSON_PROPERTY_PET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPetId(Long petId) { + public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; return this; @@ -166,11 +172,11 @@ public Integer getQuantity() { @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setQuantity(Integer quantity) { + public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; @@ -191,11 +197,11 @@ public OffsetDateTime getShipDate() { @JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -216,11 +222,11 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } - public Order complete(Boolean complete) { + public Order complete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; return this; @@ -241,7 +247,7 @@ public Boolean getComplete() { @JsonProperty(JSON_PROPERTY_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setComplete(Boolean complete) { + public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/OuterComposite.java index 37a130288c84..0134a6b50570 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -35,18 +35,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; + @javax.annotation.Nullable private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; + @javax.annotation.Nullable private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; + @javax.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } - public OuterComposite myNumber(BigDecimal myNumber) { + public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; @@ -67,11 +70,11 @@ public BigDecimal getMyNumber() { @JsonProperty(JSON_PROPERTY_MY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyNumber(BigDecimal myNumber) { + public void setMyNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; } - public OuterComposite myString(String myString) { + public OuterComposite myString(@javax.annotation.Nullable String myString) { this.myString = myString; return this; @@ -92,11 +95,11 @@ public String getMyString() { @JsonProperty(JSON_PROPERTY_MY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyString(String myString) { + public void setMyString(@javax.annotation.Nullable String myString) { this.myString = myString; } - public OuterComposite myBoolean(Boolean myBoolean) { + public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; return this; @@ -117,7 +120,7 @@ public Boolean getMyBoolean() { @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyBoolean(Boolean myBoolean) { + public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java index bdb4f1ae63ac..f58d0e4d1b52 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java @@ -33,12 +33,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class OuterObjectWithEnumProperty { public static final String JSON_PROPERTY_VALUE = "value"; + @javax.annotation.Nonnull private OuterEnumInteger value; public OuterObjectWithEnumProperty() { } - public OuterObjectWithEnumProperty value(OuterEnumInteger value) { + public OuterObjectWithEnumProperty value(@javax.annotation.Nonnull OuterEnumInteger value) { this.value = value; return this; @@ -59,7 +60,7 @@ public OuterEnumInteger getValue() { @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setValue(OuterEnumInteger value) { + public void setValue(@javax.annotation.Nonnull OuterEnumInteger value) { this.value = value; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ParentWithNullable.java index 6bf509ced477..77bba0f4f9f7 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -82,15 +82,17 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nullable protected TypeEnum type; public static final String JSON_PROPERTY_NULLABLE_PROPERTY = "nullableProperty"; + @javax.annotation.Nullable protected JsonNullable nullableProperty = JsonNullable.undefined(); public ParentWithNullable() { } - public ParentWithNullable type(TypeEnum type) { + public ParentWithNullable type(@javax.annotation.Nullable TypeEnum type) { this.type = type; return this; @@ -111,11 +113,11 @@ public TypeEnum getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(TypeEnum type) { + public void setType(@javax.annotation.Nullable TypeEnum type) { this.type = type; } - public ParentWithNullable nullableProperty(String nullableProperty) { + public ParentWithNullable nullableProperty(@javax.annotation.Nullable String nullableProperty) { this.nullableProperty = JsonNullable.of(nullableProperty); return this; @@ -144,7 +146,7 @@ public void setNullableProperty_JsonNullable(JsonNullable nullableProper this.nullableProperty = nullableProperty; } - public void setNullableProperty(String nullableProperty) { + public void setNullableProperty(@javax.annotation.Nullable String nullableProperty) { this.nullableProperty = JsonNullable.of(nullableProperty); } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Pet.java index 70732aa1ce55..2805d79e368d 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Pet.java @@ -45,18 +45,23 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Pet { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; + @javax.annotation.Nullable private Category category; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; + @javax.annotation.Nonnull private Set photoUrls = new LinkedHashSet<>(); public static final String JSON_PROPERTY_TAGS = "tags"; + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** @@ -97,12 +102,13 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } - public Pet id(Long id) { + public Pet id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -123,11 +129,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@javax.annotation.Nullable Category category) { this.category = category; return this; @@ -148,11 +154,11 @@ public Category getCategory() { @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCategory(Category category) { + public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; } - public Pet name(String name) { + public Pet name(@javax.annotation.Nonnull String name) { this.name = name; return this; @@ -173,11 +179,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } - public Pet photoUrls(Set photoUrls) { + public Pet photoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; return this; @@ -207,11 +213,11 @@ public Set getPhotoUrls() { @JsonDeserialize(as = LinkedHashSet.class) @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPhotoUrls(Set photoUrls) { + public void setPhotoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; } - public Pet tags(List tags) { + public Pet tags(@javax.annotation.Nullable List tags) { this.tags = tags; return this; @@ -240,11 +246,11 @@ public List getTags() { @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTags(List tags) { + public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -265,7 +271,7 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 0b012bd9c77d..b614b554c64a 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -33,9 +33,11 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; + @javax.annotation.Nullable private String baz; public ReadOnlyFirst() { @@ -65,7 +67,7 @@ public String getBar() { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { this.baz = baz; return this; @@ -86,7 +88,7 @@ public String getBaz() { @JsonProperty(JSON_PROPERTY_BAZ) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBaz(String baz) { + public void setBaz(@javax.annotation.Nullable String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/SpecialModelName.java index 064dcaec6b3f..2a0efc78ce44 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -33,12 +33,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; + @javax.annotation.Nullable private Long $specialPropertyName; public SpecialModelName() { } - public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + public SpecialModelName $specialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; return this; @@ -59,7 +60,7 @@ public SpecialModelName() { @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void set$SpecialPropertyName(Long $specialPropertyName) { + public void set$SpecialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Tag.java index 79472451f59a..17cd5fa1190b 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Tag.java @@ -33,15 +33,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Tag { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public Tag() { } - public Tag id(Long id) { + public Tag id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -62,11 +64,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -87,7 +89,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index d337286892a1..ddb16eb2f19f 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -35,13 +35,14 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class TestInlineFreeformAdditionalPropertiesRequest extends HashMap { public static final String JSON_PROPERTY_SOME_PROPERTY = "someProperty"; + @javax.annotation.Nullable private String someProperty; public TestInlineFreeformAdditionalPropertiesRequest() { } - public TestInlineFreeformAdditionalPropertiesRequest someProperty(String someProperty) { + public TestInlineFreeformAdditionalPropertiesRequest someProperty(@javax.annotation.Nullable String someProperty) { this.someProperty = someProperty; return this; @@ -62,7 +63,7 @@ public String getSomeProperty() { @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSomeProperty(String someProperty) { + public void setSomeProperty(@javax.annotation.Nullable String someProperty) { this.someProperty = someProperty; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/User.java index e6af180ceff6..26008e500259 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/User.java @@ -39,33 +39,41 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class User { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; + @javax.annotation.Nullable private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; + @javax.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; + @javax.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; + @javax.annotation.Nullable private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; + @javax.annotation.Nullable private String password; public static final String JSON_PROPERTY_PHONE = "phone"; + @javax.annotation.Nullable private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; + @javax.annotation.Nullable private Integer userStatus; public User() { } - public User id(Long id) { + public User id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -86,11 +94,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@javax.annotation.Nullable String username) { this.username = username; return this; @@ -111,11 +119,11 @@ public String getUsername() { @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsername(String username) { + public void setUsername(@javax.annotation.Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; return this; @@ -136,11 +144,11 @@ public String getFirstName() { @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFirstName(String firstName) { + public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; return this; @@ -161,11 +169,11 @@ public String getLastName() { @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLastName(String lastName) { + public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@javax.annotation.Nullable String email) { this.email = email; return this; @@ -186,11 +194,11 @@ public String getEmail() { @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEmail(String email) { + public void setEmail(@javax.annotation.Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@javax.annotation.Nullable String password) { this.password = password; return this; @@ -211,11 +219,11 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@javax.annotation.Nullable String phone) { this.phone = phone; return this; @@ -236,11 +244,11 @@ public String getPhone() { @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPhone(String phone) { + public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; return this; @@ -261,7 +269,7 @@ public Integer getUserStatus() { @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 4e4028f1a3ef..6f46b26032eb 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -35,15 +35,17 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_PROPERTY = "map_property"; + @jakarta.annotation.Nullable private Map mapProperty = new HashMap<>(); public static final String JSON_PROPERTY_MAP_OF_MAP_PROPERTY = "map_of_map_property"; + @jakarta.annotation.Nullable private Map> mapOfMapProperty = new HashMap<>(); public AdditionalPropertiesClass() { } - public AdditionalPropertiesClass mapProperty(Map mapProperty) { + public AdditionalPropertiesClass mapProperty(@jakarta.annotation.Nullable Map mapProperty) { this.mapProperty = mapProperty; return this; @@ -72,11 +74,11 @@ public Map getMapProperty() { @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapProperty(Map mapProperty) { + public void setMapProperty(@jakarta.annotation.Nullable Map mapProperty) { this.mapProperty = mapProperty; } - public AdditionalPropertiesClass mapOfMapProperty(Map> mapOfMapProperty) { + public AdditionalPropertiesClass mapOfMapProperty(@jakarta.annotation.Nullable Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; return this; @@ -105,7 +107,7 @@ public Map> getMapOfMapProperty() { @JsonProperty(JSON_PROPERTY_MAP_OF_MAP_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapOfMapProperty(Map> mapOfMapProperty) { + public void setMapOfMapProperty(@jakarta.annotation.Nullable Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; } diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java index 4d1fcc6fd64e..5ada291fee4d 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java @@ -34,15 +34,17 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AllOfWithSingleRef { public static final String JSON_PROPERTY_USERNAME = "username"; + @jakarta.annotation.Nullable private String username; public static final String JSON_PROPERTY_SINGLE_REF_TYPE = "SingleRefType"; + @jakarta.annotation.Nullable private SingleRefType singleRefType; public AllOfWithSingleRef() { } - public AllOfWithSingleRef username(String username) { + public AllOfWithSingleRef username(@jakarta.annotation.Nullable String username) { this.username = username; return this; @@ -63,11 +65,11 @@ public String getUsername() { @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsername(String username) { + public void setUsername(@jakarta.annotation.Nullable String username) { this.username = username; } - public AllOfWithSingleRef singleRefType(SingleRefType singleRefType) { + public AllOfWithSingleRef singleRefType(@jakarta.annotation.Nullable SingleRefType singleRefType) { this.singleRefType = singleRefType; return this; @@ -88,7 +90,7 @@ public SingleRefType getSingleRefType() { @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSingleRefType(SingleRefType singleRefType) { + public void setSingleRefType(@jakarta.annotation.Nullable SingleRefType singleRefType) { this.singleRefType = singleRefType; } diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Animal.java index 112ce06cadeb..244b3f562b7b 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Animal.java @@ -46,15 +46,17 @@ public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; + @jakarta.annotation.Nonnull protected String className; public static final String JSON_PROPERTY_COLOR = "color"; + @jakarta.annotation.Nullable protected String color = "red"; public Animal() { } - public Animal className(String className) { + public Animal className(@jakarta.annotation.Nonnull String className) { this.className = className; return this; @@ -75,11 +77,11 @@ public String getClassName() { @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setClassName(String className) { + public void setClassName(@jakarta.annotation.Nonnull String className) { this.className = className; } - public Animal color(String color) { + public Animal color(@jakarta.annotation.Nullable String color) { this.color = color; return this; @@ -100,7 +102,7 @@ public String getColor() { @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setColor(String color) { + public void setColor(@jakarta.annotation.Nullable String color) { this.color = color; } diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 0d43dbaf0ff1..fa42510ba361 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -36,12 +36,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayOfArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; + @jakarta.annotation.Nullable private List> arrayArrayNumber = new ArrayList<>(); public ArrayOfArrayOfNumberOnly() { } - public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + public ArrayOfArrayOfNumberOnly arrayArrayNumber(@jakarta.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; return this; @@ -70,7 +71,7 @@ public List> getArrayArrayNumber() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayNumber(List> arrayArrayNumber) { + public void setArrayArrayNumber(@jakarta.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index bb4585423b2e..3ee50d074cf7 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -36,12 +36,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; + @jakarta.annotation.Nullable private List arrayNumber = new ArrayList<>(); public ArrayOfNumberOnly() { } - public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + public ArrayOfNumberOnly arrayNumber(@jakarta.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; return this; @@ -70,7 +71,7 @@ public List getArrayNumber() { @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayNumber(List arrayNumber) { + public void setArrayNumber(@jakarta.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ArrayTest.java index f0c46243f92b..e408be5bb2f1 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -38,18 +38,21 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; + @jakarta.annotation.Nullable private List arrayOfString = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; + @jakarta.annotation.Nullable private List> arrayArrayOfInteger = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; + @jakarta.annotation.Nullable private List> arrayArrayOfModel = new ArrayList<>(); public ArrayTest() { } - public ArrayTest arrayOfString(List arrayOfString) { + public ArrayTest arrayOfString(@jakarta.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; return this; @@ -78,11 +81,11 @@ public List getArrayOfString() { @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayOfString(List arrayOfString) { + public void setArrayOfString(@jakarta.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; } - public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + public ArrayTest arrayArrayOfInteger(@jakarta.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; return this; @@ -111,11 +114,11 @@ public List> getArrayArrayOfInteger() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { + public void setArrayArrayOfInteger(@jakarta.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } - public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + public ArrayTest arrayArrayOfModel(@jakarta.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; return this; @@ -144,7 +147,7 @@ public List> getArrayArrayOfModel() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayOfModel(List> arrayArrayOfModel) { + public void setArrayArrayOfModel(@jakarta.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Capitalization.java index bceecc154807..c7396f325bd2 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Capitalization.java @@ -37,27 +37,33 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Capitalization { public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; + @jakarta.annotation.Nullable private String smallCamel; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; + @jakarta.annotation.Nullable private String capitalCamel; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; + @jakarta.annotation.Nullable private String smallSnake; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; + @jakarta.annotation.Nullable private String capitalSnake; public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; + @jakarta.annotation.Nullable private String scAETHFlowPoints; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; + @jakarta.annotation.Nullable private String ATT_NAME; public Capitalization() { } - public Capitalization smallCamel(String smallCamel) { + public Capitalization smallCamel(@jakarta.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; return this; @@ -78,11 +84,11 @@ public String getSmallCamel() { @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmallCamel(String smallCamel) { + public void setSmallCamel(@jakarta.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; } - public Capitalization capitalCamel(String capitalCamel) { + public Capitalization capitalCamel(@jakarta.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; return this; @@ -103,11 +109,11 @@ public String getCapitalCamel() { @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCapitalCamel(String capitalCamel) { + public void setCapitalCamel(@jakarta.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; } - public Capitalization smallSnake(String smallSnake) { + public Capitalization smallSnake(@jakarta.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; return this; @@ -128,11 +134,11 @@ public String getSmallSnake() { @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmallSnake(String smallSnake) { + public void setSmallSnake(@jakarta.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; } - public Capitalization capitalSnake(String capitalSnake) { + public Capitalization capitalSnake(@jakarta.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; return this; @@ -153,11 +159,11 @@ public String getCapitalSnake() { @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCapitalSnake(String capitalSnake) { + public void setCapitalSnake(@jakarta.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; } - public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + public Capitalization scAETHFlowPoints(@jakarta.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; return this; @@ -178,11 +184,11 @@ public String getScAETHFlowPoints() { @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setScAETHFlowPoints(String scAETHFlowPoints) { + public void setScAETHFlowPoints(@jakarta.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } - public Capitalization ATT_NAME(String ATT_NAME) { + public Capitalization ATT_NAME(@jakarta.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; return this; @@ -203,7 +209,7 @@ public String getATTNAME() { @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setATTNAME(String ATT_NAME) { + public void setATTNAME(@jakarta.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Cat.java index b5d1e3620c76..a825019e2a8c 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Cat.java @@ -42,13 +42,14 @@ public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; + @jakarta.annotation.Nullable private Boolean declawed; public Cat() { } - public Cat declawed(Boolean declawed) { + public Cat declawed(@jakarta.annotation.Nullable Boolean declawed) { this.declawed = declawed; return this; @@ -69,18 +70,18 @@ public Boolean getDeclawed() { @JsonProperty(JSON_PROPERTY_DECLAWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@jakarta.annotation.Nullable Boolean declawed) { this.declawed = declawed; } @Override - public Cat className(String className) { + public Cat className(@jakarta.annotation.Nonnull String className) { this.setClassName(className); return this; } @Override - public Cat color(String color) { + public Cat color(@jakarta.annotation.Nullable String color) { this.setColor(color); return this; } diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Category.java index 19ea5f000f5a..333f4861b033 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Category.java @@ -33,15 +33,17 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Category { public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nonnull private String name = "default-name"; public Category() { } - public Category id(Long id) { + public Category id(@jakarta.annotation.Nullable Long id) { this.id = id; return this; @@ -62,11 +64,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; @@ -87,7 +89,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ChildWithNullable.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ChildWithNullable.java index 299c5a5fdbf2..2790c4e75c1f 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ChildWithNullable.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ChildWithNullable.java @@ -43,13 +43,14 @@ public class ChildWithNullable extends ParentWithNullable { public static final String JSON_PROPERTY_OTHER_PROPERTY = "otherProperty"; + @jakarta.annotation.Nullable private String otherProperty; public ChildWithNullable() { } - public ChildWithNullable otherProperty(String otherProperty) { + public ChildWithNullable otherProperty(@jakarta.annotation.Nullable String otherProperty) { this.otherProperty = otherProperty; return this; @@ -70,18 +71,18 @@ public String getOtherProperty() { @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOtherProperty(String otherProperty) { + public void setOtherProperty(@jakarta.annotation.Nullable String otherProperty) { this.otherProperty = otherProperty; } @Override - public ChildWithNullable type(TypeEnum type) { + public ChildWithNullable type(@jakarta.annotation.Nullable TypeEnum type) { this.setType(type); return this; } @Override - public ChildWithNullable nullableProperty(String nullableProperty) { + public ChildWithNullable nullableProperty(@jakarta.annotation.Nullable String nullableProperty) { this.setNullableProperty(nullableProperty); return this; } diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ClassModel.java index fa7933fc5db4..85cf1359977a 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ClassModel.java @@ -32,12 +32,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ClassModel { public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; + @jakarta.annotation.Nullable private String propertyClass; public ClassModel() { } - public ClassModel propertyClass(String propertyClass) { + public ClassModel propertyClass(@jakarta.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; @@ -58,7 +59,7 @@ public String getPropertyClass() { @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@jakarta.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Client.java index 12ad332e9cb2..273015cbeeac 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Client.java @@ -32,12 +32,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Client { public static final String JSON_PROPERTY_CLIENT = "client"; + @jakarta.annotation.Nullable private String client; public Client() { } - public Client client(String client) { + public Client client(@jakarta.annotation.Nullable String client) { this.client = client; return this; @@ -58,7 +59,7 @@ public String getClient() { @JsonProperty(JSON_PROPERTY_CLIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setClient(String client) { + public void setClient(@jakarta.annotation.Nullable String client) { this.client = client; } diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/DeprecatedObject.java index dd527b09389c..26f0e6ca7282 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -34,12 +34,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class DeprecatedObject { public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private String name; public DeprecatedObject() { } - public DeprecatedObject name(String name) { + public DeprecatedObject name(@jakarta.annotation.Nullable String name) { this.name = name; return this; @@ -60,7 +61,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Dog.java index 2eed36781825..94d3ace44bea 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Dog.java @@ -42,13 +42,14 @@ public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; + @jakarta.annotation.Nullable private String breed; public Dog() { } - public Dog breed(String breed) { + public Dog breed(@jakarta.annotation.Nullable String breed) { this.breed = breed; return this; @@ -69,18 +70,18 @@ public String getBreed() { @JsonProperty(JSON_PROPERTY_BREED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBreed(String breed) { + public void setBreed(@jakarta.annotation.Nullable String breed) { this.breed = breed; } @Override - public Dog className(String className) { + public Dog className(@jakarta.annotation.Nonnull String className) { this.setClassName(className); return this; } @Override - public Dog color(String color) { + public Dog color(@jakarta.annotation.Nullable String color) { this.setColor(color); return this; } diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/EnumArrays.java index 94c188945a97..af8ecbea7d4c 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -71,6 +71,7 @@ public static JustSymbolEnum fromValue(String value) { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; + @jakarta.annotation.Nullable private JustSymbolEnum justSymbol; /** @@ -109,12 +110,13 @@ public static ArrayEnumEnum fromValue(String value) { } public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; + @jakarta.annotation.Nullable private List arrayEnum = new ArrayList<>(); public EnumArrays() { } - public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + public EnumArrays justSymbol(@jakarta.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; @@ -135,11 +137,11 @@ public JustSymbolEnum getJustSymbol() { @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJustSymbol(JustSymbolEnum justSymbol) { + public void setJustSymbol(@jakarta.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } - public EnumArrays arrayEnum(List arrayEnum) { + public EnumArrays arrayEnum(@jakarta.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; return this; @@ -168,7 +170,7 @@ public List getArrayEnum() { @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayEnum(List arrayEnum) { + public void setArrayEnum(@jakarta.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/EnumTest.java index 42f9f8e206a7..a64c6d285168 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/EnumTest.java @@ -85,6 +85,7 @@ public static EnumStringEnum fromValue(String value) { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; + @jakarta.annotation.Nullable private EnumStringEnum enumString; /** @@ -125,6 +126,7 @@ public static EnumStringRequiredEnum fromValue(String value) { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; + @jakarta.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** @@ -163,6 +165,7 @@ public static EnumIntegerEnum fromValue(Integer value) { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; + @jakarta.annotation.Nullable private EnumIntegerEnum enumInteger; /** @@ -201,24 +204,29 @@ public static EnumNumberEnum fromValue(Double value) { } public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; + @jakarta.annotation.Nullable private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; + @jakarta.annotation.Nullable private JsonNullable outerEnum = JsonNullable.undefined(); public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER = "outerEnumInteger"; + @jakarta.annotation.Nullable private OuterEnumInteger outerEnumInteger; public static final String JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE = "outerEnumDefaultValue"; + @jakarta.annotation.Nullable private OuterEnumDefaultValue outerEnumDefaultValue = OuterEnumDefaultValue.PLACED; public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE = "outerEnumIntegerDefaultValue"; + @jakarta.annotation.Nullable private OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = OuterEnumIntegerDefaultValue.NUMBER_0; public EnumTest() { } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@jakarta.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; @@ -239,11 +247,11 @@ public EnumStringEnum getEnumString() { @JsonProperty(JSON_PROPERTY_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumString(EnumStringEnum enumString) { + public void setEnumString(@jakarta.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; } - public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public EnumTest enumStringRequired(@jakarta.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; return this; @@ -264,11 +272,11 @@ public EnumStringRequiredEnum getEnumStringRequired() { @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public void setEnumStringRequired(@jakarta.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@jakarta.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; @@ -289,11 +297,11 @@ public EnumIntegerEnum getEnumInteger() { @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumInteger(EnumIntegerEnum enumInteger) { + public void setEnumInteger(@jakarta.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } - public EnumTest enumNumber(EnumNumberEnum enumNumber) { + public EnumTest enumNumber(@jakarta.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; return this; @@ -314,11 +322,11 @@ public EnumNumberEnum getEnumNumber() { @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumNumber(EnumNumberEnum enumNumber) { + public void setEnumNumber(@jakarta.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } - public EnumTest outerEnum(OuterEnum outerEnum) { + public EnumTest outerEnum(@jakarta.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = JsonNullable.of(outerEnum); return this; @@ -347,11 +355,11 @@ public void setOuterEnum_JsonNullable(JsonNullable outerEnum) { this.outerEnum = outerEnum; } - public void setOuterEnum(OuterEnum outerEnum) { + public void setOuterEnum(@jakarta.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = JsonNullable.of(outerEnum); } - public EnumTest outerEnumInteger(OuterEnumInteger outerEnumInteger) { + public EnumTest outerEnumInteger(@jakarta.annotation.Nullable OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; return this; @@ -372,11 +380,11 @@ public OuterEnumInteger getOuterEnumInteger() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnumInteger(OuterEnumInteger outerEnumInteger) { + public void setOuterEnumInteger(@jakarta.annotation.Nullable OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; } - public EnumTest outerEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) { + public EnumTest outerEnumDefaultValue(@jakarta.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; return this; @@ -397,11 +405,11 @@ public OuterEnumDefaultValue getOuterEnumDefaultValue() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) { + public void setOuterEnumDefaultValue(@jakarta.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; } - public EnumTest outerEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { + public EnumTest outerEnumIntegerDefaultValue(@jakarta.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; return this; @@ -422,7 +430,7 @@ public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { + public void setOuterEnumIntegerDefaultValue(@jakarta.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; } diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java index 6ab9ccd4e46d..98a2ac7c6cd1 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java @@ -37,15 +37,17 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FakeBigDecimalMap200Response { public static final String JSON_PROPERTY_SOME_ID = "someId"; + @jakarta.annotation.Nullable private BigDecimal someId; public static final String JSON_PROPERTY_SOME_MAP = "someMap"; + @jakarta.annotation.Nullable private Map someMap = new HashMap<>(); public FakeBigDecimalMap200Response() { } - public FakeBigDecimalMap200Response someId(BigDecimal someId) { + public FakeBigDecimalMap200Response someId(@jakarta.annotation.Nullable BigDecimal someId) { this.someId = someId; return this; @@ -66,11 +68,11 @@ public BigDecimal getSomeId() { @JsonProperty(JSON_PROPERTY_SOME_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSomeId(BigDecimal someId) { + public void setSomeId(@jakarta.annotation.Nullable BigDecimal someId) { this.someId = someId; } - public FakeBigDecimalMap200Response someMap(Map someMap) { + public FakeBigDecimalMap200Response someMap(@jakarta.annotation.Nullable Map someMap) { this.someMap = someMap; return this; @@ -99,7 +101,7 @@ public Map getSomeMap() { @JsonProperty(JSON_PROPERTY_SOME_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSomeMap(Map someMap) { + public void setSomeMap(@jakarta.annotation.Nullable Map someMap) { this.someMap = someMap; } diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 9dc4f234b9d1..7554d784cf70 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -37,15 +37,17 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; + @jakarta.annotation.Nullable private ModelFile _file; public static final String JSON_PROPERTY_FILES = "files"; + @jakarta.annotation.Nullable private List files = new ArrayList<>(); public FileSchemaTestClass() { } - public FileSchemaTestClass _file(ModelFile _file) { + public FileSchemaTestClass _file(@jakarta.annotation.Nullable ModelFile _file) { this._file = _file; return this; @@ -66,11 +68,11 @@ public ModelFile getFile() { @JsonProperty(JSON_PROPERTY_FILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFile(ModelFile _file) { + public void setFile(@jakarta.annotation.Nullable ModelFile _file) { this._file = _file; } - public FileSchemaTestClass files(List files) { + public FileSchemaTestClass files(@jakarta.annotation.Nullable List files) { this.files = files; return this; @@ -99,7 +101,7 @@ public List getFiles() { @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFiles(List files) { + public void setFiles(@jakarta.annotation.Nullable List files) { this.files = files; } diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Foo.java index 678216d49059..6e2968f4b8a3 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Foo.java @@ -32,12 +32,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Foo { public static final String JSON_PROPERTY_BAR = "bar"; + @jakarta.annotation.Nullable private String bar = "bar"; public Foo() { } - public Foo bar(String bar) { + public Foo bar(@jakarta.annotation.Nullable String bar) { this.bar = bar; return this; @@ -58,7 +59,7 @@ public String getBar() { @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBar(String bar) { + public void setBar(@jakarta.annotation.Nullable String bar) { this.bar = bar; } diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index bdf29ba505ff..562ab25f63ad 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -34,12 +34,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FooGetDefaultResponse { public static final String JSON_PROPERTY_STRING = "string"; + @jakarta.annotation.Nullable private Foo string; public FooGetDefaultResponse() { } - public FooGetDefaultResponse string(Foo string) { + public FooGetDefaultResponse string(@jakarta.annotation.Nullable Foo string) { this.string = string; return this; @@ -60,7 +61,7 @@ public Foo getString() { @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setString(Foo string) { + public void setString(@jakarta.annotation.Nullable Foo string) { this.string = string; } diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/FormatTest.java index 53f950a50c14..7c994fe0b2e4 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/FormatTest.java @@ -53,57 +53,73 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; + @jakarta.annotation.Nullable private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; + @jakarta.annotation.Nullable private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; + @jakarta.annotation.Nullable private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; + @jakarta.annotation.Nonnull private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; + @jakarta.annotation.Nullable private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; + @jakarta.annotation.Nullable private Double _double; public static final String JSON_PROPERTY_DECIMAL = "decimal"; + @jakarta.annotation.Nullable private BigDecimal decimal; public static final String JSON_PROPERTY_STRING = "string"; + @jakarta.annotation.Nullable private String string; public static final String JSON_PROPERTY_BYTE = "byte"; + @jakarta.annotation.Nonnull private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; + @jakarta.annotation.Nullable private File binary; public static final String JSON_PROPERTY_DATE = "date"; + @jakarta.annotation.Nonnull private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; + @jakarta.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; + @jakarta.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; + @jakarta.annotation.Nonnull private String password; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS = "pattern_with_digits"; + @jakarta.annotation.Nullable private String patternWithDigits; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER = "pattern_with_digits_and_delimiter"; + @jakarta.annotation.Nullable private String patternWithDigitsAndDelimiter; public FormatTest() { } - public FormatTest integer(Integer integer) { + public FormatTest integer(@jakarta.annotation.Nullable Integer integer) { this.integer = integer; return this; @@ -126,11 +142,11 @@ public Integer getInteger() { @JsonProperty(JSON_PROPERTY_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInteger(Integer integer) { + public void setInteger(@jakarta.annotation.Nullable Integer integer) { this.integer = integer; } - public FormatTest int32(Integer int32) { + public FormatTest int32(@jakarta.annotation.Nullable Integer int32) { this.int32 = int32; return this; @@ -153,11 +169,11 @@ public Integer getInt32() { @JsonProperty(JSON_PROPERTY_INT32) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInt32(Integer int32) { + public void setInt32(@jakarta.annotation.Nullable Integer int32) { this.int32 = int32; } - public FormatTest int64(Long int64) { + public FormatTest int64(@jakarta.annotation.Nullable Long int64) { this.int64 = int64; return this; @@ -178,11 +194,11 @@ public Long getInt64() { @JsonProperty(JSON_PROPERTY_INT64) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInt64(Long int64) { + public void setInt64(@jakarta.annotation.Nullable Long int64) { this.int64 = int64; } - public FormatTest number(BigDecimal number) { + public FormatTest number(@jakarta.annotation.Nonnull BigDecimal number) { this.number = number; return this; @@ -205,11 +221,11 @@ public BigDecimal getNumber() { @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNumber(BigDecimal number) { + public void setNumber(@jakarta.annotation.Nonnull BigDecimal number) { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@jakarta.annotation.Nullable Float _float) { this._float = _float; return this; @@ -232,11 +248,11 @@ public Float getFloat() { @JsonProperty(JSON_PROPERTY_FLOAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFloat(Float _float) { + public void setFloat(@jakarta.annotation.Nullable Float _float) { this._float = _float; } - public FormatTest _double(Double _double) { + public FormatTest _double(@jakarta.annotation.Nullable Double _double) { this._double = _double; return this; @@ -259,11 +275,11 @@ public Double getDouble() { @JsonProperty(JSON_PROPERTY_DOUBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDouble(Double _double) { + public void setDouble(@jakarta.annotation.Nullable Double _double) { this._double = _double; } - public FormatTest decimal(BigDecimal decimal) { + public FormatTest decimal(@jakarta.annotation.Nullable BigDecimal decimal) { this.decimal = decimal; return this; @@ -284,11 +300,11 @@ public BigDecimal getDecimal() { @JsonProperty(JSON_PROPERTY_DECIMAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDecimal(BigDecimal decimal) { + public void setDecimal(@jakarta.annotation.Nullable BigDecimal decimal) { this.decimal = decimal; } - public FormatTest string(String string) { + public FormatTest string(@jakarta.annotation.Nullable String string) { this.string = string; return this; @@ -309,11 +325,11 @@ public String getString() { @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setString(String string) { + public void setString(@jakarta.annotation.Nullable String string) { this.string = string; } - public FormatTest _byte(byte[] _byte) { + public FormatTest _byte(@jakarta.annotation.Nonnull byte[] _byte) { this._byte = _byte; return this; @@ -334,11 +350,11 @@ public byte[] getByte() { @JsonProperty(JSON_PROPERTY_BYTE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setByte(byte[] _byte) { + public void setByte(@jakarta.annotation.Nonnull byte[] _byte) { this._byte = _byte; } - public FormatTest binary(File binary) { + public FormatTest binary(@jakarta.annotation.Nullable File binary) { this.binary = binary; return this; @@ -359,11 +375,11 @@ public File getBinary() { @JsonProperty(JSON_PROPERTY_BINARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBinary(File binary) { + public void setBinary(@jakarta.annotation.Nullable File binary) { this.binary = binary; } - public FormatTest date(LocalDate date) { + public FormatTest date(@jakarta.annotation.Nonnull LocalDate date) { this.date = date; return this; @@ -384,11 +400,11 @@ public LocalDate getDate() { @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDate(LocalDate date) { + public void setDate(@jakarta.annotation.Nonnull LocalDate date) { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@jakarta.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; @@ -409,11 +425,11 @@ public OffsetDateTime getDateTime() { @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@jakarta.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public FormatTest uuid(UUID uuid) { + public FormatTest uuid(@jakarta.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; @@ -434,11 +450,11 @@ public UUID getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(UUID uuid) { + public void setUuid(@jakarta.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public FormatTest password(String password) { + public FormatTest password(@jakarta.annotation.Nonnull String password) { this.password = password; return this; @@ -459,11 +475,11 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPassword(String password) { + public void setPassword(@jakarta.annotation.Nonnull String password) { this.password = password; } - public FormatTest patternWithDigits(String patternWithDigits) { + public FormatTest patternWithDigits(@jakarta.annotation.Nullable String patternWithDigits) { this.patternWithDigits = patternWithDigits; return this; @@ -484,11 +500,11 @@ public String getPatternWithDigits() { @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPatternWithDigits(String patternWithDigits) { + public void setPatternWithDigits(@jakarta.annotation.Nullable String patternWithDigits) { this.patternWithDigits = patternWithDigits; } - public FormatTest patternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) { + public FormatTest patternWithDigitsAndDelimiter(@jakarta.annotation.Nullable String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; return this; @@ -509,7 +525,7 @@ public String getPatternWithDigitsAndDelimiter() { @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPatternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) { + public void setPatternWithDigitsAndDelimiter(@jakarta.annotation.Nullable String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; } diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index ce701e1c82e0..14250318f11d 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -34,9 +34,11 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; + @jakarta.annotation.Nullable private String bar; public static final String JSON_PROPERTY_FOO = "foo"; + @jakarta.annotation.Nullable private String foo; public HasOnlyReadOnly() { diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/HealthCheckResult.java index 32a4fb8fd2cc..b3d43e1bf0b6 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -36,12 +36,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class HealthCheckResult { public static final String JSON_PROPERTY_NULLABLE_MESSAGE = "NullableMessage"; + @jakarta.annotation.Nullable private JsonNullable nullableMessage = JsonNullable.undefined(); public HealthCheckResult() { } - public HealthCheckResult nullableMessage(String nullableMessage) { + public HealthCheckResult nullableMessage(@jakarta.annotation.Nullable String nullableMessage) { this.nullableMessage = JsonNullable.of(nullableMessage); return this; @@ -70,7 +71,7 @@ public void setNullableMessage_JsonNullable(JsonNullable nullableMessage this.nullableMessage = nullableMessage; } - public void setNullableMessage(String nullableMessage) { + public void setNullableMessage(@jakarta.annotation.Nullable String nullableMessage) { this.nullableMessage = JsonNullable.of(nullableMessage); } diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/MapTest.java index c709be9aa0c9..9f4ea150b7ce 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/MapTest.java @@ -37,6 +37,7 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; + @jakarta.annotation.Nullable private Map> mapMapOfString = new HashMap<>(); /** @@ -75,18 +76,21 @@ public static InnerEnum fromValue(String value) { } public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; + @jakarta.annotation.Nullable private Map mapOfEnumString = new HashMap<>(); public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; + @jakarta.annotation.Nullable private Map directMap = new HashMap<>(); public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; + @jakarta.annotation.Nullable private Map indirectMap = new HashMap<>(); public MapTest() { } - public MapTest mapMapOfString(Map> mapMapOfString) { + public MapTest mapMapOfString(@jakarta.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; return this; @@ -115,11 +119,11 @@ public Map> getMapMapOfString() { @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapMapOfString(Map> mapMapOfString) { + public void setMapMapOfString(@jakarta.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } - public MapTest mapOfEnumString(Map mapOfEnumString) { + public MapTest mapOfEnumString(@jakarta.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; return this; @@ -148,11 +152,11 @@ public Map getMapOfEnumString() { @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapOfEnumString(Map mapOfEnumString) { + public void setMapOfEnumString(@jakarta.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } - public MapTest directMap(Map directMap) { + public MapTest directMap(@jakarta.annotation.Nullable Map directMap) { this.directMap = directMap; return this; @@ -181,11 +185,11 @@ public Map getDirectMap() { @JsonProperty(JSON_PROPERTY_DIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDirectMap(Map directMap) { + public void setDirectMap(@jakarta.annotation.Nullable Map directMap) { this.directMap = directMap; } - public MapTest indirectMap(Map indirectMap) { + public MapTest indirectMap(@jakarta.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; return this; @@ -214,7 +218,7 @@ public Map getIndirectMap() { @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIndirectMap(Map indirectMap) { + public void setIndirectMap(@jakarta.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index e6b5d94ac693..8e230861708f 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -39,18 +39,21 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; + @jakarta.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; + @jakarta.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; + @jakarta.annotation.Nullable private Map map = new HashMap<>(); public MixedPropertiesAndAdditionalPropertiesClass() { } - public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClass uuid(@jakarta.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; @@ -71,11 +74,11 @@ public UUID getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(UUID uuid) { + public void setUuid(@jakarta.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + public MixedPropertiesAndAdditionalPropertiesClass dateTime(@jakarta.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; @@ -96,11 +99,11 @@ public OffsetDateTime getDateTime() { @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@jakarta.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + public MixedPropertiesAndAdditionalPropertiesClass map(@jakarta.annotation.Nullable Map map) { this.map = map; return this; @@ -129,7 +132,7 @@ public Map getMap() { @JsonProperty(JSON_PROPERTY_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMap(Map map) { + public void setMap(@jakarta.annotation.Nullable Map map) { this.map = map; } diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Model200Response.java index b6abc8494163..af868031a0a6 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Model200Response.java @@ -34,15 +34,17 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; + @jakarta.annotation.Nullable private String propertyClass; public Model200Response() { } - public Model200Response name(Integer name) { + public Model200Response name(@jakarta.annotation.Nullable Integer name) { this.name = name; return this; @@ -63,11 +65,11 @@ public Integer getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(Integer name) { + public void setName(@jakarta.annotation.Nullable Integer name) { this.name = name; } - public Model200Response propertyClass(String propertyClass) { + public Model200Response propertyClass(@jakarta.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; @@ -88,7 +90,7 @@ public String getPropertyClass() { @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@jakarta.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 741efeb57cfc..8128617f5045 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -35,18 +35,21 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; + @jakarta.annotation.Nullable private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nullable private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; + @jakarta.annotation.Nullable private String message; public ModelApiResponse() { } - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@jakarta.annotation.Nullable Integer code) { this.code = code; return this; @@ -67,11 +70,11 @@ public Integer getCode() { @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCode(Integer code) { + public void setCode(@jakarta.annotation.Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@jakarta.annotation.Nullable String type) { this.type = type; return this; @@ -92,11 +95,11 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@jakarta.annotation.Nullable String message) { this.message = message; return this; @@ -117,7 +120,7 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ModelFile.java index df0edd675990..969b69bc0853 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ModelFile.java @@ -33,12 +33,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelFile { public static final String JSON_PROPERTY_SOURCE_U_R_I = "sourceURI"; + @jakarta.annotation.Nullable private String sourceURI; public ModelFile() { } - public ModelFile sourceURI(String sourceURI) { + public ModelFile sourceURI(@jakarta.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; return this; @@ -59,7 +60,7 @@ public String getSourceURI() { @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSourceURI(String sourceURI) { + public void setSourceURI(@jakarta.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; } diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ModelList.java index eca3b07877ce..98036c3a8b9b 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ModelList.java @@ -33,12 +33,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelList { public static final String JSON_PROPERTY_123LIST = "123-list"; + @jakarta.annotation.Nullable private String _123list; public ModelList() { } - public ModelList _123list(String _123list) { + public ModelList _123list(@jakarta.annotation.Nullable String _123list) { this._123list = _123list; return this; @@ -59,7 +60,7 @@ public String get123list() { @JsonProperty(JSON_PROPERTY_123LIST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void set123list(String _123list) { + public void set123list(@jakarta.annotation.Nullable String _123list) { this._123list = _123list; } diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ModelReturn.java index 0b1f0ab48a8d..86805added9c 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -33,12 +33,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; + @jakarta.annotation.Nullable private Integer _return; public ModelReturn() { } - public ModelReturn _return(Integer _return) { + public ModelReturn _return(@jakarta.annotation.Nullable Integer _return) { this._return = _return; return this; @@ -59,7 +60,7 @@ public Integer getReturn() { @JsonProperty(JSON_PROPERTY_RETURN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setReturn(Integer _return) { + public void setReturn(@jakarta.annotation.Nullable Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Name.java index feb4f94c36d0..b338c0d4f311 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Name.java @@ -35,15 +35,19 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Name { public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nonnull private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; + @jakarta.annotation.Nullable private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; + @jakarta.annotation.Nullable private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; + @jakarta.annotation.Nullable private Integer _123number; public Name() { @@ -61,7 +65,7 @@ public Name( this._123number = _123number; } - public Name name(Integer name) { + public Name name(@jakarta.annotation.Nonnull Integer name) { this.name = name; return this; @@ -82,7 +86,7 @@ public Integer getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(Integer name) { + public void setName(@jakarta.annotation.Nonnull Integer name) { this.name = name; } @@ -100,7 +104,7 @@ public Integer getSnakeCase() { - public Name property(String property) { + public Name property(@jakarta.annotation.Nullable String property) { this.property = property; return this; @@ -121,7 +125,7 @@ public String getProperty() { @JsonProperty(JSON_PROPERTY_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProperty(String property) { + public void setProperty(@jakarta.annotation.Nullable String property) { this.property = property; } diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/NullableClass.java index 57b27b00bec0..11ac62f6304b 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/NullableClass.java @@ -55,46 +55,58 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class NullableClass extends HashMap { public static final String JSON_PROPERTY_INTEGER_PROP = "integer_prop"; + @jakarta.annotation.Nullable private JsonNullable integerProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_NUMBER_PROP = "number_prop"; + @jakarta.annotation.Nullable private JsonNullable numberProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_BOOLEAN_PROP = "boolean_prop"; + @jakarta.annotation.Nullable private JsonNullable booleanProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_STRING_PROP = "string_prop"; + @jakarta.annotation.Nullable private JsonNullable stringProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_DATE_PROP = "date_prop"; + @jakarta.annotation.Nullable private JsonNullable dateProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_DATETIME_PROP = "datetime_prop"; + @jakarta.annotation.Nullable private JsonNullable datetimeProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_ARRAY_NULLABLE_PROP = "array_nullable_prop"; + @jakarta.annotation.Nullable private JsonNullable> arrayNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP = "array_and_items_nullable_prop"; + @jakarta.annotation.Nullable private JsonNullable> arrayAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_ITEMS_NULLABLE = "array_items_nullable"; + @jakarta.annotation.Nullable private List arrayItemsNullable = new ArrayList<>(); public static final String JSON_PROPERTY_OBJECT_NULLABLE_PROP = "object_nullable_prop"; + @jakarta.annotation.Nullable private JsonNullable> objectNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP = "object_and_items_nullable_prop"; + @jakarta.annotation.Nullable private JsonNullable> objectAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_OBJECT_ITEMS_NULLABLE = "object_items_nullable"; + @jakarta.annotation.Nullable private Map objectItemsNullable = new HashMap<>(); public NullableClass() { } - public NullableClass integerProp(Integer integerProp) { + public NullableClass integerProp(@jakarta.annotation.Nullable Integer integerProp) { this.integerProp = JsonNullable.of(integerProp); return this; @@ -123,11 +135,11 @@ public void setIntegerProp_JsonNullable(JsonNullable integerProp) { this.integerProp = integerProp; } - public void setIntegerProp(Integer integerProp) { + public void setIntegerProp(@jakarta.annotation.Nullable Integer integerProp) { this.integerProp = JsonNullable.of(integerProp); } - public NullableClass numberProp(BigDecimal numberProp) { + public NullableClass numberProp(@jakarta.annotation.Nullable BigDecimal numberProp) { this.numberProp = JsonNullable.of(numberProp); return this; @@ -156,11 +168,11 @@ public void setNumberProp_JsonNullable(JsonNullable numberProp) { this.numberProp = numberProp; } - public void setNumberProp(BigDecimal numberProp) { + public void setNumberProp(@jakarta.annotation.Nullable BigDecimal numberProp) { this.numberProp = JsonNullable.of(numberProp); } - public NullableClass booleanProp(Boolean booleanProp) { + public NullableClass booleanProp(@jakarta.annotation.Nullable Boolean booleanProp) { this.booleanProp = JsonNullable.of(booleanProp); return this; @@ -189,11 +201,11 @@ public void setBooleanProp_JsonNullable(JsonNullable booleanProp) { this.booleanProp = booleanProp; } - public void setBooleanProp(Boolean booleanProp) { + public void setBooleanProp(@jakarta.annotation.Nullable Boolean booleanProp) { this.booleanProp = JsonNullable.of(booleanProp); } - public NullableClass stringProp(String stringProp) { + public NullableClass stringProp(@jakarta.annotation.Nullable String stringProp) { this.stringProp = JsonNullable.of(stringProp); return this; @@ -222,11 +234,11 @@ public void setStringProp_JsonNullable(JsonNullable stringProp) { this.stringProp = stringProp; } - public void setStringProp(String stringProp) { + public void setStringProp(@jakarta.annotation.Nullable String stringProp) { this.stringProp = JsonNullable.of(stringProp); } - public NullableClass dateProp(LocalDate dateProp) { + public NullableClass dateProp(@jakarta.annotation.Nullable LocalDate dateProp) { this.dateProp = JsonNullable.of(dateProp); return this; @@ -255,11 +267,11 @@ public void setDateProp_JsonNullable(JsonNullable dateProp) { this.dateProp = dateProp; } - public void setDateProp(LocalDate dateProp) { + public void setDateProp(@jakarta.annotation.Nullable LocalDate dateProp) { this.dateProp = JsonNullable.of(dateProp); } - public NullableClass datetimeProp(OffsetDateTime datetimeProp) { + public NullableClass datetimeProp(@jakarta.annotation.Nullable OffsetDateTime datetimeProp) { this.datetimeProp = JsonNullable.of(datetimeProp); return this; @@ -288,11 +300,11 @@ public void setDatetimeProp_JsonNullable(JsonNullable datetimePr this.datetimeProp = datetimeProp; } - public void setDatetimeProp(OffsetDateTime datetimeProp) { + public void setDatetimeProp(@jakarta.annotation.Nullable OffsetDateTime datetimeProp) { this.datetimeProp = JsonNullable.of(datetimeProp); } - public NullableClass arrayNullableProp(List arrayNullableProp) { + public NullableClass arrayNullableProp(@jakarta.annotation.Nullable List arrayNullableProp) { this.arrayNullableProp = JsonNullable.>of(arrayNullableProp); return this; @@ -333,11 +345,11 @@ public void setArrayNullableProp_JsonNullable(JsonNullable> arrayNu this.arrayNullableProp = arrayNullableProp; } - public void setArrayNullableProp(List arrayNullableProp) { + public void setArrayNullableProp(@jakarta.annotation.Nullable List arrayNullableProp) { this.arrayNullableProp = JsonNullable.>of(arrayNullableProp); } - public NullableClass arrayAndItemsNullableProp(List arrayAndItemsNullableProp) { + public NullableClass arrayAndItemsNullableProp(@jakarta.annotation.Nullable List arrayAndItemsNullableProp) { this.arrayAndItemsNullableProp = JsonNullable.>of(arrayAndItemsNullableProp); return this; @@ -378,11 +390,11 @@ public void setArrayAndItemsNullableProp_JsonNullable(JsonNullable> this.arrayAndItemsNullableProp = arrayAndItemsNullableProp; } - public void setArrayAndItemsNullableProp(List arrayAndItemsNullableProp) { + public void setArrayAndItemsNullableProp(@jakarta.annotation.Nullable List arrayAndItemsNullableProp) { this.arrayAndItemsNullableProp = JsonNullable.>of(arrayAndItemsNullableProp); } - public NullableClass arrayItemsNullable(List arrayItemsNullable) { + public NullableClass arrayItemsNullable(@jakarta.annotation.Nullable List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; return this; @@ -411,11 +423,11 @@ public List getArrayItemsNullable() { @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayItemsNullable(List arrayItemsNullable) { + public void setArrayItemsNullable(@jakarta.annotation.Nullable List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; } - public NullableClass objectNullableProp(Map objectNullableProp) { + public NullableClass objectNullableProp(@jakarta.annotation.Nullable Map objectNullableProp) { this.objectNullableProp = JsonNullable.>of(objectNullableProp); return this; @@ -456,11 +468,11 @@ public void setObjectNullableProp_JsonNullable(JsonNullable> this.objectNullableProp = objectNullableProp; } - public void setObjectNullableProp(Map objectNullableProp) { + public void setObjectNullableProp(@jakarta.annotation.Nullable Map objectNullableProp) { this.objectNullableProp = JsonNullable.>of(objectNullableProp); } - public NullableClass objectAndItemsNullableProp(Map objectAndItemsNullableProp) { + public NullableClass objectAndItemsNullableProp(@jakarta.annotation.Nullable Map objectAndItemsNullableProp) { this.objectAndItemsNullableProp = JsonNullable.>of(objectAndItemsNullableProp); return this; @@ -501,11 +513,11 @@ public void setObjectAndItemsNullableProp_JsonNullable(JsonNullable objectAndItemsNullableProp) { + public void setObjectAndItemsNullableProp(@jakarta.annotation.Nullable Map objectAndItemsNullableProp) { this.objectAndItemsNullableProp = JsonNullable.>of(objectAndItemsNullableProp); } - public NullableClass objectItemsNullable(Map objectItemsNullable) { + public NullableClass objectItemsNullable(@jakarta.annotation.Nullable Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; return this; @@ -534,7 +546,7 @@ public Map getObjectItemsNullable() { @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setObjectItemsNullable(Map objectItemsNullable) { + public void setObjectItemsNullable(@jakarta.annotation.Nullable Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; } diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/NumberOnly.java index bffd77c2dcd1..ee3bd2d0db40 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -33,12 +33,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; + @jakarta.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } - public NumberOnly justNumber(BigDecimal justNumber) { + public NumberOnly justNumber(@jakarta.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; @@ -59,7 +60,7 @@ public BigDecimal getJustNumber() { @JsonProperty(JSON_PROPERTY_JUST_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJustNumber(BigDecimal justNumber) { + public void setJustNumber(@jakarta.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index a28a3d8e79c7..58aa20e6aaf0 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -40,21 +40,25 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ObjectWithDeprecatedFields { public static final String JSON_PROPERTY_UUID = "uuid"; + @jakarta.annotation.Nullable private String uuid; public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nullable private BigDecimal id; public static final String JSON_PROPERTY_DEPRECATED_REF = "deprecatedRef"; + @jakarta.annotation.Nullable private DeprecatedObject deprecatedRef; public static final String JSON_PROPERTY_BARS = "bars"; + @jakarta.annotation.Nullable private List bars = new ArrayList<>(); public ObjectWithDeprecatedFields() { } - public ObjectWithDeprecatedFields uuid(String uuid) { + public ObjectWithDeprecatedFields uuid(@jakarta.annotation.Nullable String uuid) { this.uuid = uuid; return this; @@ -75,11 +79,11 @@ public String getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(String uuid) { + public void setUuid(@jakarta.annotation.Nullable String uuid) { this.uuid = uuid; } - public ObjectWithDeprecatedFields id(BigDecimal id) { + public ObjectWithDeprecatedFields id(@jakarta.annotation.Nullable BigDecimal id) { this.id = id; return this; @@ -102,11 +106,11 @@ public BigDecimal getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(BigDecimal id) { + public void setId(@jakarta.annotation.Nullable BigDecimal id) { this.id = id; } - public ObjectWithDeprecatedFields deprecatedRef(DeprecatedObject deprecatedRef) { + public ObjectWithDeprecatedFields deprecatedRef(@jakarta.annotation.Nullable DeprecatedObject deprecatedRef) { this.deprecatedRef = deprecatedRef; return this; @@ -129,11 +133,11 @@ public DeprecatedObject getDeprecatedRef() { @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeprecatedRef(DeprecatedObject deprecatedRef) { + public void setDeprecatedRef(@jakarta.annotation.Nullable DeprecatedObject deprecatedRef) { this.deprecatedRef = deprecatedRef; } - public ObjectWithDeprecatedFields bars(List bars) { + public ObjectWithDeprecatedFields bars(@jakarta.annotation.Nullable List bars) { this.bars = bars; return this; @@ -164,7 +168,7 @@ public List getBars() { @JsonProperty(JSON_PROPERTY_BARS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBars(List bars) { + public void setBars(@jakarta.annotation.Nullable List bars) { this.bars = bars; } diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Order.java index 413c1643238f..82fd6fcf22d1 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Order.java @@ -38,15 +38,19 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Order { public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; + @jakarta.annotation.Nullable private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; + @jakarta.annotation.Nullable private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; + @jakarta.annotation.Nullable private OffsetDateTime shipDate; /** @@ -87,15 +91,17 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @jakarta.annotation.Nullable private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; + @jakarta.annotation.Nullable private Boolean complete = false; public Order() { } - public Order id(Long id) { + public Order id(@jakarta.annotation.Nullable Long id) { this.id = id; return this; @@ -116,11 +122,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@jakarta.annotation.Nullable Long petId) { this.petId = petId; return this; @@ -141,11 +147,11 @@ public Long getPetId() { @JsonProperty(JSON_PROPERTY_PET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPetId(Long petId) { + public void setPetId(@jakarta.annotation.Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@jakarta.annotation.Nullable Integer quantity) { this.quantity = quantity; return this; @@ -166,11 +172,11 @@ public Integer getQuantity() { @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setQuantity(Integer quantity) { + public void setQuantity(@jakarta.annotation.Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@jakarta.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; @@ -191,11 +197,11 @@ public OffsetDateTime getShipDate() { @JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@jakarta.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -216,11 +222,11 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; } - public Order complete(Boolean complete) { + public Order complete(@jakarta.annotation.Nullable Boolean complete) { this.complete = complete; return this; @@ -241,7 +247,7 @@ public Boolean getComplete() { @JsonProperty(JSON_PROPERTY_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setComplete(Boolean complete) { + public void setComplete(@jakarta.annotation.Nullable Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/OuterComposite.java index cf317e534c8d..e68bee95105f 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -35,18 +35,21 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; + @jakarta.annotation.Nullable private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; + @jakarta.annotation.Nullable private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; + @jakarta.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } - public OuterComposite myNumber(BigDecimal myNumber) { + public OuterComposite myNumber(@jakarta.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; @@ -67,11 +70,11 @@ public BigDecimal getMyNumber() { @JsonProperty(JSON_PROPERTY_MY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyNumber(BigDecimal myNumber) { + public void setMyNumber(@jakarta.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; } - public OuterComposite myString(String myString) { + public OuterComposite myString(@jakarta.annotation.Nullable String myString) { this.myString = myString; return this; @@ -92,11 +95,11 @@ public String getMyString() { @JsonProperty(JSON_PROPERTY_MY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyString(String myString) { + public void setMyString(@jakarta.annotation.Nullable String myString) { this.myString = myString; } - public OuterComposite myBoolean(Boolean myBoolean) { + public OuterComposite myBoolean(@jakarta.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; return this; @@ -117,7 +120,7 @@ public Boolean getMyBoolean() { @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyBoolean(Boolean myBoolean) { + public void setMyBoolean(@jakarta.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java index 4411bec90d98..c64d3456049d 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java @@ -33,12 +33,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class OuterObjectWithEnumProperty { public static final String JSON_PROPERTY_VALUE = "value"; + @jakarta.annotation.Nonnull private OuterEnumInteger value; public OuterObjectWithEnumProperty() { } - public OuterObjectWithEnumProperty value(OuterEnumInteger value) { + public OuterObjectWithEnumProperty value(@jakarta.annotation.Nonnull OuterEnumInteger value) { this.value = value; return this; @@ -59,7 +60,7 @@ public OuterEnumInteger getValue() { @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setValue(OuterEnumInteger value) { + public void setValue(@jakarta.annotation.Nonnull OuterEnumInteger value) { this.value = value; } diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ParentWithNullable.java index 15c420ba0e16..726ef8d173a1 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -82,15 +82,17 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nullable protected TypeEnum type; public static final String JSON_PROPERTY_NULLABLE_PROPERTY = "nullableProperty"; + @jakarta.annotation.Nullable protected JsonNullable nullableProperty = JsonNullable.undefined(); public ParentWithNullable() { } - public ParentWithNullable type(TypeEnum type) { + public ParentWithNullable type(@jakarta.annotation.Nullable TypeEnum type) { this.type = type; return this; @@ -111,11 +113,11 @@ public TypeEnum getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(TypeEnum type) { + public void setType(@jakarta.annotation.Nullable TypeEnum type) { this.type = type; } - public ParentWithNullable nullableProperty(String nullableProperty) { + public ParentWithNullable nullableProperty(@jakarta.annotation.Nullable String nullableProperty) { this.nullableProperty = JsonNullable.of(nullableProperty); return this; @@ -144,7 +146,7 @@ public void setNullableProperty_JsonNullable(JsonNullable nullableProper this.nullableProperty = nullableProperty; } - public void setNullableProperty(String nullableProperty) { + public void setNullableProperty(@jakarta.annotation.Nullable String nullableProperty) { this.nullableProperty = JsonNullable.of(nullableProperty); } diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Pet.java index c45ddadd4ab3..8aa1062d80a0 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Pet.java @@ -45,18 +45,23 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Pet { public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; + @jakarta.annotation.Nullable private Category category; public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; + @jakarta.annotation.Nonnull private Set photoUrls = new LinkedHashSet<>(); public static final String JSON_PROPERTY_TAGS = "tags"; + @jakarta.annotation.Nullable private List tags = new ArrayList<>(); /** @@ -97,12 +102,13 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @jakarta.annotation.Nullable private StatusEnum status; public Pet() { } - public Pet id(Long id) { + public Pet id(@jakarta.annotation.Nullable Long id) { this.id = id; return this; @@ -123,11 +129,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@jakarta.annotation.Nullable Category category) { this.category = category; return this; @@ -148,11 +154,11 @@ public Category getCategory() { @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCategory(Category category) { + public void setCategory(@jakarta.annotation.Nullable Category category) { this.category = category; } - public Pet name(String name) { + public Pet name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; @@ -173,11 +179,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public Pet photoUrls(Set photoUrls) { + public Pet photoUrls(@jakarta.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; return this; @@ -207,11 +213,11 @@ public Set getPhotoUrls() { @JsonDeserialize(as = LinkedHashSet.class) @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPhotoUrls(Set photoUrls) { + public void setPhotoUrls(@jakarta.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; } - public Pet tags(List tags) { + public Pet tags(@jakarta.annotation.Nullable List tags) { this.tags = tags; return this; @@ -240,11 +246,11 @@ public List getTags() { @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTags(List tags) { + public void setTags(@jakarta.annotation.Nullable List tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -265,7 +271,7 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 16d08b2bc4f5..1e6fc09d92aa 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -33,9 +33,11 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; + @jakarta.annotation.Nullable private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; + @jakarta.annotation.Nullable private String baz; public ReadOnlyFirst() { @@ -65,7 +67,7 @@ public String getBar() { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@jakarta.annotation.Nullable String baz) { this.baz = baz; return this; @@ -86,7 +88,7 @@ public String getBaz() { @JsonProperty(JSON_PROPERTY_BAZ) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBaz(String baz) { + public void setBaz(@jakarta.annotation.Nullable String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/SpecialModelName.java index 9ce6173951fb..08b5f982cf96 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -33,12 +33,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; + @jakarta.annotation.Nullable private Long $specialPropertyName; public SpecialModelName() { } - public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + public SpecialModelName $specialPropertyName(@jakarta.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; return this; @@ -59,7 +60,7 @@ public SpecialModelName() { @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void set$SpecialPropertyName(Long $specialPropertyName) { + public void set$SpecialPropertyName(@jakarta.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Tag.java index 4f9df002d28e..fb61c8492e61 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Tag.java @@ -33,15 +33,17 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Tag { public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private String name; public Tag() { } - public Tag id(Long id) { + public Tag id(@jakarta.annotation.Nullable Long id) { this.id = id; return this; @@ -62,11 +64,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@jakarta.annotation.Nullable String name) { this.name = name; return this; @@ -87,7 +89,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index 6be6a48b0c82..7d8cdf76a603 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -35,13 +35,14 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class TestInlineFreeformAdditionalPropertiesRequest extends HashMap { public static final String JSON_PROPERTY_SOME_PROPERTY = "someProperty"; + @jakarta.annotation.Nullable private String someProperty; public TestInlineFreeformAdditionalPropertiesRequest() { } - public TestInlineFreeformAdditionalPropertiesRequest someProperty(String someProperty) { + public TestInlineFreeformAdditionalPropertiesRequest someProperty(@jakarta.annotation.Nullable String someProperty) { this.someProperty = someProperty; return this; @@ -62,7 +63,7 @@ public String getSomeProperty() { @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSomeProperty(String someProperty) { + public void setSomeProperty(@jakarta.annotation.Nullable String someProperty) { this.someProperty = someProperty; } diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/User.java index 95f966792d23..b3b76f7252ef 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/User.java @@ -39,33 +39,41 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class User { public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; + @jakarta.annotation.Nullable private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; + @jakarta.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; + @jakarta.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; + @jakarta.annotation.Nullable private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; + @jakarta.annotation.Nullable private String password; public static final String JSON_PROPERTY_PHONE = "phone"; + @jakarta.annotation.Nullable private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; + @jakarta.annotation.Nullable private Integer userStatus; public User() { } - public User id(Long id) { + public User id(@jakarta.annotation.Nullable Long id) { this.id = id; return this; @@ -86,11 +94,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@jakarta.annotation.Nullable String username) { this.username = username; return this; @@ -111,11 +119,11 @@ public String getUsername() { @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsername(String username) { + public void setUsername(@jakarta.annotation.Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@jakarta.annotation.Nullable String firstName) { this.firstName = firstName; return this; @@ -136,11 +144,11 @@ public String getFirstName() { @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFirstName(String firstName) { + public void setFirstName(@jakarta.annotation.Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@jakarta.annotation.Nullable String lastName) { this.lastName = lastName; return this; @@ -161,11 +169,11 @@ public String getLastName() { @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLastName(String lastName) { + public void setLastName(@jakarta.annotation.Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@jakarta.annotation.Nullable String email) { this.email = email; return this; @@ -186,11 +194,11 @@ public String getEmail() { @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEmail(String email) { + public void setEmail(@jakarta.annotation.Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@jakarta.annotation.Nullable String password) { this.password = password; return this; @@ -211,11 +219,11 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPassword(String password) { + public void setPassword(@jakarta.annotation.Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@jakarta.annotation.Nullable String phone) { this.phone = phone; return this; @@ -236,11 +244,11 @@ public String getPhone() { @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPhone(String phone) { + public void setPhone(@jakarta.annotation.Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@jakarta.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; return this; @@ -261,7 +269,7 @@ public Integer getUserStatus() { @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@jakarta.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/webclient-nullable-arrays/src/main/java/org/openapitools/client/model/ByteArrayObject.java b/samples/client/petstore/java/webclient-nullable-arrays/src/main/java/org/openapitools/client/model/ByteArrayObject.java index b4fac616d606..50cdbfb012d5 100644 --- a/samples/client/petstore/java/webclient-nullable-arrays/src/main/java/org/openapitools/client/model/ByteArrayObject.java +++ b/samples/client/petstore/java/webclient-nullable-arrays/src/main/java/org/openapitools/client/model/ByteArrayObject.java @@ -41,24 +41,29 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ByteArrayObject { public static final String JSON_PROPERTY_NULLABLE_ARRAY = "nullableArray"; + @javax.annotation.Nullable private JsonNullable nullableArray = JsonNullable.undefined(); public static final String JSON_PROPERTY_NORMAL_ARRAY = "normalArray"; + @javax.annotation.Nullable private byte[] normalArray; public static final String JSON_PROPERTY_NULLABLE_STRING = "nullableString"; + @javax.annotation.Nullable private JsonNullable nullableString = JsonNullable.undefined(); public static final String JSON_PROPERTY_STRING_FIELD = "stringField"; + @javax.annotation.Nullable private String stringField; public static final String JSON_PROPERTY_INT_FIELD = "intField"; + @javax.annotation.Nullable private BigDecimal intField; public ByteArrayObject() { } - public ByteArrayObject nullableArray(byte[] nullableArray) { + public ByteArrayObject nullableArray(@javax.annotation.Nullable byte[] nullableArray) { this.nullableArray = JsonNullable.of(nullableArray); return this; @@ -87,11 +92,11 @@ public void setNullableArray_JsonNullable(JsonNullable nullableArray) { this.nullableArray = nullableArray; } - public void setNullableArray(byte[] nullableArray) { + public void setNullableArray(@javax.annotation.Nullable byte[] nullableArray) { this.nullableArray = JsonNullable.of(nullableArray); } - public ByteArrayObject normalArray(byte[] normalArray) { + public ByteArrayObject normalArray(@javax.annotation.Nullable byte[] normalArray) { this.normalArray = normalArray; return this; @@ -112,11 +117,11 @@ public byte[] getNormalArray() { @JsonProperty(JSON_PROPERTY_NORMAL_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNormalArray(byte[] normalArray) { + public void setNormalArray(@javax.annotation.Nullable byte[] normalArray) { this.normalArray = normalArray; } - public ByteArrayObject nullableString(String nullableString) { + public ByteArrayObject nullableString(@javax.annotation.Nullable String nullableString) { this.nullableString = JsonNullable.of(nullableString); return this; @@ -145,11 +150,11 @@ public void setNullableString_JsonNullable(JsonNullable nullableString) this.nullableString = nullableString; } - public void setNullableString(String nullableString) { + public void setNullableString(@javax.annotation.Nullable String nullableString) { this.nullableString = JsonNullable.of(nullableString); } - public ByteArrayObject stringField(String stringField) { + public ByteArrayObject stringField(@javax.annotation.Nullable String stringField) { this.stringField = stringField; return this; @@ -170,11 +175,11 @@ public String getStringField() { @JsonProperty(JSON_PROPERTY_STRING_FIELD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStringField(String stringField) { + public void setStringField(@javax.annotation.Nullable String stringField) { this.stringField = stringField; } - public ByteArrayObject intField(BigDecimal intField) { + public ByteArrayObject intField(@javax.annotation.Nullable BigDecimal intField) { this.intField = intField; return this; @@ -195,7 +200,7 @@ public BigDecimal getIntField() { @JsonProperty(JSON_PROPERTY_INT_FIELD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIntField(BigDecimal intField) { + public void setIntField(@javax.annotation.Nullable BigDecimal intField) { this.intField = intField; } diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 103d5397b941..3aed63ae5d2f 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -36,15 +36,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_PROPERTY = "map_property"; + @javax.annotation.Nullable private Map mapProperty; public static final String JSON_PROPERTY_MAP_OF_MAP_PROPERTY = "map_of_map_property"; + @javax.annotation.Nullable private Map> mapOfMapProperty; public AdditionalPropertiesClass() { } - public AdditionalPropertiesClass mapProperty(Map mapProperty) { + public AdditionalPropertiesClass mapProperty(@javax.annotation.Nullable Map mapProperty) { this.mapProperty = mapProperty; return this; @@ -74,11 +76,11 @@ public Map getMapProperty() { @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapProperty(Map mapProperty) { + public void setMapProperty(@javax.annotation.Nullable Map mapProperty) { this.mapProperty = mapProperty; } - public AdditionalPropertiesClass mapOfMapProperty(Map> mapOfMapProperty) { + public AdditionalPropertiesClass mapOfMapProperty(@javax.annotation.Nullable Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; return this; @@ -108,7 +110,7 @@ public Map> getMapOfMapProperty() { @JsonProperty(JSON_PROPERTY_MAP_OF_MAP_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapOfMapProperty(Map> mapOfMapProperty) { + public void setMapOfMapProperty(@javax.annotation.Nullable Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; } diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java index cf5f7b7da00b..699a37c61984 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java @@ -35,15 +35,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AllOfWithSingleRef { public static final String JSON_PROPERTY_USERNAME = "username"; + @javax.annotation.Nullable private String username; public static final String JSON_PROPERTY_SINGLE_REF_TYPE = "SingleRefType"; + @javax.annotation.Nullable private SingleRefType singleRefType; public AllOfWithSingleRef() { } - public AllOfWithSingleRef username(String username) { + public AllOfWithSingleRef username(@javax.annotation.Nullable String username) { this.username = username; return this; @@ -65,11 +67,11 @@ public String getUsername() { @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsername(String username) { + public void setUsername(@javax.annotation.Nullable String username) { this.username = username; } - public AllOfWithSingleRef singleRefType(SingleRefType singleRefType) { + public AllOfWithSingleRef singleRefType(@javax.annotation.Nullable SingleRefType singleRefType) { this.singleRefType = singleRefType; return this; @@ -91,7 +93,7 @@ public SingleRefType getSingleRefType() { @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSingleRefType(SingleRefType singleRefType) { + public void setSingleRefType(@javax.annotation.Nullable SingleRefType singleRefType) { this.singleRefType = singleRefType; } diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Animal.java index ae2edda01cef..6cf876717439 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Animal.java @@ -47,15 +47,17 @@ public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; + @javax.annotation.Nonnull protected String className; public static final String JSON_PROPERTY_COLOR = "color"; + @javax.annotation.Nullable protected String color = "red"; public Animal() { } - public Animal className(String className) { + public Animal className(@javax.annotation.Nonnull String className) { this.className = className; return this; @@ -77,11 +79,11 @@ public String getClassName() { @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setClassName(String className) { + public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; } - public Animal color(String color) { + public Animal color(@javax.annotation.Nullable String color) { this.color = color; return this; @@ -103,7 +105,7 @@ public String getColor() { @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setColor(String color) { + public void setColor(@javax.annotation.Nullable String color) { this.color = color; } diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 3187817d1fd5..05919595ff16 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -37,12 +37,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayOfArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; + @javax.annotation.Nullable private List> arrayArrayNumber; public ArrayOfArrayOfNumberOnly() { } - public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + public ArrayOfArrayOfNumberOnly arrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; return this; @@ -72,7 +73,7 @@ public List> getArrayArrayNumber() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayNumber(List> arrayArrayNumber) { + public void setArrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 8eed4db12d72..231456156150 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -37,12 +37,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; + @javax.annotation.Nullable private List arrayNumber; public ArrayOfNumberOnly() { } - public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + public ArrayOfNumberOnly arrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; return this; @@ -72,7 +73,7 @@ public List getArrayNumber() { @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayNumber(List arrayNumber) { + public void setArrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ArrayTest.java index 27d5e58f0d91..12828595747d 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -39,18 +39,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; + @javax.annotation.Nullable private List arrayOfString; public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; + @javax.annotation.Nullable private List> arrayArrayOfInteger; public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; + @javax.annotation.Nullable private List> arrayArrayOfModel; public ArrayTest() { } - public ArrayTest arrayOfString(List arrayOfString) { + public ArrayTest arrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; return this; @@ -80,11 +83,11 @@ public List getArrayOfString() { @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayOfString(List arrayOfString) { + public void setArrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; } - public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + public ArrayTest arrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; return this; @@ -114,11 +117,11 @@ public List> getArrayArrayOfInteger() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { + public void setArrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } - public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + public ArrayTest arrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; return this; @@ -148,7 +151,7 @@ public List> getArrayArrayOfModel() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayOfModel(List> arrayArrayOfModel) { + public void setArrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Capitalization.java index c4044e78faa0..797a3d87a2df 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Capitalization.java @@ -38,27 +38,33 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Capitalization { public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; + @javax.annotation.Nullable private String smallCamel; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; + @javax.annotation.Nullable private String capitalCamel; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; + @javax.annotation.Nullable private String smallSnake; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; + @javax.annotation.Nullable private String capitalSnake; public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; + @javax.annotation.Nullable private String scAETHFlowPoints; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; + @javax.annotation.Nullable private String ATT_NAME; public Capitalization() { } - public Capitalization smallCamel(String smallCamel) { + public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; return this; @@ -80,11 +86,11 @@ public String getSmallCamel() { @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmallCamel(String smallCamel) { + public void setSmallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; } - public Capitalization capitalCamel(String capitalCamel) { + public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; return this; @@ -106,11 +112,11 @@ public String getCapitalCamel() { @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCapitalCamel(String capitalCamel) { + public void setCapitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; } - public Capitalization smallSnake(String smallSnake) { + public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; return this; @@ -132,11 +138,11 @@ public String getSmallSnake() { @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmallSnake(String smallSnake) { + public void setSmallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; } - public Capitalization capitalSnake(String capitalSnake) { + public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; return this; @@ -158,11 +164,11 @@ public String getCapitalSnake() { @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCapitalSnake(String capitalSnake) { + public void setCapitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; } - public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; return this; @@ -184,11 +190,11 @@ public String getScAETHFlowPoints() { @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setScAETHFlowPoints(String scAETHFlowPoints) { + public void setScAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } - public Capitalization ATT_NAME(String ATT_NAME) { + public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; return this; @@ -210,7 +216,7 @@ public String getATTNAME() { @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setATTNAME(String ATT_NAME) { + public void setATTNAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Cat.java index 542c08844938..9db8286ac285 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Cat.java @@ -43,13 +43,14 @@ public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; + @javax.annotation.Nullable private Boolean declawed; public Cat() { } - public Cat declawed(Boolean declawed) { + public Cat declawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; return this; @@ -71,18 +72,18 @@ public Boolean getDeclawed() { @JsonProperty(JSON_PROPERTY_DECLAWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; } @Override - public Cat className(String className) { + public Cat className(@javax.annotation.Nonnull String className) { this.setClassName(className); return this; } @Override - public Cat color(String color) { + public Cat color(@javax.annotation.Nullable String color) { this.setColor(color); return this; } diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Category.java index c6a1c0141fc1..f9a52d9b50b8 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Category.java @@ -34,15 +34,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Category { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private String name = "default-name"; public Category() { } - public Category id(Long id) { + public Category id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -64,11 +66,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@javax.annotation.Nonnull String name) { this.name = name; return this; @@ -90,7 +92,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ChildWithNullable.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ChildWithNullable.java index d7bd4a5a2f68..1589d3cb05b1 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ChildWithNullable.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ChildWithNullable.java @@ -44,13 +44,14 @@ public class ChildWithNullable extends ParentWithNullable { public static final String JSON_PROPERTY_OTHER_PROPERTY = "otherProperty"; + @javax.annotation.Nullable private String otherProperty; public ChildWithNullable() { } - public ChildWithNullable otherProperty(String otherProperty) { + public ChildWithNullable otherProperty(@javax.annotation.Nullable String otherProperty) { this.otherProperty = otherProperty; return this; @@ -72,18 +73,18 @@ public String getOtherProperty() { @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOtherProperty(String otherProperty) { + public void setOtherProperty(@javax.annotation.Nullable String otherProperty) { this.otherProperty = otherProperty; } @Override - public ChildWithNullable type(TypeEnum type) { + public ChildWithNullable type(@javax.annotation.Nullable TypeEnum type) { this.setType(type); return this; } @Override - public ChildWithNullable nullableProperty(String nullableProperty) { + public ChildWithNullable nullableProperty(@javax.annotation.Nullable String nullableProperty) { this.setNullableProperty(nullableProperty); return this; } diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ClassModel.java index 7934eaec7720..217d2b1c6d60 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ClassModel.java @@ -34,12 +34,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ClassModel { public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; + @javax.annotation.Nullable private String propertyClass; public ClassModel() { } - public ClassModel propertyClass(String propertyClass) { + public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; @@ -61,7 +62,7 @@ public String getPropertyClass() { @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Client.java index be75b64ff78f..2808794ad365 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Client.java @@ -33,12 +33,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Client { public static final String JSON_PROPERTY_CLIENT = "client"; + @javax.annotation.Nullable private String client; public Client() { } - public Client client(String client) { + public Client client(@javax.annotation.Nullable String client) { this.client = client; return this; @@ -60,7 +61,7 @@ public String getClient() { @JsonProperty(JSON_PROPERTY_CLIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setClient(String client) { + public void setClient(@javax.annotation.Nullable String client) { this.client = client; } diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/DeprecatedObject.java index 7d379ad31b35..b3add1b88ee1 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -35,12 +35,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class DeprecatedObject { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public DeprecatedObject() { } - public DeprecatedObject name(String name) { + public DeprecatedObject name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -62,7 +63,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Dog.java index 4103162114d2..e1f0882c6968 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Dog.java @@ -43,13 +43,14 @@ public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; + @javax.annotation.Nullable private String breed; public Dog() { } - public Dog breed(String breed) { + public Dog breed(@javax.annotation.Nullable String breed) { this.breed = breed; return this; @@ -71,18 +72,18 @@ public String getBreed() { @JsonProperty(JSON_PROPERTY_BREED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBreed(String breed) { + public void setBreed(@javax.annotation.Nullable String breed) { this.breed = breed; } @Override - public Dog className(String className) { + public Dog className(@javax.annotation.Nonnull String className) { this.setClassName(className); return this; } @Override - public Dog color(String color) { + public Dog color(@javax.annotation.Nullable String color) { this.setColor(color); return this; } diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/EnumArrays.java index 03fca804ae95..d022345adfd9 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -72,6 +72,7 @@ public static JustSymbolEnum fromValue(String value) { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** @@ -110,12 +111,13 @@ public static ArrayEnumEnum fromValue(String value) { } public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; + @javax.annotation.Nullable private List arrayEnum; public EnumArrays() { } - public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; @@ -137,11 +139,11 @@ public JustSymbolEnum getJustSymbol() { @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJustSymbol(JustSymbolEnum justSymbol) { + public void setJustSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } - public EnumArrays arrayEnum(List arrayEnum) { + public EnumArrays arrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; return this; @@ -171,7 +173,7 @@ public List getArrayEnum() { @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayEnum(List arrayEnum) { + public void setArrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/EnumTest.java index 6761607407da..ffc77f59e9bd 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/EnumTest.java @@ -86,6 +86,7 @@ public static EnumStringEnum fromValue(String value) { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; + @javax.annotation.Nullable private EnumStringEnum enumString; /** @@ -126,6 +127,7 @@ public static EnumStringRequiredEnum fromValue(String value) { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** @@ -164,6 +166,7 @@ public static EnumIntegerEnum fromValue(Integer value) { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** @@ -202,24 +205,29 @@ public static EnumNumberEnum fromValue(Double value) { } public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; + @javax.annotation.Nullable private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; + @javax.annotation.Nullable private JsonNullable outerEnum = JsonNullable.undefined(); public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER = "outerEnumInteger"; + @javax.annotation.Nullable private OuterEnumInteger outerEnumInteger; public static final String JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE = "outerEnumDefaultValue"; + @javax.annotation.Nullable private OuterEnumDefaultValue outerEnumDefaultValue = OuterEnumDefaultValue.PLACED; public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE = "outerEnumIntegerDefaultValue"; + @javax.annotation.Nullable private OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = OuterEnumIntegerDefaultValue.NUMBER_0; public EnumTest() { } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; @@ -241,11 +249,11 @@ public EnumStringEnum getEnumString() { @JsonProperty(JSON_PROPERTY_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumString(EnumStringEnum enumString) { + public void setEnumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; } - public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; return this; @@ -267,11 +275,11 @@ public EnumStringRequiredEnum getEnumStringRequired() { @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public void setEnumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; @@ -293,11 +301,11 @@ public EnumIntegerEnum getEnumInteger() { @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumInteger(EnumIntegerEnum enumInteger) { + public void setEnumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } - public EnumTest enumNumber(EnumNumberEnum enumNumber) { + public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; return this; @@ -319,11 +327,11 @@ public EnumNumberEnum getEnumNumber() { @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumNumber(EnumNumberEnum enumNumber) { + public void setEnumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } - public EnumTest outerEnum(OuterEnum outerEnum) { + public EnumTest outerEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = JsonNullable.of(outerEnum); return this; @@ -353,11 +361,11 @@ public void setOuterEnum_JsonNullable(JsonNullable outerEnum) { this.outerEnum = outerEnum; } - public void setOuterEnum(OuterEnum outerEnum) { + public void setOuterEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = JsonNullable.of(outerEnum); } - public EnumTest outerEnumInteger(OuterEnumInteger outerEnumInteger) { + public EnumTest outerEnumInteger(@javax.annotation.Nullable OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; return this; @@ -379,11 +387,11 @@ public OuterEnumInteger getOuterEnumInteger() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnumInteger(OuterEnumInteger outerEnumInteger) { + public void setOuterEnumInteger(@javax.annotation.Nullable OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; } - public EnumTest outerEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) { + public EnumTest outerEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; return this; @@ -405,11 +413,11 @@ public OuterEnumDefaultValue getOuterEnumDefaultValue() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) { + public void setOuterEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; } - public EnumTest outerEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { + public EnumTest outerEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; return this; @@ -431,7 +439,7 @@ public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { + public void setOuterEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; } diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java index 210924782e10..0682dcf7b589 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java @@ -38,15 +38,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FakeBigDecimalMap200Response { public static final String JSON_PROPERTY_SOME_ID = "someId"; + @javax.annotation.Nullable private BigDecimal someId; public static final String JSON_PROPERTY_SOME_MAP = "someMap"; + @javax.annotation.Nullable private Map someMap; public FakeBigDecimalMap200Response() { } - public FakeBigDecimalMap200Response someId(BigDecimal someId) { + public FakeBigDecimalMap200Response someId(@javax.annotation.Nullable BigDecimal someId) { this.someId = someId; return this; @@ -68,11 +70,11 @@ public BigDecimal getSomeId() { @JsonProperty(JSON_PROPERTY_SOME_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSomeId(BigDecimal someId) { + public void setSomeId(@javax.annotation.Nullable BigDecimal someId) { this.someId = someId; } - public FakeBigDecimalMap200Response someMap(Map someMap) { + public FakeBigDecimalMap200Response someMap(@javax.annotation.Nullable Map someMap) { this.someMap = someMap; return this; @@ -102,7 +104,7 @@ public Map getSomeMap() { @JsonProperty(JSON_PROPERTY_SOME_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSomeMap(Map someMap) { + public void setSomeMap(@javax.annotation.Nullable Map someMap) { this.someMap = someMap; } diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 3f2ce8cd2142..096c282a7018 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -38,15 +38,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; + @javax.annotation.Nullable private ModelFile _file; public static final String JSON_PROPERTY_FILES = "files"; + @javax.annotation.Nullable private List files; public FileSchemaTestClass() { } - public FileSchemaTestClass _file(ModelFile _file) { + public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { this._file = _file; return this; @@ -68,11 +70,11 @@ public ModelFile getFile() { @JsonProperty(JSON_PROPERTY_FILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFile(ModelFile _file) { + public void setFile(@javax.annotation.Nullable ModelFile _file) { this._file = _file; } - public FileSchemaTestClass files(List files) { + public FileSchemaTestClass files(@javax.annotation.Nullable List files) { this.files = files; return this; @@ -102,7 +104,7 @@ public List getFiles() { @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFiles(List files) { + public void setFiles(@javax.annotation.Nullable List files) { this.files = files; } diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Foo.java index b66db5fd32ad..0360de50e13b 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Foo.java @@ -33,12 +33,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Foo { public static final String JSON_PROPERTY_BAR = "bar"; + @javax.annotation.Nullable private String bar = "bar"; public Foo() { } - public Foo bar(String bar) { + public Foo bar(@javax.annotation.Nullable String bar) { this.bar = bar; return this; @@ -60,7 +61,7 @@ public String getBar() { @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBar(String bar) { + public void setBar(@javax.annotation.Nullable String bar) { this.bar = bar; } diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index 300c3ae265eb..44d74e7d54b7 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -35,12 +35,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FooGetDefaultResponse { public static final String JSON_PROPERTY_STRING = "string"; + @javax.annotation.Nullable private Foo string; public FooGetDefaultResponse() { } - public FooGetDefaultResponse string(Foo string) { + public FooGetDefaultResponse string(@javax.annotation.Nullable Foo string) { this.string = string; return this; @@ -62,7 +63,7 @@ public Foo getString() { @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setString(Foo string) { + public void setString(@javax.annotation.Nullable Foo string) { this.string = string; } diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/FormatTest.java index e65bd646cb18..4da60f9cc3f0 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/FormatTest.java @@ -54,57 +54,73 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; + @javax.annotation.Nullable private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; + @javax.annotation.Nullable private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; + @javax.annotation.Nullable private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; + @javax.annotation.Nonnull private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; + @javax.annotation.Nullable private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; + @javax.annotation.Nullable private Double _double; public static final String JSON_PROPERTY_DECIMAL = "decimal"; + @javax.annotation.Nullable private BigDecimal decimal; public static final String JSON_PROPERTY_STRING = "string"; + @javax.annotation.Nullable private String string; public static final String JSON_PROPERTY_BYTE = "byte"; + @javax.annotation.Nonnull private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; + @javax.annotation.Nullable private File binary; public static final String JSON_PROPERTY_DATE = "date"; + @javax.annotation.Nonnull private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; + @javax.annotation.Nonnull private String password; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS = "pattern_with_digits"; + @javax.annotation.Nullable private String patternWithDigits; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER = "pattern_with_digits_and_delimiter"; + @javax.annotation.Nullable private String patternWithDigitsAndDelimiter; public FormatTest() { } - public FormatTest integer(Integer integer) { + public FormatTest integer(@javax.annotation.Nullable Integer integer) { this.integer = integer; return this; @@ -128,11 +144,11 @@ public Integer getInteger() { @JsonProperty(JSON_PROPERTY_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInteger(Integer integer) { + public void setInteger(@javax.annotation.Nullable Integer integer) { this.integer = integer; } - public FormatTest int32(Integer int32) { + public FormatTest int32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; return this; @@ -156,11 +172,11 @@ public Integer getInt32() { @JsonProperty(JSON_PROPERTY_INT32) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInt32(Integer int32) { + public void setInt32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; } - public FormatTest int64(Long int64) { + public FormatTest int64(@javax.annotation.Nullable Long int64) { this.int64 = int64; return this; @@ -182,11 +198,11 @@ public Long getInt64() { @JsonProperty(JSON_PROPERTY_INT64) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInt64(Long int64) { + public void setInt64(@javax.annotation.Nullable Long int64) { this.int64 = int64; } - public FormatTest number(BigDecimal number) { + public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { this.number = number; return this; @@ -210,11 +226,11 @@ public BigDecimal getNumber() { @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNumber(BigDecimal number) { + public void setNumber(@javax.annotation.Nonnull BigDecimal number) { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@javax.annotation.Nullable Float _float) { this._float = _float; return this; @@ -238,11 +254,11 @@ public Float getFloat() { @JsonProperty(JSON_PROPERTY_FLOAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFloat(Float _float) { + public void setFloat(@javax.annotation.Nullable Float _float) { this._float = _float; } - public FormatTest _double(Double _double) { + public FormatTest _double(@javax.annotation.Nullable Double _double) { this._double = _double; return this; @@ -266,11 +282,11 @@ public Double getDouble() { @JsonProperty(JSON_PROPERTY_DOUBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDouble(Double _double) { + public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; } - public FormatTest decimal(BigDecimal decimal) { + public FormatTest decimal(@javax.annotation.Nullable BigDecimal decimal) { this.decimal = decimal; return this; @@ -292,11 +308,11 @@ public BigDecimal getDecimal() { @JsonProperty(JSON_PROPERTY_DECIMAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDecimal(BigDecimal decimal) { + public void setDecimal(@javax.annotation.Nullable BigDecimal decimal) { this.decimal = decimal; } - public FormatTest string(String string) { + public FormatTest string(@javax.annotation.Nullable String string) { this.string = string; return this; @@ -318,11 +334,11 @@ public String getString() { @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setString(String string) { + public void setString(@javax.annotation.Nullable String string) { this.string = string; } - public FormatTest _byte(byte[] _byte) { + public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; return this; @@ -344,11 +360,11 @@ public byte[] getByte() { @JsonProperty(JSON_PROPERTY_BYTE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setByte(byte[] _byte) { + public void setByte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; } - public FormatTest binary(File binary) { + public FormatTest binary(@javax.annotation.Nullable File binary) { this.binary = binary; return this; @@ -370,11 +386,11 @@ public File getBinary() { @JsonProperty(JSON_PROPERTY_BINARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBinary(File binary) { + public void setBinary(@javax.annotation.Nullable File binary) { this.binary = binary; } - public FormatTest date(LocalDate date) { + public FormatTest date(@javax.annotation.Nonnull LocalDate date) { this.date = date; return this; @@ -396,11 +412,11 @@ public LocalDate getDate() { @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDate(LocalDate date) { + public void setDate(@javax.annotation.Nonnull LocalDate date) { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; @@ -422,11 +438,11 @@ public OffsetDateTime getDateTime() { @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public FormatTest uuid(UUID uuid) { + public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; @@ -448,11 +464,11 @@ public UUID getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(UUID uuid) { + public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public FormatTest password(String password) { + public FormatTest password(@javax.annotation.Nonnull String password) { this.password = password; return this; @@ -474,11 +490,11 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nonnull String password) { this.password = password; } - public FormatTest patternWithDigits(String patternWithDigits) { + public FormatTest patternWithDigits(@javax.annotation.Nullable String patternWithDigits) { this.patternWithDigits = patternWithDigits; return this; @@ -500,11 +516,11 @@ public String getPatternWithDigits() { @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPatternWithDigits(String patternWithDigits) { + public void setPatternWithDigits(@javax.annotation.Nullable String patternWithDigits) { this.patternWithDigits = patternWithDigits; } - public FormatTest patternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) { + public FormatTest patternWithDigitsAndDelimiter(@javax.annotation.Nullable String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; return this; @@ -526,7 +542,7 @@ public String getPatternWithDigitsAndDelimiter() { @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPatternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) { + public void setPatternWithDigitsAndDelimiter(@javax.annotation.Nullable String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; } diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 071573fee4a0..7bbc7bc47a0b 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -35,9 +35,11 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_FOO = "foo"; + @javax.annotation.Nullable private String foo; public HasOnlyReadOnly() { diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/HealthCheckResult.java index 4ea851ddb94d..daed0e5b4b91 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -38,12 +38,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class HealthCheckResult { public static final String JSON_PROPERTY_NULLABLE_MESSAGE = "NullableMessage"; + @javax.annotation.Nullable private JsonNullable nullableMessage = JsonNullable.undefined(); public HealthCheckResult() { } - public HealthCheckResult nullableMessage(String nullableMessage) { + public HealthCheckResult nullableMessage(@javax.annotation.Nullable String nullableMessage) { this.nullableMessage = JsonNullable.of(nullableMessage); return this; @@ -73,7 +74,7 @@ public void setNullableMessage_JsonNullable(JsonNullable nullableMessage this.nullableMessage = nullableMessage; } - public void setNullableMessage(String nullableMessage) { + public void setNullableMessage(@javax.annotation.Nullable String nullableMessage) { this.nullableMessage = JsonNullable.of(nullableMessage); } diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/MapTest.java index 52714210d13a..0c7b3e2b769e 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/MapTest.java @@ -38,6 +38,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; + @javax.annotation.Nullable private Map> mapMapOfString; /** @@ -76,18 +77,21 @@ public static InnerEnum fromValue(String value) { } public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; + @javax.annotation.Nullable private Map mapOfEnumString; public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; + @javax.annotation.Nullable private Map directMap; public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; + @javax.annotation.Nullable private Map indirectMap; public MapTest() { } - public MapTest mapMapOfString(Map> mapMapOfString) { + public MapTest mapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; return this; @@ -117,11 +121,11 @@ public Map> getMapMapOfString() { @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapMapOfString(Map> mapMapOfString) { + public void setMapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } - public MapTest mapOfEnumString(Map mapOfEnumString) { + public MapTest mapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; return this; @@ -151,11 +155,11 @@ public Map getMapOfEnumString() { @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapOfEnumString(Map mapOfEnumString) { + public void setMapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } - public MapTest directMap(Map directMap) { + public MapTest directMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; return this; @@ -185,11 +189,11 @@ public Map getDirectMap() { @JsonProperty(JSON_PROPERTY_DIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDirectMap(Map directMap) { + public void setDirectMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; } - public MapTest indirectMap(Map indirectMap) { + public MapTest indirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; return this; @@ -219,7 +223,7 @@ public Map getIndirectMap() { @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIndirectMap(Map indirectMap) { + public void setIndirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 4adac5113e44..6b1d063a6abd 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -40,18 +40,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; + @javax.annotation.Nullable private Map map; public MixedPropertiesAndAdditionalPropertiesClass() { } - public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; @@ -73,11 +76,11 @@ public UUID getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(UUID uuid) { + public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; @@ -99,11 +102,11 @@ public OffsetDateTime getDateTime() { @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + public MixedPropertiesAndAdditionalPropertiesClass map(@javax.annotation.Nullable Map map) { this.map = map; return this; @@ -133,7 +136,7 @@ public Map getMap() { @JsonProperty(JSON_PROPERTY_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMap(Map map) { + public void setMap(@javax.annotation.Nullable Map map) { this.map = map; } diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Model200Response.java index ecc4fec3ef43..30f9e6da1ded 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Model200Response.java @@ -36,15 +36,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; + @javax.annotation.Nullable private String propertyClass; public Model200Response() { } - public Model200Response name(Integer name) { + public Model200Response name(@javax.annotation.Nullable Integer name) { this.name = name; return this; @@ -66,11 +68,11 @@ public Integer getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(Integer name) { + public void setName(@javax.annotation.Nullable Integer name) { this.name = name; } - public Model200Response propertyClass(String propertyClass) { + public Model200Response propertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; @@ -92,7 +94,7 @@ public String getPropertyClass() { @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 7863b0f0e3b5..fa82ef0cb239 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -36,18 +36,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nullable private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nullable private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; + @javax.annotation.Nullable private String message; public ModelApiResponse() { } - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@javax.annotation.Nullable Integer code) { this.code = code; return this; @@ -69,11 +72,11 @@ public Integer getCode() { @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCode(Integer code) { + public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@javax.annotation.Nullable String type) { this.type = type; return this; @@ -95,11 +98,11 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { + public void setType(@javax.annotation.Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@javax.annotation.Nullable String message) { this.message = message; return this; @@ -121,7 +124,7 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ModelFile.java index f4b3d501c571..8edceadc683e 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ModelFile.java @@ -35,12 +35,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelFile { public static final String JSON_PROPERTY_SOURCE_U_R_I = "sourceURI"; + @javax.annotation.Nullable private String sourceURI; public ModelFile() { } - public ModelFile sourceURI(String sourceURI) { + public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; return this; @@ -62,7 +63,7 @@ public String getSourceURI() { @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSourceURI(String sourceURI) { + public void setSourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; } diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ModelList.java index ca49a27061a9..ce9f4f7b5203 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ModelList.java @@ -34,12 +34,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelList { public static final String JSON_PROPERTY_123LIST = "123-list"; + @javax.annotation.Nullable private String _123list; public ModelList() { } - public ModelList _123list(String _123list) { + public ModelList _123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; return this; @@ -61,7 +62,7 @@ public String get123list() { @JsonProperty(JSON_PROPERTY_123LIST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void set123list(String _123list) { + public void set123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; } diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ModelReturn.java index 43fdd7c4ad2d..b51d16723136 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -35,12 +35,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; + @javax.annotation.Nullable private Integer _return; public ModelReturn() { } - public ModelReturn _return(Integer _return) { + public ModelReturn _return(@javax.annotation.Nullable Integer _return) { this._return = _return; return this; @@ -62,7 +63,7 @@ public Integer getReturn() { @JsonProperty(JSON_PROPERTY_RETURN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setReturn(Integer _return) { + public void setReturn(@javax.annotation.Nullable Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Name.java index 43004f2875b4..c3755c48d9a9 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Name.java @@ -37,15 +37,19 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Name { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; + @javax.annotation.Nullable private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; + @javax.annotation.Nullable private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; + @javax.annotation.Nullable private Integer _123number; public Name() { @@ -63,7 +67,7 @@ public Name( this._123number = _123number; } - public Name name(Integer name) { + public Name name(@javax.annotation.Nonnull Integer name) { this.name = name; return this; @@ -85,7 +89,7 @@ public Integer getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(Integer name) { + public void setName(@javax.annotation.Nonnull Integer name) { this.name = name; } @@ -104,7 +108,7 @@ public Integer getSnakeCase() { - public Name property(String property) { + public Name property(@javax.annotation.Nullable String property) { this.property = property; return this; @@ -126,7 +130,7 @@ public String getProperty() { @JsonProperty(JSON_PROPERTY_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProperty(String property) { + public void setProperty(@javax.annotation.Nullable String property) { this.property = property; } diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/NullableClass.java index 8af140fd7406..bc9a5678862a 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/NullableClass.java @@ -56,46 +56,58 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class NullableClass extends HashMap { public static final String JSON_PROPERTY_INTEGER_PROP = "integer_prop"; + @javax.annotation.Nullable private JsonNullable integerProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_NUMBER_PROP = "number_prop"; + @javax.annotation.Nullable private JsonNullable numberProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_BOOLEAN_PROP = "boolean_prop"; + @javax.annotation.Nullable private JsonNullable booleanProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_STRING_PROP = "string_prop"; + @javax.annotation.Nullable private JsonNullable stringProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_DATE_PROP = "date_prop"; + @javax.annotation.Nullable private JsonNullable dateProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_DATETIME_PROP = "datetime_prop"; + @javax.annotation.Nullable private JsonNullable datetimeProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_ARRAY_NULLABLE_PROP = "array_nullable_prop"; + @javax.annotation.Nullable private JsonNullable> arrayNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP = "array_and_items_nullable_prop"; + @javax.annotation.Nullable private JsonNullable> arrayAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_ITEMS_NULLABLE = "array_items_nullable"; + @javax.annotation.Nullable private List arrayItemsNullable; public static final String JSON_PROPERTY_OBJECT_NULLABLE_PROP = "object_nullable_prop"; + @javax.annotation.Nullable private JsonNullable> objectNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP = "object_and_items_nullable_prop"; + @javax.annotation.Nullable private JsonNullable> objectAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_OBJECT_ITEMS_NULLABLE = "object_items_nullable"; + @javax.annotation.Nullable private Map objectItemsNullable; public NullableClass() { } - public NullableClass integerProp(Integer integerProp) { + public NullableClass integerProp(@javax.annotation.Nullable Integer integerProp) { this.integerProp = JsonNullable.of(integerProp); return this; @@ -125,11 +137,11 @@ public void setIntegerProp_JsonNullable(JsonNullable integerProp) { this.integerProp = integerProp; } - public void setIntegerProp(Integer integerProp) { + public void setIntegerProp(@javax.annotation.Nullable Integer integerProp) { this.integerProp = JsonNullable.of(integerProp); } - public NullableClass numberProp(BigDecimal numberProp) { + public NullableClass numberProp(@javax.annotation.Nullable BigDecimal numberProp) { this.numberProp = JsonNullable.of(numberProp); return this; @@ -159,11 +171,11 @@ public void setNumberProp_JsonNullable(JsonNullable numberProp) { this.numberProp = numberProp; } - public void setNumberProp(BigDecimal numberProp) { + public void setNumberProp(@javax.annotation.Nullable BigDecimal numberProp) { this.numberProp = JsonNullable.of(numberProp); } - public NullableClass booleanProp(Boolean booleanProp) { + public NullableClass booleanProp(@javax.annotation.Nullable Boolean booleanProp) { this.booleanProp = JsonNullable.of(booleanProp); return this; @@ -193,11 +205,11 @@ public void setBooleanProp_JsonNullable(JsonNullable booleanProp) { this.booleanProp = booleanProp; } - public void setBooleanProp(Boolean booleanProp) { + public void setBooleanProp(@javax.annotation.Nullable Boolean booleanProp) { this.booleanProp = JsonNullable.of(booleanProp); } - public NullableClass stringProp(String stringProp) { + public NullableClass stringProp(@javax.annotation.Nullable String stringProp) { this.stringProp = JsonNullable.of(stringProp); return this; @@ -227,11 +239,11 @@ public void setStringProp_JsonNullable(JsonNullable stringProp) { this.stringProp = stringProp; } - public void setStringProp(String stringProp) { + public void setStringProp(@javax.annotation.Nullable String stringProp) { this.stringProp = JsonNullable.of(stringProp); } - public NullableClass dateProp(LocalDate dateProp) { + public NullableClass dateProp(@javax.annotation.Nullable LocalDate dateProp) { this.dateProp = JsonNullable.of(dateProp); return this; @@ -261,11 +273,11 @@ public void setDateProp_JsonNullable(JsonNullable dateProp) { this.dateProp = dateProp; } - public void setDateProp(LocalDate dateProp) { + public void setDateProp(@javax.annotation.Nullable LocalDate dateProp) { this.dateProp = JsonNullable.of(dateProp); } - public NullableClass datetimeProp(OffsetDateTime datetimeProp) { + public NullableClass datetimeProp(@javax.annotation.Nullable OffsetDateTime datetimeProp) { this.datetimeProp = JsonNullable.of(datetimeProp); return this; @@ -295,11 +307,11 @@ public void setDatetimeProp_JsonNullable(JsonNullable datetimePr this.datetimeProp = datetimeProp; } - public void setDatetimeProp(OffsetDateTime datetimeProp) { + public void setDatetimeProp(@javax.annotation.Nullable OffsetDateTime datetimeProp) { this.datetimeProp = JsonNullable.of(datetimeProp); } - public NullableClass arrayNullableProp(List arrayNullableProp) { + public NullableClass arrayNullableProp(@javax.annotation.Nullable List arrayNullableProp) { this.arrayNullableProp = JsonNullable.>of(arrayNullableProp); return this; @@ -341,11 +353,11 @@ public void setArrayNullableProp_JsonNullable(JsonNullable> arrayNu this.arrayNullableProp = arrayNullableProp; } - public void setArrayNullableProp(List arrayNullableProp) { + public void setArrayNullableProp(@javax.annotation.Nullable List arrayNullableProp) { this.arrayNullableProp = JsonNullable.>of(arrayNullableProp); } - public NullableClass arrayAndItemsNullableProp(List arrayAndItemsNullableProp) { + public NullableClass arrayAndItemsNullableProp(@javax.annotation.Nullable List arrayAndItemsNullableProp) { this.arrayAndItemsNullableProp = JsonNullable.>of(arrayAndItemsNullableProp); return this; @@ -387,11 +399,11 @@ public void setArrayAndItemsNullableProp_JsonNullable(JsonNullable> this.arrayAndItemsNullableProp = arrayAndItemsNullableProp; } - public void setArrayAndItemsNullableProp(List arrayAndItemsNullableProp) { + public void setArrayAndItemsNullableProp(@javax.annotation.Nullable List arrayAndItemsNullableProp) { this.arrayAndItemsNullableProp = JsonNullable.>of(arrayAndItemsNullableProp); } - public NullableClass arrayItemsNullable(List arrayItemsNullable) { + public NullableClass arrayItemsNullable(@javax.annotation.Nullable List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; return this; @@ -421,11 +433,11 @@ public List getArrayItemsNullable() { @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayItemsNullable(List arrayItemsNullable) { + public void setArrayItemsNullable(@javax.annotation.Nullable List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; } - public NullableClass objectNullableProp(Map objectNullableProp) { + public NullableClass objectNullableProp(@javax.annotation.Nullable Map objectNullableProp) { this.objectNullableProp = JsonNullable.>of(objectNullableProp); return this; @@ -467,11 +479,11 @@ public void setObjectNullableProp_JsonNullable(JsonNullable> this.objectNullableProp = objectNullableProp; } - public void setObjectNullableProp(Map objectNullableProp) { + public void setObjectNullableProp(@javax.annotation.Nullable Map objectNullableProp) { this.objectNullableProp = JsonNullable.>of(objectNullableProp); } - public NullableClass objectAndItemsNullableProp(Map objectAndItemsNullableProp) { + public NullableClass objectAndItemsNullableProp(@javax.annotation.Nullable Map objectAndItemsNullableProp) { this.objectAndItemsNullableProp = JsonNullable.>of(objectAndItemsNullableProp); return this; @@ -513,11 +525,11 @@ public void setObjectAndItemsNullableProp_JsonNullable(JsonNullable objectAndItemsNullableProp) { + public void setObjectAndItemsNullableProp(@javax.annotation.Nullable Map objectAndItemsNullableProp) { this.objectAndItemsNullableProp = JsonNullable.>of(objectAndItemsNullableProp); } - public NullableClass objectItemsNullable(Map objectItemsNullable) { + public NullableClass objectItemsNullable(@javax.annotation.Nullable Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; return this; @@ -547,7 +559,7 @@ public Map getObjectItemsNullable() { @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setObjectItemsNullable(Map objectItemsNullable) { + public void setObjectItemsNullable(@javax.annotation.Nullable Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; } diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/NumberOnly.java index 2a54354c03b3..a7ef3814ccb4 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -34,12 +34,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; + @javax.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } - public NumberOnly justNumber(BigDecimal justNumber) { + public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; @@ -61,7 +62,7 @@ public BigDecimal getJustNumber() { @JsonProperty(JSON_PROPERTY_JUST_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJustNumber(BigDecimal justNumber) { + public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index eccef99ecbe6..9b0b92361d62 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -41,21 +41,25 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ObjectWithDeprecatedFields { public static final String JSON_PROPERTY_UUID = "uuid"; + @javax.annotation.Nullable private String uuid; public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private BigDecimal id; public static final String JSON_PROPERTY_DEPRECATED_REF = "deprecatedRef"; + @javax.annotation.Nullable private DeprecatedObject deprecatedRef; public static final String JSON_PROPERTY_BARS = "bars"; + @javax.annotation.Nullable private List bars; public ObjectWithDeprecatedFields() { } - public ObjectWithDeprecatedFields uuid(String uuid) { + public ObjectWithDeprecatedFields uuid(@javax.annotation.Nullable String uuid) { this.uuid = uuid; return this; @@ -77,11 +81,11 @@ public String getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(String uuid) { + public void setUuid(@javax.annotation.Nullable String uuid) { this.uuid = uuid; } - public ObjectWithDeprecatedFields id(BigDecimal id) { + public ObjectWithDeprecatedFields id(@javax.annotation.Nullable BigDecimal id) { this.id = id; return this; @@ -105,11 +109,11 @@ public BigDecimal getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(BigDecimal id) { + public void setId(@javax.annotation.Nullable BigDecimal id) { this.id = id; } - public ObjectWithDeprecatedFields deprecatedRef(DeprecatedObject deprecatedRef) { + public ObjectWithDeprecatedFields deprecatedRef(@javax.annotation.Nullable DeprecatedObject deprecatedRef) { this.deprecatedRef = deprecatedRef; return this; @@ -133,11 +137,11 @@ public DeprecatedObject getDeprecatedRef() { @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeprecatedRef(DeprecatedObject deprecatedRef) { + public void setDeprecatedRef(@javax.annotation.Nullable DeprecatedObject deprecatedRef) { this.deprecatedRef = deprecatedRef; } - public ObjectWithDeprecatedFields bars(List bars) { + public ObjectWithDeprecatedFields bars(@javax.annotation.Nullable List bars) { this.bars = bars; return this; @@ -169,7 +173,7 @@ public List getBars() { @JsonProperty(JSON_PROPERTY_BARS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBars(List bars) { + public void setBars(@javax.annotation.Nullable List bars) { this.bars = bars; } diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Order.java index a1a542ba620b..6d01c6ace014 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Order.java @@ -39,15 +39,19 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Order { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; + @javax.annotation.Nullable private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; + @javax.annotation.Nullable private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; + @javax.annotation.Nullable private OffsetDateTime shipDate; /** @@ -88,15 +92,17 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @javax.annotation.Nullable private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; + @javax.annotation.Nullable private Boolean complete = false; public Order() { } - public Order id(Long id) { + public Order id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -118,11 +124,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@javax.annotation.Nullable Long petId) { this.petId = petId; return this; @@ -144,11 +150,11 @@ public Long getPetId() { @JsonProperty(JSON_PROPERTY_PET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPetId(Long petId) { + public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; return this; @@ -170,11 +176,11 @@ public Integer getQuantity() { @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setQuantity(Integer quantity) { + public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; @@ -196,11 +202,11 @@ public OffsetDateTime getShipDate() { @JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -222,11 +228,11 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } - public Order complete(Boolean complete) { + public Order complete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; return this; @@ -248,7 +254,7 @@ public Boolean getComplete() { @JsonProperty(JSON_PROPERTY_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setComplete(Boolean complete) { + public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/OuterComposite.java index 3a18096adcb4..0d2bbb24e441 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -36,18 +36,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; + @javax.annotation.Nullable private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; + @javax.annotation.Nullable private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; + @javax.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } - public OuterComposite myNumber(BigDecimal myNumber) { + public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; @@ -69,11 +72,11 @@ public BigDecimal getMyNumber() { @JsonProperty(JSON_PROPERTY_MY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyNumber(BigDecimal myNumber) { + public void setMyNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; } - public OuterComposite myString(String myString) { + public OuterComposite myString(@javax.annotation.Nullable String myString) { this.myString = myString; return this; @@ -95,11 +98,11 @@ public String getMyString() { @JsonProperty(JSON_PROPERTY_MY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyString(String myString) { + public void setMyString(@javax.annotation.Nullable String myString) { this.myString = myString; } - public OuterComposite myBoolean(Boolean myBoolean) { + public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; return this; @@ -121,7 +124,7 @@ public Boolean getMyBoolean() { @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyBoolean(Boolean myBoolean) { + public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java index 95ec1e8e524d..9cbc19aa44bb 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java @@ -34,12 +34,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class OuterObjectWithEnumProperty { public static final String JSON_PROPERTY_VALUE = "value"; + @javax.annotation.Nonnull private OuterEnumInteger value; public OuterObjectWithEnumProperty() { } - public OuterObjectWithEnumProperty value(OuterEnumInteger value) { + public OuterObjectWithEnumProperty value(@javax.annotation.Nonnull OuterEnumInteger value) { this.value = value; return this; @@ -61,7 +62,7 @@ public OuterEnumInteger getValue() { @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setValue(OuterEnumInteger value) { + public void setValue(@javax.annotation.Nonnull OuterEnumInteger value) { this.value = value; } diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ParentWithNullable.java index 04befcc92910..f5e2f46acbcf 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -83,15 +83,17 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nullable protected TypeEnum type; public static final String JSON_PROPERTY_NULLABLE_PROPERTY = "nullableProperty"; + @javax.annotation.Nullable protected JsonNullable nullableProperty = JsonNullable.undefined(); public ParentWithNullable() { } - public ParentWithNullable type(TypeEnum type) { + public ParentWithNullable type(@javax.annotation.Nullable TypeEnum type) { this.type = type; return this; @@ -113,11 +115,11 @@ public TypeEnum getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(TypeEnum type) { + public void setType(@javax.annotation.Nullable TypeEnum type) { this.type = type; } - public ParentWithNullable nullableProperty(String nullableProperty) { + public ParentWithNullable nullableProperty(@javax.annotation.Nullable String nullableProperty) { this.nullableProperty = JsonNullable.of(nullableProperty); return this; @@ -147,7 +149,7 @@ public void setNullableProperty_JsonNullable(JsonNullable nullableProper this.nullableProperty = nullableProperty; } - public void setNullableProperty(String nullableProperty) { + public void setNullableProperty(@javax.annotation.Nullable String nullableProperty) { this.nullableProperty = JsonNullable.of(nullableProperty); } diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Pet.java index 7c84c3f22724..cbec5df04738 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Pet.java @@ -46,18 +46,23 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Pet { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; + @javax.annotation.Nullable private Category category; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; + @javax.annotation.Nonnull private Set photoUrls; public static final String JSON_PROPERTY_TAGS = "tags"; + @javax.annotation.Nullable private List tags; /** @@ -98,12 +103,13 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } - public Pet id(Long id) { + public Pet id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -125,11 +131,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@javax.annotation.Nullable Category category) { this.category = category; return this; @@ -151,11 +157,11 @@ public Category getCategory() { @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCategory(Category category) { + public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; } - public Pet name(String name) { + public Pet name(@javax.annotation.Nonnull String name) { this.name = name; return this; @@ -177,11 +183,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } - public Pet photoUrls(Set photoUrls) { + public Pet photoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; return this; @@ -212,11 +218,11 @@ public Set getPhotoUrls() { @JsonDeserialize(as = LinkedHashSet.class) @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPhotoUrls(Set photoUrls) { + public void setPhotoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; } - public Pet tags(List tags) { + public Pet tags(@javax.annotation.Nullable List tags) { this.tags = tags; return this; @@ -246,11 +252,11 @@ public List getTags() { @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTags(List tags) { + public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -272,7 +278,7 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index ee83f1c57eb2..8d4f260c9ac3 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -34,9 +34,11 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; + @javax.annotation.Nullable private String baz; public ReadOnlyFirst() { @@ -67,7 +69,7 @@ public String getBar() { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { this.baz = baz; return this; @@ -89,7 +91,7 @@ public String getBaz() { @JsonProperty(JSON_PROPERTY_BAZ) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBaz(String baz) { + public void setBaz(@javax.annotation.Nullable String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/SpecialModelName.java index 5e14f54b0dec..e9ae97269352 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -34,12 +34,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; + @javax.annotation.Nullable private Long $specialPropertyName; public SpecialModelName() { } - public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + public SpecialModelName $specialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; return this; @@ -61,7 +62,7 @@ public SpecialModelName() { @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void set$SpecialPropertyName(Long $specialPropertyName) { + public void set$SpecialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Tag.java index a7ad2df08db2..ad1f194e965e 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Tag.java @@ -34,15 +34,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Tag { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public Tag() { } - public Tag id(Long id) { + public Tag id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -64,11 +66,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -90,7 +92,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index 463eb7a609a7..125bf65dec57 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -36,13 +36,14 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class TestInlineFreeformAdditionalPropertiesRequest extends HashMap { public static final String JSON_PROPERTY_SOME_PROPERTY = "someProperty"; + @javax.annotation.Nullable private String someProperty; public TestInlineFreeformAdditionalPropertiesRequest() { } - public TestInlineFreeformAdditionalPropertiesRequest someProperty(String someProperty) { + public TestInlineFreeformAdditionalPropertiesRequest someProperty(@javax.annotation.Nullable String someProperty) { this.someProperty = someProperty; return this; @@ -64,7 +65,7 @@ public String getSomeProperty() { @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSomeProperty(String someProperty) { + public void setSomeProperty(@javax.annotation.Nullable String someProperty) { this.someProperty = someProperty; } diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/User.java index 17f4832b6da9..c95e7894589d 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/User.java @@ -40,33 +40,41 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class User { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; + @javax.annotation.Nullable private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; + @javax.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; + @javax.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; + @javax.annotation.Nullable private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; + @javax.annotation.Nullable private String password; public static final String JSON_PROPERTY_PHONE = "phone"; + @javax.annotation.Nullable private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; + @javax.annotation.Nullable private Integer userStatus; public User() { } - public User id(Long id) { + public User id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -88,11 +96,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@javax.annotation.Nullable String username) { this.username = username; return this; @@ -114,11 +122,11 @@ public String getUsername() { @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsername(String username) { + public void setUsername(@javax.annotation.Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; return this; @@ -140,11 +148,11 @@ public String getFirstName() { @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFirstName(String firstName) { + public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; return this; @@ -166,11 +174,11 @@ public String getLastName() { @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLastName(String lastName) { + public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@javax.annotation.Nullable String email) { this.email = email; return this; @@ -192,11 +200,11 @@ public String getEmail() { @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEmail(String email) { + public void setEmail(@javax.annotation.Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@javax.annotation.Nullable String password) { this.password = password; return this; @@ -218,11 +226,11 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@javax.annotation.Nullable String phone) { this.phone = phone; return this; @@ -244,11 +252,11 @@ public String getPhone() { @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPhone(String phone) { + public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; return this; @@ -270,7 +278,7 @@ public Integer getUserStatus() { @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 576a3bbcac5a..0ea5094292cf 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -35,15 +35,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_PROPERTY = "map_property"; + @javax.annotation.Nullable private Map mapProperty; public static final String JSON_PROPERTY_MAP_OF_MAP_PROPERTY = "map_of_map_property"; + @javax.annotation.Nullable private Map> mapOfMapProperty; public AdditionalPropertiesClass() { } - public AdditionalPropertiesClass mapProperty(Map mapProperty) { + public AdditionalPropertiesClass mapProperty(@javax.annotation.Nullable Map mapProperty) { this.mapProperty = mapProperty; return this; @@ -72,11 +74,11 @@ public Map getMapProperty() { @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapProperty(Map mapProperty) { + public void setMapProperty(@javax.annotation.Nullable Map mapProperty) { this.mapProperty = mapProperty; } - public AdditionalPropertiesClass mapOfMapProperty(Map> mapOfMapProperty) { + public AdditionalPropertiesClass mapOfMapProperty(@javax.annotation.Nullable Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; return this; @@ -105,7 +107,7 @@ public Map> getMapOfMapProperty() { @JsonProperty(JSON_PROPERTY_MAP_OF_MAP_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapOfMapProperty(Map> mapOfMapProperty) { + public void setMapOfMapProperty(@javax.annotation.Nullable Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java index 9f36b8d97bca..6321e51f3b99 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java @@ -34,15 +34,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AllOfWithSingleRef { public static final String JSON_PROPERTY_USERNAME = "username"; + @javax.annotation.Nullable private String username; public static final String JSON_PROPERTY_SINGLE_REF_TYPE = "SingleRefType"; + @javax.annotation.Nullable private SingleRefType singleRefType; public AllOfWithSingleRef() { } - public AllOfWithSingleRef username(String username) { + public AllOfWithSingleRef username(@javax.annotation.Nullable String username) { this.username = username; return this; @@ -63,11 +65,11 @@ public String getUsername() { @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsername(String username) { + public void setUsername(@javax.annotation.Nullable String username) { this.username = username; } - public AllOfWithSingleRef singleRefType(SingleRefType singleRefType) { + public AllOfWithSingleRef singleRefType(@javax.annotation.Nullable SingleRefType singleRefType) { this.singleRefType = singleRefType; return this; @@ -88,7 +90,7 @@ public SingleRefType getSingleRefType() { @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSingleRefType(SingleRefType singleRefType) { + public void setSingleRefType(@javax.annotation.Nullable SingleRefType singleRefType) { this.singleRefType = singleRefType; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Animal.java index 13951a8b1589..fb66712c5aef 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Animal.java @@ -46,15 +46,17 @@ public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; + @javax.annotation.Nonnull protected String className; public static final String JSON_PROPERTY_COLOR = "color"; + @javax.annotation.Nullable protected String color = "red"; public Animal() { } - public Animal className(String className) { + public Animal className(@javax.annotation.Nonnull String className) { this.className = className; return this; @@ -75,11 +77,11 @@ public String getClassName() { @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setClassName(String className) { + public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; } - public Animal color(String color) { + public Animal color(@javax.annotation.Nullable String color) { this.color = color; return this; @@ -100,7 +102,7 @@ public String getColor() { @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setColor(String color) { + public void setColor(@javax.annotation.Nullable String color) { this.color = color; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index b23ef978e3ef..0ebb3aec2add 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -36,12 +36,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayOfArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; + @javax.annotation.Nullable private List> arrayArrayNumber; public ArrayOfArrayOfNumberOnly() { } - public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + public ArrayOfArrayOfNumberOnly arrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; return this; @@ -70,7 +71,7 @@ public List> getArrayArrayNumber() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayNumber(List> arrayArrayNumber) { + public void setArrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index a24ec50aa873..90145cab0cd7 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -36,12 +36,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; + @javax.annotation.Nullable private List arrayNumber; public ArrayOfNumberOnly() { } - public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + public ArrayOfNumberOnly arrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; return this; @@ -70,7 +71,7 @@ public List getArrayNumber() { @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayNumber(List arrayNumber) { + public void setArrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ArrayTest.java index dd889ba37864..bb9b4b7f204d 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -38,18 +38,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; + @javax.annotation.Nullable private List arrayOfString; public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; + @javax.annotation.Nullable private List> arrayArrayOfInteger; public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; + @javax.annotation.Nullable private List> arrayArrayOfModel; public ArrayTest() { } - public ArrayTest arrayOfString(List arrayOfString) { + public ArrayTest arrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; return this; @@ -78,11 +81,11 @@ public List getArrayOfString() { @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayOfString(List arrayOfString) { + public void setArrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; } - public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + public ArrayTest arrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; return this; @@ -111,11 +114,11 @@ public List> getArrayArrayOfInteger() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { + public void setArrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } - public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + public ArrayTest arrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; return this; @@ -144,7 +147,7 @@ public List> getArrayArrayOfModel() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayOfModel(List> arrayArrayOfModel) { + public void setArrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Capitalization.java index 43c174eab6c0..9ba3cfe4c4fb 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Capitalization.java @@ -37,27 +37,33 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Capitalization { public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; + @javax.annotation.Nullable private String smallCamel; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; + @javax.annotation.Nullable private String capitalCamel; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; + @javax.annotation.Nullable private String smallSnake; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; + @javax.annotation.Nullable private String capitalSnake; public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; + @javax.annotation.Nullable private String scAETHFlowPoints; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; + @javax.annotation.Nullable private String ATT_NAME; public Capitalization() { } - public Capitalization smallCamel(String smallCamel) { + public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; return this; @@ -78,11 +84,11 @@ public String getSmallCamel() { @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmallCamel(String smallCamel) { + public void setSmallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; } - public Capitalization capitalCamel(String capitalCamel) { + public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; return this; @@ -103,11 +109,11 @@ public String getCapitalCamel() { @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCapitalCamel(String capitalCamel) { + public void setCapitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; } - public Capitalization smallSnake(String smallSnake) { + public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; return this; @@ -128,11 +134,11 @@ public String getSmallSnake() { @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmallSnake(String smallSnake) { + public void setSmallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; } - public Capitalization capitalSnake(String capitalSnake) { + public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; return this; @@ -153,11 +159,11 @@ public String getCapitalSnake() { @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCapitalSnake(String capitalSnake) { + public void setCapitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; } - public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; return this; @@ -178,11 +184,11 @@ public String getScAETHFlowPoints() { @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setScAETHFlowPoints(String scAETHFlowPoints) { + public void setScAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } - public Capitalization ATT_NAME(String ATT_NAME) { + public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; return this; @@ -203,7 +209,7 @@ public String getATTNAME() { @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setATTNAME(String ATT_NAME) { + public void setATTNAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Cat.java index a099c51138c2..df339e893802 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Cat.java @@ -42,13 +42,14 @@ public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; + @javax.annotation.Nullable private Boolean declawed; public Cat() { } - public Cat declawed(Boolean declawed) { + public Cat declawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; return this; @@ -69,18 +70,18 @@ public Boolean getDeclawed() { @JsonProperty(JSON_PROPERTY_DECLAWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; } @Override - public Cat className(String className) { + public Cat className(@javax.annotation.Nonnull String className) { this.setClassName(className); return this; } @Override - public Cat color(String color) { + public Cat color(@javax.annotation.Nullable String color) { this.setColor(color); return this; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Category.java index 332aa92b9bd9..0c4ede2fd662 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Category.java @@ -33,15 +33,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Category { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private String name = "default-name"; public Category() { } - public Category id(Long id) { + public Category id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -62,11 +64,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@javax.annotation.Nonnull String name) { this.name = name; return this; @@ -87,7 +89,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ChildWithNullable.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ChildWithNullable.java index 04b7c20b41b0..446d01ecf76b 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ChildWithNullable.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ChildWithNullable.java @@ -43,13 +43,14 @@ public class ChildWithNullable extends ParentWithNullable { public static final String JSON_PROPERTY_OTHER_PROPERTY = "otherProperty"; + @javax.annotation.Nullable private String otherProperty; public ChildWithNullable() { } - public ChildWithNullable otherProperty(String otherProperty) { + public ChildWithNullable otherProperty(@javax.annotation.Nullable String otherProperty) { this.otherProperty = otherProperty; return this; @@ -70,18 +71,18 @@ public String getOtherProperty() { @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOtherProperty(String otherProperty) { + public void setOtherProperty(@javax.annotation.Nullable String otherProperty) { this.otherProperty = otherProperty; } @Override - public ChildWithNullable type(TypeEnum type) { + public ChildWithNullable type(@javax.annotation.Nullable TypeEnum type) { this.setType(type); return this; } @Override - public ChildWithNullable nullableProperty(String nullableProperty) { + public ChildWithNullable nullableProperty(@javax.annotation.Nullable String nullableProperty) { this.setNullableProperty(nullableProperty); return this; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ClassModel.java index eba862847664..15f206254637 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ClassModel.java @@ -32,12 +32,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ClassModel { public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; + @javax.annotation.Nullable private String propertyClass; public ClassModel() { } - public ClassModel propertyClass(String propertyClass) { + public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; @@ -58,7 +59,7 @@ public String getPropertyClass() { @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Client.java index a5f5a56f08f3..f9d821e024b9 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Client.java @@ -32,12 +32,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Client { public static final String JSON_PROPERTY_CLIENT = "client"; + @javax.annotation.Nullable private String client; public Client() { } - public Client client(String client) { + public Client client(@javax.annotation.Nullable String client) { this.client = client; return this; @@ -58,7 +59,7 @@ public String getClient() { @JsonProperty(JSON_PROPERTY_CLIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setClient(String client) { + public void setClient(@javax.annotation.Nullable String client) { this.client = client; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/DeprecatedObject.java index 039c1e25a9af..06e876f70333 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -34,12 +34,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class DeprecatedObject { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public DeprecatedObject() { } - public DeprecatedObject name(String name) { + public DeprecatedObject name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -60,7 +61,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Dog.java index cf9d1537e128..8c5a24918453 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Dog.java @@ -42,13 +42,14 @@ public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; + @javax.annotation.Nullable private String breed; public Dog() { } - public Dog breed(String breed) { + public Dog breed(@javax.annotation.Nullable String breed) { this.breed = breed; return this; @@ -69,18 +70,18 @@ public String getBreed() { @JsonProperty(JSON_PROPERTY_BREED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBreed(String breed) { + public void setBreed(@javax.annotation.Nullable String breed) { this.breed = breed; } @Override - public Dog className(String className) { + public Dog className(@javax.annotation.Nonnull String className) { this.setClassName(className); return this; } @Override - public Dog color(String color) { + public Dog color(@javax.annotation.Nullable String color) { this.setColor(color); return this; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/EnumArrays.java index b7a769d48ac1..28414699788c 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -71,6 +71,7 @@ public static JustSymbolEnum fromValue(String value) { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** @@ -109,12 +110,13 @@ public static ArrayEnumEnum fromValue(String value) { } public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; + @javax.annotation.Nullable private List arrayEnum; public EnumArrays() { } - public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; @@ -135,11 +137,11 @@ public JustSymbolEnum getJustSymbol() { @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJustSymbol(JustSymbolEnum justSymbol) { + public void setJustSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } - public EnumArrays arrayEnum(List arrayEnum) { + public EnumArrays arrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; return this; @@ -168,7 +170,7 @@ public List getArrayEnum() { @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayEnum(List arrayEnum) { + public void setArrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/EnumTest.java index c84f2fa3fc8d..8523c6f30213 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/EnumTest.java @@ -85,6 +85,7 @@ public static EnumStringEnum fromValue(String value) { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; + @javax.annotation.Nullable private EnumStringEnum enumString; /** @@ -125,6 +126,7 @@ public static EnumStringRequiredEnum fromValue(String value) { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** @@ -163,6 +165,7 @@ public static EnumIntegerEnum fromValue(Integer value) { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** @@ -201,24 +204,29 @@ public static EnumNumberEnum fromValue(Double value) { } public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; + @javax.annotation.Nullable private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; + @javax.annotation.Nullable private JsonNullable outerEnum = JsonNullable.undefined(); public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER = "outerEnumInteger"; + @javax.annotation.Nullable private OuterEnumInteger outerEnumInteger; public static final String JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE = "outerEnumDefaultValue"; + @javax.annotation.Nullable private OuterEnumDefaultValue outerEnumDefaultValue = OuterEnumDefaultValue.PLACED; public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE = "outerEnumIntegerDefaultValue"; + @javax.annotation.Nullable private OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = OuterEnumIntegerDefaultValue.NUMBER_0; public EnumTest() { } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; @@ -239,11 +247,11 @@ public EnumStringEnum getEnumString() { @JsonProperty(JSON_PROPERTY_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumString(EnumStringEnum enumString) { + public void setEnumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; } - public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; return this; @@ -264,11 +272,11 @@ public EnumStringRequiredEnum getEnumStringRequired() { @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public void setEnumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; @@ -289,11 +297,11 @@ public EnumIntegerEnum getEnumInteger() { @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumInteger(EnumIntegerEnum enumInteger) { + public void setEnumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } - public EnumTest enumNumber(EnumNumberEnum enumNumber) { + public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; return this; @@ -314,11 +322,11 @@ public EnumNumberEnum getEnumNumber() { @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumNumber(EnumNumberEnum enumNumber) { + public void setEnumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } - public EnumTest outerEnum(OuterEnum outerEnum) { + public EnumTest outerEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = JsonNullable.of(outerEnum); return this; @@ -347,11 +355,11 @@ public void setOuterEnum_JsonNullable(JsonNullable outerEnum) { this.outerEnum = outerEnum; } - public void setOuterEnum(OuterEnum outerEnum) { + public void setOuterEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = JsonNullable.of(outerEnum); } - public EnumTest outerEnumInteger(OuterEnumInteger outerEnumInteger) { + public EnumTest outerEnumInteger(@javax.annotation.Nullable OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; return this; @@ -372,11 +380,11 @@ public OuterEnumInteger getOuterEnumInteger() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnumInteger(OuterEnumInteger outerEnumInteger) { + public void setOuterEnumInteger(@javax.annotation.Nullable OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; } - public EnumTest outerEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) { + public EnumTest outerEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; return this; @@ -397,11 +405,11 @@ public OuterEnumDefaultValue getOuterEnumDefaultValue() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) { + public void setOuterEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; } - public EnumTest outerEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { + public EnumTest outerEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; return this; @@ -422,7 +430,7 @@ public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { + public void setOuterEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java index 3107c84b5e86..5a67fa8d3f44 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java @@ -37,15 +37,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FakeBigDecimalMap200Response { public static final String JSON_PROPERTY_SOME_ID = "someId"; + @javax.annotation.Nullable private BigDecimal someId; public static final String JSON_PROPERTY_SOME_MAP = "someMap"; + @javax.annotation.Nullable private Map someMap; public FakeBigDecimalMap200Response() { } - public FakeBigDecimalMap200Response someId(BigDecimal someId) { + public FakeBigDecimalMap200Response someId(@javax.annotation.Nullable BigDecimal someId) { this.someId = someId; return this; @@ -66,11 +68,11 @@ public BigDecimal getSomeId() { @JsonProperty(JSON_PROPERTY_SOME_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSomeId(BigDecimal someId) { + public void setSomeId(@javax.annotation.Nullable BigDecimal someId) { this.someId = someId; } - public FakeBigDecimalMap200Response someMap(Map someMap) { + public FakeBigDecimalMap200Response someMap(@javax.annotation.Nullable Map someMap) { this.someMap = someMap; return this; @@ -99,7 +101,7 @@ public Map getSomeMap() { @JsonProperty(JSON_PROPERTY_SOME_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSomeMap(Map someMap) { + public void setSomeMap(@javax.annotation.Nullable Map someMap) { this.someMap = someMap; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 8d363212d275..6904d55eed49 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -37,15 +37,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; + @javax.annotation.Nullable private ModelFile _file; public static final String JSON_PROPERTY_FILES = "files"; + @javax.annotation.Nullable private List files; public FileSchemaTestClass() { } - public FileSchemaTestClass _file(ModelFile _file) { + public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { this._file = _file; return this; @@ -66,11 +68,11 @@ public ModelFile getFile() { @JsonProperty(JSON_PROPERTY_FILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFile(ModelFile _file) { + public void setFile(@javax.annotation.Nullable ModelFile _file) { this._file = _file; } - public FileSchemaTestClass files(List files) { + public FileSchemaTestClass files(@javax.annotation.Nullable List files) { this.files = files; return this; @@ -99,7 +101,7 @@ public List getFiles() { @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFiles(List files) { + public void setFiles(@javax.annotation.Nullable List files) { this.files = files; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Foo.java index 3e3df1d63980..9e0817d8bf5c 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Foo.java @@ -32,12 +32,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Foo { public static final String JSON_PROPERTY_BAR = "bar"; + @javax.annotation.Nullable private String bar = "bar"; public Foo() { } - public Foo bar(String bar) { + public Foo bar(@javax.annotation.Nullable String bar) { this.bar = bar; return this; @@ -58,7 +59,7 @@ public String getBar() { @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBar(String bar) { + public void setBar(@javax.annotation.Nullable String bar) { this.bar = bar; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index 30872bb849fd..8d9414f27c03 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -34,12 +34,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FooGetDefaultResponse { public static final String JSON_PROPERTY_STRING = "string"; + @javax.annotation.Nullable private Foo string; public FooGetDefaultResponse() { } - public FooGetDefaultResponse string(Foo string) { + public FooGetDefaultResponse string(@javax.annotation.Nullable Foo string) { this.string = string; return this; @@ -60,7 +61,7 @@ public Foo getString() { @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setString(Foo string) { + public void setString(@javax.annotation.Nullable Foo string) { this.string = string; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FormatTest.java index 18219a322118..ff191e88ec62 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FormatTest.java @@ -53,57 +53,73 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; + @javax.annotation.Nullable private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; + @javax.annotation.Nullable private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; + @javax.annotation.Nullable private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; + @javax.annotation.Nonnull private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; + @javax.annotation.Nullable private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; + @javax.annotation.Nullable private Double _double; public static final String JSON_PROPERTY_DECIMAL = "decimal"; + @javax.annotation.Nullable private BigDecimal decimal; public static final String JSON_PROPERTY_STRING = "string"; + @javax.annotation.Nullable private String string; public static final String JSON_PROPERTY_BYTE = "byte"; + @javax.annotation.Nonnull private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; + @javax.annotation.Nullable private File binary; public static final String JSON_PROPERTY_DATE = "date"; + @javax.annotation.Nonnull private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; + @javax.annotation.Nonnull private String password; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS = "pattern_with_digits"; + @javax.annotation.Nullable private String patternWithDigits; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER = "pattern_with_digits_and_delimiter"; + @javax.annotation.Nullable private String patternWithDigitsAndDelimiter; public FormatTest() { } - public FormatTest integer(Integer integer) { + public FormatTest integer(@javax.annotation.Nullable Integer integer) { this.integer = integer; return this; @@ -126,11 +142,11 @@ public Integer getInteger() { @JsonProperty(JSON_PROPERTY_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInteger(Integer integer) { + public void setInteger(@javax.annotation.Nullable Integer integer) { this.integer = integer; } - public FormatTest int32(Integer int32) { + public FormatTest int32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; return this; @@ -153,11 +169,11 @@ public Integer getInt32() { @JsonProperty(JSON_PROPERTY_INT32) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInt32(Integer int32) { + public void setInt32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; } - public FormatTest int64(Long int64) { + public FormatTest int64(@javax.annotation.Nullable Long int64) { this.int64 = int64; return this; @@ -178,11 +194,11 @@ public Long getInt64() { @JsonProperty(JSON_PROPERTY_INT64) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInt64(Long int64) { + public void setInt64(@javax.annotation.Nullable Long int64) { this.int64 = int64; } - public FormatTest number(BigDecimal number) { + public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { this.number = number; return this; @@ -205,11 +221,11 @@ public BigDecimal getNumber() { @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNumber(BigDecimal number) { + public void setNumber(@javax.annotation.Nonnull BigDecimal number) { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@javax.annotation.Nullable Float _float) { this._float = _float; return this; @@ -232,11 +248,11 @@ public Float getFloat() { @JsonProperty(JSON_PROPERTY_FLOAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFloat(Float _float) { + public void setFloat(@javax.annotation.Nullable Float _float) { this._float = _float; } - public FormatTest _double(Double _double) { + public FormatTest _double(@javax.annotation.Nullable Double _double) { this._double = _double; return this; @@ -259,11 +275,11 @@ public Double getDouble() { @JsonProperty(JSON_PROPERTY_DOUBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDouble(Double _double) { + public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; } - public FormatTest decimal(BigDecimal decimal) { + public FormatTest decimal(@javax.annotation.Nullable BigDecimal decimal) { this.decimal = decimal; return this; @@ -284,11 +300,11 @@ public BigDecimal getDecimal() { @JsonProperty(JSON_PROPERTY_DECIMAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDecimal(BigDecimal decimal) { + public void setDecimal(@javax.annotation.Nullable BigDecimal decimal) { this.decimal = decimal; } - public FormatTest string(String string) { + public FormatTest string(@javax.annotation.Nullable String string) { this.string = string; return this; @@ -309,11 +325,11 @@ public String getString() { @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setString(String string) { + public void setString(@javax.annotation.Nullable String string) { this.string = string; } - public FormatTest _byte(byte[] _byte) { + public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; return this; @@ -334,11 +350,11 @@ public byte[] getByte() { @JsonProperty(JSON_PROPERTY_BYTE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setByte(byte[] _byte) { + public void setByte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; } - public FormatTest binary(File binary) { + public FormatTest binary(@javax.annotation.Nullable File binary) { this.binary = binary; return this; @@ -359,11 +375,11 @@ public File getBinary() { @JsonProperty(JSON_PROPERTY_BINARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBinary(File binary) { + public void setBinary(@javax.annotation.Nullable File binary) { this.binary = binary; } - public FormatTest date(LocalDate date) { + public FormatTest date(@javax.annotation.Nonnull LocalDate date) { this.date = date; return this; @@ -384,11 +400,11 @@ public LocalDate getDate() { @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDate(LocalDate date) { + public void setDate(@javax.annotation.Nonnull LocalDate date) { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; @@ -409,11 +425,11 @@ public OffsetDateTime getDateTime() { @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public FormatTest uuid(UUID uuid) { + public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; @@ -434,11 +450,11 @@ public UUID getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(UUID uuid) { + public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public FormatTest password(String password) { + public FormatTest password(@javax.annotation.Nonnull String password) { this.password = password; return this; @@ -459,11 +475,11 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nonnull String password) { this.password = password; } - public FormatTest patternWithDigits(String patternWithDigits) { + public FormatTest patternWithDigits(@javax.annotation.Nullable String patternWithDigits) { this.patternWithDigits = patternWithDigits; return this; @@ -484,11 +500,11 @@ public String getPatternWithDigits() { @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPatternWithDigits(String patternWithDigits) { + public void setPatternWithDigits(@javax.annotation.Nullable String patternWithDigits) { this.patternWithDigits = patternWithDigits; } - public FormatTest patternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) { + public FormatTest patternWithDigitsAndDelimiter(@javax.annotation.Nullable String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; return this; @@ -509,7 +525,7 @@ public String getPatternWithDigitsAndDelimiter() { @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPatternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) { + public void setPatternWithDigitsAndDelimiter(@javax.annotation.Nullable String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 89f9de6d3d41..ce79f11f55ac 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -34,9 +34,11 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_FOO = "foo"; + @javax.annotation.Nullable private String foo; public HasOnlyReadOnly() { diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/HealthCheckResult.java index 5e4657caa32e..62d2287cab62 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -36,12 +36,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class HealthCheckResult { public static final String JSON_PROPERTY_NULLABLE_MESSAGE = "NullableMessage"; + @javax.annotation.Nullable private JsonNullable nullableMessage = JsonNullable.undefined(); public HealthCheckResult() { } - public HealthCheckResult nullableMessage(String nullableMessage) { + public HealthCheckResult nullableMessage(@javax.annotation.Nullable String nullableMessage) { this.nullableMessage = JsonNullable.of(nullableMessage); return this; @@ -70,7 +71,7 @@ public void setNullableMessage_JsonNullable(JsonNullable nullableMessage this.nullableMessage = nullableMessage; } - public void setNullableMessage(String nullableMessage) { + public void setNullableMessage(@javax.annotation.Nullable String nullableMessage) { this.nullableMessage = JsonNullable.of(nullableMessage); } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/MapTest.java index ca983868458a..a2502bcc10c6 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/MapTest.java @@ -37,6 +37,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; + @javax.annotation.Nullable private Map> mapMapOfString; /** @@ -75,18 +76,21 @@ public static InnerEnum fromValue(String value) { } public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; + @javax.annotation.Nullable private Map mapOfEnumString; public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; + @javax.annotation.Nullable private Map directMap; public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; + @javax.annotation.Nullable private Map indirectMap; public MapTest() { } - public MapTest mapMapOfString(Map> mapMapOfString) { + public MapTest mapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; return this; @@ -115,11 +119,11 @@ public Map> getMapMapOfString() { @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapMapOfString(Map> mapMapOfString) { + public void setMapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } - public MapTest mapOfEnumString(Map mapOfEnumString) { + public MapTest mapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; return this; @@ -148,11 +152,11 @@ public Map getMapOfEnumString() { @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapOfEnumString(Map mapOfEnumString) { + public void setMapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } - public MapTest directMap(Map directMap) { + public MapTest directMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; return this; @@ -181,11 +185,11 @@ public Map getDirectMap() { @JsonProperty(JSON_PROPERTY_DIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDirectMap(Map directMap) { + public void setDirectMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; } - public MapTest indirectMap(Map indirectMap) { + public MapTest indirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; return this; @@ -214,7 +218,7 @@ public Map getIndirectMap() { @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIndirectMap(Map indirectMap) { + public void setIndirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 47c7da6b695e..4f7053328634 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -39,18 +39,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; + @javax.annotation.Nullable private Map map; public MixedPropertiesAndAdditionalPropertiesClass() { } - public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; @@ -71,11 +74,11 @@ public UUID getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(UUID uuid) { + public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; @@ -96,11 +99,11 @@ public OffsetDateTime getDateTime() { @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + public MixedPropertiesAndAdditionalPropertiesClass map(@javax.annotation.Nullable Map map) { this.map = map; return this; @@ -129,7 +132,7 @@ public Map getMap() { @JsonProperty(JSON_PROPERTY_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMap(Map map) { + public void setMap(@javax.annotation.Nullable Map map) { this.map = map; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Model200Response.java index 9dd501519d94..81203bc5fec5 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Model200Response.java @@ -34,15 +34,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; + @javax.annotation.Nullable private String propertyClass; public Model200Response() { } - public Model200Response name(Integer name) { + public Model200Response name(@javax.annotation.Nullable Integer name) { this.name = name; return this; @@ -63,11 +65,11 @@ public Integer getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(Integer name) { + public void setName(@javax.annotation.Nullable Integer name) { this.name = name; } - public Model200Response propertyClass(String propertyClass) { + public Model200Response propertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; @@ -88,7 +90,7 @@ public String getPropertyClass() { @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 06f950e61809..8295041ee48a 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -35,18 +35,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nullable private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nullable private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; + @javax.annotation.Nullable private String message; public ModelApiResponse() { } - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@javax.annotation.Nullable Integer code) { this.code = code; return this; @@ -67,11 +70,11 @@ public Integer getCode() { @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCode(Integer code) { + public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@javax.annotation.Nullable String type) { this.type = type; return this; @@ -92,11 +95,11 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { + public void setType(@javax.annotation.Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@javax.annotation.Nullable String message) { this.message = message; return this; @@ -117,7 +120,7 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelFile.java index c57b589f9a93..5d4793a2e437 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelFile.java @@ -33,12 +33,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelFile { public static final String JSON_PROPERTY_SOURCE_U_R_I = "sourceURI"; + @javax.annotation.Nullable private String sourceURI; public ModelFile() { } - public ModelFile sourceURI(String sourceURI) { + public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; return this; @@ -59,7 +60,7 @@ public String getSourceURI() { @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSourceURI(String sourceURI) { + public void setSourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelList.java index 3dc09aa2be76..02dcc4b37e64 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelList.java @@ -33,12 +33,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelList { public static final String JSON_PROPERTY_123LIST = "123-list"; + @javax.annotation.Nullable private String _123list; public ModelList() { } - public ModelList _123list(String _123list) { + public ModelList _123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; return this; @@ -59,7 +60,7 @@ public String get123list() { @JsonProperty(JSON_PROPERTY_123LIST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void set123list(String _123list) { + public void set123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelReturn.java index 2d5696ac318a..d38260eee6db 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -33,12 +33,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; + @javax.annotation.Nullable private Integer _return; public ModelReturn() { } - public ModelReturn _return(Integer _return) { + public ModelReturn _return(@javax.annotation.Nullable Integer _return) { this._return = _return; return this; @@ -59,7 +60,7 @@ public Integer getReturn() { @JsonProperty(JSON_PROPERTY_RETURN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setReturn(Integer _return) { + public void setReturn(@javax.annotation.Nullable Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Name.java index a45307c099a0..c94d16233849 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Name.java @@ -35,15 +35,19 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Name { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; + @javax.annotation.Nullable private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; + @javax.annotation.Nullable private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; + @javax.annotation.Nullable private Integer _123number; public Name() { @@ -61,7 +65,7 @@ public Name( this._123number = _123number; } - public Name name(Integer name) { + public Name name(@javax.annotation.Nonnull Integer name) { this.name = name; return this; @@ -82,7 +86,7 @@ public Integer getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(Integer name) { + public void setName(@javax.annotation.Nonnull Integer name) { this.name = name; } @@ -100,7 +104,7 @@ public Integer getSnakeCase() { - public Name property(String property) { + public Name property(@javax.annotation.Nullable String property) { this.property = property; return this; @@ -121,7 +125,7 @@ public String getProperty() { @JsonProperty(JSON_PROPERTY_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProperty(String property) { + public void setProperty(@javax.annotation.Nullable String property) { this.property = property; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/NullableClass.java index 9bdf47f25d69..48b5e2c5ed8e 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/NullableClass.java @@ -55,46 +55,58 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class NullableClass extends HashMap { public static final String JSON_PROPERTY_INTEGER_PROP = "integer_prop"; + @javax.annotation.Nullable private JsonNullable integerProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_NUMBER_PROP = "number_prop"; + @javax.annotation.Nullable private JsonNullable numberProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_BOOLEAN_PROP = "boolean_prop"; + @javax.annotation.Nullable private JsonNullable booleanProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_STRING_PROP = "string_prop"; + @javax.annotation.Nullable private JsonNullable stringProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_DATE_PROP = "date_prop"; + @javax.annotation.Nullable private JsonNullable dateProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_DATETIME_PROP = "datetime_prop"; + @javax.annotation.Nullable private JsonNullable datetimeProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_ARRAY_NULLABLE_PROP = "array_nullable_prop"; + @javax.annotation.Nullable private JsonNullable> arrayNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP = "array_and_items_nullable_prop"; + @javax.annotation.Nullable private JsonNullable> arrayAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_ITEMS_NULLABLE = "array_items_nullable"; + @javax.annotation.Nullable private List arrayItemsNullable; public static final String JSON_PROPERTY_OBJECT_NULLABLE_PROP = "object_nullable_prop"; + @javax.annotation.Nullable private JsonNullable> objectNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP = "object_and_items_nullable_prop"; + @javax.annotation.Nullable private JsonNullable> objectAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_OBJECT_ITEMS_NULLABLE = "object_items_nullable"; + @javax.annotation.Nullable private Map objectItemsNullable; public NullableClass() { } - public NullableClass integerProp(Integer integerProp) { + public NullableClass integerProp(@javax.annotation.Nullable Integer integerProp) { this.integerProp = JsonNullable.of(integerProp); return this; @@ -123,11 +135,11 @@ public void setIntegerProp_JsonNullable(JsonNullable integerProp) { this.integerProp = integerProp; } - public void setIntegerProp(Integer integerProp) { + public void setIntegerProp(@javax.annotation.Nullable Integer integerProp) { this.integerProp = JsonNullable.of(integerProp); } - public NullableClass numberProp(BigDecimal numberProp) { + public NullableClass numberProp(@javax.annotation.Nullable BigDecimal numberProp) { this.numberProp = JsonNullable.of(numberProp); return this; @@ -156,11 +168,11 @@ public void setNumberProp_JsonNullable(JsonNullable numberProp) { this.numberProp = numberProp; } - public void setNumberProp(BigDecimal numberProp) { + public void setNumberProp(@javax.annotation.Nullable BigDecimal numberProp) { this.numberProp = JsonNullable.of(numberProp); } - public NullableClass booleanProp(Boolean booleanProp) { + public NullableClass booleanProp(@javax.annotation.Nullable Boolean booleanProp) { this.booleanProp = JsonNullable.of(booleanProp); return this; @@ -189,11 +201,11 @@ public void setBooleanProp_JsonNullable(JsonNullable booleanProp) { this.booleanProp = booleanProp; } - public void setBooleanProp(Boolean booleanProp) { + public void setBooleanProp(@javax.annotation.Nullable Boolean booleanProp) { this.booleanProp = JsonNullable.of(booleanProp); } - public NullableClass stringProp(String stringProp) { + public NullableClass stringProp(@javax.annotation.Nullable String stringProp) { this.stringProp = JsonNullable.of(stringProp); return this; @@ -222,11 +234,11 @@ public void setStringProp_JsonNullable(JsonNullable stringProp) { this.stringProp = stringProp; } - public void setStringProp(String stringProp) { + public void setStringProp(@javax.annotation.Nullable String stringProp) { this.stringProp = JsonNullable.of(stringProp); } - public NullableClass dateProp(LocalDate dateProp) { + public NullableClass dateProp(@javax.annotation.Nullable LocalDate dateProp) { this.dateProp = JsonNullable.of(dateProp); return this; @@ -255,11 +267,11 @@ public void setDateProp_JsonNullable(JsonNullable dateProp) { this.dateProp = dateProp; } - public void setDateProp(LocalDate dateProp) { + public void setDateProp(@javax.annotation.Nullable LocalDate dateProp) { this.dateProp = JsonNullable.of(dateProp); } - public NullableClass datetimeProp(OffsetDateTime datetimeProp) { + public NullableClass datetimeProp(@javax.annotation.Nullable OffsetDateTime datetimeProp) { this.datetimeProp = JsonNullable.of(datetimeProp); return this; @@ -288,11 +300,11 @@ public void setDatetimeProp_JsonNullable(JsonNullable datetimePr this.datetimeProp = datetimeProp; } - public void setDatetimeProp(OffsetDateTime datetimeProp) { + public void setDatetimeProp(@javax.annotation.Nullable OffsetDateTime datetimeProp) { this.datetimeProp = JsonNullable.of(datetimeProp); } - public NullableClass arrayNullableProp(List arrayNullableProp) { + public NullableClass arrayNullableProp(@javax.annotation.Nullable List arrayNullableProp) { this.arrayNullableProp = JsonNullable.>of(arrayNullableProp); return this; @@ -333,11 +345,11 @@ public void setArrayNullableProp_JsonNullable(JsonNullable> arrayNu this.arrayNullableProp = arrayNullableProp; } - public void setArrayNullableProp(List arrayNullableProp) { + public void setArrayNullableProp(@javax.annotation.Nullable List arrayNullableProp) { this.arrayNullableProp = JsonNullable.>of(arrayNullableProp); } - public NullableClass arrayAndItemsNullableProp(List arrayAndItemsNullableProp) { + public NullableClass arrayAndItemsNullableProp(@javax.annotation.Nullable List arrayAndItemsNullableProp) { this.arrayAndItemsNullableProp = JsonNullable.>of(arrayAndItemsNullableProp); return this; @@ -378,11 +390,11 @@ public void setArrayAndItemsNullableProp_JsonNullable(JsonNullable> this.arrayAndItemsNullableProp = arrayAndItemsNullableProp; } - public void setArrayAndItemsNullableProp(List arrayAndItemsNullableProp) { + public void setArrayAndItemsNullableProp(@javax.annotation.Nullable List arrayAndItemsNullableProp) { this.arrayAndItemsNullableProp = JsonNullable.>of(arrayAndItemsNullableProp); } - public NullableClass arrayItemsNullable(List arrayItemsNullable) { + public NullableClass arrayItemsNullable(@javax.annotation.Nullable List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; return this; @@ -411,11 +423,11 @@ public List getArrayItemsNullable() { @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayItemsNullable(List arrayItemsNullable) { + public void setArrayItemsNullable(@javax.annotation.Nullable List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; } - public NullableClass objectNullableProp(Map objectNullableProp) { + public NullableClass objectNullableProp(@javax.annotation.Nullable Map objectNullableProp) { this.objectNullableProp = JsonNullable.>of(objectNullableProp); return this; @@ -456,11 +468,11 @@ public void setObjectNullableProp_JsonNullable(JsonNullable> this.objectNullableProp = objectNullableProp; } - public void setObjectNullableProp(Map objectNullableProp) { + public void setObjectNullableProp(@javax.annotation.Nullable Map objectNullableProp) { this.objectNullableProp = JsonNullable.>of(objectNullableProp); } - public NullableClass objectAndItemsNullableProp(Map objectAndItemsNullableProp) { + public NullableClass objectAndItemsNullableProp(@javax.annotation.Nullable Map objectAndItemsNullableProp) { this.objectAndItemsNullableProp = JsonNullable.>of(objectAndItemsNullableProp); return this; @@ -501,11 +513,11 @@ public void setObjectAndItemsNullableProp_JsonNullable(JsonNullable objectAndItemsNullableProp) { + public void setObjectAndItemsNullableProp(@javax.annotation.Nullable Map objectAndItemsNullableProp) { this.objectAndItemsNullableProp = JsonNullable.>of(objectAndItemsNullableProp); } - public NullableClass objectItemsNullable(Map objectItemsNullable) { + public NullableClass objectItemsNullable(@javax.annotation.Nullable Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; return this; @@ -534,7 +546,7 @@ public Map getObjectItemsNullable() { @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setObjectItemsNullable(Map objectItemsNullable) { + public void setObjectItemsNullable(@javax.annotation.Nullable Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/NumberOnly.java index ba7b026b3f6e..43f6d3fa6a62 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -33,12 +33,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; + @javax.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } - public NumberOnly justNumber(BigDecimal justNumber) { + public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; @@ -59,7 +60,7 @@ public BigDecimal getJustNumber() { @JsonProperty(JSON_PROPERTY_JUST_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJustNumber(BigDecimal justNumber) { + public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index 9eed5e7ca52c..5534394e697f 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -40,21 +40,25 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ObjectWithDeprecatedFields { public static final String JSON_PROPERTY_UUID = "uuid"; + @javax.annotation.Nullable private String uuid; public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private BigDecimal id; public static final String JSON_PROPERTY_DEPRECATED_REF = "deprecatedRef"; + @javax.annotation.Nullable private DeprecatedObject deprecatedRef; public static final String JSON_PROPERTY_BARS = "bars"; + @javax.annotation.Nullable private List bars; public ObjectWithDeprecatedFields() { } - public ObjectWithDeprecatedFields uuid(String uuid) { + public ObjectWithDeprecatedFields uuid(@javax.annotation.Nullable String uuid) { this.uuid = uuid; return this; @@ -75,11 +79,11 @@ public String getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(String uuid) { + public void setUuid(@javax.annotation.Nullable String uuid) { this.uuid = uuid; } - public ObjectWithDeprecatedFields id(BigDecimal id) { + public ObjectWithDeprecatedFields id(@javax.annotation.Nullable BigDecimal id) { this.id = id; return this; @@ -102,11 +106,11 @@ public BigDecimal getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(BigDecimal id) { + public void setId(@javax.annotation.Nullable BigDecimal id) { this.id = id; } - public ObjectWithDeprecatedFields deprecatedRef(DeprecatedObject deprecatedRef) { + public ObjectWithDeprecatedFields deprecatedRef(@javax.annotation.Nullable DeprecatedObject deprecatedRef) { this.deprecatedRef = deprecatedRef; return this; @@ -129,11 +133,11 @@ public DeprecatedObject getDeprecatedRef() { @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeprecatedRef(DeprecatedObject deprecatedRef) { + public void setDeprecatedRef(@javax.annotation.Nullable DeprecatedObject deprecatedRef) { this.deprecatedRef = deprecatedRef; } - public ObjectWithDeprecatedFields bars(List bars) { + public ObjectWithDeprecatedFields bars(@javax.annotation.Nullable List bars) { this.bars = bars; return this; @@ -164,7 +168,7 @@ public List getBars() { @JsonProperty(JSON_PROPERTY_BARS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBars(List bars) { + public void setBars(@javax.annotation.Nullable List bars) { this.bars = bars; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Order.java index 31a2cd4aada5..7915f35bce17 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Order.java @@ -38,15 +38,19 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Order { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; + @javax.annotation.Nullable private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; + @javax.annotation.Nullable private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; + @javax.annotation.Nullable private OffsetDateTime shipDate; /** @@ -87,15 +91,17 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @javax.annotation.Nullable private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; + @javax.annotation.Nullable private Boolean complete = false; public Order() { } - public Order id(Long id) { + public Order id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -116,11 +122,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@javax.annotation.Nullable Long petId) { this.petId = petId; return this; @@ -141,11 +147,11 @@ public Long getPetId() { @JsonProperty(JSON_PROPERTY_PET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPetId(Long petId) { + public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; return this; @@ -166,11 +172,11 @@ public Integer getQuantity() { @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setQuantity(Integer quantity) { + public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; @@ -191,11 +197,11 @@ public OffsetDateTime getShipDate() { @JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -216,11 +222,11 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } - public Order complete(Boolean complete) { + public Order complete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; return this; @@ -241,7 +247,7 @@ public Boolean getComplete() { @JsonProperty(JSON_PROPERTY_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setComplete(Boolean complete) { + public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/OuterComposite.java index 37a130288c84..0134a6b50570 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -35,18 +35,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; + @javax.annotation.Nullable private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; + @javax.annotation.Nullable private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; + @javax.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } - public OuterComposite myNumber(BigDecimal myNumber) { + public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; @@ -67,11 +70,11 @@ public BigDecimal getMyNumber() { @JsonProperty(JSON_PROPERTY_MY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyNumber(BigDecimal myNumber) { + public void setMyNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; } - public OuterComposite myString(String myString) { + public OuterComposite myString(@javax.annotation.Nullable String myString) { this.myString = myString; return this; @@ -92,11 +95,11 @@ public String getMyString() { @JsonProperty(JSON_PROPERTY_MY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyString(String myString) { + public void setMyString(@javax.annotation.Nullable String myString) { this.myString = myString; } - public OuterComposite myBoolean(Boolean myBoolean) { + public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; return this; @@ -117,7 +120,7 @@ public Boolean getMyBoolean() { @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyBoolean(Boolean myBoolean) { + public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java index bdb4f1ae63ac..f58d0e4d1b52 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java @@ -33,12 +33,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class OuterObjectWithEnumProperty { public static final String JSON_PROPERTY_VALUE = "value"; + @javax.annotation.Nonnull private OuterEnumInteger value; public OuterObjectWithEnumProperty() { } - public OuterObjectWithEnumProperty value(OuterEnumInteger value) { + public OuterObjectWithEnumProperty value(@javax.annotation.Nonnull OuterEnumInteger value) { this.value = value; return this; @@ -59,7 +60,7 @@ public OuterEnumInteger getValue() { @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setValue(OuterEnumInteger value) { + public void setValue(@javax.annotation.Nonnull OuterEnumInteger value) { this.value = value; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ParentWithNullable.java index 6bf509ced477..77bba0f4f9f7 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -82,15 +82,17 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nullable protected TypeEnum type; public static final String JSON_PROPERTY_NULLABLE_PROPERTY = "nullableProperty"; + @javax.annotation.Nullable protected JsonNullable nullableProperty = JsonNullable.undefined(); public ParentWithNullable() { } - public ParentWithNullable type(TypeEnum type) { + public ParentWithNullable type(@javax.annotation.Nullable TypeEnum type) { this.type = type; return this; @@ -111,11 +113,11 @@ public TypeEnum getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(TypeEnum type) { + public void setType(@javax.annotation.Nullable TypeEnum type) { this.type = type; } - public ParentWithNullable nullableProperty(String nullableProperty) { + public ParentWithNullable nullableProperty(@javax.annotation.Nullable String nullableProperty) { this.nullableProperty = JsonNullable.of(nullableProperty); return this; @@ -144,7 +146,7 @@ public void setNullableProperty_JsonNullable(JsonNullable nullableProper this.nullableProperty = nullableProperty; } - public void setNullableProperty(String nullableProperty) { + public void setNullableProperty(@javax.annotation.Nullable String nullableProperty) { this.nullableProperty = JsonNullable.of(nullableProperty); } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Pet.java index bfa8973e6404..25eb95c943ee 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Pet.java @@ -45,18 +45,23 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Pet { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; + @javax.annotation.Nullable private Category category; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; + @javax.annotation.Nonnull private Set photoUrls; public static final String JSON_PROPERTY_TAGS = "tags"; + @javax.annotation.Nullable private List tags; /** @@ -97,12 +102,13 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } - public Pet id(Long id) { + public Pet id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -123,11 +129,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@javax.annotation.Nullable Category category) { this.category = category; return this; @@ -148,11 +154,11 @@ public Category getCategory() { @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCategory(Category category) { + public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; } - public Pet name(String name) { + public Pet name(@javax.annotation.Nonnull String name) { this.name = name; return this; @@ -173,11 +179,11 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } - public Pet photoUrls(Set photoUrls) { + public Pet photoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; return this; @@ -207,11 +213,11 @@ public Set getPhotoUrls() { @JsonDeserialize(as = LinkedHashSet.class) @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPhotoUrls(Set photoUrls) { + public void setPhotoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; } - public Pet tags(List tags) { + public Pet tags(@javax.annotation.Nullable List tags) { this.tags = tags; return this; @@ -240,11 +246,11 @@ public List getTags() { @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTags(List tags) { + public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; @@ -265,7 +271,7 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 0b012bd9c77d..b614b554c64a 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -33,9 +33,11 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; + @javax.annotation.Nullable private String baz; public ReadOnlyFirst() { @@ -65,7 +67,7 @@ public String getBar() { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { this.baz = baz; return this; @@ -86,7 +88,7 @@ public String getBaz() { @JsonProperty(JSON_PROPERTY_BAZ) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBaz(String baz) { + public void setBaz(@javax.annotation.Nullable String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/SpecialModelName.java index 064dcaec6b3f..2a0efc78ce44 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -33,12 +33,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; + @javax.annotation.Nullable private Long $specialPropertyName; public SpecialModelName() { } - public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + public SpecialModelName $specialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; return this; @@ -59,7 +60,7 @@ public SpecialModelName() { @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void set$SpecialPropertyName(Long $specialPropertyName) { + public void set$SpecialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Tag.java index 79472451f59a..17cd5fa1190b 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Tag.java @@ -33,15 +33,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Tag { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public Tag() { } - public Tag id(Long id) { + public Tag id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -62,11 +64,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@javax.annotation.Nullable String name) { this.name = name; return this; @@ -87,7 +89,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index d337286892a1..ddb16eb2f19f 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -35,13 +35,14 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class TestInlineFreeformAdditionalPropertiesRequest extends HashMap { public static final String JSON_PROPERTY_SOME_PROPERTY = "someProperty"; + @javax.annotation.Nullable private String someProperty; public TestInlineFreeformAdditionalPropertiesRequest() { } - public TestInlineFreeformAdditionalPropertiesRequest someProperty(String someProperty) { + public TestInlineFreeformAdditionalPropertiesRequest someProperty(@javax.annotation.Nullable String someProperty) { this.someProperty = someProperty; return this; @@ -62,7 +63,7 @@ public String getSomeProperty() { @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSomeProperty(String someProperty) { + public void setSomeProperty(@javax.annotation.Nullable String someProperty) { this.someProperty = someProperty; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/User.java index e6af180ceff6..26008e500259 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/User.java @@ -39,33 +39,41 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class User { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; + @javax.annotation.Nullable private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; + @javax.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; + @javax.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; + @javax.annotation.Nullable private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; + @javax.annotation.Nullable private String password; public static final String JSON_PROPERTY_PHONE = "phone"; + @javax.annotation.Nullable private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; + @javax.annotation.Nullable private Integer userStatus; public User() { } - public User id(Long id) { + public User id(@javax.annotation.Nullable Long id) { this.id = id; return this; @@ -86,11 +94,11 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@javax.annotation.Nullable String username) { this.username = username; return this; @@ -111,11 +119,11 @@ public String getUsername() { @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsername(String username) { + public void setUsername(@javax.annotation.Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; return this; @@ -136,11 +144,11 @@ public String getFirstName() { @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFirstName(String firstName) { + public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; return this; @@ -161,11 +169,11 @@ public String getLastName() { @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLastName(String lastName) { + public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@javax.annotation.Nullable String email) { this.email = email; return this; @@ -186,11 +194,11 @@ public String getEmail() { @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEmail(String email) { + public void setEmail(@javax.annotation.Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@javax.annotation.Nullable String password) { this.password = password; return this; @@ -211,11 +219,11 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@javax.annotation.Nullable String phone) { this.phone = phone; return this; @@ -236,11 +244,11 @@ public String getPhone() { @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPhone(String phone) { + public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; return this; @@ -261,7 +269,7 @@ public Integer getUserStatus() { @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/model/ChildSchema.java b/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/model/ChildSchema.java index 9f0f5d9d1b64..b6fe6e654159 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/model/ChildSchema.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/model/ChildSchema.java @@ -49,12 +49,13 @@ public class ChildSchema extends Parent { public static final String JSON_PROPERTY_PROP1 = "prop1"; + @javax.annotation.Nullable private String prop1; public ChildSchema() { } - public ChildSchema prop1(String prop1) { + public ChildSchema prop1(@javax.annotation.Nullable String prop1) { this.prop1 = prop1; return this; } @@ -74,7 +75,7 @@ public String getProp1() { @JsonProperty(JSON_PROPERTY_PROP1) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProp1(String prop1) { + public void setProp1(@javax.annotation.Nullable String prop1) { this.prop1 = prop1; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/model/MySchemaNameCharacters.java b/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/model/MySchemaNameCharacters.java index 3169817175bb..0016b9621b15 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/model/MySchemaNameCharacters.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/model/MySchemaNameCharacters.java @@ -50,12 +50,13 @@ public class MySchemaNameCharacters extends Parent { public static final String JSON_PROPERTY_PROP2 = "prop2"; + @javax.annotation.Nullable private String prop2; public MySchemaNameCharacters() { } - public MySchemaNameCharacters prop2(String prop2) { + public MySchemaNameCharacters prop2(@javax.annotation.Nullable String prop2) { this.prop2 = prop2; return this; } @@ -75,7 +76,7 @@ public String getProp2() { @JsonProperty(JSON_PROPERTY_PROP2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProp2(String prop2) { + public void setProp2(@javax.annotation.Nullable String prop2) { this.prop2 = prop2; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/model/Parent.java b/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/model/Parent.java index e0e7045e64fc..bedc3e3a021d 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/model/Parent.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/model/Parent.java @@ -48,12 +48,13 @@ public class Parent { public static final String JSON_PROPERTY_OBJECT_TYPE = "objectType"; + @javax.annotation.Nullable private String objectType; public Parent() { } - public Parent objectType(String objectType) { + public Parent objectType(@javax.annotation.Nullable String objectType) { this.objectType = objectType; return this; } @@ -73,7 +74,7 @@ public String getObjectType() { @JsonProperty(JSON_PROPERTY_OBJECT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setObjectType(String objectType) { + public void setObjectType(@javax.annotation.Nullable String objectType) { this.objectType = objectType; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/Category.java b/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/Category.java index 24d085d1f95f..85bee488c7d0 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/Category.java @@ -39,15 +39,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Category { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public Category() { } - public Category id(Long id) { + public Category id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -68,12 +70,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -94,7 +96,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 56ec09d89e01..c2e1e9af6103 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -41,18 +41,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nullable private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nullable private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; + @javax.annotation.Nullable private String message; public ModelApiResponse() { } - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@javax.annotation.Nullable Integer code) { this.code = code; return this; } @@ -73,12 +76,12 @@ public Integer getCode() { @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCode(Integer code) { + public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@javax.annotation.Nullable String type) { this.type = type; return this; } @@ -99,12 +102,12 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { + public void setType(@javax.annotation.Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@javax.annotation.Nullable String message) { this.message = message; return this; } @@ -125,7 +128,7 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/Order.java b/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/Order.java index 6a93895caf43..cdaab746fd78 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/Order.java @@ -44,15 +44,19 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Order { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; + @javax.annotation.Nullable private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; + @javax.annotation.Nullable private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; + @javax.annotation.Nullable private OffsetDateTime shipDate; /** @@ -93,15 +97,17 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @javax.annotation.Nullable private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; + @javax.annotation.Nullable private Boolean complete = false; public Order() { } - public Order id(Long id) { + public Order id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -122,12 +128,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@javax.annotation.Nullable Long petId) { this.petId = petId; return this; } @@ -148,12 +154,12 @@ public Long getPetId() { @JsonProperty(JSON_PROPERTY_PET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPetId(Long petId) { + public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -174,12 +180,12 @@ public Integer getQuantity() { @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setQuantity(Integer quantity) { + public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -200,12 +206,12 @@ public OffsetDateTime getShipDate() { @JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; } @@ -226,12 +232,12 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } - public Order complete(Boolean complete) { + public Order complete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; return this; } @@ -252,7 +258,7 @@ public Boolean getComplete() { @JsonProperty(JSON_PROPERTY_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setComplete(Boolean complete) { + public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/Pet.java b/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/Pet.java index c724e458a105..31df2e097404 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/Pet.java @@ -47,18 +47,23 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Pet { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; + @javax.annotation.Nullable private Category category; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; + @javax.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String JSON_PROPERTY_TAGS = "tags"; + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** @@ -100,12 +105,13 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_STATUS = "status"; @Deprecated + @javax.annotation.Nullable private StatusEnum status; public Pet() { } - public Pet id(Long id) { + public Pet id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -126,12 +132,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@javax.annotation.Nullable Category category) { this.category = category; return this; } @@ -152,12 +158,12 @@ public Category getCategory() { @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCategory(Category category) { + public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; } - public Pet name(String name) { + public Pet name(@javax.annotation.Nonnull String name) { this.name = name; return this; } @@ -178,12 +184,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } - public Pet photoUrls(List photoUrls) { + public Pet photoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; return this; } @@ -212,12 +218,12 @@ public List getPhotoUrls() { @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPhotoUrls(List photoUrls) { + public void setPhotoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; } - public Pet tags(List tags) { + public Pet tags(@javax.annotation.Nullable List tags) { this.tags = tags; return this; } @@ -246,13 +252,13 @@ public List getTags() { @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTags(List tags) { + public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; } @Deprecated - public Pet status(StatusEnum status) { + public Pet status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; } @@ -276,7 +282,7 @@ public StatusEnum getStatus() { @Deprecated @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/Tag.java b/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/Tag.java index 804b11006ed4..fb97c31da978 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/Tag.java @@ -39,15 +39,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Tag { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public Tag() { } - public Tag id(Long id) { + public Tag id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -68,12 +70,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -94,7 +96,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/User.java b/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/User.java index 6b3037091076..95f37727c789 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/User.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/User.java @@ -45,33 +45,41 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class User { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; + @javax.annotation.Nullable private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; + @javax.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; + @javax.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; + @javax.annotation.Nullable private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; + @javax.annotation.Nullable private String password; public static final String JSON_PROPERTY_PHONE = "phone"; + @javax.annotation.Nullable private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; + @javax.annotation.Nullable private Integer userStatus; public User() { } - public User id(Long id) { + public User id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -92,12 +100,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@javax.annotation.Nullable String username) { this.username = username; return this; } @@ -118,12 +126,12 @@ public String getUsername() { @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsername(String username) { + public void setUsername(@javax.annotation.Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; return this; } @@ -144,12 +152,12 @@ public String getFirstName() { @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFirstName(String firstName) { + public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; return this; } @@ -170,12 +178,12 @@ public String getLastName() { @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLastName(String lastName) { + public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@javax.annotation.Nullable String email) { this.email = email; return this; } @@ -196,12 +204,12 @@ public String getEmail() { @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEmail(String email) { + public void setEmail(@javax.annotation.Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@javax.annotation.Nullable String password) { this.password = password; return this; } @@ -222,12 +230,12 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@javax.annotation.Nullable String phone) { this.phone = phone; return this; } @@ -248,12 +256,12 @@ public String getPhone() { @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPhone(String phone) { + public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -274,7 +282,7 @@ public Integer getUserStatus() { @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/Category.java b/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/Category.java index 155c1fd17a02..59e144337088 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/Category.java @@ -38,15 +38,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Category { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public Category() { } - public Category id(Long id) { + public Category id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -67,12 +69,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -93,7 +95,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 2021ffa4fde2..e886e9bcbbb3 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -40,18 +40,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nullable private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nullable private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; + @javax.annotation.Nullable private String message; public ModelApiResponse() { } - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@javax.annotation.Nullable Integer code) { this.code = code; return this; } @@ -72,12 +75,12 @@ public Integer getCode() { @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCode(Integer code) { + public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@javax.annotation.Nullable String type) { this.type = type; return this; } @@ -98,12 +101,12 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { + public void setType(@javax.annotation.Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@javax.annotation.Nullable String message) { this.message = message; return this; } @@ -124,7 +127,7 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/Order.java b/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/Order.java index 5bbc016ade7d..f5dddf4992e4 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/Order.java @@ -43,15 +43,19 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Order { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; + @javax.annotation.Nullable private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; + @javax.annotation.Nullable private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; + @javax.annotation.Nullable private OffsetDateTime shipDate; /** @@ -92,15 +96,17 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @javax.annotation.Nullable private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; + @javax.annotation.Nullable private Boolean complete = false; public Order() { } - public Order id(Long id) { + public Order id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -121,12 +127,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@javax.annotation.Nullable Long petId) { this.petId = petId; return this; } @@ -147,12 +153,12 @@ public Long getPetId() { @JsonProperty(JSON_PROPERTY_PET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPetId(Long petId) { + public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -173,12 +179,12 @@ public Integer getQuantity() { @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setQuantity(Integer quantity) { + public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -199,12 +205,12 @@ public OffsetDateTime getShipDate() { @JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; } @@ -225,12 +231,12 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } - public Order complete(Boolean complete) { + public Order complete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; return this; } @@ -251,7 +257,7 @@ public Boolean getComplete() { @JsonProperty(JSON_PROPERTY_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setComplete(Boolean complete) { + public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/Pet.java b/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/Pet.java index 611c0fdf6e20..d56c6702fe55 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/Pet.java @@ -46,18 +46,23 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Pet { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; + @javax.annotation.Nullable private Category category; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; + @javax.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String JSON_PROPERTY_TAGS = "tags"; + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** @@ -99,12 +104,13 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_STATUS = "status"; @Deprecated + @javax.annotation.Nullable private StatusEnum status; public Pet() { } - public Pet id(Long id) { + public Pet id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -125,12 +131,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@javax.annotation.Nullable Category category) { this.category = category; return this; } @@ -151,12 +157,12 @@ public Category getCategory() { @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCategory(Category category) { + public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; } - public Pet name(String name) { + public Pet name(@javax.annotation.Nonnull String name) { this.name = name; return this; } @@ -177,12 +183,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } - public Pet photoUrls(List photoUrls) { + public Pet photoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; return this; } @@ -211,12 +217,12 @@ public List getPhotoUrls() { @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPhotoUrls(List photoUrls) { + public void setPhotoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; } - public Pet tags(List tags) { + public Pet tags(@javax.annotation.Nullable List tags) { this.tags = tags; return this; } @@ -245,13 +251,13 @@ public List getTags() { @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTags(List tags) { + public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; } @Deprecated - public Pet status(StatusEnum status) { + public Pet status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; } @@ -275,7 +281,7 @@ public StatusEnum getStatus() { @Deprecated @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/Tag.java b/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/Tag.java index 9d037ef15a67..f28ce2cdac8d 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/Tag.java @@ -38,15 +38,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Tag { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public Tag() { } - public Tag id(Long id) { + public Tag id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -67,12 +69,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -93,7 +95,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/User.java b/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/User.java index 7112677e4d9c..a803332259ff 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/User.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/User.java @@ -44,33 +44,41 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class User { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; + @javax.annotation.Nullable private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; + @javax.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; + @javax.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; + @javax.annotation.Nullable private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; + @javax.annotation.Nullable private String password; public static final String JSON_PROPERTY_PHONE = "phone"; + @javax.annotation.Nullable private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; + @javax.annotation.Nullable private Integer userStatus; public User() { } - public User id(Long id) { + public User id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -91,12 +99,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@javax.annotation.Nullable String username) { this.username = username; return this; } @@ -117,12 +125,12 @@ public String getUsername() { @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsername(String username) { + public void setUsername(@javax.annotation.Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; return this; } @@ -143,12 +151,12 @@ public String getFirstName() { @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFirstName(String firstName) { + public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; return this; } @@ -169,12 +177,12 @@ public String getLastName() { @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLastName(String lastName) { + public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@javax.annotation.Nullable String email) { this.email = email; return this; } @@ -195,12 +203,12 @@ public String getEmail() { @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEmail(String email) { + public void setEmail(@javax.annotation.Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@javax.annotation.Nullable String password) { this.password = password; return this; } @@ -221,12 +229,12 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@javax.annotation.Nullable String phone) { this.phone = phone; return this; } @@ -247,12 +255,12 @@ public String getPhone() { @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPhone(String phone) { + public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -273,7 +281,7 @@ public Integer getUserStatus() { @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index b0bf9d39b44c..cec512f0f09d 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -48,33 +48,40 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_PROPERTY = "map_property"; + @javax.annotation.Nullable private Map mapProperty = new HashMap<>(); public static final String JSON_PROPERTY_MAP_OF_MAP_PROPERTY = "map_of_map_property"; + @javax.annotation.Nullable private Map> mapOfMapProperty = new HashMap<>(); public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1"; private JsonNullable anytype1 = JsonNullable.of(null); public static final String JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE1 = "map_with_undeclared_properties_anytype_1"; + @javax.annotation.Nullable private Object mapWithUndeclaredPropertiesAnytype1; public static final String JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE2 = "map_with_undeclared_properties_anytype_2"; + @javax.annotation.Nullable private Object mapWithUndeclaredPropertiesAnytype2; public static final String JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE3 = "map_with_undeclared_properties_anytype_3"; + @javax.annotation.Nullable private Map mapWithUndeclaredPropertiesAnytype3 = new HashMap<>(); public static final String JSON_PROPERTY_EMPTY_MAP = "empty_map"; + @javax.annotation.Nullable private Object emptyMap; public static final String JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_STRING = "map_with_undeclared_properties_string"; + @javax.annotation.Nullable private Map mapWithUndeclaredPropertiesString = new HashMap<>(); public AdditionalPropertiesClass() { } - public AdditionalPropertiesClass mapProperty(Map mapProperty) { + public AdditionalPropertiesClass mapProperty(@javax.annotation.Nullable Map mapProperty) { this.mapProperty = mapProperty; return this; } @@ -102,12 +109,12 @@ public Map getMapProperty() { @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapProperty(Map mapProperty) { + public void setMapProperty(@javax.annotation.Nullable Map mapProperty) { this.mapProperty = mapProperty; } - public AdditionalPropertiesClass mapOfMapProperty(Map> mapOfMapProperty) { + public AdditionalPropertiesClass mapOfMapProperty(@javax.annotation.Nullable Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; return this; } @@ -135,12 +142,12 @@ public Map> getMapOfMapProperty() { @JsonProperty(JSON_PROPERTY_MAP_OF_MAP_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapOfMapProperty(Map> mapOfMapProperty) { + public void setMapOfMapProperty(@javax.annotation.Nullable Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; } - public AdditionalPropertiesClass anytype1(Object anytype1) { + public AdditionalPropertiesClass anytype1(@javax.annotation.Nullable Object anytype1) { this.anytype1 = JsonNullable.of(anytype1); return this; } @@ -168,12 +175,12 @@ public void setAnytype1_JsonNullable(JsonNullable anytype1) { this.anytype1 = anytype1; } - public void setAnytype1(Object anytype1) { + public void setAnytype1(@javax.annotation.Nullable Object anytype1) { this.anytype1 = JsonNullable.of(anytype1); } - public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype1(Object mapWithUndeclaredPropertiesAnytype1) { + public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype1(@javax.annotation.Nullable Object mapWithUndeclaredPropertiesAnytype1) { this.mapWithUndeclaredPropertiesAnytype1 = mapWithUndeclaredPropertiesAnytype1; return this; } @@ -193,12 +200,12 @@ public Object getMapWithUndeclaredPropertiesAnytype1() { @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE1) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapWithUndeclaredPropertiesAnytype1(Object mapWithUndeclaredPropertiesAnytype1) { + public void setMapWithUndeclaredPropertiesAnytype1(@javax.annotation.Nullable Object mapWithUndeclaredPropertiesAnytype1) { this.mapWithUndeclaredPropertiesAnytype1 = mapWithUndeclaredPropertiesAnytype1; } - public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype2(Object mapWithUndeclaredPropertiesAnytype2) { + public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype2(@javax.annotation.Nullable Object mapWithUndeclaredPropertiesAnytype2) { this.mapWithUndeclaredPropertiesAnytype2 = mapWithUndeclaredPropertiesAnytype2; return this; } @@ -218,12 +225,12 @@ public Object getMapWithUndeclaredPropertiesAnytype2() { @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapWithUndeclaredPropertiesAnytype2(Object mapWithUndeclaredPropertiesAnytype2) { + public void setMapWithUndeclaredPropertiesAnytype2(@javax.annotation.Nullable Object mapWithUndeclaredPropertiesAnytype2) { this.mapWithUndeclaredPropertiesAnytype2 = mapWithUndeclaredPropertiesAnytype2; } - public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype3(Map mapWithUndeclaredPropertiesAnytype3) { + public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype3(@javax.annotation.Nullable Map mapWithUndeclaredPropertiesAnytype3) { this.mapWithUndeclaredPropertiesAnytype3 = mapWithUndeclaredPropertiesAnytype3; return this; } @@ -251,12 +258,12 @@ public Map getMapWithUndeclaredPropertiesAnytype3() { @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE3) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setMapWithUndeclaredPropertiesAnytype3(Map mapWithUndeclaredPropertiesAnytype3) { + public void setMapWithUndeclaredPropertiesAnytype3(@javax.annotation.Nullable Map mapWithUndeclaredPropertiesAnytype3) { this.mapWithUndeclaredPropertiesAnytype3 = mapWithUndeclaredPropertiesAnytype3; } - public AdditionalPropertiesClass emptyMap(Object emptyMap) { + public AdditionalPropertiesClass emptyMap(@javax.annotation.Nullable Object emptyMap) { this.emptyMap = emptyMap; return this; } @@ -276,12 +283,12 @@ public Object getEmptyMap() { @JsonProperty(JSON_PROPERTY_EMPTY_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEmptyMap(Object emptyMap) { + public void setEmptyMap(@javax.annotation.Nullable Object emptyMap) { this.emptyMap = emptyMap; } - public AdditionalPropertiesClass mapWithUndeclaredPropertiesString(Map mapWithUndeclaredPropertiesString) { + public AdditionalPropertiesClass mapWithUndeclaredPropertiesString(@javax.annotation.Nullable Map mapWithUndeclaredPropertiesString) { this.mapWithUndeclaredPropertiesString = mapWithUndeclaredPropertiesString; return this; } @@ -309,7 +316,7 @@ public Map getMapWithUndeclaredPropertiesString() { @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapWithUndeclaredPropertiesString(Map mapWithUndeclaredPropertiesString) { + public void setMapWithUndeclaredPropertiesString(@javax.annotation.Nullable Map mapWithUndeclaredPropertiesString) { this.mapWithUndeclaredPropertiesString = mapWithUndeclaredPropertiesString; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Animal.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Animal.java index 3ea7fdad7205..aa46ef6fb72a 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Animal.java @@ -49,15 +49,17 @@ public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; + @javax.annotation.Nonnull private String className; public static final String JSON_PROPERTY_COLOR = "color"; + @javax.annotation.Nullable private String color = "red"; public Animal() { } - public Animal className(String className) { + public Animal className(@javax.annotation.Nonnull String className) { this.className = className; return this; } @@ -77,12 +79,12 @@ public String getClassName() { @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setClassName(String className) { + public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; } - public Animal color(String color) { + public Animal color(@javax.annotation.Nullable String color) { this.color = color; return this; } @@ -102,7 +104,7 @@ public String getColor() { @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setColor(String color) { + public void setColor(@javax.annotation.Nullable String color) { this.color = color; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Apple.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Apple.java index 3b83ec81faca..b1c40a037a3a 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Apple.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Apple.java @@ -37,15 +37,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Apple { public static final String JSON_PROPERTY_CULTIVAR = "cultivar"; + @javax.annotation.Nullable private String cultivar; public static final String JSON_PROPERTY_ORIGIN = "origin"; + @javax.annotation.Nullable private String origin; public Apple() { } - public Apple cultivar(String cultivar) { + public Apple cultivar(@javax.annotation.Nullable String cultivar) { this.cultivar = cultivar; return this; } @@ -65,12 +67,12 @@ public String getCultivar() { @JsonProperty(JSON_PROPERTY_CULTIVAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCultivar(String cultivar) { + public void setCultivar(@javax.annotation.Nullable String cultivar) { this.cultivar = cultivar; } - public Apple origin(String origin) { + public Apple origin(@javax.annotation.Nullable String origin) { this.origin = origin; return this; } @@ -90,7 +92,7 @@ public String getOrigin() { @JsonProperty(JSON_PROPERTY_ORIGIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOrigin(String origin) { + public void setOrigin(@javax.annotation.Nullable String origin) { this.origin = origin; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AppleReq.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AppleReq.java index e1a3401383ed..43525f7e3412 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AppleReq.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AppleReq.java @@ -37,15 +37,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class AppleReq { public static final String JSON_PROPERTY_CULTIVAR = "cultivar"; + @javax.annotation.Nonnull private String cultivar; public static final String JSON_PROPERTY_MEALY = "mealy"; + @javax.annotation.Nullable private Boolean mealy; public AppleReq() { } - public AppleReq cultivar(String cultivar) { + public AppleReq cultivar(@javax.annotation.Nonnull String cultivar) { this.cultivar = cultivar; return this; } @@ -65,12 +67,12 @@ public String getCultivar() { @JsonProperty(JSON_PROPERTY_CULTIVAR) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCultivar(String cultivar) { + public void setCultivar(@javax.annotation.Nonnull String cultivar) { this.cultivar = cultivar; } - public AppleReq mealy(Boolean mealy) { + public AppleReq mealy(@javax.annotation.Nullable Boolean mealy) { this.mealy = mealy; return this; } @@ -90,7 +92,7 @@ public Boolean getMealy() { @JsonProperty(JSON_PROPERTY_MEALY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMealy(Boolean mealy) { + public void setMealy(@javax.annotation.Nullable Boolean mealy) { this.mealy = mealy; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 1b3998955e4c..8bfd29af5de7 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -38,12 +38,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayOfArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; + @javax.annotation.Nullable private List> arrayArrayNumber = new ArrayList<>(); public ArrayOfArrayOfNumberOnly() { } - public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + public ArrayOfArrayOfNumberOnly arrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; return this; } @@ -71,7 +72,7 @@ public List> getArrayArrayNumber() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayNumber(List> arrayArrayNumber) { + public void setArrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index ca46dc2005f1..8dd0d6b355a9 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -38,12 +38,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; + @javax.annotation.Nullable private List arrayNumber = new ArrayList<>(); public ArrayOfNumberOnly() { } - public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + public ArrayOfNumberOnly arrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; return this; } @@ -71,7 +72,7 @@ public List getArrayNumber() { @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayNumber(List arrayNumber) { + public void setArrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayTest.java index dff29850ea89..76837073093c 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -40,18 +40,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; + @javax.annotation.Nullable private List arrayOfString = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; + @javax.annotation.Nullable private List> arrayArrayOfInteger = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; + @javax.annotation.Nullable private List> arrayArrayOfModel = new ArrayList<>(); public ArrayTest() { } - public ArrayTest arrayOfString(List arrayOfString) { + public ArrayTest arrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; return this; } @@ -79,12 +82,12 @@ public List getArrayOfString() { @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayOfString(List arrayOfString) { + public void setArrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; } - public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + public ArrayTest arrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; return this; } @@ -112,12 +115,12 @@ public List> getArrayArrayOfInteger() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { + public void setArrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } - public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + public ArrayTest arrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; return this; } @@ -145,7 +148,7 @@ public List> getArrayArrayOfModel() { @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayArrayOfModel(List> arrayArrayOfModel) { + public void setArrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Banana.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Banana.java index c7452a46ee90..e99400d7949f 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Banana.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Banana.java @@ -37,12 +37,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Banana { public static final String JSON_PROPERTY_LENGTH_CM = "lengthCm"; + @javax.annotation.Nullable private BigDecimal lengthCm; public Banana() { } - public Banana lengthCm(BigDecimal lengthCm) { + public Banana lengthCm(@javax.annotation.Nullable BigDecimal lengthCm) { this.lengthCm = lengthCm; return this; } @@ -62,7 +63,7 @@ public BigDecimal getLengthCm() { @JsonProperty(JSON_PROPERTY_LENGTH_CM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLengthCm(BigDecimal lengthCm) { + public void setLengthCm(@javax.annotation.Nullable BigDecimal lengthCm) { this.lengthCm = lengthCm; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/BananaReq.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/BananaReq.java index b30ba6e15f59..c7c70eb626bf 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/BananaReq.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/BananaReq.java @@ -38,15 +38,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class BananaReq { public static final String JSON_PROPERTY_LENGTH_CM = "lengthCm"; + @javax.annotation.Nonnull private BigDecimal lengthCm; public static final String JSON_PROPERTY_SWEET = "sweet"; + @javax.annotation.Nullable private Boolean sweet; public BananaReq() { } - public BananaReq lengthCm(BigDecimal lengthCm) { + public BananaReq lengthCm(@javax.annotation.Nonnull BigDecimal lengthCm) { this.lengthCm = lengthCm; return this; } @@ -66,12 +68,12 @@ public BigDecimal getLengthCm() { @JsonProperty(JSON_PROPERTY_LENGTH_CM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLengthCm(BigDecimal lengthCm) { + public void setLengthCm(@javax.annotation.Nonnull BigDecimal lengthCm) { this.lengthCm = lengthCm; } - public BananaReq sweet(Boolean sweet) { + public BananaReq sweet(@javax.annotation.Nullable Boolean sweet) { this.sweet = sweet; return this; } @@ -91,7 +93,7 @@ public Boolean getSweet() { @JsonProperty(JSON_PROPERTY_SWEET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSweet(Boolean sweet) { + public void setSweet(@javax.annotation.Nullable Boolean sweet) { this.sweet = sweet; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/BasquePig.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/BasquePig.java index 4f17a9c131c7..134a45a4ca5e 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/BasquePig.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/BasquePig.java @@ -35,12 +35,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class BasquePig { public static final String JSON_PROPERTY_CLASS_NAME = "className"; + @javax.annotation.Nonnull private String className; public BasquePig() { } - public BasquePig className(String className) { + public BasquePig className(@javax.annotation.Nonnull String className) { this.className = className; return this; } @@ -60,7 +61,7 @@ public String getClassName() { @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setClassName(String className) { + public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Capitalization.java index f3ef112bcae5..a52af42c9a76 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Capitalization.java @@ -40,27 +40,33 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Capitalization { public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; + @javax.annotation.Nullable private String smallCamel; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; + @javax.annotation.Nullable private String capitalCamel; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; + @javax.annotation.Nullable private String smallSnake; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; + @javax.annotation.Nullable private String capitalSnake; public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; + @javax.annotation.Nullable private String scAETHFlowPoints; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; + @javax.annotation.Nullable private String ATT_NAME; public Capitalization() { } - public Capitalization smallCamel(String smallCamel) { + public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; return this; } @@ -80,12 +86,12 @@ public String getSmallCamel() { @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmallCamel(String smallCamel) { + public void setSmallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; } - public Capitalization capitalCamel(String capitalCamel) { + public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; return this; } @@ -105,12 +111,12 @@ public String getCapitalCamel() { @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCapitalCamel(String capitalCamel) { + public void setCapitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; } - public Capitalization smallSnake(String smallSnake) { + public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; return this; } @@ -130,12 +136,12 @@ public String getSmallSnake() { @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmallSnake(String smallSnake) { + public void setSmallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; } - public Capitalization capitalSnake(String capitalSnake) { + public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; return this; } @@ -155,12 +161,12 @@ public String getCapitalSnake() { @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCapitalSnake(String capitalSnake) { + public void setCapitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; } - public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -180,12 +186,12 @@ public String getScAETHFlowPoints() { @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setScAETHFlowPoints(String scAETHFlowPoints) { + public void setScAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } - public Capitalization ATT_NAME(String ATT_NAME) { + public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; return this; } @@ -205,7 +211,7 @@ public String getATTNAME() { @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setATTNAME(String ATT_NAME) { + public void setATTNAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Cat.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Cat.java index 1170046bae1f..ac3ca81f1839 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Cat.java @@ -50,12 +50,13 @@ public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; + @javax.annotation.Nullable private Boolean declawed; public Cat() { } - public Cat declawed(Boolean declawed) { + public Cat declawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; return this; } @@ -75,7 +76,7 @@ public Boolean getDeclawed() { @JsonProperty(JSON_PROPERTY_DECLAWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeclawed(Boolean declawed) { + public void setDeclawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Category.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Category.java index 95e3131e8415..936eab54e280 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Category.java @@ -36,15 +36,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Category { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private String name = "default-name"; public Category() { } - public Category id(Long id) { + public Category id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -64,12 +66,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Category name(String name) { + public Category name(@javax.annotation.Nonnull String name) { this.name = name; return this; } @@ -89,7 +91,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ChildCat.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ChildCat.java index 0eb9314e3be5..bc89d1d6f28d 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ChildCat.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ChildCat.java @@ -52,15 +52,17 @@ public class ChildCat extends ParentPet { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public static final String JSON_PROPERTY_PET_TYPE = "pet_type"; + @javax.annotation.Nullable private String petType = "ChildCat"; public ChildCat() { } - public ChildCat name(String name) { + public ChildCat name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -80,7 +82,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } @@ -89,7 +91,7 @@ public void setName(String name) { "ChildCat" )); - public ChildCat petType(String petType) { + public ChildCat petType(@javax.annotation.Nullable String petType) { if (!PET_TYPE_VALUES.contains(petType)) { throw new IllegalArgumentException(petType + " is invalid. Possible values for petType: " + String.join(", ", PET_TYPE_VALUES)); } @@ -113,7 +115,7 @@ public String getPetType() { @JsonProperty(JSON_PROPERTY_PET_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPetType(String petType) { + public void setPetType(@javax.annotation.Nullable String petType) { if (!PET_TYPE_VALUES.contains(petType)) { throw new IllegalArgumentException(petType + " is invalid. Possible values for petType: " + String.join(", ", PET_TYPE_VALUES)); } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ClassModel.java index 494233c54e6c..d3623a71cf5c 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ClassModel.java @@ -35,12 +35,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ClassModel { public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; + @javax.annotation.Nullable private String propertyClass; public ClassModel() { } - public ClassModel propertyClass(String propertyClass) { + public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -60,7 +61,7 @@ public String getPropertyClass() { @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Client.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Client.java index 4d577e3da2b6..0f780520bab0 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Client.java @@ -35,12 +35,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Client { public static final String JSON_PROPERTY_CLIENT = "client"; + @javax.annotation.Nullable private String client; public Client() { } - public Client client(String client) { + public Client client(@javax.annotation.Nullable String client) { this.client = client; return this; } @@ -60,7 +61,7 @@ public String getClient() { @JsonProperty(JSON_PROPERTY_CLIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setClient(String client) { + public void setClient(@javax.annotation.Nullable String client) { this.client = client; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java index f0a9631b7ac0..06aea285669c 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java @@ -40,15 +40,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ComplexQuadrilateral { public static final String JSON_PROPERTY_SHAPE_TYPE = "shapeType"; + @javax.annotation.Nonnull private String shapeType; public static final String JSON_PROPERTY_QUADRILATERAL_TYPE = "quadrilateralType"; + @javax.annotation.Nonnull private String quadrilateralType; public ComplexQuadrilateral() { } - public ComplexQuadrilateral shapeType(String shapeType) { + public ComplexQuadrilateral shapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; return this; } @@ -68,12 +70,12 @@ public String getShapeType() { @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setShapeType(String shapeType) { + public void setShapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; } - public ComplexQuadrilateral quadrilateralType(String quadrilateralType) { + public ComplexQuadrilateral quadrilateralType(@javax.annotation.Nonnull String quadrilateralType) { this.quadrilateralType = quadrilateralType; return this; } @@ -93,7 +95,7 @@ public String getQuadrilateralType() { @JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setQuadrilateralType(String quadrilateralType) { + public void setQuadrilateralType(@javax.annotation.Nonnull String quadrilateralType) { this.quadrilateralType = quadrilateralType; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/DanishPig.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/DanishPig.java index 2956b806df12..ab5b9bb1ec76 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/DanishPig.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/DanishPig.java @@ -35,12 +35,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class DanishPig { public static final String JSON_PROPERTY_CLASS_NAME = "className"; + @javax.annotation.Nonnull private String className; public DanishPig() { } - public DanishPig className(String className) { + public DanishPig className(@javax.annotation.Nonnull String className) { this.className = className; return this; } @@ -60,7 +61,7 @@ public String getClassName() { @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setClassName(String className) { + public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/DeprecatedObject.java index 5080eefd6015..52ac645db6de 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -37,12 +37,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class DeprecatedObject { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public DeprecatedObject() { } - public DeprecatedObject name(String name) { + public DeprecatedObject name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -62,7 +63,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Dog.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Dog.java index 5619be777395..18099d682575 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Dog.java @@ -49,12 +49,13 @@ public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; + @javax.annotation.Nullable private String breed; public Dog() { } - public Dog breed(String breed) { + public Dog breed(@javax.annotation.Nullable String breed) { this.breed = breed; return this; } @@ -74,7 +75,7 @@ public String getBreed() { @JsonProperty(JSON_PROPERTY_BREED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBreed(String breed) { + public void setBreed(@javax.annotation.Nullable String breed) { this.breed = breed; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Drawing.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Drawing.java index d0ec9292bd1f..e450cea4014f 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Drawing.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Drawing.java @@ -52,6 +52,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Drawing { public static final String JSON_PROPERTY_MAIN_SHAPE = "mainShape"; + @javax.annotation.Nullable private Shape mainShape; public static final String JSON_PROPERTY_SHAPE_OR_NULL = "shapeOrNull"; @@ -61,12 +62,13 @@ public class Drawing { private JsonNullable nullableShape = JsonNullable.undefined(); public static final String JSON_PROPERTY_SHAPES = "shapes"; + @javax.annotation.Nullable private List shapes = new ArrayList<>(); public Drawing() { } - public Drawing mainShape(Shape mainShape) { + public Drawing mainShape(@javax.annotation.Nullable Shape mainShape) { this.mainShape = mainShape; return this; } @@ -86,12 +88,12 @@ public Shape getMainShape() { @JsonProperty(JSON_PROPERTY_MAIN_SHAPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMainShape(Shape mainShape) { + public void setMainShape(@javax.annotation.Nullable Shape mainShape) { this.mainShape = mainShape; } - public Drawing shapeOrNull(ShapeOrNull shapeOrNull) { + public Drawing shapeOrNull(@javax.annotation.Nullable ShapeOrNull shapeOrNull) { this.shapeOrNull = JsonNullable.of(shapeOrNull); return this; } @@ -119,12 +121,12 @@ public void setShapeOrNull_JsonNullable(JsonNullable shapeOrNull) { this.shapeOrNull = shapeOrNull; } - public void setShapeOrNull(ShapeOrNull shapeOrNull) { + public void setShapeOrNull(@javax.annotation.Nullable ShapeOrNull shapeOrNull) { this.shapeOrNull = JsonNullable.of(shapeOrNull); } - public Drawing nullableShape(NullableShape nullableShape) { + public Drawing nullableShape(@javax.annotation.Nullable NullableShape nullableShape) { this.nullableShape = JsonNullable.of(nullableShape); return this; } @@ -152,12 +154,12 @@ public void setNullableShape_JsonNullable(JsonNullable nullableSh this.nullableShape = nullableShape; } - public void setNullableShape(NullableShape nullableShape) { + public void setNullableShape(@javax.annotation.Nullable NullableShape nullableShape) { this.nullableShape = JsonNullable.of(nullableShape); } - public Drawing shapes(List shapes) { + public Drawing shapes(@javax.annotation.Nullable List shapes) { this.shapes = shapes; return this; } @@ -185,7 +187,7 @@ public List getShapes() { @JsonProperty(JSON_PROPERTY_SHAPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setShapes(List shapes) { + public void setShapes(@javax.annotation.Nullable List shapes) { this.shapes = shapes; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumArrays.java index 4945e0476b52..e2e1b8803056 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -73,6 +73,7 @@ public static JustSymbolEnum fromValue(String value) { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** @@ -111,12 +112,13 @@ public static ArrayEnumEnum fromValue(String value) { } public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; + @javax.annotation.Nullable private List arrayEnum = new ArrayList<>(); public EnumArrays() { } - public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; return this; } @@ -136,12 +138,12 @@ public JustSymbolEnum getJustSymbol() { @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJustSymbol(JustSymbolEnum justSymbol) { + public void setJustSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } - public EnumArrays arrayEnum(List arrayEnum) { + public EnumArrays arrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; return this; } @@ -169,7 +171,7 @@ public List getArrayEnum() { @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayEnum(List arrayEnum) { + public void setArrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumTest.java index 210b4f21aaa4..546cb23383b5 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumTest.java @@ -89,6 +89,7 @@ public static EnumStringEnum fromValue(String value) { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; + @javax.annotation.Nullable private EnumStringEnum enumString; /** @@ -129,6 +130,7 @@ public static EnumStringRequiredEnum fromValue(String value) { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** @@ -167,6 +169,7 @@ public static EnumIntegerEnum fromValue(Integer value) { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** @@ -205,6 +208,7 @@ public static EnumIntegerOnlyEnum fromValue(Integer value) { } public static final String JSON_PROPERTY_ENUM_INTEGER_ONLY = "enum_integer_only"; + @javax.annotation.Nullable private EnumIntegerOnlyEnum enumIntegerOnly; /** @@ -243,24 +247,28 @@ public static EnumNumberEnum fromValue(Double value) { } public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; + @javax.annotation.Nullable private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; private JsonNullable outerEnum = JsonNullable.undefined(); public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER = "outerEnumInteger"; + @javax.annotation.Nullable private OuterEnumInteger outerEnumInteger; public static final String JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE = "outerEnumDefaultValue"; + @javax.annotation.Nullable private OuterEnumDefaultValue outerEnumDefaultValue = OuterEnumDefaultValue.PLACED; public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE = "outerEnumIntegerDefaultValue"; + @javax.annotation.Nullable private OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = OuterEnumIntegerDefaultValue.NUMBER_0; public EnumTest() { } - public EnumTest enumString(EnumStringEnum enumString) { + public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; return this; } @@ -280,12 +288,12 @@ public EnumStringEnum getEnumString() { @JsonProperty(JSON_PROPERTY_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumString(EnumStringEnum enumString) { + public void setEnumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; } - public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; return this; } @@ -305,12 +313,12 @@ public EnumStringRequiredEnum getEnumStringRequired() { @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { + public void setEnumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } - public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; return this; } @@ -330,12 +338,12 @@ public EnumIntegerEnum getEnumInteger() { @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumInteger(EnumIntegerEnum enumInteger) { + public void setEnumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } - public EnumTest enumIntegerOnly(EnumIntegerOnlyEnum enumIntegerOnly) { + public EnumTest enumIntegerOnly(@javax.annotation.Nullable EnumIntegerOnlyEnum enumIntegerOnly) { this.enumIntegerOnly = enumIntegerOnly; return this; } @@ -355,12 +363,12 @@ public EnumIntegerOnlyEnum getEnumIntegerOnly() { @JsonProperty(JSON_PROPERTY_ENUM_INTEGER_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumIntegerOnly(EnumIntegerOnlyEnum enumIntegerOnly) { + public void setEnumIntegerOnly(@javax.annotation.Nullable EnumIntegerOnlyEnum enumIntegerOnly) { this.enumIntegerOnly = enumIntegerOnly; } - public EnumTest enumNumber(EnumNumberEnum enumNumber) { + public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; return this; } @@ -380,12 +388,12 @@ public EnumNumberEnum getEnumNumber() { @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEnumNumber(EnumNumberEnum enumNumber) { + public void setEnumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } - public EnumTest outerEnum(OuterEnum outerEnum) { + public EnumTest outerEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = JsonNullable.of(outerEnum); return this; } @@ -413,12 +421,12 @@ public void setOuterEnum_JsonNullable(JsonNullable outerEnum) { this.outerEnum = outerEnum; } - public void setOuterEnum(OuterEnum outerEnum) { + public void setOuterEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = JsonNullable.of(outerEnum); } - public EnumTest outerEnumInteger(OuterEnumInteger outerEnumInteger) { + public EnumTest outerEnumInteger(@javax.annotation.Nullable OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; return this; } @@ -438,12 +446,12 @@ public OuterEnumInteger getOuterEnumInteger() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnumInteger(OuterEnumInteger outerEnumInteger) { + public void setOuterEnumInteger(@javax.annotation.Nullable OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; } - public EnumTest outerEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) { + public EnumTest outerEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; return this; } @@ -463,12 +471,12 @@ public OuterEnumDefaultValue getOuterEnumDefaultValue() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) { + public void setOuterEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; } - public EnumTest outerEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { + public EnumTest outerEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; return this; } @@ -488,7 +496,7 @@ public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOuterEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { + public void setOuterEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EquilateralTriangle.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EquilateralTriangle.java index 5745738a63b6..dd2ea81c4e08 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EquilateralTriangle.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EquilateralTriangle.java @@ -40,15 +40,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class EquilateralTriangle { public static final String JSON_PROPERTY_SHAPE_TYPE = "shapeType"; + @javax.annotation.Nonnull private String shapeType; public static final String JSON_PROPERTY_TRIANGLE_TYPE = "triangleType"; + @javax.annotation.Nonnull private String triangleType; public EquilateralTriangle() { } - public EquilateralTriangle shapeType(String shapeType) { + public EquilateralTriangle shapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; return this; } @@ -68,12 +70,12 @@ public String getShapeType() { @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setShapeType(String shapeType) { + public void setShapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; } - public EquilateralTriangle triangleType(String triangleType) { + public EquilateralTriangle triangleType(@javax.annotation.Nonnull String triangleType) { this.triangleType = triangleType; return this; } @@ -93,7 +95,7 @@ public String getTriangleType() { @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTriangleType(String triangleType) { + public void setTriangleType(@javax.annotation.Nonnull String triangleType) { this.triangleType = triangleType; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index ade6ef1535b3..5172663a1be3 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -39,15 +39,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; + @javax.annotation.Nullable private ModelFile _file; public static final String JSON_PROPERTY_FILES = "files"; + @javax.annotation.Nullable private List files = new ArrayList<>(); public FileSchemaTestClass() { } - public FileSchemaTestClass _file(ModelFile _file) { + public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { this._file = _file; return this; } @@ -67,12 +69,12 @@ public ModelFile getFile() { @JsonProperty(JSON_PROPERTY_FILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFile(ModelFile _file) { + public void setFile(@javax.annotation.Nullable ModelFile _file) { this._file = _file; } - public FileSchemaTestClass files(List files) { + public FileSchemaTestClass files(@javax.annotation.Nullable List files) { this.files = files; return this; } @@ -100,7 +102,7 @@ public List getFiles() { @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFiles(List files) { + public void setFiles(@javax.annotation.Nullable List files) { this.files = files; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Foo.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Foo.java index 65f492e89ff1..72a30a82262b 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Foo.java @@ -35,12 +35,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Foo { public static final String JSON_PROPERTY_BAR = "bar"; + @javax.annotation.Nullable private String bar = "bar"; public Foo() { } - public Foo bar(String bar) { + public Foo bar(@javax.annotation.Nullable String bar) { this.bar = bar; return this; } @@ -60,7 +61,7 @@ public String getBar() { @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBar(String bar) { + public void setBar(@javax.annotation.Nullable String bar) { this.bar = bar; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index 2d9d347ffb30..803da8e96d43 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -37,12 +37,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FooGetDefaultResponse { public static final String JSON_PROPERTY_STRING = "string"; + @javax.annotation.Nullable private Foo string; public FooGetDefaultResponse() { } - public FooGetDefaultResponse string(Foo string) { + public FooGetDefaultResponse string(@javax.annotation.Nullable Foo string) { this.string = string; return this; } @@ -62,7 +63,7 @@ public Foo getString() { @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setString(Foo string) { + public void setString(@javax.annotation.Nullable Foo string) { this.string = string; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FormatTest.java index 72e03a323528..e8ac216d8287 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FormatTest.java @@ -56,57 +56,73 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; + @javax.annotation.Nullable private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; + @javax.annotation.Nullable private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; + @javax.annotation.Nullable private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; + @javax.annotation.Nonnull private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; + @javax.annotation.Nullable private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; + @javax.annotation.Nullable private Double _double; public static final String JSON_PROPERTY_DECIMAL = "decimal"; + @javax.annotation.Nullable private BigDecimal decimal; public static final String JSON_PROPERTY_STRING = "string"; + @javax.annotation.Nullable private String string; public static final String JSON_PROPERTY_BYTE = "byte"; + @javax.annotation.Nonnull private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; + @javax.annotation.Nullable private File binary; public static final String JSON_PROPERTY_DATE = "date"; + @javax.annotation.Nonnull private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; + @javax.annotation.Nonnull private String password; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS = "pattern_with_digits"; + @javax.annotation.Nullable private String patternWithDigits; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER = "pattern_with_digits_and_delimiter"; + @javax.annotation.Nullable private String patternWithDigitsAndDelimiter; public FormatTest() { } - public FormatTest integer(Integer integer) { + public FormatTest integer(@javax.annotation.Nullable Integer integer) { this.integer = integer; return this; } @@ -128,12 +144,12 @@ public Integer getInteger() { @JsonProperty(JSON_PROPERTY_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInteger(Integer integer) { + public void setInteger(@javax.annotation.Nullable Integer integer) { this.integer = integer; } - public FormatTest int32(Integer int32) { + public FormatTest int32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; return this; } @@ -155,12 +171,12 @@ public Integer getInt32() { @JsonProperty(JSON_PROPERTY_INT32) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInt32(Integer int32) { + public void setInt32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; } - public FormatTest int64(Long int64) { + public FormatTest int64(@javax.annotation.Nullable Long int64) { this.int64 = int64; return this; } @@ -180,12 +196,12 @@ public Long getInt64() { @JsonProperty(JSON_PROPERTY_INT64) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInt64(Long int64) { + public void setInt64(@javax.annotation.Nullable Long int64) { this.int64 = int64; } - public FormatTest number(BigDecimal number) { + public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { this.number = number; return this; } @@ -207,12 +223,12 @@ public BigDecimal getNumber() { @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNumber(BigDecimal number) { + public void setNumber(@javax.annotation.Nonnull BigDecimal number) { this.number = number; } - public FormatTest _float(Float _float) { + public FormatTest _float(@javax.annotation.Nullable Float _float) { this._float = _float; return this; } @@ -234,12 +250,12 @@ public Float getFloat() { @JsonProperty(JSON_PROPERTY_FLOAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFloat(Float _float) { + public void setFloat(@javax.annotation.Nullable Float _float) { this._float = _float; } - public FormatTest _double(Double _double) { + public FormatTest _double(@javax.annotation.Nullable Double _double) { this._double = _double; return this; } @@ -261,12 +277,12 @@ public Double getDouble() { @JsonProperty(JSON_PROPERTY_DOUBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDouble(Double _double) { + public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; } - public FormatTest decimal(BigDecimal decimal) { + public FormatTest decimal(@javax.annotation.Nullable BigDecimal decimal) { this.decimal = decimal; return this; } @@ -286,12 +302,12 @@ public BigDecimal getDecimal() { @JsonProperty(JSON_PROPERTY_DECIMAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDecimal(BigDecimal decimal) { + public void setDecimal(@javax.annotation.Nullable BigDecimal decimal) { this.decimal = decimal; } - public FormatTest string(String string) { + public FormatTest string(@javax.annotation.Nullable String string) { this.string = string; return this; } @@ -311,12 +327,12 @@ public String getString() { @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setString(String string) { + public void setString(@javax.annotation.Nullable String string) { this.string = string; } - public FormatTest _byte(byte[] _byte) { + public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; return this; } @@ -336,12 +352,12 @@ public byte[] getByte() { @JsonProperty(JSON_PROPERTY_BYTE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setByte(byte[] _byte) { + public void setByte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; } - public FormatTest binary(File binary) { + public FormatTest binary(@javax.annotation.Nullable File binary) { this.binary = binary; return this; } @@ -361,12 +377,12 @@ public File getBinary() { @JsonProperty(JSON_PROPERTY_BINARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBinary(File binary) { + public void setBinary(@javax.annotation.Nullable File binary) { this.binary = binary; } - public FormatTest date(LocalDate date) { + public FormatTest date(@javax.annotation.Nonnull LocalDate date) { this.date = date; return this; } @@ -386,12 +402,12 @@ public LocalDate getDate() { @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDate(LocalDate date) { + public void setDate(@javax.annotation.Nonnull LocalDate date) { this.date = date; } - public FormatTest dateTime(OffsetDateTime dateTime) { + public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -411,12 +427,12 @@ public OffsetDateTime getDateTime() { @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public FormatTest uuid(UUID uuid) { + public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -436,12 +452,12 @@ public UUID getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(UUID uuid) { + public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public FormatTest password(String password) { + public FormatTest password(@javax.annotation.Nonnull String password) { this.password = password; return this; } @@ -461,12 +477,12 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nonnull String password) { this.password = password; } - public FormatTest patternWithDigits(String patternWithDigits) { + public FormatTest patternWithDigits(@javax.annotation.Nullable String patternWithDigits) { this.patternWithDigits = patternWithDigits; return this; } @@ -486,12 +502,12 @@ public String getPatternWithDigits() { @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPatternWithDigits(String patternWithDigits) { + public void setPatternWithDigits(@javax.annotation.Nullable String patternWithDigits) { this.patternWithDigits = patternWithDigits; } - public FormatTest patternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) { + public FormatTest patternWithDigitsAndDelimiter(@javax.annotation.Nullable String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; return this; } @@ -511,7 +527,7 @@ public String getPatternWithDigitsAndDelimiter() { @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPatternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) { + public void setPatternWithDigitsAndDelimiter(@javax.annotation.Nullable String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/GrandparentAnimal.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/GrandparentAnimal.java index 3a4984986916..19199e9cc9d9 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/GrandparentAnimal.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/GrandparentAnimal.java @@ -48,12 +48,13 @@ public class GrandparentAnimal { public static final String JSON_PROPERTY_PET_TYPE = "pet_type"; + @javax.annotation.Nonnull private String petType; public GrandparentAnimal() { } - public GrandparentAnimal petType(String petType) { + public GrandparentAnimal petType(@javax.annotation.Nonnull String petType) { this.petType = petType; return this; } @@ -73,7 +74,7 @@ public String getPetType() { @JsonProperty(JSON_PROPERTY_PET_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPetType(String petType) { + public void setPetType(@javax.annotation.Nonnull String petType) { this.petType = petType; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index eebdf013480a..149d9c92a0fe 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -37,9 +37,11 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_FOO = "foo"; + @javax.annotation.Nullable private String foo; public HasOnlyReadOnly() { diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/HealthCheckResult.java index 67729db7f6ea..7f84e0edd440 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -44,7 +44,7 @@ public class HealthCheckResult { public HealthCheckResult() { } - public HealthCheckResult nullableMessage(String nullableMessage) { + public HealthCheckResult nullableMessage(@javax.annotation.Nullable String nullableMessage) { this.nullableMessage = JsonNullable.of(nullableMessage); return this; } @@ -72,7 +72,7 @@ public void setNullableMessage_JsonNullable(JsonNullable nullableMessage this.nullableMessage = nullableMessage; } - public void setNullableMessage(String nullableMessage) { + public void setNullableMessage(@javax.annotation.Nullable String nullableMessage) { this.nullableMessage = JsonNullable.of(nullableMessage); } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java index 07bd198e551e..6eb3773b16b8 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java @@ -36,15 +36,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class IsoscelesTriangle { public static final String JSON_PROPERTY_SHAPE_TYPE = "shapeType"; + @javax.annotation.Nonnull private String shapeType; public static final String JSON_PROPERTY_TRIANGLE_TYPE = "triangleType"; + @javax.annotation.Nonnull private String triangleType; public IsoscelesTriangle() { } - public IsoscelesTriangle shapeType(String shapeType) { + public IsoscelesTriangle shapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; return this; } @@ -64,12 +66,12 @@ public String getShapeType() { @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setShapeType(String shapeType) { + public void setShapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; } - public IsoscelesTriangle triangleType(String triangleType) { + public IsoscelesTriangle triangleType(@javax.annotation.Nonnull String triangleType) { this.triangleType = triangleType; return this; } @@ -89,7 +91,7 @@ public String getTriangleType() { @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTriangleType(String triangleType) { + public void setTriangleType(@javax.annotation.Nonnull String triangleType) { this.triangleType = triangleType; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MapTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MapTest.java index 845b86c22c34..f85a41bf5acf 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MapTest.java @@ -40,6 +40,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; + @javax.annotation.Nullable private Map> mapMapOfString = new HashMap<>(); /** @@ -78,18 +79,21 @@ public static InnerEnum fromValue(String value) { } public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; + @javax.annotation.Nullable private Map mapOfEnumString = new HashMap<>(); public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; + @javax.annotation.Nullable private Map directMap = new HashMap<>(); public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; + @javax.annotation.Nullable private Map indirectMap = new HashMap<>(); public MapTest() { } - public MapTest mapMapOfString(Map> mapMapOfString) { + public MapTest mapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; return this; } @@ -117,12 +121,12 @@ public Map> getMapMapOfString() { @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapMapOfString(Map> mapMapOfString) { + public void setMapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } - public MapTest mapOfEnumString(Map mapOfEnumString) { + public MapTest mapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; return this; } @@ -150,12 +154,12 @@ public Map getMapOfEnumString() { @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMapOfEnumString(Map mapOfEnumString) { + public void setMapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } - public MapTest directMap(Map directMap) { + public MapTest directMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; return this; } @@ -183,12 +187,12 @@ public Map getDirectMap() { @JsonProperty(JSON_PROPERTY_DIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDirectMap(Map directMap) { + public void setDirectMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; } - public MapTest indirectMap(Map indirectMap) { + public MapTest indirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; return this; } @@ -216,7 +220,7 @@ public Map getIndirectMap() { @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIndirectMap(Map indirectMap) { + public void setIndirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 7bd878397871..1d8e79903204 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -42,18 +42,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; + @javax.annotation.Nullable private Map map = new HashMap<>(); public MixedPropertiesAndAdditionalPropertiesClass() { } - public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; return this; } @@ -73,12 +76,12 @@ public UUID getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(UUID uuid) { + public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; } - public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; return this; } @@ -98,12 +101,12 @@ public OffsetDateTime getDateTime() { @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDateTime(OffsetDateTime dateTime) { + public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; } - public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + public MixedPropertiesAndAdditionalPropertiesClass map(@javax.annotation.Nullable Map map) { this.map = map; return this; } @@ -131,7 +134,7 @@ public Map getMap() { @JsonProperty(JSON_PROPERTY_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMap(Map map) { + public void setMap(@javax.annotation.Nullable Map map) { this.map = map; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Model200Response.java index 9969dfbbebd6..aef50b04ef33 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Model200Response.java @@ -37,15 +37,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; + @javax.annotation.Nullable private String propertyClass; public Model200Response() { } - public Model200Response name(Integer name) { + public Model200Response name(@javax.annotation.Nullable Integer name) { this.name = name; return this; } @@ -65,12 +67,12 @@ public Integer getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(Integer name) { + public void setName(@javax.annotation.Nullable Integer name) { this.name = name; } - public Model200Response propertyClass(String propertyClass) { + public Model200Response propertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; return this; } @@ -90,7 +92,7 @@ public String getPropertyClass() { @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPropertyClass(String propertyClass) { + public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelApiResponse.java index a41bf414803c..2e8205a694a1 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -38,18 +38,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; + @javax.annotation.Nullable private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nullable private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; + @javax.annotation.Nullable private String message; public ModelApiResponse() { } - public ModelApiResponse code(Integer code) { + public ModelApiResponse code(@javax.annotation.Nullable Integer code) { this.code = code; return this; } @@ -69,12 +72,12 @@ public Integer getCode() { @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCode(Integer code) { + public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; } - public ModelApiResponse type(String type) { + public ModelApiResponse type(@javax.annotation.Nullable String type) { this.type = type; return this; } @@ -94,12 +97,12 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { + public void setType(@javax.annotation.Nullable String type) { this.type = type; } - public ModelApiResponse message(String message) { + public ModelApiResponse message(@javax.annotation.Nullable String message) { this.message = message; return this; } @@ -119,7 +122,7 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelFile.java index 5e8b7dd4bf5a..a0b5e88d2ee0 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelFile.java @@ -36,12 +36,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelFile { public static final String JSON_PROPERTY_SOURCE_U_R_I = "sourceURI"; + @javax.annotation.Nullable private String sourceURI; public ModelFile() { } - public ModelFile sourceURI(String sourceURI) { + public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; return this; } @@ -61,7 +62,7 @@ public String getSourceURI() { @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSourceURI(String sourceURI) { + public void setSourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelList.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelList.java index 97b4cb7539ce..87a59ce3c747 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelList.java @@ -36,12 +36,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelList { public static final String JSON_PROPERTY_123LIST = "123-list"; + @javax.annotation.Nullable private String _123list; public ModelList() { } - public ModelList _123list(String _123list) { + public ModelList _123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; return this; } @@ -61,7 +62,7 @@ public String get123list() { @JsonProperty(JSON_PROPERTY_123LIST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void set123list(String _123list) { + public void set123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelReturn.java index 2738d6e2a99e..35441230b60f 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -36,12 +36,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; + @javax.annotation.Nullable private Integer _return; public ModelReturn() { } - public ModelReturn _return(Integer _return) { + public ModelReturn _return(@javax.annotation.Nullable Integer _return) { this._return = _return; return this; } @@ -61,7 +62,7 @@ public Integer getReturn() { @JsonProperty(JSON_PROPERTY_RETURN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setReturn(Integer _return) { + public void setReturn(@javax.annotation.Nullable Integer _return) { this._return = _return; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Name.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Name.java index 726e5874186a..3702f96a2e2f 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Name.java @@ -38,15 +38,19 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Name { public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; + @javax.annotation.Nullable private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; + @javax.annotation.Nullable private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; + @javax.annotation.Nullable private Integer _123number; public Name() { @@ -62,7 +66,7 @@ public Name( this._123number = _123number; } - public Name name(Integer name) { + public Name name(@javax.annotation.Nonnull Integer name) { this.name = name; return this; } @@ -82,7 +86,7 @@ public Integer getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(Integer name) { + public void setName(@javax.annotation.Nonnull Integer name) { this.name = name; } @@ -102,7 +106,7 @@ public Integer getSnakeCase() { - public Name property(String property) { + public Name property(@javax.annotation.Nullable String property) { this.property = property; return this; } @@ -122,7 +126,7 @@ public String getProperty() { @JsonProperty(JSON_PROPERTY_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProperty(String property) { + public void setProperty(@javax.annotation.Nullable String property) { this.property = property; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/NullableClass.java index 1225a71ee151..65a72406f189 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/NullableClass.java @@ -85,6 +85,7 @@ public class NullableClass { private JsonNullable> arrayAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_ITEMS_NULLABLE = "array_items_nullable"; + @javax.annotation.Nullable private List arrayItemsNullable = new ArrayList<>(); public static final String JSON_PROPERTY_OBJECT_NULLABLE_PROP = "object_nullable_prop"; @@ -94,12 +95,13 @@ public class NullableClass { private JsonNullable> objectAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_OBJECT_ITEMS_NULLABLE = "object_items_nullable"; + @javax.annotation.Nullable private Map objectItemsNullable = new HashMap<>(); public NullableClass() { } - public NullableClass integerProp(Integer integerProp) { + public NullableClass integerProp(@javax.annotation.Nullable Integer integerProp) { this.integerProp = JsonNullable.of(integerProp); return this; } @@ -127,12 +129,12 @@ public void setIntegerProp_JsonNullable(JsonNullable integerProp) { this.integerProp = integerProp; } - public void setIntegerProp(Integer integerProp) { + public void setIntegerProp(@javax.annotation.Nullable Integer integerProp) { this.integerProp = JsonNullable.of(integerProp); } - public NullableClass numberProp(BigDecimal numberProp) { + public NullableClass numberProp(@javax.annotation.Nullable BigDecimal numberProp) { this.numberProp = JsonNullable.of(numberProp); return this; } @@ -160,12 +162,12 @@ public void setNumberProp_JsonNullable(JsonNullable numberProp) { this.numberProp = numberProp; } - public void setNumberProp(BigDecimal numberProp) { + public void setNumberProp(@javax.annotation.Nullable BigDecimal numberProp) { this.numberProp = JsonNullable.of(numberProp); } - public NullableClass booleanProp(Boolean booleanProp) { + public NullableClass booleanProp(@javax.annotation.Nullable Boolean booleanProp) { this.booleanProp = JsonNullable.of(booleanProp); return this; } @@ -193,12 +195,12 @@ public void setBooleanProp_JsonNullable(JsonNullable booleanProp) { this.booleanProp = booleanProp; } - public void setBooleanProp(Boolean booleanProp) { + public void setBooleanProp(@javax.annotation.Nullable Boolean booleanProp) { this.booleanProp = JsonNullable.of(booleanProp); } - public NullableClass stringProp(String stringProp) { + public NullableClass stringProp(@javax.annotation.Nullable String stringProp) { this.stringProp = JsonNullable.of(stringProp); return this; } @@ -226,12 +228,12 @@ public void setStringProp_JsonNullable(JsonNullable stringProp) { this.stringProp = stringProp; } - public void setStringProp(String stringProp) { + public void setStringProp(@javax.annotation.Nullable String stringProp) { this.stringProp = JsonNullable.of(stringProp); } - public NullableClass dateProp(LocalDate dateProp) { + public NullableClass dateProp(@javax.annotation.Nullable LocalDate dateProp) { this.dateProp = JsonNullable.of(dateProp); return this; } @@ -259,12 +261,12 @@ public void setDateProp_JsonNullable(JsonNullable dateProp) { this.dateProp = dateProp; } - public void setDateProp(LocalDate dateProp) { + public void setDateProp(@javax.annotation.Nullable LocalDate dateProp) { this.dateProp = JsonNullable.of(dateProp); } - public NullableClass datetimeProp(OffsetDateTime datetimeProp) { + public NullableClass datetimeProp(@javax.annotation.Nullable OffsetDateTime datetimeProp) { this.datetimeProp = JsonNullable.of(datetimeProp); return this; } @@ -292,12 +294,12 @@ public void setDatetimeProp_JsonNullable(JsonNullable datetimePr this.datetimeProp = datetimeProp; } - public void setDatetimeProp(OffsetDateTime datetimeProp) { + public void setDatetimeProp(@javax.annotation.Nullable OffsetDateTime datetimeProp) { this.datetimeProp = JsonNullable.of(datetimeProp); } - public NullableClass arrayNullableProp(List arrayNullableProp) { + public NullableClass arrayNullableProp(@javax.annotation.Nullable List arrayNullableProp) { this.arrayNullableProp = JsonNullable.>of(arrayNullableProp); return this; } @@ -337,12 +339,12 @@ public void setArrayNullableProp_JsonNullable(JsonNullable> arrayNu this.arrayNullableProp = arrayNullableProp; } - public void setArrayNullableProp(List arrayNullableProp) { + public void setArrayNullableProp(@javax.annotation.Nullable List arrayNullableProp) { this.arrayNullableProp = JsonNullable.>of(arrayNullableProp); } - public NullableClass arrayAndItemsNullableProp(List arrayAndItemsNullableProp) { + public NullableClass arrayAndItemsNullableProp(@javax.annotation.Nullable List arrayAndItemsNullableProp) { this.arrayAndItemsNullableProp = JsonNullable.>of(arrayAndItemsNullableProp); return this; } @@ -382,12 +384,12 @@ public void setArrayAndItemsNullableProp_JsonNullable(JsonNullable> this.arrayAndItemsNullableProp = arrayAndItemsNullableProp; } - public void setArrayAndItemsNullableProp(List arrayAndItemsNullableProp) { + public void setArrayAndItemsNullableProp(@javax.annotation.Nullable List arrayAndItemsNullableProp) { this.arrayAndItemsNullableProp = JsonNullable.>of(arrayAndItemsNullableProp); } - public NullableClass arrayItemsNullable(List arrayItemsNullable) { + public NullableClass arrayItemsNullable(@javax.annotation.Nullable List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; return this; } @@ -415,12 +417,12 @@ public List getArrayItemsNullable() { @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setArrayItemsNullable(List arrayItemsNullable) { + public void setArrayItemsNullable(@javax.annotation.Nullable List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; } - public NullableClass objectNullableProp(Map objectNullableProp) { + public NullableClass objectNullableProp(@javax.annotation.Nullable Map objectNullableProp) { this.objectNullableProp = JsonNullable.>of(objectNullableProp); return this; } @@ -460,12 +462,12 @@ public void setObjectNullableProp_JsonNullable(JsonNullable> this.objectNullableProp = objectNullableProp; } - public void setObjectNullableProp(Map objectNullableProp) { + public void setObjectNullableProp(@javax.annotation.Nullable Map objectNullableProp) { this.objectNullableProp = JsonNullable.>of(objectNullableProp); } - public NullableClass objectAndItemsNullableProp(Map objectAndItemsNullableProp) { + public NullableClass objectAndItemsNullableProp(@javax.annotation.Nullable Map objectAndItemsNullableProp) { this.objectAndItemsNullableProp = JsonNullable.>of(objectAndItemsNullableProp); return this; } @@ -505,12 +507,12 @@ public void setObjectAndItemsNullableProp_JsonNullable(JsonNullable objectAndItemsNullableProp) { + public void setObjectAndItemsNullableProp(@javax.annotation.Nullable Map objectAndItemsNullableProp) { this.objectAndItemsNullableProp = JsonNullable.>of(objectAndItemsNullableProp); } - public NullableClass objectItemsNullable(Map objectItemsNullable) { + public NullableClass objectItemsNullable(@javax.annotation.Nullable Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; return this; } @@ -538,7 +540,7 @@ public Map getObjectItemsNullable() { @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setObjectItemsNullable(Map objectItemsNullable) { + public void setObjectItemsNullable(@javax.annotation.Nullable Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/NumberOnly.java index 25e8e2f725da..1ddf9e67a9d3 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -36,12 +36,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; + @javax.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } - public NumberOnly justNumber(BigDecimal justNumber) { + public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; return this; } @@ -61,7 +62,7 @@ public BigDecimal getJustNumber() { @JsonProperty(JSON_PROPERTY_JUST_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJustNumber(BigDecimal justNumber) { + public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index 41eb9ca754d8..86236832f2d7 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -42,24 +42,28 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ObjectWithDeprecatedFields { public static final String JSON_PROPERTY_UUID = "uuid"; + @javax.annotation.Nullable private String uuid; public static final String JSON_PROPERTY_ID = "id"; @Deprecated + @javax.annotation.Nullable private BigDecimal id; public static final String JSON_PROPERTY_DEPRECATED_REF = "deprecatedRef"; @Deprecated + @javax.annotation.Nullable private DeprecatedObject deprecatedRef; public static final String JSON_PROPERTY_BARS = "bars"; @Deprecated + @javax.annotation.Nullable private List bars = new ArrayList<>(); public ObjectWithDeprecatedFields() { } - public ObjectWithDeprecatedFields uuid(String uuid) { + public ObjectWithDeprecatedFields uuid(@javax.annotation.Nullable String uuid) { this.uuid = uuid; return this; } @@ -79,13 +83,13 @@ public String getUuid() { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUuid(String uuid) { + public void setUuid(@javax.annotation.Nullable String uuid) { this.uuid = uuid; } @Deprecated - public ObjectWithDeprecatedFields id(BigDecimal id) { + public ObjectWithDeprecatedFields id(@javax.annotation.Nullable BigDecimal id) { this.id = id; return this; } @@ -108,13 +112,13 @@ public BigDecimal getId() { @Deprecated @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(BigDecimal id) { + public void setId(@javax.annotation.Nullable BigDecimal id) { this.id = id; } @Deprecated - public ObjectWithDeprecatedFields deprecatedRef(DeprecatedObject deprecatedRef) { + public ObjectWithDeprecatedFields deprecatedRef(@javax.annotation.Nullable DeprecatedObject deprecatedRef) { this.deprecatedRef = deprecatedRef; return this; } @@ -137,13 +141,13 @@ public DeprecatedObject getDeprecatedRef() { @Deprecated @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeprecatedRef(DeprecatedObject deprecatedRef) { + public void setDeprecatedRef(@javax.annotation.Nullable DeprecatedObject deprecatedRef) { this.deprecatedRef = deprecatedRef; } @Deprecated - public ObjectWithDeprecatedFields bars(List bars) { + public ObjectWithDeprecatedFields bars(@javax.annotation.Nullable List bars) { this.bars = bars; return this; } @@ -174,7 +178,7 @@ public List getBars() { @Deprecated @JsonProperty(JSON_PROPERTY_BARS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBars(List bars) { + public void setBars(@javax.annotation.Nullable List bars) { this.bars = bars; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Order.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Order.java index 038b1f9c67a9..52ce14e9b271 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Order.java @@ -41,15 +41,19 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Order { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; + @javax.annotation.Nullable private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; + @javax.annotation.Nullable private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; + @javax.annotation.Nullable private OffsetDateTime shipDate; /** @@ -90,15 +94,17 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @javax.annotation.Nullable private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; + @javax.annotation.Nullable private Boolean complete = false; public Order() { } - public Order id(Long id) { + public Order id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -118,12 +124,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Order petId(Long petId) { + public Order petId(@javax.annotation.Nullable Long petId) { this.petId = petId; return this; } @@ -143,12 +149,12 @@ public Long getPetId() { @JsonProperty(JSON_PROPERTY_PET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPetId(Long petId) { + public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; } - public Order quantity(Integer quantity) { + public Order quantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; return this; } @@ -168,12 +174,12 @@ public Integer getQuantity() { @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setQuantity(Integer quantity) { + public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; } - public Order shipDate(OffsetDateTime shipDate) { + public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; return this; } @@ -193,12 +199,12 @@ public OffsetDateTime getShipDate() { @JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setShipDate(OffsetDateTime shipDate) { + public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; } - public Order status(StatusEnum status) { + public Order status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; } @@ -218,12 +224,12 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } - public Order complete(Boolean complete) { + public Order complete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; return this; } @@ -243,7 +249,7 @@ public Boolean getComplete() { @JsonProperty(JSON_PROPERTY_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setComplete(Boolean complete) { + public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/OuterComposite.java index 9298de14bb65..448311309ac7 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -38,18 +38,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; + @javax.annotation.Nullable private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; + @javax.annotation.Nullable private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; + @javax.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } - public OuterComposite myNumber(BigDecimal myNumber) { + public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; return this; } @@ -69,12 +72,12 @@ public BigDecimal getMyNumber() { @JsonProperty(JSON_PROPERTY_MY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyNumber(BigDecimal myNumber) { + public void setMyNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; } - public OuterComposite myString(String myString) { + public OuterComposite myString(@javax.annotation.Nullable String myString) { this.myString = myString; return this; } @@ -94,12 +97,12 @@ public String getMyString() { @JsonProperty(JSON_PROPERTY_MY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyString(String myString) { + public void setMyString(@javax.annotation.Nullable String myString) { this.myString = myString; } - public OuterComposite myBoolean(Boolean myBoolean) { + public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; return this; } @@ -119,7 +122,7 @@ public Boolean getMyBoolean() { @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMyBoolean(Boolean myBoolean) { + public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Pet.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Pet.java index b89189426e16..4cdefa17b91f 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Pet.java @@ -44,18 +44,23 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Pet { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; + @javax.annotation.Nullable private Category category; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nonnull private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; + @javax.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String JSON_PROPERTY_TAGS = "tags"; + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** @@ -96,12 +101,13 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } - public Pet id(Long id) { + public Pet id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -121,12 +127,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Pet category(Category category) { + public Pet category(@javax.annotation.Nullable Category category) { this.category = category; return this; } @@ -146,12 +152,12 @@ public Category getCategory() { @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCategory(Category category) { + public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; } - public Pet name(String name) { + public Pet name(@javax.annotation.Nonnull String name) { this.name = name; return this; } @@ -171,12 +177,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@javax.annotation.Nonnull String name) { this.name = name; } - public Pet photoUrls(List photoUrls) { + public Pet photoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; return this; } @@ -204,12 +210,12 @@ public List getPhotoUrls() { @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPhotoUrls(List photoUrls) { + public void setPhotoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; } - public Pet tags(List tags) { + public Pet tags(@javax.annotation.Nullable List tags) { this.tags = tags; return this; } @@ -237,12 +243,12 @@ public List getTags() { @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTags(List tags) { + public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; } - public Pet status(StatusEnum status) { + public Pet status(@javax.annotation.Nullable StatusEnum status) { this.status = status; return this; } @@ -262,7 +268,7 @@ public StatusEnum getStatus() { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatus(StatusEnum status) { + public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java index 1406d27b6c22..4566f143f156 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java @@ -35,12 +35,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class QuadrilateralInterface { public static final String JSON_PROPERTY_QUADRILATERAL_TYPE = "quadrilateralType"; + @javax.annotation.Nonnull private String quadrilateralType; public QuadrilateralInterface() { } - public QuadrilateralInterface quadrilateralType(String quadrilateralType) { + public QuadrilateralInterface quadrilateralType(@javax.annotation.Nonnull String quadrilateralType) { this.quadrilateralType = quadrilateralType; return this; } @@ -60,7 +61,7 @@ public String getQuadrilateralType() { @JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setQuadrilateralType(String quadrilateralType) { + public void setQuadrilateralType(@javax.annotation.Nonnull String quadrilateralType) { this.quadrilateralType = quadrilateralType; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 8e2c2b11ae6e..73ccf4eeb69d 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -36,9 +36,11 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; + @javax.annotation.Nullable private String baz; public ReadOnlyFirst() { @@ -67,7 +69,7 @@ public String getBar() { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { this.baz = baz; return this; } @@ -87,7 +89,7 @@ public String getBaz() { @JsonProperty(JSON_PROPERTY_BAZ) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBaz(String baz) { + public void setBaz(@javax.annotation.Nullable String baz) { this.baz = baz; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ScaleneTriangle.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ScaleneTriangle.java index 657b465fcf01..3bd13fd57868 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ScaleneTriangle.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ScaleneTriangle.java @@ -40,15 +40,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ScaleneTriangle { public static final String JSON_PROPERTY_SHAPE_TYPE = "shapeType"; + @javax.annotation.Nonnull private String shapeType; public static final String JSON_PROPERTY_TRIANGLE_TYPE = "triangleType"; + @javax.annotation.Nonnull private String triangleType; public ScaleneTriangle() { } - public ScaleneTriangle shapeType(String shapeType) { + public ScaleneTriangle shapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; return this; } @@ -68,12 +70,12 @@ public String getShapeType() { @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setShapeType(String shapeType) { + public void setShapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; } - public ScaleneTriangle triangleType(String triangleType) { + public ScaleneTriangle triangleType(@javax.annotation.Nonnull String triangleType) { this.triangleType = triangleType; return this; } @@ -93,7 +95,7 @@ public String getTriangleType() { @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTriangleType(String triangleType) { + public void setTriangleType(@javax.annotation.Nonnull String triangleType) { this.triangleType = triangleType; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ShapeInterface.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ShapeInterface.java index d3ff1feee513..ee61b612768c 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ShapeInterface.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ShapeInterface.java @@ -35,12 +35,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class ShapeInterface { public static final String JSON_PROPERTY_SHAPE_TYPE = "shapeType"; + @javax.annotation.Nonnull private String shapeType; public ShapeInterface() { } - public ShapeInterface shapeType(String shapeType) { + public ShapeInterface shapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; return this; } @@ -60,7 +61,7 @@ public String getShapeType() { @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setShapeType(String shapeType) { + public void setShapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java index d9346cdedeec..4e8fb277ec3a 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java @@ -40,15 +40,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class SimpleQuadrilateral { public static final String JSON_PROPERTY_SHAPE_TYPE = "shapeType"; + @javax.annotation.Nonnull private String shapeType; public static final String JSON_PROPERTY_QUADRILATERAL_TYPE = "quadrilateralType"; + @javax.annotation.Nonnull private String quadrilateralType; public SimpleQuadrilateral() { } - public SimpleQuadrilateral shapeType(String shapeType) { + public SimpleQuadrilateral shapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; return this; } @@ -68,12 +70,12 @@ public String getShapeType() { @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setShapeType(String shapeType) { + public void setShapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; } - public SimpleQuadrilateral quadrilateralType(String quadrilateralType) { + public SimpleQuadrilateral quadrilateralType(@javax.annotation.Nonnull String quadrilateralType) { this.quadrilateralType = quadrilateralType; return this; } @@ -93,7 +95,7 @@ public String getQuadrilateralType() { @JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setQuadrilateralType(String quadrilateralType) { + public void setQuadrilateralType(@javax.annotation.Nonnull String quadrilateralType) { this.quadrilateralType = quadrilateralType; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/SpecialModelName.java index f2375cc10c20..43d13784e378 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -37,15 +37,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; + @javax.annotation.Nullable private Long $specialPropertyName; public static final String JSON_PROPERTY_SPECIAL_MODEL_NAME = "_special_model.name_"; + @javax.annotation.Nullable private String specialModelName; public SpecialModelName() { } - public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + public SpecialModelName $specialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; return this; } @@ -65,12 +67,12 @@ public SpecialModelName() { @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void set$SpecialPropertyName(Long $specialPropertyName) { + public void set$SpecialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } - public SpecialModelName specialModelName(String specialModelName) { + public SpecialModelName specialModelName(@javax.annotation.Nullable String specialModelName) { this.specialModelName = specialModelName; return this; } @@ -90,7 +92,7 @@ public String getSpecialModelName() { @JsonProperty(JSON_PROPERTY_SPECIAL_MODEL_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSpecialModelName(String specialModelName) { + public void setSpecialModelName(@javax.annotation.Nullable String specialModelName) { this.specialModelName = specialModelName; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Tag.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Tag.java index b3097bd9bf8d..bacb1fb92747 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Tag.java @@ -36,15 +36,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Tag { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable private String name; public Tag() { } - public Tag id(Long id) { + public Tag id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -64,12 +66,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public Tag name(String name) { + public Tag name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -89,7 +91,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index 5bec5bbee285..9f27de8883ce 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -40,12 +40,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class TestInlineFreeformAdditionalPropertiesRequest { public static final String JSON_PROPERTY_SOME_PROPERTY = "someProperty"; + @javax.annotation.Nullable private String someProperty; public TestInlineFreeformAdditionalPropertiesRequest() { } - public TestInlineFreeformAdditionalPropertiesRequest someProperty(String someProperty) { + public TestInlineFreeformAdditionalPropertiesRequest someProperty(@javax.annotation.Nullable String someProperty) { this.someProperty = someProperty; return this; } @@ -65,7 +66,7 @@ public String getSomeProperty() { @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSomeProperty(String someProperty) { + public void setSomeProperty(@javax.annotation.Nullable String someProperty) { this.someProperty = someProperty; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TriangleInterface.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TriangleInterface.java index 7710b82121e3..1ac55836b9fa 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TriangleInterface.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TriangleInterface.java @@ -35,12 +35,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class TriangleInterface { public static final String JSON_PROPERTY_TRIANGLE_TYPE = "triangleType"; + @javax.annotation.Nonnull private String triangleType; public TriangleInterface() { } - public TriangleInterface triangleType(String triangleType) { + public TriangleInterface triangleType(@javax.annotation.Nonnull String triangleType) { this.triangleType = triangleType; return this; } @@ -60,7 +61,7 @@ public String getTriangleType() { @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTriangleType(String triangleType) { + public void setTriangleType(@javax.annotation.Nonnull String triangleType) { this.triangleType = triangleType; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/User.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/User.java index 9141d9d451ed..ee51e50a5cad 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/User.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/User.java @@ -50,30 +50,39 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class User { public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; + @javax.annotation.Nullable private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; + @javax.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; + @javax.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; + @javax.annotation.Nullable private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; + @javax.annotation.Nullable private String password; public static final String JSON_PROPERTY_PHONE = "phone"; + @javax.annotation.Nullable private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; + @javax.annotation.Nullable private Integer userStatus; public static final String JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS = "objectWithNoDeclaredProps"; + @javax.annotation.Nullable private Object objectWithNoDeclaredProps; public static final String JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS_NULLABLE = "objectWithNoDeclaredPropsNullable"; @@ -88,7 +97,7 @@ public class User { public User() { } - public User id(Long id) { + public User id(@javax.annotation.Nullable Long id) { this.id = id; return this; } @@ -108,12 +117,12 @@ public Long getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(Long id) { + public void setId(@javax.annotation.Nullable Long id) { this.id = id; } - public User username(String username) { + public User username(@javax.annotation.Nullable String username) { this.username = username; return this; } @@ -133,12 +142,12 @@ public String getUsername() { @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsername(String username) { + public void setUsername(@javax.annotation.Nullable String username) { this.username = username; } - public User firstName(String firstName) { + public User firstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; return this; } @@ -158,12 +167,12 @@ public String getFirstName() { @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFirstName(String firstName) { + public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; } - public User lastName(String lastName) { + public User lastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; return this; } @@ -183,12 +192,12 @@ public String getLastName() { @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLastName(String lastName) { + public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; } - public User email(String email) { + public User email(@javax.annotation.Nullable String email) { this.email = email; return this; } @@ -208,12 +217,12 @@ public String getEmail() { @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEmail(String email) { + public void setEmail(@javax.annotation.Nullable String email) { this.email = email; } - public User password(String password) { + public User password(@javax.annotation.Nullable String password) { this.password = password; return this; } @@ -233,12 +242,12 @@ public String getPassword() { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nullable String password) { this.password = password; } - public User phone(String phone) { + public User phone(@javax.annotation.Nullable String phone) { this.phone = phone; return this; } @@ -258,12 +267,12 @@ public String getPhone() { @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPhone(String phone) { + public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; } - public User userStatus(Integer userStatus) { + public User userStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; return this; } @@ -283,12 +292,12 @@ public Integer getUserStatus() { @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUserStatus(Integer userStatus) { + public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; } - public User objectWithNoDeclaredProps(Object objectWithNoDeclaredProps) { + public User objectWithNoDeclaredProps(@javax.annotation.Nullable Object objectWithNoDeclaredProps) { this.objectWithNoDeclaredProps = objectWithNoDeclaredProps; return this; } @@ -308,12 +317,12 @@ public Object getObjectWithNoDeclaredProps() { @JsonProperty(JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setObjectWithNoDeclaredProps(Object objectWithNoDeclaredProps) { + public void setObjectWithNoDeclaredProps(@javax.annotation.Nullable Object objectWithNoDeclaredProps) { this.objectWithNoDeclaredProps = objectWithNoDeclaredProps; } - public User objectWithNoDeclaredPropsNullable(Object objectWithNoDeclaredPropsNullable) { + public User objectWithNoDeclaredPropsNullable(@javax.annotation.Nullable Object objectWithNoDeclaredPropsNullable) { this.objectWithNoDeclaredPropsNullable = JsonNullable.of(objectWithNoDeclaredPropsNullable); return this; } @@ -341,12 +350,12 @@ public void setObjectWithNoDeclaredPropsNullable_JsonNullable(JsonNullableof(objectWithNoDeclaredPropsNullable); } - public User anyTypeProp(Object anyTypeProp) { + public User anyTypeProp(@javax.annotation.Nullable Object anyTypeProp) { this.anyTypeProp = JsonNullable.of(anyTypeProp); return this; } @@ -374,12 +383,12 @@ public void setAnyTypeProp_JsonNullable(JsonNullable anyTypeProp) { this.anyTypeProp = anyTypeProp; } - public void setAnyTypeProp(Object anyTypeProp) { + public void setAnyTypeProp(@javax.annotation.Nullable Object anyTypeProp) { this.anyTypeProp = JsonNullable.of(anyTypeProp); } - public User anyTypePropNullable(Object anyTypePropNullable) { + public User anyTypePropNullable(@javax.annotation.Nullable Object anyTypePropNullable) { this.anyTypePropNullable = JsonNullable.of(anyTypePropNullable); return this; } @@ -407,7 +416,7 @@ public void setAnyTypePropNullable_JsonNullable(JsonNullable anyTypeProp this.anyTypePropNullable = anyTypePropNullable; } - public void setAnyTypePropNullable(Object anyTypePropNullable) { + public void setAnyTypePropNullable(@javax.annotation.Nullable Object anyTypePropNullable) { this.anyTypePropNullable = JsonNullable.of(anyTypePropNullable); } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Whale.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Whale.java index 70f4d30a0d89..8b4138a92719 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Whale.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Whale.java @@ -38,18 +38,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0-SNAPSHOT") public class Whale { public static final String JSON_PROPERTY_HAS_BALEEN = "hasBaleen"; + @javax.annotation.Nullable private Boolean hasBaleen; public static final String JSON_PROPERTY_HAS_TEETH = "hasTeeth"; + @javax.annotation.Nullable private Boolean hasTeeth; public static final String JSON_PROPERTY_CLASS_NAME = "className"; + @javax.annotation.Nonnull private String className; public Whale() { } - public Whale hasBaleen(Boolean hasBaleen) { + public Whale hasBaleen(@javax.annotation.Nullable Boolean hasBaleen) { this.hasBaleen = hasBaleen; return this; } @@ -69,12 +72,12 @@ public Boolean getHasBaleen() { @JsonProperty(JSON_PROPERTY_HAS_BALEEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setHasBaleen(Boolean hasBaleen) { + public void setHasBaleen(@javax.annotation.Nullable Boolean hasBaleen) { this.hasBaleen = hasBaleen; } - public Whale hasTeeth(Boolean hasTeeth) { + public Whale hasTeeth(@javax.annotation.Nullable Boolean hasTeeth) { this.hasTeeth = hasTeeth; return this; } @@ -94,12 +97,12 @@ public Boolean getHasTeeth() { @JsonProperty(JSON_PROPERTY_HAS_TEETH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setHasTeeth(Boolean hasTeeth) { + public void setHasTeeth(@javax.annotation.Nullable Boolean hasTeeth) { this.hasTeeth = hasTeeth; } - public Whale className(String className) { + public Whale className(@javax.annotation.Nonnull String className) { this.className = className; return this; } @@ -119,7 +122,7 @@ public String getClassName() { @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setClassName(String className) { + public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Zebra.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Zebra.java index 2c2cf86fc8ac..e27df98bcd93 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Zebra.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Zebra.java @@ -78,15 +78,17 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nullable private TypeEnum type; public static final String JSON_PROPERTY_CLASS_NAME = "className"; + @javax.annotation.Nonnull private String className; public Zebra() { } - public Zebra type(TypeEnum type) { + public Zebra type(@javax.annotation.Nullable TypeEnum type) { this.type = type; return this; } @@ -106,12 +108,12 @@ public TypeEnum getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(TypeEnum type) { + public void setType(@javax.annotation.Nullable TypeEnum type) { this.type = type; } - public Zebra className(String className) { + public Zebra className(@javax.annotation.Nonnull String className) { this.className = className; return this; } @@ -131,7 +133,7 @@ public String getClassName() { @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setClassName(String className) { + public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; }