From 3f273b446600459024f72dea6cfb96a3261417e6 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 | 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 | 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 +- .../org/openapitools/client/model/OneOf1.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 | 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 +-- .../org/openapitools/client/model/File.java | 5 +- .../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/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 | 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 | 10 +- .../openapitools/client/model/EnumTest.java | 39 +++-- .../model/FakeBigDecimalMap200Response.java | 10 +- .../org/openapitools/client/model/File.java | 5 +- .../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 | 4 +- .../openapitools/client/model/MapTest.java | 20 ++- ...ropertiesAndAdditionalPropertiesClass.java | 15 +- .../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 | 50 +++--- .../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 | 9 +- .../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 | 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 +++++++++++------- .../openapitools/client/model/SchemaA.java | 5 +- .../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 ++-- .../SelfReferenceAdditionalProperties.java | 5 +- .../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 +- 1574 files changed, 14836 insertions(+), 9892 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 6c1719b4c716..361d461c6639 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.10.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 82af2f1f7128..ab9af00bda1a 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.10.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 32b3ba5e32a2..08a99cf81eea 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.10.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 1a4fbefa3777..f3878ee31252 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.10.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 58d5f5d78e80..5f44753f35b3 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.10.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 72630c5ea618..32efe4b67ed9 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.10.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 ef6ef084bae5..7383b1df01a4 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.10.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 b8653eee4957..bfbc60ff793b 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.10.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 f9fec108fd10..b441ab62d790 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.10.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 cf1582cd6233..0294f53b1e92 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.10.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 d967e3f36f6a..e3f337b30064 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.10.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 835125db9338..5dc5e0d3f0c5 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 aaed170cf6bb..c128cee24311 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 235d1e674682..606a98af052d 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 6658259201a5..09d07d8b75e1 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 @@ -34,6 +34,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)); /** @@ -87,36 +88,43 @@ public ArrayStringEnumDefaultEnum read(final JsonReader jsonReader) throws IOExc 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; @@ -141,12 +149,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 +179,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 +209,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 +239,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 +269,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 +299,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 +329,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 +351,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 7bfdbfd78ff5..7cfde325390f 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 3a4f8e816c61..bf904ee1a7f5 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,22 +34,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<>(); /** @@ -103,12 +108,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 +131,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 +153,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 +175,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 +205,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 +235,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 +257,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 d5433e88791f..23ea531e016d 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; /** @@ -85,12 +86,13 @@ public OutcomesEnum read(final JsonReader jsonReader) throws IOException { 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; @@ -107,12 +109,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 +139,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 d3c82653712a..3879ea1fbb77 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 368e507b61e5..6ebad72a27c9 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 d9b930c5cc1e..93fac35e29f3 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 bc6e9e1b8496..2947e11be5d8 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 @@ -32,12 +32,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; @@ -62,7 +63,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 49532034ec60..b84c6db75f20 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.10.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 45904cf08eb5..ffd1ad0aee17 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.10.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 7d3c40e9c562..27d78a88f311 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.10.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 34743a420e57..67589ae146ca 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.10.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 3588da37c5f0..7d137c11f083 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.10.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 2d11f96672ba..c2103c4e4807 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.10.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 d2d5b5103f9a..cb7f8b46aa03 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.10.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 b08246e43548..40576eb1c3a0 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.10.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 9f26651a7067..a94fbeda20b3 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.10.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 602ad9ed77ec..17049ccb438a 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.10.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 3ef88b5fb090..749dd75adf99 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.10.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 30d7474ecea3..37002712db4d 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 ccc769987980..4985d7bd9088 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 79e05bde3c16..2351919eec6a 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 bb533c4091e7..04a48fb35b63 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 b22cee4be7da..6de6cf8769f4 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 b8840d60baa2..c6a0b23dcbd2 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 59e5a2583411..39abbcc32119 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 482f43d17454..049946e40401 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 d65048e1a97a..1f14e151e706 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 317d4aced393..01585e62fced 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 4321cd43805b..8dddb47bbbb8 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 8cda1bfebdce..ff29135a2e84 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 bb043ba30d9b..104b498c71d0 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 10bc5a9bcf66..a9a5ea327d05 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 e714c78686f3..e534d99f4a72 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 ff70013785d3..d0c5e0944cf7 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 49cafde0a1f0..2cc079464993 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 4778a735ba71..34e899ff4069 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.10.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 52a6c4b0fc22..e473fd07b525 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.10.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 2ac6e7f30ff9..2c143745ac8d 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.10.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 2e46e02ce5f5..76cb555663a9 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.10.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 01a89cfabd58..0ad8e1425d09 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.10.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 c4c73d689ebd..b87d1ffb0c7a 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.10.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 3f25a7bb1e99..23a782052209 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.10.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 7ff5a8939973..47692c004012 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.10.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 6b5b526d4722..0da88ff96307 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.10.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 ec391fe04d81..9266038c3038 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.10.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 475432417063..b2352039369d 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.10.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 ed17d7cfb01f..94ea5b6e3a76 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.10.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 cd14184def2d..3352a6a4e9b7 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.10.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 1b1aa4585783..d896a4d99fe6 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.10.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 e60637ea2ff0..83bafeeec9aa 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.10.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 2b1924f3022e..af5570f15ddb 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.10.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 eb6b6c329527..6b7743d204b7 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.10.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 568fabc676e3..3f63c815b9ce 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.10.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 e9bf11d3203e..62b916789836 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.10.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 8fad05857b59..4193be14bab7 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.10.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 6f3199d6be46..a104c7b82704 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.10.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 becc666a71ae..3d68a3e00c53 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.10.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 ed17d7cfb01f..94ea5b6e3a76 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.10.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 cd14184def2d..3352a6a4e9b7 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.10.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 1b1aa4585783..d896a4d99fe6 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.10.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 eda0b41990fa..090e0fd983bd 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.10.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 2b1924f3022e..af5570f15ddb 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.10.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 97118a2d27e7..fbb00f394ddb 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.10.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 568fabc676e3..3f63c815b9ce 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.10.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 e9bf11d3203e..62b916789836 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.10.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 8fad05857b59..4193be14bab7 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.10.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 6f3199d6be46..a104c7b82704 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.10.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 bea5c3c11782..e10a1169c1ea 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.10.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-oneOf-array/src/main/java/org/openapitools/client/model/OneOf1.java b/samples/client/others/java/okhttp-gson-oneOf-array/src/main/java/org/openapitools/client/model/OneOf1.java index 8d3c3502d660..281db31de5ed 100644 --- a/samples/client/others/java/okhttp-gson-oneOf-array/src/main/java/org/openapitools/client/model/OneOf1.java +++ b/samples/client/others/java/okhttp-gson-oneOf-array/src/main/java/org/openapitools/client/model/OneOf1.java @@ -54,12 +54,13 @@ public class OneOf1 { public static final String SERIALIZED_NAME_MESSAGE1 = "message1"; @SerializedName(SERIALIZED_NAME_MESSAGE1) + @javax.annotation.Nullable private String message1; public OneOf1() { } - public OneOf1 message1(String message1) { + public OneOf1 message1(@javax.annotation.Nullable String message1) { this.message1 = message1; return this; } @@ -74,7 +75,7 @@ public String getMessage1() { return message1; } - public void setMessage1(String message1) { + public void setMessage1(@javax.annotation.Nullable String message1) { this.message1 = message1; } 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 7ce1663b384b..b15c6f7d4c7a 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 55c4c84b2693..74ce058ec1b0 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.10.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 d5c810368794..a899009a4564 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.10.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 f70a1e8d5ede..d4f171e4c495 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 fb21057b8d2d..ba4a15fe32d0 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.10.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 4b6cb052e1d5..3c84db27074f 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.10.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 2f96d1aa7f90..810d92ca0445 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.10.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 3b278a122475..11a777e6da68 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.10.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 2483772e53b0..bac4545e7e55 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 40fbd81ea391..3926afdb8dda 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.10.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 df46e4410425..7d3287533035 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 d70052078b36..43c9f09ec3ce 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.10.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 e1b1a3a89d46..30df82cb6954 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.10.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 929c8cfacd7d..3d2c0425121a 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.10.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 c11901d3e7e5..ced4f9b31bb0 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 57e314fbb755..c8e1935acb56 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 2471ef228a43..b92aab7dc725 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 c371b1321be4..edeca56d3755 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.10.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 5ef75d54ed70..ccb937946bac 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.10.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 03dddd7110a0..4d710f38ae36 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.10.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 abeee5920694..724eaf26ce85 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.10.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 f955a5962312..38f8559a552d 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.10.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 478200466452..26165159648a 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.10.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 453bdec86ae2..1acf73166a6c 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.10.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 19002b8733ae..3d0ecbc89010 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.10.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 fbdb4f242063..dee272de4921 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.10.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 01b23ac5d232..2d25dfc00407 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.10.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 3bcb8db27cb9..3cf3db40cb12 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.10.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 6c6118079076..e046111fd718 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.10.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 5239c7e6c930..2fa917edbf73 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.10.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 580ed99bfca0..cc689e61ecea 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.10.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 9d8ba5b3031c..b7971e24e175 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.10.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 5cb750683c01..81d2b80817b7 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.10.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 76e0f575dfd3..5337344f95a7 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.10.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 392d9962a38d..4628b9595c7c 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.10.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 5d749fbf8694..c6610229f91a 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.10.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 1feaca67fd29..3f155f2fdb8c 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.10.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 1a7486efebe6..74b4c1a57b17 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.10.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 ff310607ae5e..01ae30df66b1 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 609de6f2685b..4c32f847c31c 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.10.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 7891d1d6c1be..20d269bbbadf 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.10.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 be65cea7b059..025337edd952 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.10.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 70d44fea372b..6f7d33b89fc5 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.10.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 53df8de07c60..7a679c10f090 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.10.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 37706ea7db05..d6505af38c8f 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.10.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 e4c25c5b633d..d956eec0ce1a 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.10.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 5dc0a2812a6b..ea7b682f2740 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.10.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 3b0c4c6d5f11..957e51a26c22 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.10.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 cdc30cc911c9..e5f2a700681c 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 @@ -47,42 +47,53 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.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; @@ -111,12 +122,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; @@ -179,12 +190,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 +224,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 +258,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 +292,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 +326,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 +360,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 +386,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 +412,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 +438,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 942dde711897..1d3aa6aa79df 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.10.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 ab8398d484db..08090c876bae 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.10.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 4bdad91ad6e6..889e43891ea2 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.10.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 8322e487fb20..8b779bcb0f2b 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.10.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 b370c4481b1a..f62cf986f2c5 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 7d68e4ebbd6e..3268072dde76 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 @@ -37,12 +37,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.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/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 429dd8c23f07..9a2cc4f2cd56 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 @@ -37,12 +37,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.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/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 e7d78cd26877..b513a4b9ebb5 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 @@ -39,18 +39,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.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; @@ -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; @@ -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/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 6b5068aad55a..bcf069d332c0 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 5c9cf5692b5e..676c763a5327 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.10.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 d91445b97098..99c1c1f1985e 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 36136775dbd0..01b110dc4a2d 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.10.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 2746d1b69e24..731e8329afb0 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.10.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 3375ebb3693f..18ecea78369d 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.10.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 dc0f5e707a75..2abd2a242708 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 405353054d07..4a6b68fce644 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; /** @@ -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 = 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; @@ -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/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 76e09c2b7eb9..d45573450000 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 4daf599ec25b..e96a02bcd023 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.10.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 d1da088ff117..250122ef1808 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,15 +38,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.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"; + @javax.annotation.Nullable private List files = new ArrayList<>(); public FileSchemaTestClass() { } - public FileSchemaTestClass file(File file) { + public FileSchemaTestClass file(@javax.annotation.Nullable File file) { this.file = file; return this; @@ -67,12 +69,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 +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/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 260e56ab7ff1..93940d641d01 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.10.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 78802bee2015..9dc90d1f3cea 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.10.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 32992cce1027..81c20684340b 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 @@ -38,6 +38,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.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<>(); /** @@ -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 = 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; @@ -116,12 +120,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; @@ -184,12 +188,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 +222,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 add26f9bdd2e..85e8725ad6f3 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,18 +40,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.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; @@ -72,12 +75,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; @@ -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/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 fe1358f9c18b..05d89779ec12 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.10.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 c5e95ce02770..831e6c8580a5 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.10.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 818d21cc4caf..712b3cf6b47c 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.10.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 79582af88e6c..c2c62f72330c 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.10.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 2ed60039ab6b..bbe70280caef 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.10.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 f66094211021..1d49eb406fed 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.10.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 d456f0d5fef6..dc6d52dc2091 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.10.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 4bc88cf7d32a..e919c4e6d9e1 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.10.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 18a005c51702..3fd31774a9dd 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,18 +46,23 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.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<>(); /** @@ -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; @@ -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; @@ -150,12 +156,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 +182,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 +217,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 +251,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 +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/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 69af308abff7..e59d26515366 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.10.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 4b2db095fd65..30f18df8bd54 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.10.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 e355f32362a1..bdb029f73197 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.10.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 d1918fe5844e..f6c5a693e8a0 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,24 +41,29 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.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; @@ -105,12 +110,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 +136,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 +162,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 +196,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 87f4f4e0b52c..90c368d7a770 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,27 +42,33 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.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; @@ -109,12 +115,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 +141,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 +167,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 +193,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 +227,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 a5c2b6778317..453196da0143 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.10.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 62c1a58da11a..bc3a8faa2f06 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,96 +65,125 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.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; @@ -201,12 +230,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 +256,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 +282,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 +316,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 +342,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 +368,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 +394,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 +420,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 +454,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 +488,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 +514,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 +540,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 +566,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 +592,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 +626,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 +660,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 +686,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 +712,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 +738,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 +764,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 +798,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 +832,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 +858,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 +884,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 +910,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 +936,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 +970,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 +1004,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 3f1e5e1b288c..0c553d4d5465 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 @@ -35,15 +35,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.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,12 +74,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 +108,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 dee66f0635c1..089ee958bba4 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.10.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 15e8b7634875..d86137300ef1 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 f32c9602595e..a345bf13cb8a 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 @@ -36,12 +36,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.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/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 884b8af5408b..c8599dbbed7c 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 @@ -36,12 +36,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.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/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 bbeec76bf5bb..c7c200f5d822 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 @@ -38,18 +38,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.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,12 +81,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; @@ -146,7 +149,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 572a4169ed61..0b9ba1ef6184 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.10.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 99d8d9442b7f..b8f93e166688 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 cb31fca15d7b..4a3bdb2eb4c4 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.10.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 797e1de9da8d..286d111288d6 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 67baa5dee123..60397c3b7450 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.10.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 30e84c235de8..d7256ad27680 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.10.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 b124f987a9da..7778116e7f0d 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.10.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 86134e0b0048..c9c2c2e7c3a4 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 8951c35e88e4..8f468e1c5a15 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; /** @@ -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,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; @@ -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/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 852e570a6012..711954504a10 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 2b1634c7a01b..3daf00a0bf22 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,15 +37,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.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,12 +68,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 +102,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 dc042f48f6c8..7ce22df97f02 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.10.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 4d06dc5eca0a..35722d4b49ae 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,15 +37,17 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.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"; + @javax.annotation.Nullable private List files = new ArrayList<>(); public FileSchemaTestClass() { } - public FileSchemaTestClass file(File file) { + public FileSchemaTestClass file(@javax.annotation.Nullable File file) { this.file = file; return this; @@ -66,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; @@ -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/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 8b4af8a809e8..3b6433673ce0 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.10.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 977c57cd353b..a4319ee148f4 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.10.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 2a96e0a2cfd5..5c3caaddee2a 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.10.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 cb49858a8353..93ec4a4d3e42 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.10.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 1603c1eb9357..372ba15fd5f0 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 643457c38398..4a6edec42b17 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 @@ -37,6 +37,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.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,12 +119,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 +153,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; @@ -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/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 d356f30b6522..c477490fecf4 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,18 +39,21 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.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,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; @@ -97,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; @@ -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/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 a6a0c0e9938a..bc3f047eb677 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.10.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 db86646560ea..1f223a208037 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.10.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 a681a117afbd..ad8cb01001f7 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.10.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 53901e238638..38bb09bc7e24 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.10.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 5b7091216cfb..4210b7231525 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.10.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 455fa588c6a3..dd98a8eb6148 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 @@ -83,6 +83,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"; @@ -92,13 +93,14 @@ 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; @@ -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; @@ -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; @@ -195,12 +197,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 +231,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 +265,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 +299,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 +345,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 +391,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 +425,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 +471,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 +517,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 +551,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 b06ceb852cad..42037dafe838 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.10.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 9bf7ef1651af..b1859152dedb 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,21 +40,25 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.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,12 +79,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 +107,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 +135,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 +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/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 fa4449e94ba6..c92dba628820 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.10.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 6a2a9bf27684..f29ddc8cf85c 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.10.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 5c0eeeeb38cc..6d0241a56b5a 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.10.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 8402222f5a51..5d28d9b93ac2 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 76ab55b3da59..915191b2c837 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,18 +45,23 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.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,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; @@ -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; @@ -175,12 +181,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 +216,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 +250,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 +276,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 1207b328b6ce..fb5c683390f5 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.10.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 1b1f91c57061..f3de79349a73 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.10.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 2c3cbf2547da..73425f59e755 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.10.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 80022173e5e4..4b02c3f99998 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.10.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 4ec5a5222838..d8934e887694 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.10.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 8b087ab66c10..9debf0e54b4a 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.10.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 2ad9f27b764e..0ca63318ea10 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.10.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 925f851c09e0..198098998991 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.10.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 5a7214ea2e2c..fe25bc34ed8a 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.10.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 7ab64c281e5f..95004c43bea6 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.10.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 1b4da048acd7..6a2e2be227e8 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.10.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 dea7e86d2155..5fbc22151d4c 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.10.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 51e0c6cf342c..eb29c72010b1 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.10.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 046dcd9ac822..5e764d85a6cb 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 6a77e7980689..6f58e3255492 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.10.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 3af92dd17849..f3d46916faa9 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.10.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 f3dd9149c334..771578abd0ac 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.10.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 41fb5315e7ec..073996fa7a07 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 334b4c17ccde..6cd94422b1cc 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.10.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 a27f4a02bc46..ca385024c9d5 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 f2428c4be413..50b6ff1d6a27 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.10.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 9887d204018d..dbf6964fdad2 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.10.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 645560a2ff30..0be09220e7df 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.10.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 8599f3b034d2..8004beff9756 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 cad068cf3b6a..42c505b11899 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 6c2217c0daff..a5667a13859d 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 dd82dfbf0556..6c10cc7d053f 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.10.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 8d4d4502e35c..0e6b8b1ea930 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.10.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 fc6f4de0083c..6dc15593463d 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.10.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 166a1d2e8fdf..03fcf6214210 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.10.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 fd5fce686177..27b5ebbd852b 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.10.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 1b121986dae0..0b83c6011405 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.10.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 32981db50c50..0938a865de43 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.10.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 e14c2b78f749..73f5779de22f 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.10.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 13e89d73aa31..f8d50bc17620 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.10.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 47b82483f271..314794ba50b5 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.10.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 e75ec4b62c4f..4789044c8530 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.10.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 37dd5cf7be03..341017c96d26 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.10.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 59ef01bcb365..0136b2dcc833 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.10.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 200337e06037..c9b0b884ef29 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.10.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 2ddb87f6a010..8cfe9533fe17 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.10.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 ce488cfee9f3..e0e1e8bb4bbd 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.10.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 380e638f55cf..74687fe9f3ba 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.10.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 93bc8a4ebe12..ebcb558efe5f 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.10.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 c34713ecd106..af3db9484123 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.10.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 c0cf55a10e81..ba7a6d198a2a 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.10.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 9418f0d8365a..9d11826fc6b6 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.10.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 7f6c2f3eb5f0..0ff945d70a11 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.10.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 c540341c888e..a41d26d11460 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.10.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 59eaabba5fc2..78b73ae76ab3 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.10.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 6336c67ad0bb..2527c24dc02a 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.10.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 18cf228e9dac..b485defda6ea 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.10.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 d1271f74bafd..56987101352b 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.10.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 ae7a1a7ce052..d61bb3d272f3 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.10.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 5f62c0a129fa..9cd6382eba72 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.10.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 99f7916524eb..6c0b11d6e027 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.10.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 f4866892e33c..6b6e59d34913 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 de27b6abc9b7..5510fb44e7cd 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.10.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 b56bc8707468..2d594551dab5 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.10.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 667cc9572ffe..3ae301ac9bf7 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.10.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 87ad15708157..5fbb3e27a841 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 1cab1da183f0..856400a49ec7 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.10.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 b48c3ccf0f5d..bbcd180b19eb 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 462ef3a308ac..12f9b4571b22 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.10.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 ea9d7753c3ca..8b5ec06c54d8 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.10.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 1efa318ae96a..f52ad3cd1b12 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.10.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 79e3286f83bb..eaa6f5fcf070 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 e59c65214541..6238af12763a 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 7ce242e7d135..e67f09cebf91 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 b5c7fd1bf45d..170ad2b8b492 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.10.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 cc68d0ceea67..9719e61e53d5 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.10.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 9f3ed7fb17d0..10721debfd1d 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.10.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 dd6910a09b08..dffb29de558f 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.10.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 5843b7c2e0b1..4397d19483ff 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.10.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 62635253abbc..35c20d8ca6a8 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.10.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 bf2d01a3d918..15a4a419b283 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.10.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 bfe8c0a714e4..b9a89f3a17e4 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.10.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 6da481f81569..1b91713f4454 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.10.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 d8624a066da2..96d2ac44fe71 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.10.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 be88755b6202..56f543a8e558 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.10.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 6b4c25bfb396..4a496bd97f4c 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.10.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 4e98b5a404c6..bb4bcea84ae6 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.10.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 52a0054efa97..26773fbe640b 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.10.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 418f74f2d4f8..ea0266cd031c 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.10.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 1e1a29181b2b..1900fe83eedb 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.10.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 2c60935d21b8..e3d5ef03d1ab 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.10.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 8f375ade3043..ebad74cb005e 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.10.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 7686ad65fee0..1fecc3118086 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.10.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 bdddb9022184..3f6d27cbf4aa 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.10.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 8db18fe24c98..efde0d59cfe3 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.10.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 3e2f644b7233..d5ee1d235c48 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.10.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 c540341c888e..a41d26d11460 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.10.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 59eaabba5fc2..78b73ae76ab3 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.10.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 6336c67ad0bb..2527c24dc02a 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.10.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 18cf228e9dac..b485defda6ea 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.10.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 d1271f74bafd..56987101352b 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.10.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 ae7a1a7ce052..d61bb3d272f3 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.10.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 5f62c0a129fa..9cd6382eba72 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.10.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 99f7916524eb..6c0b11d6e027 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.10.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 f4866892e33c..6b6e59d34913 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 de27b6abc9b7..5510fb44e7cd 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.10.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 b56bc8707468..2d594551dab5 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.10.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 667cc9572ffe..3ae301ac9bf7 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.10.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 87ad15708157..5fbb3e27a841 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 1cab1da183f0..856400a49ec7 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.10.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 b48c3ccf0f5d..bbcd180b19eb 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 462ef3a308ac..12f9b4571b22 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.10.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 ea9d7753c3ca..8b5ec06c54d8 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.10.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 1efa318ae96a..f52ad3cd1b12 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.10.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 79e3286f83bb..eaa6f5fcf070 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 e59c65214541..6238af12763a 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 7ce242e7d135..e67f09cebf91 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 b5c7fd1bf45d..170ad2b8b492 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.10.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 6922efbced58..511fdaa161b2 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.10.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 9f3ed7fb17d0..10721debfd1d 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.10.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 dd6910a09b08..dffb29de558f 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.10.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 9488718bc624..0cdae9a6d433 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.10.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 62635253abbc..35c20d8ca6a8 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.10.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 bf2d01a3d918..15a4a419b283 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.10.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 bfe8c0a714e4..b9a89f3a17e4 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.10.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 6da481f81569..1b91713f4454 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.10.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 d8624a066da2..96d2ac44fe71 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.10.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 be88755b6202..56f543a8e558 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.10.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 6b4c25bfb396..4a496bd97f4c 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.10.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 8a8e6e651298..6193d72decd2 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.10.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 52a0054efa97..26773fbe640b 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.10.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 418f74f2d4f8..ea0266cd031c 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.10.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 1e1a29181b2b..1900fe83eedb 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.10.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 2c60935d21b8..e3d5ef03d1ab 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.10.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 8f375ade3043..ebad74cb005e 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.10.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 7686ad65fee0..1fecc3118086 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.10.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 bdddb9022184..3f6d27cbf4aa 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.10.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 8db18fe24c98..efde0d59cfe3 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.10.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 3e2f644b7233..d5ee1d235c48 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.10.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-oneOf/src/main/java/org/openapitools/client/model/SchemaA.java b/samples/client/petstore/java/jersey3-oneOf/src/main/java/org/openapitools/client/model/SchemaA.java index 981f61776a6c..4edcfcaa78e9 100644 --- a/samples/client/petstore/java/jersey3-oneOf/src/main/java/org/openapitools/client/model/SchemaA.java +++ b/samples/client/petstore/java/jersey3-oneOf/src/main/java/org/openapitools/client/model/SchemaA.java @@ -36,12 +36,13 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class SchemaA { public static final String JSON_PROPERTY_PROP_A = "propA"; + @jakarta.annotation.Nullable private String propA; public SchemaA() { } - public SchemaA propA(String propA) { + public SchemaA propA(@jakarta.annotation.Nullable String propA) { this.propA = propA; return this; } @@ -61,7 +62,7 @@ public String getPropA() { @JsonProperty(JSON_PROPERTY_PROP_A) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPropA(String propA) { + public void setPropA(@jakarta.annotation.Nullable String propA) { this.propA = propA; } 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 f3031d5a07ce..795337f2d52b 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.10.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 ac1fd0288b07..118df7958065 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 11078412b8b4..24e7849e22b6 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.10.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 66a57bdbbd2b..73918b98ff7f 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.10.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 8453a174138d..7f4d13dbf205 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.10.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 5d4fe4496a17..da38b552514c 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.10.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 08333809a9fc..81b5130763e0 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.10.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 1fb3e78437d3..9a7d1063835b 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.10.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 ceeef28b60fc..d2c71a7b906e 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.10.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 5578fbbce017..a78866da42e9 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.10.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 6c8cca869108..940ac1bcbf4e 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.10.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 083be9769772..808ea9cad3d1 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 f863f983593b..025a95801bab 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.10.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 bdf6080b8bf2..5f8808c00ad4 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 528b2150a279..01fe17109712 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.10.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 bcc8106aa29c..ab42ff0259e0 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.10.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 ac3319b4dda6..fee478263460 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.10.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 14a72da731a3..dcd9fe27ff73 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.10.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 38d3b77a4642..acc3dc73e10f 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.10.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 855bb9134e97..880c6b5a1a6c 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 65d64d7e8b7a..b3b4a6666b07 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.10.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 8828a9dae5f6..c171e5308d65 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 5c283ac44c7b..156ca8f8972b 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 d307edec49ef..44732e013917 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.10.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 ce42c262bab2..ba770c57dd9b 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.10.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 7c741a463c1f..62210e1b6ce4 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.10.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 f91e7ebe62cf..c18b124e09af 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.10.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 342ad9429eaa..a82a6a123b79 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.10.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 9bd715d21ef1..fbbe6f2788a1 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 eaa6adc17bc5..2b6cd744bd21 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.10.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 b7b996684d68..cb1d09c13c50 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 a615157bc257..d116617abdd7 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.10.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 c838f4c5360f..03f3eda9cc3c 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.10.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 c7ab5532a126..eb9a5aef5007 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.10.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 163d96ad48de..aabc6c471b2c 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.10.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 07be45c51a3e..33bdc417985e 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.10.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 cad83fec8f84..98a0e80e521d 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.10.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 0ea7db018071..0434c06ae29c 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.10.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 d6d7ec06caf3..840f3dae748c 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.10.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 906d6d54720c..2bd14b77f3a1 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.10.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 5579ef4e0de7..883f1cbba65c 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 8329dcbd6cd5..2ce68e240848 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.10.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 9be17902532d..a79d8c67c625 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.10.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 cd9a2432530c..1205e73cfcf7 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.10.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 7a747ebd32a1..286cf92b75b8 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.10.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 9d3221deced8..0db1e4785521 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.10.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 f811d3b7bfc4..b143ca302ec5 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.10.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 c29ff76fe7e0..8cfa6a5ae6fc 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.10.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 e4fca5dbc4d2..3714690b9482 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.10.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 872b2317e2bc..c24a869e117d 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.10.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 dac94710329d..7fd5a7fc8f6f 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.10.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 7e0bfd1be041..ae88910475e1 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.10.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 594961bb4c59..14fd4f1c7665 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.10.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 f9a5d0158373..deeba97cf158 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.10.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 9b635fca4d9d..374c74068280 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.10.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 3c99ec54846a..f515fdb5a1f7 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.10.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 e6f9cdbbc94d..f82b8c58919a 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.10.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 33fcc7ae0be1..7d2e7458855b 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 f3d53e98a699..8d8a1f6eefa5 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.10.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 fd840e43aa6c..93b8d1702b31 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 097ec70f069d..93cce7098352 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.10.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 165e40685694..b099484fabfa 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.10.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 aada8522114d..68a2adae6b80 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.10.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 388abdbf55e7..87be9636418e 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.10.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 4d0e25b78d04..373aaba494c1 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.10.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 85000d565988..2bdfe51040a4 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.10.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 98d5f5234696..0a088640a6cc 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.10.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 36c00983611b..487148eccdd7 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.10.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 64873e376adf..a376eb98ae80 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.10.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 e3ea70f46171..f7fc3c527b5e 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 b9b1a945f155..3f3aa4cb3b23 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.10.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 5e0aa0c07489..3637660c4196 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 5e39ec984c73..d7db6ba25332 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.10.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 ecaa75046c07..8fe9bbe7f8c0 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.10.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 023dc07ee28b..794d11f7dcfc 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.10.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 cd8726762007..194c8fce8bb0 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.10.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 b2b1c9e0baf0..7616309d67e6 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.10.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 dd15d61547ed..9a224024673b 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 53c16a69e507..0b50ca212438 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.10.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 f7892d083505..13ca76a48ea7 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 cfbcda342a6e..4ca18c79f42b 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 a6a9899ff1ed..82f5ea90b2ee 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.10.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 088b6655da69..9315c7b2ba67 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.10.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 dfc81da34dbf..63a765d2fba3 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.10.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 b5336da21cfc..7cfcf087c9a7 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.10.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 58ea6f024b4a..868e8549dc93 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.10.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 5f5fb67b8392..4911e97c9d14 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.10.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 8e801cc1b61b..e80b219e13f4 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 31c765a7358e..88918ca55452 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.10.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 795c0fbf83c0..586ad5fc0a90 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 d48a576f337d..36e8f880f49f 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.10.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 3add757c9d7c..6df3a798f447 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.10.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 fd6f701797c6..189cc0473e6a 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.10.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 52fd57b6407e..8f8da84f8936 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.10.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 bfcb51955e82..f9cfad9a6310 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.10.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 4069aca23ef3..895e319e8205 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.10.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 5c9329a4d503..35e07d36e127 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.10.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 53779fffeef9..74647ae19ae5 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.10.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 cf679a536e4b..e4ab623bedf4 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.10.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 ae7b291baedd..9116b92ee49d 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 2e98e1e09c03..0191985c5505 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.10.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 7a5236cba11a..26c7820c3a17 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.10.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 d5e4d4a531a6..69e09161e49e 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.10.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 e01d9a8e9d3c..c57a196e0d40 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.10.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 74a6a9a482e9..996ecc54f612 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 5ac8a595153a..bbaa7db74923 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.10.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 94904d36e100..808502be8d50 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.10.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 156983b591c8..b95057fbe557 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.10.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 fcf766d1cfea..8d32ac208beb 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.10.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 be53595460f6..544d0d4a8997 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.10.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 ba4801cd2a3a..b98d759c8b55 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.10.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 057b9a50d782..fca0648ef475 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.10.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 3c76b92072b6..0be17aeb75bb 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.10.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 be12016992d3..78ee4289eab5 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.10.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 782838c60e5b..6ab83dc73c71 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.10.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 350a1352383a..ff94dd70686f 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.10.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 6d98d00486ba..b58368c93956 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.10.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 69a2c2d5e9b1..c21707d55b0f 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 6b302f8a3726..40920ec031e0 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.10.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 ef9704d0b92d..deaecc7dfef3 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.10.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 7cfbe14bb74d..4b869110f2bf 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.10.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 dc5aea379153..9bd07ec68122 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.10.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 46d1890957ab..5fb33a3ada3c 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.10.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 bdc761324d13..eab4c0a8301b 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.10.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 638633f5f01e..76dc10c07a8b 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.10.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 0d23e545656a..d1f3c98076fb 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 c521b5fe4c1f..1c61171ebe6c 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.10.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 c49930b28413..a34652b3c109 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.10.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 d92fdd7b6122..9028a95c7d42 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.10.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 93923106da16..03e2f228771c 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.10.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 095a843da492..234361daf01a 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.10.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 1c13e536c051..4292c2d0ea25 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.10.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 575c2242723c..6756b7f9b3ce 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.10.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 0a8f3d344b1a..4828c1cae62a 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.10.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 2f82af148d81..99cbc682ed7a 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.10.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 043b6ec7d8bc..591afb1f7d7c 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 b14f8878c0ac..7a2120d0b060 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.10.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 b8a5d9f22077..160a533e97c0 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 9323092db95c..46bf4f851a9d 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.10.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 8e934aad5eae..2228e5998915 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.10.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 4c896e00e618..c48a15a03b89 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.10.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 71704e3b6fdd..8051e05c23b4 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.10.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 92dc3dcacea9..7a17c8f3d89d 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.10.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 48cb35d58e42..d03f6a1dda84 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 4237b4105856..d259ea563f82 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.10.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 63f0ca90aa5c..91d031f2d384 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 d5c1384b37c1..a5b629557a10 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 fbc81558488a..2033162fd120 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.10.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 460cac6973c4..24888be137f3 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.10.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 5727b3fafc63..5a0e40370724 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.10.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 59dc7710ab3f..baf2ad201972 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.10.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 ecea71653229..63ff6395a1e5 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.10.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 1e1b2c48b29c..3bb358c894a1 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.10.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 c21e9837c8a6..4d5c1dcadf07 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 c8e49774f7f1..26ce80f3fc92 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.10.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 5b6bcd3a877d..128a16915fbb 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 98024f9fb4a7..640a0091b9aa 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.10.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 e310cefaee6e..e8ab4903c9f7 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.10.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 f6a1f944b8f8..9b8ea43fb256 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.10.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 40e603dc534a..a587abd842bb 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.10.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 860c80b3b951..f1a305ac8130 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.10.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 567c9511dd66..2cbb873e1bbc 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.10.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 b70baf4ebcd0..688bd3a492bd 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.10.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 6969a18b42bb..8afe2aa291cb 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.10.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 ca7bae2ed871..254eb93783dc 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.10.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 e6e3a265c846..9cc1aec009d9 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 aef7b77f388a..311bddd0737b 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.10.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 24e3be4a8a99..9f22ac33b402 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.10.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 5e240462a159..3ba6eeb6d87c 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.10.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 d3e13cc19bdb..da51395e38f7 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.10.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 cbcb333abfac..93528aa7d7d2 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 72069ff0fe2a..d5b671856b55 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.10.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 4324eb270a93..ca89b2c6f144 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.10.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 9139df4f7413..c3c0fff1d5c8 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.10.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 8ea021d8161b..d72f51aecf74 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.10.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 35506dbc2c9d..41fcfc600691 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.10.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 2235a432019d..98b7071d41fc 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.10.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 8b5be77a7d11..12a839c0a153 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.10.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 2c879ae3cef4..5f7135324b9d 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.10.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 6f44fc58be09..0fd01ccbd17e 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.10.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 c951d9c885b4..b8c67a63ab6f 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.10.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 fe4e5added4c..12e3f8ce519f 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.10.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 a48b542a1e4d..be60877fab8c 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.10.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 234c1e4718d5..9e1fbf95636f 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 79eab6bbc1db..3fbafc4845b0 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 7b88247af1a9..e57747b134a9 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 89002fd935d7..0bc12f3f4f3d 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 a9b7cce42b65..4ca37475e25b 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 d868d4b2923b..e22c005616d8 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 490619317039..ff68b1fbcefb 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 ad3cfd89486f..3b20cafa61e3 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 21520f1903e6..7b9c6cbe399e 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 8d07e6a8ae5e..9b15f332c696 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 74c615a80ebb..84cb4643a435 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 e3ac2247cd85..0c222131c8a5 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 d015afaea480..9eabd17d9b2b 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 6e40fde3f104..400e711ef3ea 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/SelfReferenceAdditionalProperties.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/SelfReferenceAdditionalProperties.java index 28eb48283fc9..bc902fbaee09 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/SelfReferenceAdditionalProperties.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/SelfReferenceAdditionalProperties.java @@ -52,12 +52,13 @@ public class SelfReferenceAdditionalProperties { public static final String SERIALIZED_NAME_DUMMY = "dummy"; @SerializedName(SERIALIZED_NAME_DUMMY) + @javax.annotation.Nullable private String dummy; public SelfReferenceAdditionalProperties() { } - public SelfReferenceAdditionalProperties dummy(String dummy) { + public SelfReferenceAdditionalProperties dummy(@javax.annotation.Nullable String dummy) { this.dummy = dummy; return this; } @@ -71,7 +72,7 @@ public String getDummy() { return dummy; } - public void setDummy(String dummy) { + public void setDummy(@javax.annotation.Nullable String dummy) { this.dummy = dummy; } 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 d629001b2938..f5a7e23aabbf 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 7ddf14f4a24d..0c1ca3175d36 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 b385dcca70f3..2fabf55abeea 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 490619317039..ff68b1fbcefb 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 e3ac2247cd85..0c222131c8a5 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 d015afaea480..9eabd17d9b2b 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 6e40fde3f104..400e711ef3ea 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 7ddf14f4a24d..0c1ca3175d36 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 b385dcca70f3..2fabf55abeea 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 2d07ae873eec..27ad8af285a5 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 1599849c89dc..9a73473e3401 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 42612a1e5b9b..bc383b18d630 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 05484fe15ebe..d5fe2706272b 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 ea53b10722a1..bef43e8cfaa6 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 6e92b0ae4c51..e8288d98ffaa 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 174d09ae337f..026dc8e87de5 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 ba90448c2e97..159fc499da71 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 263ab6871ebe..3b0341a3f115 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 112c55d576b5..34b465cfb18c 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 f22abd9f3802..3723d0301c6c 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 8dbfd1f04ed3..59e4181c2f19 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 14a56eaa455f..3de322600eb6 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 026493295a3b..cb1bc060a172 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 b478875d7b1e..8b288d7608dc 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 f466daac7fe7..8a87ed095ab7 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 41a195a1deca..3f732cca0dbc 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 5e1f630d4546..3a63fc204f0e 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 95cb5a831a9c..c28d7ef4d3f8 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 56254927514a..977e873ef750 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 9898dcc2a24f..fab5e63c24b5 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 38375ee3d5f3..88ded19bbd61 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 747255eedf62..0ec5e78ab4d8 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 90b19ac12caa..63408815ceb9 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 1bf8ae693dd3..139380bbbeff 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 7399fb06b5f2..2a412a2c95ad 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 1fb7dee6b029..d109b3b71702 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 c9d9af4e0011..fd7c4cf6fd25 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 65cf5bcfc740..e0715164d2d9 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 260725d246ef..01236521328e 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 6d8aac23e3ba..13ed2f4071c1 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 209493533aae..7981af040615 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 0d44c596f276..b799d1c625fb 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 b75619b4b5fe..8968dbb20c28 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 d26c6a685743..ab9772c530da 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 0ea782f03df6..e7436e0eae4b 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 ed5fff58a613..3b772446b368 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 4ffc9bc3ca34..faadfa7ebe3d 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 b377d412a098..7d3729f6339d 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 b40cd722c72f..7f07d19161af 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 96e8f096ceb8..8dd6ee46fe11 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 9482798c2ba3..74089db5703d 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 9c314176df71..c88e684b699f 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 490619317039..ff68b1fbcefb 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 e3ac2247cd85..0c222131c8a5 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 d015afaea480..9eabd17d9b2b 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 6e40fde3f104..400e711ef3ea 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 7ddf14f4a24d..0c1ca3175d36 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 b385dcca70f3..2fabf55abeea 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 490619317039..ff68b1fbcefb 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 e3ac2247cd85..0c222131c8a5 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 d015afaea480..9eabd17d9b2b 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 6e40fde3f104..400e711ef3ea 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 8a947ff68644..c611fb32556f 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 dddb6a2da778..e515cf4566b3 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 7ddf14f4a24d..0c1ca3175d36 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 b385dcca70f3..2fabf55abeea 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 3505a64c776c..977aa947b630 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 32d68604f625..ccd77caea553 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 441d55e0c49d..59ce65a39bfb 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 49a6e145b3eb..a5ee45e1d1d4 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 73e1c4a22c9e..e92e09ffb6da 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 395d63258926..434ca7b5842d 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 fe5280d11da3..1e0bcf777ad1 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 53387dad03cb..57a772a2a820 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 6e96f2cf020c..55815dbec810 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 0318354bfd47..7024a80f4515 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 9211b4204b26..7cb5e36e0685 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 c92415b35606..138b680a05b8 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 993c3c5030d7..c5a244bf74ad 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 08c5ceeea98a..c4f2014209c6 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 893fcb4ffa6f..ad9bf464ff0b 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 c28d4f58ebef..337778c4b0a2 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 46f9d94bf1a1..95cecdab6ab7 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 9f9f9d83f50f..ea135acd7cd2 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 c03350818959..d6eb36b278d4 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 c0911d0c8add..9810b116a3c7 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 20ff37820196..8e5f26782adb 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 5c3303d931ae..18eac6176f5c 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 e68bc8381145..337bf9dbdc3a 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 671f880de8f4..456ccab2ab44 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 0841cf9887e5..38ad4ebb3e5b 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 7fb88c44c00e..8473c16eb9ab 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 c42df519ef92..d21c66877bce 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 1035552de78f..1ef06f5ecdb0 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 7efa95cfb165..315634ff850c 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 7bde00ebc282..9ca62c3cd4e3 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 9d5c9aea419d..3c26ebb9c9d3 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 dca67461197e..f93cbf4452a2 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 2cbf75208e48..7a1aabeae9b3 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 875b96be6b2b..56d533a88a71 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 3a28122293d4..9805f1ac57d8 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 adb2e3c1adc1..b7c4b12323cf 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 1526a63e6c10..9dad0b3ebc4e 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 223dfbaf63e0..d33e808147af 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 9758219a2154..af792f48e973 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 e6c977d577a0..a75a03f36cb2 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 b85c7eda6700..71e4368bfc02 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 19bd241a5569..b7c5c323b83b 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 d3f9e7f0c35e..0f1f6ceaf118 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 baf8224274d0..39b9a8ebaa72 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 d61139c3c87a..dcefda59a0d9 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 0b3a5cbd4bda..3ea190198935 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 f0214f579f9d..7dd5ffad472f 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 bb1ba5a974c9..8f5257f9eee3 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 87f5419019ac..3ae44ced8786 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 3f864a2c469c..f73e02d0236e 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 11c2591b3686..8ace8ccfd726 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 cc004e61507c..f171e2ee3f4c 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 9ecd2fddfab0..9b3bba4f6299 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 8cdaf3a1309d..1ab4fb7fe657 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 d3044248c6b2..622d71015ec9 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 0480ce099b8b..16593bdd415f 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 ddf2d23ce7e0..75d05d78b3a8 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 2d98b541667d..5f756714f756 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 061fe813eb06..90333d54c673 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 33e836d430e6..6ca3d6967ed6 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 52514b46932e..ceefe69ba286 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 aa5dcdef568d..c068fbff7829 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 7281c87f4a7d..8d41d7a73414 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 af793b8839f7..8a3fb4ab0d1d 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 b3eb934f9b9e..aa3479b1f4f0 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 56ce0157a348..8c8eefd36a2c 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 a0ffd321f056..cf21b4ac9a1d 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 f0e32ff0edd5..ce61db498af0 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 5e535ddaa718..e6112ba13474 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 c9d9c2ee759a..32e3759d635f 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 6a479c915712..6ded2877d02a 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 dc91991b3137..d786023e334b 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 f80bc8546353..7b8ee58288fc 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 0096f7fd4d99..69f14ba2eadd 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 a6c033668ec4..31fca4541868 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 eb5089fb36a6..023a7958a7cf 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 a20395cd0dfe..f35c22c0d7d4 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 8dcc0bc149a2..f63fe0001525 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 f04bc1284a0e..f156105af0f5 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 b59ff8f72cbf..dfef6252229c 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 cb6c3629a464..24934ad12e18 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 3ea2218995e4..80ad1e7b9dd2 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 0fc23a42a8bb..b657538588de 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 0013c84df40c..b9f647c00064 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 b31681174390..c664bb6a4fce 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 15ab51e4fc38..bb1075165989 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 ec947081f98f..718e074ee6e0 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 7afec6560427..023db16359a8 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 e1c9fe64b7fd..6afb7d793d61 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 91f6e81ee07d..d68db8609146 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 e7f96ffe9df6..4d17b3959f68 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 f8077c9a0032..2ef25e153530 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 40f482d71fb6..91cd55bc38d1 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 6e55481a93c6..714fe4a527e2 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 7bbdebb8f8ef..ec9af3d71897 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 971aca834d21..524250a90fb4 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 4ac647199714..9e6f09be30c9 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 5222ce482826..68b75cc06b6b 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 42ed84499544..6c4d329b1cf5 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 353e08c39a3d..07c55e9c778b 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 a63995a6d323..fa671ab3fbd7 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 48983f9d85f6..2f0212f35e6d 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 3be5b25610a2..b12177c99c60 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 b35ce16df179..7a9b9f0c0774 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 70c527ad4640..8ada9002bc77 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 de4eb8fd128d..1c8ab1023c7c 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 4dc07845aea4..6919b6ddf049 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 6261a0436824..bc4825628c20 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 fbeb02617ccc..eee0aa245b7c 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 323bc84bc57e..46ebb52916b2 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 7f7ceb54e633..f65ff6cfd3eb 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 365c119ed732..c6054b244c4c 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 939f81c08d25..912e6401aab9 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 3f3532645857..d8a430f7459e 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 934b924c9bb5..348ad5d696ab 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 39f898430119..bf6927f72ef6 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 d714571b29c9..4496c78d8f26 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 36bc86b19016..d22dea43eec7 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 2ec8cfe6680a..7cd589a822ee 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 ffd3c07c6019..ffa101f26d5c 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 1d1dcae9e0dd..749c94428e4a 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 b35b0eb3e3f3..dc3ce5d8241f 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 661ea1ce0493..4470a5d725b8 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 01e76fdf651b..9f73911be665 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 5f437b62c895..f48d068d6d31 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 949472c76d4f..eee6e0dbe6e3 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 17abbbcdde0b..0015c82e90c1 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 f75047b45e8b..98dadc424e95 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 b283937f4afa..109906d5a011 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 06476c516f9a..f3dfb5aad2cb 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 154c27ed54e7..39248c921d2e 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.10.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 460e9ebabc17..0aaeb44f7904 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.10.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 ca5af15ce4b3..900b396ef85a 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.10.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 27a2e3bf17c2..f6b0dd80cf58 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.10.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 eb9be8aa8118..9d30692cc4b0 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.10.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 b97ddbf48b11..abd01ad623d7 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.10.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 7b91a466988e..6be4637ed188 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.10.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 ce776df3c99d..74ceb8d006ad 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.10.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 fda31e881c53..24e8e93396ed 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 46b2dc83a884..127a00e35732 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.10.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 208b8d2fabcf..757c7a12f59a 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.10.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 f076f22adac2..a8af5f2a6b0d 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.10.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 dd518e39548b..d6944e017570 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 ade7b1ffa378..1305b9c1852c 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.10.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 eb2523a358c4..aa6610f6f6ca 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 17b2e605d3c5..4fb7afd7ccd4 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.10.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 7840c0de1f37..a57c01068834 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.10.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 6b5a1086fb62..74b7ac8cac0a 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.10.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 863441969b69..33045cfca433 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 84d4daeef28b..01f0cfcf0ebc 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 350addeaaadc..6fd258985d5f 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 e14db09883c6..e6f15d47f558 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.10.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 81a8bb5812a0..3abea3128f96 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.10.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 11be46460126..49078b747889 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.10.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 699cefe023a5..a76e9693b269 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.10.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 a24e86315b34..95418f676770 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.10.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 cf9d1f3296b8..879df59546ad 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.10.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 f644b2433b2f..886fa70c0c19 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.10.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 63301e0d4966..aca3044c7b86 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.10.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 2cb1981f92da..4328a5cb8383 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.10.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 c2714e47ee53..d55b6c92ba09 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.10.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 5ed1266b0b25..e0f72a2670e2 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.10.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 ebd91a2c36dc..02a77010ae4e 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.10.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 a189ec53ddd3..00afa5dcb2fa 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.10.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 aa700f0acf7f..468b4eddb3cb 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.10.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 eaebc52d510a..dfaed337a310 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.10.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 23c5bca26b6a..0efdf4e21551 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.10.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 6f9d17e9b0ca..840b67b99e19 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.10.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 45aa64fbcc2a..8b927ba4e28e 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.10.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 94d35fa3bce3..5573e2a35c32 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.10.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 09bc5d006312..59748c908232 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.10.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 f581ae65f57a..97c4b4a2fc4d 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.10.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 c22d1da8a2ac..b3bcc4c5f847 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.10.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 e6b93f12f377..37b6a39f4609 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 bac098ab6d04..84d8818e3b29 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 ea1309c27315..e2f9e5a8ecc1 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 c6956f766ce9..1cc6ca8a441a 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 0e3aa9e6cc28..5c4c3b03704e 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 cfee42a81667..577cb1a09dce 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 aa18f49d50e4..ed885439f699 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 cde65307ef55..2a117baa7b97 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 ba574caff598..0ed8747d60da 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 0d244663eb43..e46afca9c35a 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 be016aa386e5..68b9ca6b5466 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 a4a3861adf69..ac359c0a0da2 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 3a1a711212a0..fdc798846bb3 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 4a93a48f6016..1a207cec6134 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 2575a398dea0..1edc97a7c5ad 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 c97f5f9ce0eb..84f0e1a3aedf 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 e368e3ed8211..ca882ededc3b 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 551da12bd5f4..76bd3f849c53 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 0d111b81c9c3..2c927a13e68c 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 972043c9e66c..64aa1b2e169e 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 b500657eb761..73f12308c807 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 34944308fbc5..d73cc3b08dfd 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 4a090fec148d..0232813a8e2a 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 4763fe6dc30b..0279aca7c876 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 c18e8a0d2ebe..24f6549924b4 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 111893666269..b0587289c9db 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 79bc2d6f0727..57b82e3e59f8 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 826e8f26f7c7..041eebf82025 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 c7e006478bbf..b3caf101d911 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 9cdc9dce6378..bc447936f226 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 adeba52de64d..5ef3a698141c 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 5ba5dc13677f..114a9245e21a 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 36bc9f734664..961e7797c771 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 50237b778504..02e8cf1a431a 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 da02903e2194..13e101cd8395 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 c8fe5c9aea25..fc096a09f4b4 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 631f9dc30bd4..3cb220d55ad5 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 570b335f5c39..aebe355c58cf 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 9761f2d714b8..24c72201a864 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 0f4f5d63dc54..aea18b10cbd6 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 9bc66399c738..d4b4654cd38c 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 84fee6d7551b..18ab177e9df2 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 87119610e677..36b195673fe5 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 df3992245770..f071fdbca84b 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.10.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 910ef5a3da1b..4c1fb1ab1b6c 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.10.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 c2b7df08a8ee..7e2402198df3 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.10.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 5d0e2799ccb7..dc52954efbe9 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 20019f9d640f..640cda172558 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.10.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 39d530f3bea4..9d09a152b217 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.10.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 764fd2892d88..b5ae4339224c 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.10.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 62594af41e5d..991900b765be 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.10.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 cf0c6e420e22..b2e630bd70fb 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 b635bdae7462..2b89e433892d 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.10.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 96a0d5d6d82a..95fc52d321c7 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 3ee4b111b28c..35a270b6894d 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.10.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 d2d8f238f457..cdfb6eefa0fe 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.10.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 ae1310e533dc..bdebab9d14e8 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.10.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 93c21f5e3b10..9e2dd021ac6f 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 015f0793f2c7..c3d617bc111b 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 53d35b1f7850..d565f82e5677 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 a0b27aa3dc09..90903a4d61b5 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.10.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 e8126cb6a6ca..f91f7d58a1b1 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.10.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 b62529012f0b..863ac0111b52 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.10.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 3159f8fce1ff..8aa4e8aa359b 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.10.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 db01bb2520a8..a085258040bd 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.10.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 9c6ffd3264a0..db5d99ca5dde 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.10.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 118c8e5f4052..571d9a8b3a8e 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.10.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 2b025d331d45..554a7e109012 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.10.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 5b95cf4a1c6e..89b492db8af8 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.10.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 b791483db450..a6fb8e380983 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.10.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 18874b41891a..6d36a8519b95 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.10.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 7c2db5efb4b0..206203c91c7c 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.10.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 c4ce96dc2c5e..2c5493f624e7 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.10.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 9b3089df080b..f13befb3bb8d 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.10.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 4b553d5892a0..f0e0fb1d7bba 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.10.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 6a054c16a656..b7b6a900a841 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.10.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 6a74ca96debf..e36be12cc0c6 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.10.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 1cf4fb9b458c..6f35b9d36fed 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.10.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 cb31f00aecbc..cc8a1f2d5745 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.10.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 6d6d8eb56164..3a98ce5e1fe7 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.10.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 923832363254..62978ed5dcac 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.10.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 413f04ad3d17..c0987dfd8a29 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 2002352d296c..1f4e14d32ee6 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.10.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 48dc0ce74888..ee2d408d145d 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.10.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 8a5e215629ba..63db3d16aa6c 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.10.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 e970d8cab865..fb1b8f4a02e1 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.10.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 c21fcbe9625a..ccdff99571e5 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.10.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 07ee0ca0d36c..07b177a58596 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.10.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 5b88cf859340..720f54754f4e 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.10.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 553c86b8c67b..fbf8d61fa177 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.10.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 7723bbd0b3e8..86cc58eb17be 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 7a324c2d64ac..87cea9ecb8df 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.10.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 2db544721c99..ddac35e167ae 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.10.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 eefee53145b6..69f13d66946d 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.10.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 4532d7e6e986..4527c5efd07a 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.10.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 0d124c2efa1f..73f8201c2c7f 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 45150aed846d..c87cc6d9d033 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.10.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 dc0ab1108bfe..55e6ce126788 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 50ab7257d81a..cc5edb0ddf1c 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.10.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 462dc166cbbd..7b7843af2080 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.10.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 d051f58bdfbe..da99cf340327 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.10.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 8db2e461f85c..6a11ad89d6f9 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 5854a5e7e1f0..3e2e08025830 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 36ac6c705c68..f9347fc97f5b 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 e0f8858870d0..e9edabdcfab3 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.10.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 f3ecd1b8d45b..d1b7648e7be4 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.10.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 d4ae08190d16..e673cf968242 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.10.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 f68474edecd3..6c72b31783b5 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.10.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 58cfa9edade5..818b19b86bde 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.10.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 18e5c0c3120a..7fcd7679b146 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.10.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 ed47a852041e..e30ee78c1c43 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.10.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 130b2f2c72ec..f279dad1037d 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.10.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 dc194d8d6753..0eb4099d56ea 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.10.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 f2623213d53d..7d0bfb917073 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.10.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 8d4aa0f98fec..dac5d47ec9ca 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.10.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 927fde003093..3c99c5d565e0 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.10.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 42636b21cef3..54a220f2c63e 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.10.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 588040715446..3620721ba403 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.10.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 dc4e21d3e69b..d80704b7a715 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.10.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 27f64e04bdb3..04989802ba7d 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.10.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 d3ab7dbb2fe1..3c21f20754c2 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.10.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 bc7c49a40c40..2f0d9d3b946d 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.10.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 dd1d51cce1cb..8f4db12e8222 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.10.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 709ac97e93a6..b2b88b32009b 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.10.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 1002adf36ee5..0b5fecce1ceb 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.10.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 38c70b580a1e..78772c7e27cc 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 d00626a0146d..893ffedd5f5c 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.10.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 df185785e83c..f6d848fa88c6 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.10.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 28682f92204c..fb9e96a8da6b 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.10.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 419d5646c3ec..f5c4ae0e4467 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.10.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 b898ad17907d..58e2d9d3f8ec 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.10.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 183e7daf6569..b0af4339edd8 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.10.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 b059b5e4707e..b77f24b9e5c2 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.10.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 553c86b8c67b..fbf8d61fa177 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.10.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 7723bbd0b3e8..86cc58eb17be 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 3832ee878353..d003cd28189c 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.10.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 e201106307dd..c2d18a06f40b 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.10.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 b98ac2e7ed2f..f96b497bc241 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.10.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 4532d7e6e986..4527c5efd07a 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.10.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 0d124c2efa1f..73f8201c2c7f 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 45150aed846d..c87cc6d9d033 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.10.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 dc0ab1108bfe..55e6ce126788 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 50ab7257d81a..cc5edb0ddf1c 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.10.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 462dc166cbbd..7b7843af2080 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.10.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 d051f58bdfbe..da99cf340327 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.10.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 8db2e461f85c..6a11ad89d6f9 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 fe7b67934c2c..eab3ae93381c 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 36ac6c705c68..f9347fc97f5b 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 c158a72b66de..4b169000a156 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.10.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 c3c8474bc80f..d910ae1c5dd3 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.10.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 d4ae08190d16..e673cf968242 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.10.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 f68474edecd3..6c72b31783b5 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.10.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 58cfa9edade5..818b19b86bde 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.10.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 18e5c0c3120a..7fcd7679b146 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.10.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 ed47a852041e..e30ee78c1c43 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.10.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 4b1aaeeaebec..2d47dfc83e27 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.10.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 0a129c9740db..b7e67c4888ef 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.10.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 f2623213d53d..7d0bfb917073 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.10.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 8d4aa0f98fec..dac5d47ec9ca 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.10.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 927fde003093..3c99c5d565e0 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.10.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 42636b21cef3..54a220f2c63e 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.10.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 588040715446..3620721ba403 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.10.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 dc4e21d3e69b..d80704b7a715 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.10.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 6d98a889c593..b5ea57f50616 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.10.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 d3ab7dbb2fe1..3c21f20754c2 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.10.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 1e2fa4ca4fc4..7f4dc85f1a0f 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.10.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 dd1d51cce1cb..8f4db12e8222 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.10.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 709ac97e93a6..b2b88b32009b 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.10.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 1002adf36ee5..0b5fecce1ceb 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.10.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 38c70b580a1e..78772c7e27cc 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 45f080fd8534..f20bf09a36b6 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.10.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 df185785e83c..f6d848fa88c6 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.10.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 28682f92204c..fb9e96a8da6b 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.10.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 419d5646c3ec..f5c4ae0e4467 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.10.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 b898ad17907d..58e2d9d3f8ec 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.10.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 183e7daf6569..b0af4339edd8 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.10.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 93d0220ad328..936b8bafdbba 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.10.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 6d7099790f24..5a60fa128dda 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.10.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 2afb39370910..745689d7191a 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 6a77e7980689..6f58e3255492 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.10.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 3af92dd17849..f3d46916faa9 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.10.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 f3dd9149c334..771578abd0ac 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.10.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 334b4c17ccde..6cd94422b1cc 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.10.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 ed573be3fe4d..f8705b67de58 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 f2428c4be413..50b6ff1d6a27 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.10.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 92ac78ada81e..b436febdcc4a 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 9887d204018d..dbf6964fdad2 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.10.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 645560a2ff30..0be09220e7df 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.10.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 f567d4de2c5b..acdb137161a2 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.10.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 8599f3b034d2..8004beff9756 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 cad068cf3b6a..42c505b11899 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 ffcec49f58d8..915ba1b91ce9 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 ad6b00e77a24..0f3aaeb0af49 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.10.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 dd82dfbf0556..6c10cc7d053f 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.10.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 007462a052ca..6c446b295f88 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.10.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 13dbee6c4a23..395eecaf8b53 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.10.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 48e2602997c9..bb7fb37b6325 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.10.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 fc6f4de0083c..6dc15593463d 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.10.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 a8cc7eadd0bb..b772672c401f 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.10.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 166a1d2e8fdf..03fcf6214210 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.10.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 fd5fce686177..27b5ebbd852b 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.10.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 1b121986dae0..0b83c6011405 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.10.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 32981db50c50..0938a865de43 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.10.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 e14c2b78f749..73f5779de22f 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.10.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 13e89d73aa31..f8d50bc17620 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.10.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 47b82483f271..314794ba50b5 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.10.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 e75ec4b62c4f..4789044c8530 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.10.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 d510152c6ef1..bb516d7739da 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.10.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 37dd5cf7be03..341017c96d26 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.10.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 79b51c107996..c6a3cc14fade 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.10.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 59ef01bcb365..0136b2dcc833 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.10.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 200337e06037..c9b0b884ef29 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.10.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 4314007ec562..88cf19fe07a3 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.10.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 b08e28c101bd..b97f28bbcfd8 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 2ddb87f6a010..8cfe9533fe17 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.10.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 ce488cfee9f3..e0e1e8bb4bbd 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.10.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 12d15d92650e..8d7cee198797 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.10.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 93bc8a4ebe12..ebcb558efe5f 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.10.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 8524bfaed6bf..89584fa7c936 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.10.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 9418f0d8365a..9d11826fc6b6 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.10.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 7fee297aff6a..522461a44dc5 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.10.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 1c2f6c07b792..c606bf61478f 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.10.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 14ad2ae56740..ced7c3fba438 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.10.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 e315bec7e3b1..6cbd7fa3a4d8 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.10.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 96d087042468..13d5e6c28f61 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.10.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 dbe5cee986f7..f81fbc6d2778 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.10.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 79f2513e107f..c9126e5c0098 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.10.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 7ca678232b9c..f1fdad961230 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.10.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 d8f63e772cec..ce6c7f5343a7 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.10.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 84b613c90318..2e82ad5c0e79 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.10.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 e22ab68285ce..d73de854276f 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.10.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 b5e61d1c7469..432b127fca3c 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.10.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 715726f7f290..14dca1cd360a 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.10.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 b26baa7536bb..7026940729fb 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.10.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 25803cc27365..2e50954e68d6 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.10.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 bba657efb0e3..a7c3f1ed405d 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.10.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 017fcc0c4e86..205f6cbd7d9d 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.10.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 9e471a148660..866fea13490a 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.10.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 dadb888d2700..a25fa0629eac 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 c5fac5e8e2ed..337564b48ea4 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 72a0ac2f8e24..e6829787410d 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 de9d70427290..f9ceab56f6d2 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 0beb61c5889d..90c4337bada4 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 d07954afa2fe..98e085d35670 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 61477e4e171e..f0eedaf2524b 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 55b797170042..4a2ebd1c97c8 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 83ddd1f8b138..48f33123f1b4 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 5b80cd47421d..e1f8271d6f64 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 bb7711d87d31..b36c0fd70fb5 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 b7a2bc78335a..518cc82f38d4 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 a2f6064f2892..c7f9052bc7ec 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 bef63bbeb37d..ce9bc5ca8842 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 aa44f6649775..43eea73f77ff 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 65dbb1ad349b..f8b65989d0cc 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 bea678e73fed..254bf2205f36 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 f0e5afce93ec..608c5a53e723 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 efb149c66891..e2de6c2a8d35 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 5ca06a47e28b..d4a65cfe4ad3 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 862a5609717d..69198659923c 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 40713a0dbec4..56626769465f 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 662a74e34a56..0b70621b93fb 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 210b681951b0..9bc9610b6351 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 b3f40b5448a4..05adb433f0f9 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 e3019d03b0f6..0b780b8a1904 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 ea346f572340..381b70135765 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 6fb7c7c57093..868af1bf211e 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 07a1ac3a0b5d..b8f28eda30d6 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 e9ac11617915..2ffaf8b93300 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 a688d244b74a..5d0af3485a5e 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 5468186a7a01..36f56fd6ce72 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 23df38a87474..667934e61680 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 80fc0686b556..0929e2be428c 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 d6d3db372249..dd4c2d34986f 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 2e5b75155178..5564530719d2 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 85eeaafac6e6..81a5c5b54157 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 6ed104e13169..c0d875203384 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 6c1a7ac3e8ae..ae6f87b76f2a 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 1c073e4cabbb..182ffd7fd0ed 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 3a74d1277545..fd29274e0680 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 035bbd822235..57e079ea5794 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 041e97c97429..7797b12ece81 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 2b3f714ebd91..45f9f9f3bdda 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 3f8ca92a064d..4deef2959052 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.10.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 4497942f85ac..f021b9ac1fe8 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.10.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 1b1c2ee8a199..be3d68394ed3 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 234b7ec0fc35..a2e283df81da 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.10.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 c01733926689..fb608415f92d 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.10.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 fb074c5504cf..1df676af0c10 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.10.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 bc9e550f858f..1276877afd6b 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.10.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 3143e2373326..3cf0d6a9341a 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 123c62f27e9e..27c1e9db9602 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.10.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 6474b477ffb2..9b90067d53f9 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 e15c3d34f2bc..c21da6c5ad32 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.10.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 f94340913697..bde6845077b1 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.10.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 6823e2944781..3f8aeaa5fa1f 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.10.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 0524d2e44b76..893c29460708 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 4cdeffea1e06..34839da447e3 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 a9d3a815151d..1ae323dee5aa 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 1c8f18e3b0da..e87525f95499 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.10.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 2c2d18f2864e..551d58b14aa3 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.10.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 5f5bd7d028a8..674fb880f645 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.10.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 1100abc04f16..944edea0aeb1 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.10.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 3be7581dda65..9b629a311cce 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.10.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 e80b8ee8ad0a..01441f80c3b1 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.10.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 f278099134ac..a36cead6d17b 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.10.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 ce5a79813a8d..dc9b7536a7fa 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.10.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 fdd148937f1a..69ea559db1d1 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.10.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 48974cab86d0..286cfcc9f688 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.10.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 2f3c28a53637..9ddff62a18e0 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.10.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 14b5569af48f..fd8b90867915 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.10.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 8ac18dd876a4..7168306a4241 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.10.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 84e2cb19ff4e..e945d4da4286 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.10.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 945272f36109..727f8d366ebe 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.10.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 1688a92bf00a..db322081dc9f 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.10.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 bc2de2e01ab6..411417ab2365 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.10.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 edd08ce15327..e37535a862fa 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.10.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 4ef340f337b7..90a58922099d 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.10.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 b060e74716e8..6318e7e93e45 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.10.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 b804a13bf314..d96364530103 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.10.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 09a088e10e6f..db3e690abb96 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 3ed911744dbf..f49ee675ca42 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.10.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 0742fc281475..15f85b1643f3 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.10.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 677b76670667..0019d96d4846 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.10.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 c5b53eb9c031..2c2ad180eae5 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.10.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 79179284638b..f1ead98c6cd2 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.10.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 5351ca0b25fd..6cb2cb0dc60e 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.10.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 1867cac006d1..6541581c7488 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.10.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 26657909704a..87f94a2a5eb3 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.10.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 14825361b708..38ce50595dd3 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.10.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 3b89d5535067..f20e91f8baf0 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.10.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 534f09efe630..8673916d40c8 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.10.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 e9ae1bf0894f..3b879e806367 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.10.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 8b0391c7f2b7..ed6f748f7e11 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.10.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 b7c1ff257c84..ee0a5bc3c005 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.10.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 c57f37d90ea0..72d13d6b5790 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 7d796469aa61..05021eb5a6e8 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.10.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 443cef57230c..89758b2cb4da 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.10.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 7c82f3d409c2..434fc7376723 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.10.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 980bfaa3df6c..7b95129fc733 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 60359cd9ad9f..ebe7fd596ea5 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.10.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 4365811994ce..abc5716e6ee7 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 ffcc53ce2ffd..10e2f02ac001 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.10.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 d2db1262f75c..95f5f1fd41c1 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.10.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 3d179537e21d..05043f2638b8 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.10.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 92062e30544b..3e9f7cb920c6 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 dd0360794646..88a61e20cffa 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 60490f8f45d8..c9a75a9569cc 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 5f003a6ef57a..de8cfc1ad383 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.10.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 7fdee0b9781d..2738a0532283 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.10.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 85d9d637cde8..2295fda29f57 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.10.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 f4baa60281e0..9177c94842c4 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.10.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 2f0e24c7ced2..821ec3fb79e9 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.10.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 26dca932affc..4c889f467bf5 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.10.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 9318dbb47f4c..2d91f091f5fe 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.10.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 eb129b94daf9..768be29a93a2 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.10.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 ade635952a87..bac0169ad44f 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.10.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 597ac4a40cd5..0e5a4a764199 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.10.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 0d169eb2c73c..65fe8b3edf61 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.10.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 81e5730312e2..232233b2340e 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.10.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 13a07ac93745..6734ca66124c 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.10.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 643f00a6298c..d3603f7d741a 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.10.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 e19e099a279d..cb658e254f43 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.10.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 d04982a2d13c..2094e0f526cf 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.10.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 cef851558709..07b09e2e3d6b 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.10.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 ebe15b0dc238..1328af0e5c55 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.10.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 ad143dbba07b..0cb4c2f97568 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.10.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 a5e004d0aab3..b6faa3302238 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.10.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 5638f918ad0a..8c6fcea6aca1 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.10.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 93bc531e45d7..af4ca6412c01 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.10.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 ffede6774ffa..5c9f023af802 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 f1a815df70fb..bbb26f370e12 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 2727d92d086a..f1cd2f1e7138 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 24d30583fecf..7e6901510c08 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 c2d901a0c36e..b3b92e6e2273 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 93a11982d000..ea8f5b449153 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 f5ac0f3113df..4381139af308 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 9f4ce890d82f..c0682136e738 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 16d00b0110f4..fc0306d2f68e 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 8476028707a2..312bce79cacd 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 5d8a025acc46..9d266ae36369 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 d3d29ab19cd5..085ae37c1cf2 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 f86d35bb39a3..af2200f16863 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 168779793161..9d5577818a3d 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 7ba3507cf87a..45f1a7a35a4e 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 10adac82c5cf..644b24f36225 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 665420828599..862d2f79463c 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 9c8444fe514f..71f9b680f0e8 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 7046e2e94cce..277728157007 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 94d1e5946b91..ec837ff1b2e7 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 3edb69025231..cef08bf0628a 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 1e68e1d7ebd0..df6dacaa1f71 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 7f96faef5974..6c59071c3751 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 74b4ca225d46..99cfb90c57cf 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 ad82b8c1afaf..8c0599df9122 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 1a613e38d6ba..d092e0b0c480 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 0fc506e81908..d3be6fce2e75 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 d858276783fa..14fa3f08aedc 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 bcfcb1fd7a21..46a3d5365b32 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 7c5399c07b4b..85975144e8e2 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 515fe5501ad3..39be3519230c 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 1ae15483ea58..568ff8a20d1d 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 b7833e193d43..e0a06c9ddeee 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 86bedc54e42c..a0d68146490a 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 18a1a8466f4a..4fd0d4035ca8 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 f58d038d298c..ff5b80cb4d2c 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 409ab9317ff0..374fce7ae200 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 ae1c2b2d4688..f7c1b0837289 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 c2c65f70f8c5..ee88c867e6d7 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 cf615890df2f..72de8399c0fd 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 9d73e7ecef31..9c92fcd4ebce 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 3a6b7d027f00..6f7346a43f3f 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 8ab822a96ab6..ba4045a781bd 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 ffede6774ffa..5c9f023af802 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 f1a815df70fb..bbb26f370e12 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 2727d92d086a..f1cd2f1e7138 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 24d30583fecf..7e6901510c08 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 c2d901a0c36e..b3b92e6e2273 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 93a11982d000..ea8f5b449153 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 f5ac0f3113df..4381139af308 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 9f4ce890d82f..c0682136e738 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 16d00b0110f4..fc0306d2f68e 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 8476028707a2..312bce79cacd 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 5d8a025acc46..9d266ae36369 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 d3d29ab19cd5..085ae37c1cf2 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 f86d35bb39a3..af2200f16863 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 168779793161..9d5577818a3d 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 7ba3507cf87a..45f1a7a35a4e 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 10adac82c5cf..644b24f36225 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 665420828599..862d2f79463c 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 9c8444fe514f..71f9b680f0e8 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 7046e2e94cce..277728157007 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 94d1e5946b91..ec837ff1b2e7 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 3edb69025231..cef08bf0628a 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 1e68e1d7ebd0..df6dacaa1f71 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 7f96faef5974..6c59071c3751 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 74b4ca225d46..99cfb90c57cf 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 ad82b8c1afaf..8c0599df9122 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 1a613e38d6ba..d092e0b0c480 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 0fc506e81908..d3be6fce2e75 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 d858276783fa..14fa3f08aedc 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 bcfcb1fd7a21..46a3d5365b32 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 7c5399c07b4b..85975144e8e2 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 515fe5501ad3..39be3519230c 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 1ae15483ea58..568ff8a20d1d 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 b7833e193d43..e0a06c9ddeee 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 86bedc54e42c..a0d68146490a 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 18a1a8466f4a..4fd0d4035ca8 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 f58d038d298c..ff5b80cb4d2c 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 409ab9317ff0..374fce7ae200 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 ae1c2b2d4688..f7c1b0837289 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 c2c65f70f8c5..ee88c867e6d7 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 cf615890df2f..72de8399c0fd 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 9d73e7ecef31..9c92fcd4ebce 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 3a6b7d027f00..6f7346a43f3f 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 8ab822a96ab6..ba4045a781bd 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 ffede6774ffa..5c9f023af802 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 f1a815df70fb..bbb26f370e12 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 2727d92d086a..f1cd2f1e7138 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 24d30583fecf..7e6901510c08 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 c2d901a0c36e..b3b92e6e2273 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 93a11982d000..ea8f5b449153 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 f5ac0f3113df..4381139af308 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 9f4ce890d82f..c0682136e738 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 16d00b0110f4..fc0306d2f68e 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 8476028707a2..312bce79cacd 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 5d8a025acc46..9d266ae36369 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 d3d29ab19cd5..085ae37c1cf2 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 f86d35bb39a3..af2200f16863 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 168779793161..9d5577818a3d 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 7ba3507cf87a..45f1a7a35a4e 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 10adac82c5cf..644b24f36225 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 665420828599..862d2f79463c 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 9c8444fe514f..71f9b680f0e8 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 7046e2e94cce..277728157007 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 94d1e5946b91..ec837ff1b2e7 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 3edb69025231..cef08bf0628a 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 1e68e1d7ebd0..df6dacaa1f71 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 7f96faef5974..6c59071c3751 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 74b4ca225d46..99cfb90c57cf 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 ad82b8c1afaf..8c0599df9122 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 1a613e38d6ba..d092e0b0c480 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 0fc506e81908..d3be6fce2e75 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 d858276783fa..14fa3f08aedc 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 bcfcb1fd7a21..46a3d5365b32 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 7c5399c07b4b..85975144e8e2 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 515fe5501ad3..39be3519230c 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 1ae15483ea58..568ff8a20d1d 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 b7833e193d43..e0a06c9ddeee 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 86bedc54e42c..a0d68146490a 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 18a1a8466f4a..4fd0d4035ca8 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 f58d038d298c..ff5b80cb4d2c 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 409ab9317ff0..374fce7ae200 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 ae1c2b2d4688..f7c1b0837289 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 c2c65f70f8c5..ee88c867e6d7 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 cf615890df2f..72de8399c0fd 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 9d73e7ecef31..9c92fcd4ebce 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 3a6b7d027f00..6f7346a43f3f 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 8ab822a96ab6..ba4045a781bd 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 8b087ab66c10..9debf0e54b4a 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.10.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 2ad9f27b764e..0ca63318ea10 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.10.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 925f851c09e0..198098998991 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.10.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 5a7214ea2e2c..fe25bc34ed8a 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.10.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 7ab64c281e5f..95004c43bea6 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.10.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 1b4da048acd7..6a2e2be227e8 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.10.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 dea7e86d2155..5fbc22151d4c 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.10.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 51e0c6cf342c..eb29c72010b1 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.10.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 046dcd9ac822..5e764d85a6cb 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 6a77e7980689..6f58e3255492 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.10.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 3af92dd17849..f3d46916faa9 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.10.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 f3dd9149c334..771578abd0ac 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.10.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 41fb5315e7ec..073996fa7a07 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 334b4c17ccde..6cd94422b1cc 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.10.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 a27f4a02bc46..ca385024c9d5 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 f2428c4be413..50b6ff1d6a27 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.10.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 9887d204018d..dbf6964fdad2 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.10.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 645560a2ff30..0be09220e7df 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.10.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 8599f3b034d2..8004beff9756 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 cad068cf3b6a..42c505b11899 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 6c2217c0daff..a5667a13859d 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 dd82dfbf0556..6c10cc7d053f 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.10.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 1622486750e7..ff518a3770fc 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.10.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 fc6f4de0083c..6dc15593463d 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.10.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 166a1d2e8fdf..03fcf6214210 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.10.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 fd5fce686177..27b5ebbd852b 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.10.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 1b121986dae0..0b83c6011405 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.10.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 32981db50c50..0938a865de43 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.10.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 e14c2b78f749..73f5779de22f 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.10.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 13e89d73aa31..f8d50bc17620 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.10.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 47b82483f271..314794ba50b5 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.10.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 e75ec4b62c4f..4789044c8530 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.10.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 37dd5cf7be03..341017c96d26 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.10.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 59ef01bcb365..0136b2dcc833 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.10.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 200337e06037..c9b0b884ef29 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.10.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 2ddb87f6a010..8cfe9533fe17 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.10.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 ce488cfee9f3..e0e1e8bb4bbd 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.10.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 380e638f55cf..74687fe9f3ba 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.10.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 93bc8a4ebe12..ebcb558efe5f 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.10.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 c34713ecd106..af3db9484123 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.10.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 c0cf55a10e81..ba7a6d198a2a 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.10.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 9418f0d8365a..9d11826fc6b6 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.10.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 7f6c2f3eb5f0..0ff945d70a11 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.10.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 93d0220ad328..936b8bafdbba 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.10.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 6d7099790f24..5a60fa128dda 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.10.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 2afb39370910..745689d7191a 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 6a77e7980689..6f58e3255492 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.10.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 3af92dd17849..f3d46916faa9 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.10.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 f3dd9149c334..771578abd0ac 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.10.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 334b4c17ccde..6cd94422b1cc 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.10.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 ed573be3fe4d..f8705b67de58 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 f2428c4be413..50b6ff1d6a27 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.10.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 92ac78ada81e..b436febdcc4a 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 9887d204018d..dbf6964fdad2 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.10.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 645560a2ff30..0be09220e7df 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.10.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 f567d4de2c5b..acdb137161a2 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.10.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 8599f3b034d2..8004beff9756 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 cad068cf3b6a..42c505b11899 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 ffcec49f58d8..915ba1b91ce9 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 ad6b00e77a24..0f3aaeb0af49 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.10.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 dd82dfbf0556..6c10cc7d053f 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.10.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 007462a052ca..6c446b295f88 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.10.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 13dbee6c4a23..395eecaf8b53 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.10.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 cb3013e2354a..2ecd18196210 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.10.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 fc6f4de0083c..6dc15593463d 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.10.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 a8cc7eadd0bb..b772672c401f 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.10.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 166a1d2e8fdf..03fcf6214210 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.10.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 fd5fce686177..27b5ebbd852b 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.10.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 1b121986dae0..0b83c6011405 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.10.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 32981db50c50..0938a865de43 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.10.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 e14c2b78f749..73f5779de22f 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.10.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 13e89d73aa31..f8d50bc17620 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.10.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 47b82483f271..314794ba50b5 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.10.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 e75ec4b62c4f..4789044c8530 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.10.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 d510152c6ef1..bb516d7739da 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.10.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 37dd5cf7be03..341017c96d26 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.10.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 79b51c107996..c6a3cc14fade 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.10.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 59ef01bcb365..0136b2dcc833 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.10.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 200337e06037..c9b0b884ef29 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.10.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 4314007ec562..88cf19fe07a3 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.10.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 b08e28c101bd..b97f28bbcfd8 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 2ddb87f6a010..8cfe9533fe17 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.10.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 ce488cfee9f3..e0e1e8bb4bbd 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.10.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 12d15d92650e..8d7cee198797 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.10.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 93bc8a4ebe12..ebcb558efe5f 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.10.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 8524bfaed6bf..89584fa7c936 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.10.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 9418f0d8365a..9d11826fc6b6 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.10.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 5b88cf859340..720f54754f4e 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.10.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 553c86b8c67b..fbf8d61fa177 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.10.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 7723bbd0b3e8..86cc58eb17be 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 7a324c2d64ac..87cea9ecb8df 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.10.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 2db544721c99..ddac35e167ae 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.10.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 eefee53145b6..69f13d66946d 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.10.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 4532d7e6e986..4527c5efd07a 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.10.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 0d124c2efa1f..73f8201c2c7f 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 45150aed846d..c87cc6d9d033 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.10.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 dc0ab1108bfe..55e6ce126788 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 50ab7257d81a..cc5edb0ddf1c 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.10.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 462dc166cbbd..7b7843af2080 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.10.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 d051f58bdfbe..da99cf340327 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.10.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 8db2e461f85c..6a11ad89d6f9 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 5854a5e7e1f0..3e2e08025830 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 36ac6c705c68..f9347fc97f5b 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 e0f8858870d0..e9edabdcfab3 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.10.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 f3ecd1b8d45b..d1b7648e7be4 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.10.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 d4ae08190d16..e673cf968242 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.10.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 f68474edecd3..6c72b31783b5 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.10.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 58cfa9edade5..818b19b86bde 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.10.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 18e5c0c3120a..7fcd7679b146 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.10.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 ed47a852041e..e30ee78c1c43 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.10.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 130b2f2c72ec..f279dad1037d 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.10.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 dc194d8d6753..0eb4099d56ea 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.10.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 f2623213d53d..7d0bfb917073 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.10.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 8d4aa0f98fec..dac5d47ec9ca 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.10.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 927fde003093..3c99c5d565e0 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.10.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 42636b21cef3..54a220f2c63e 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.10.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 588040715446..3620721ba403 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.10.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 dc4e21d3e69b..d80704b7a715 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.10.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 27f64e04bdb3..04989802ba7d 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.10.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 d3ab7dbb2fe1..3c21f20754c2 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.10.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 bc7c49a40c40..2f0d9d3b946d 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.10.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 dd1d51cce1cb..8f4db12e8222 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.10.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 709ac97e93a6..b2b88b32009b 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.10.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 1002adf36ee5..0b5fecce1ceb 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.10.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 38c70b580a1e..78772c7e27cc 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 d00626a0146d..893ffedd5f5c 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.10.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 df185785e83c..f6d848fa88c6 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.10.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 28682f92204c..fb9e96a8da6b 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.10.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 419d5646c3ec..f5c4ae0e4467 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.10.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 b898ad17907d..58e2d9d3f8ec 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.10.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 183e7daf6569..b0af4339edd8 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.10.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 d874b39b8e06..25d798d8e1d1 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.10.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 e7c553e21ffd..d3f9c8a82577 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.10.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 ec8c6b2462a8..7d7cdf5501de 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.10.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 a5f7d83f2ef3..e3904f0a6103 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 e4ac77f87da3..5c49f35618e7 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.10.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 3c674fb1e940..6d3ea3645bfc 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.10.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 8cdc94b5b123..07a36c9fcc7b 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.10.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 d5a66af32753..722e1eab2db0 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.10.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 2783d54e9ba5..827d2556beef 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 34cc7919f239..07e5d75a4e56 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.10.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 30a14064a5f4..d1da73a19c21 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 87d03784600b..012dd2c278e9 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.10.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 e089b3d48c51..c2b9f484cd7c 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.10.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 b0f2c15b7a91..d8dcc870c7f3 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.10.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 dcd09969d213..9165437575b7 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 bc593d083fab..c9dd3f0c9681 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 6150c3578c12..351aa9ec9f5e 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 b7f33873eda7..8f0f6ff2a30d 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.10.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 cf65128bd2ab..30064d176373 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.10.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 a8514fe501f4..51a7f657505a 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.10.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 2a2754593437..a022654bb582 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.10.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 5f985f659d97..fa42deddf156 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.10.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 b9f13f910cdb..d2a07a0a8656 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.10.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 ea339806ef3f..9a7bdf26b831 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.10.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 6bce51c1c1db..c9895b73e1af 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.10.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 2ac5b6b0c5fe..4d8a4c615811 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.10.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 0482c4bb8889..2245a4229be8 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.10.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 3d561d9d9a1d..575404902e5e 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.10.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 88936f8eb987..f1d78d68b67a 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.10.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 b18b38e833e8..61d5ba8249a3 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.10.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 66cc27cbfd77..bd1d313643d2 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.10.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 dcb46ef9cebc..030b8bb59fb8 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.10.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 fadfacbd4937..0f2bdaf1cf42 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.10.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 13656d430198..274b98cfe41a 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.10.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 00a5b935ac95..e9488f205464 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.10.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 e7c8f1e13a06..accc94613962 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.10.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 00b7f4930ade..68b3c557a01e 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.10.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 46e980520e64..c1ed9389a564 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.10.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 ca06cbd65ffa..414daf5832e8 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 65efa4eae073..a3045ad1ee99 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.10.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 1df118215c75..17fa54948d89 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.10.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 c238e666a44a..bb01969ec771 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.10.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 f9ba13db7290..f30b547f2119 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.10.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 8e29f869f057..154fb1804bd6 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.10.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 f27d7277f076..15d035b47fbc 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.10.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 760d0789b353..b61edd30f502 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.10.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 6d7099790f24..5a60fa128dda 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.10.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 2afb39370910..745689d7191a 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 740f69788094..ae711e2787da 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.10.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 277102745d82..a0ba0e0c16ec 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.10.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 41a3755c4008..e263e2ee4c26 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.10.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 334b4c17ccde..6cd94422b1cc 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.10.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 ed573be3fe4d..f8705b67de58 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 f2428c4be413..50b6ff1d6a27 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.10.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 92ac78ada81e..b436febdcc4a 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 9887d204018d..dbf6964fdad2 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.10.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 645560a2ff30..0be09220e7df 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.10.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 f567d4de2c5b..acdb137161a2 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.10.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 8599f3b034d2..8004beff9756 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 c08e641e1c48..e6a5ddc351a3 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 ffcec49f58d8..915ba1b91ce9 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 1631163f3359..eb9c0d5618c7 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.10.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 56f084627bb6..b413890feef5 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.10.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 007462a052ca..6c446b295f88 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.10.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 13dbee6c4a23..395eecaf8b53 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.10.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 48e2602997c9..bb7fb37b6325 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.10.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 fc6f4de0083c..6dc15593463d 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.10.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 a8cc7eadd0bb..b772672c401f 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.10.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 7832bc9aa353..3dfecb96db59 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.10.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 7a5db3b0aac2..55a43c42b316 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.10.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 1b121986dae0..0b83c6011405 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.10.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 32981db50c50..0938a865de43 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.10.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 e14c2b78f749..73f5779de22f 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.10.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 13e89d73aa31..f8d50bc17620 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.10.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 47b82483f271..314794ba50b5 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.10.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 e75ec4b62c4f..4789044c8530 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.10.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 49539dd1e24e..d5a15f45614e 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.10.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 37dd5cf7be03..341017c96d26 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.10.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 23cb3a344f38..9c7dd3385403 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.10.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 59ef01bcb365..0136b2dcc833 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.10.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 200337e06037..c9b0b884ef29 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.10.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 4314007ec562..88cf19fe07a3 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.10.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 b08e28c101bd..b97f28bbcfd8 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 ac3173a7e15c..5a91c5d0773f 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.10.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 ce488cfee9f3..e0e1e8bb4bbd 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.10.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 12d15d92650e..8d7cee198797 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.10.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 93bc8a4ebe12..ebcb558efe5f 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.10.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 8524bfaed6bf..89584fa7c936 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.10.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 9418f0d8365a..9d11826fc6b6 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.10.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 993ca514d7c6..9865ebf30a97 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 93a04f049076..5ce6bbdc846f 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 5f38f4aae2f9..7a49b5f3becb 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 ad632f7fa71d..a2a77b78dc7e 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.10.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 6dcf99847704..bc2eb383af24 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.10.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 abb307941cd5..953d6d472ca6 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.10.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 bc2481223a1c..0bb003f0f4a0 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.10.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 4b279664aba5..541861ada265 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.10.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 eefc2de5061f..dccffb563dd5 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.10.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 a020ca344197..2e9f6c4e38f3 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.10.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 2b628cb2e7cb..8c5741315ba7 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.10.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 876775327521..03afb59a2739 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.10.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 80e4c199e7f7..c07fdfe2091e 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.10.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 c3bbe3d87f18..0f4122271dbd 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.10.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 a5d940fcfc7f..325609e3ef28 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.10.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 07f2c99b7c7a..43745cdf21ae 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.10.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 b84a89e0cfdb..4d2ce0fec2e7 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 fab6a4688719..e53e2e86c5d3 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.10.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 a50486b6d5ed..8557a52e9948 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.10.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 de27b6abc9b7..5510fb44e7cd 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.10.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 b56bc8707468..2d594551dab5 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.10.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 667cc9572ffe..3ae301ac9bf7 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.10.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 0ecce8b78608..18a084d1c4ba 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.10.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 594dbc12dcde..ba41a7474930 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.10.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 861dfdfdd0ec..4bb12b97ab85 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.10.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 1cab1da183f0..856400a49ec7 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.10.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 57fc01359ee4..5db8352f8aeb 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 462ef3a308ac..12f9b4571b22 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.10.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 2624f4bc0cd5..7aacf45411a0 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 ea9d7753c3ca..8b5ec06c54d8 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.10.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 1efa318ae96a..f52ad3cd1b12 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.10.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 7a179f3915aa..dd3e26115b51 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.10.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 94b76a3972e3..53b4fe023d8e 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.10.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 53a060b0e66d..2551abc904d6 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.10.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 0b69f302fbc9..e99cab89178d 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 9c7aa3c01af4..aa41efe595f7 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.10.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 e59c65214541..6238af12763a 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 3a793413436b..59c58ab91ebe 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 402b3a10e44a..1c31a6c15b79 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.10.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 b5c7fd1bf45d..170ad2b8b492 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.10.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 73df772a63a4..c3d7e4aa3d8c 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.10.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 de2d30f5a10c..986bb8b5d00c 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.10.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 7473d998aba6..a51743669e2c 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.10.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 53a36e100561..4512e112c8d4 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 9f3ed7fb17d0..10721debfd1d 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.10.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 0cacc1bf51d8..547f0d1bc849 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 db386d847be8..741c289a890f 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.10.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 dd6910a09b08..dffb29de558f 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.10.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 9488718bc624..0cdae9a6d433 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.10.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 62635253abbc..35c20d8ca6a8 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.10.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 bf2d01a3d918..15a4a419b283 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.10.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 bfe8c0a714e4..b9a89f3a17e4 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.10.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 6da481f81569..1b91713f4454 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.10.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 d8624a066da2..96d2ac44fe71 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.10.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 be88755b6202..56f543a8e558 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.10.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 653cd5c80e45..f5617df68849 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 6b4c25bfb396..4a496bd97f4c 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.10.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 88f67756396b..e6c33ef2e1dd 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.10.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 8a8e6e651298..6193d72decd2 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.10.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 52a0054efa97..26773fbe640b 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.10.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 96f0cdfc6104..1a2bbc67b03e 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.10.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 05d826e7e695..7d2f4602c43a 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.10.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 1e1a29181b2b..1900fe83eedb 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.10.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 08ce9db3d6fd..757ca96e161f 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.10.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 2728d7006398..1ca563f30480 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.10.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 c4e854ad671b..9b4b85607a6f 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.10.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 6d79fb013ac9..d2ee2257b9cf 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.10.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 8f375ade3043..ebad74cb005e 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.10.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 52c6ed70a8d9..2fed072b1e7e 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.10.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 6676d1937a48..b736e78ae309 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.10.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 b06fd870383e..2a11183ef575 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.10.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 dad5b3874abc..192047427435 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.10.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 df15190f2ead..f408a6fac662 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; }