From 65b1859161b2c2e34b4d914c34fd387847ff45de Mon Sep 17 00:00:00 2001 From: Nicolas Vervelle <77850427+nvervelle@users.noreply.github.com> Date: Wed, 16 Oct 2024 10:14:29 +0200 Subject: [PATCH] Add nullability annotations to Java generated clients (#19617) * issue-1960: Add nullability annotations to Java generated clients Motivations: Have generated clients properly annotated for nullability to be able to check code using them with tools like NullAway Modifications: * Add nullable_var_annotations template to handle nullability annotation on vars * Add pojo templates to use the nullability template * Adapt tests * issue-1960: Add nullability annotations to Java generated clients Modifications: * Run export_docs_generator.sh script to update samples --- .../Java/libraries/feign/pojo.mustache | 17 +- .../Java/libraries/jersey2/pojo.mustache | 17 +- .../Java/libraries/jersey3/pojo.mustache | 17 +- .../Java/libraries/native/pojo.mustache | 19 +-- .../Java/libraries/okhttp-gson/pojo.mustache | 17 +- .../Java/nullable_var_annotations.mustache | 1 + .../src/main/resources/Java/pojo.mustache | 19 +-- .../codegen/java/JavaClientCodegenTest.java | 16 +- .../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 +- 1582 files changed, 14871 insertions(+), 9980 deletions(-) create mode 100644 modules/openapi-generator/src/main/resources/Java/nullable_var_annotations.mustache diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/feign/pojo.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/feign/pojo.mustache index fe97e3b1b26..d76b35d7d25 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/feign/pojo.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/feign/pojo.mustache @@ -72,6 +72,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{/isContainer}} {{/vendorExtensions.x-is-jackson-optional-nullable}} {{^vendorExtensions.x-is-jackson-optional-nullable}} + {{>nullable_var_annotations}} {{#isContainer}} private {{{datatypeWithEnum}}} {{name}}{{#defaultValue}} = {{{.}}}{{/defaultValue}}; {{/isContainer}} @@ -113,7 +114,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{#vars}} {{^isReadOnly}} - public {{classname}} {{name}}({{{datatypeWithEnum}}} {{name}}) { + public {{classname}} {{name}}({{>nullable_var_annotations}} {{{datatypeWithEnum}}} {{name}}) { {{#vendorExtensions.x-is-jackson-optional-nullable}}this.{{name}} = JsonNullable.<{{{datatypeWithEnum}}}>of({{name}});{{/vendorExtensions.x-is-jackson-optional-nullable}} {{^vendorExtensions.x-is-jackson-optional-nullable}}this.{{name}} = {{name}};{{/vendorExtensions.x-is-jackson-optional-nullable}} return this; @@ -189,17 +190,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{#deprecated}} @Deprecated {{/deprecated}} -{{#required}} -{{#isNullable}} - @{{javaxPackage}}.annotation.Nullable -{{/isNullable}} -{{^isNullable}} - @{{javaxPackage}}.annotation.Nonnull -{{/isNullable}} -{{/required}} -{{^required}} - @{{javaxPackage}}.annotation.Nullable -{{/required}} + {{>nullable_var_annotations}} {{#jsonb}} @JsonbProperty("{{baseName}}") {{/jsonb}} @@ -246,7 +237,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{^isReadOnly}} {{#vendorExtensions.x-setter-extra-annotation}} {{{vendorExtensions.x-setter-extra-annotation}}} -{{/vendorExtensions.x-setter-extra-annotation}}{{#jackson}}{{^vendorExtensions.x-is-jackson-optional-nullable}}{{> jackson_annotations}}{{/vendorExtensions.x-is-jackson-optional-nullable}}{{/jackson}} public void {{setter}}({{{datatypeWithEnum}}} {{name}}) { +{{/vendorExtensions.x-setter-extra-annotation}}{{#jackson}}{{^vendorExtensions.x-is-jackson-optional-nullable}}{{> jackson_annotations}}{{/vendorExtensions.x-is-jackson-optional-nullable}}{{/jackson}} public void {{setter}}({{>nullable_var_annotations}} {{{datatypeWithEnum}}} {{name}}) { {{#vendorExtensions.x-is-jackson-optional-nullable}} this.{{name}} = JsonNullable.<{{{datatypeWithEnum}}}>of({{name}}); {{/vendorExtensions.x-is-jackson-optional-nullable}} diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/pojo.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/pojo.mustache index 06be4ddf265..0d8bc23c6cc 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/pojo.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/pojo.mustache @@ -81,6 +81,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{#deprecated}} @Deprecated {{/deprecated}} + {{>nullable_var_annotations}} private {{{datatypeWithEnum}}} {{name}}{{#defaultValue}} = {{{.}}}{{/defaultValue}}; {{/vendorExtensions.x-is-jackson-optional-nullable}} @@ -113,7 +114,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{#deprecated}} @Deprecated {{/deprecated}} - public {{classname}} {{name}}({{{datatypeWithEnum}}} {{name}}) { + public {{classname}} {{name}}({{>nullable_var_annotations}} {{{datatypeWithEnum}}} {{name}}) { {{#vendorExtensions.x-enum-as-string}} if (!{{{nameInSnakeCase}}}_VALUES.contains({{name}})) { throw new IllegalArgumentException({{name}} + " is invalid. Possible values for {{name}}: " + String.join(", ", {{{nameInSnakeCase}}}_VALUES)); @@ -197,17 +198,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{#deprecated}} @Deprecated {{/deprecated}} -{{#required}} -{{#isNullable}} - @{{javaxPackage}}.annotation.Nullable -{{/isNullable}} -{{^isNullable}} - @{{javaxPackage}}.annotation.Nonnull -{{/isNullable}} -{{/required}} -{{^required}} - @{{javaxPackage}}.annotation.Nullable -{{/required}} + {{>nullable_var_annotations}} {{#useBeanValidation}} {{>beanValidation}} {{/useBeanValidation}} @@ -257,7 +248,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens @Deprecated {{/deprecated}} {{#vendorExtensions.x-setter-extra-annotation}} {{{vendorExtensions.x-setter-extra-annotation}}} -{{/vendorExtensions.x-setter-extra-annotation}}{{#jackson}}{{^vendorExtensions.x-is-jackson-optional-nullable}}{{> jackson_annotations}}{{/vendorExtensions.x-is-jackson-optional-nullable}}{{/jackson}} public void {{setter}}({{{datatypeWithEnum}}} {{name}}) { +{{/vendorExtensions.x-setter-extra-annotation}}{{#jackson}}{{^vendorExtensions.x-is-jackson-optional-nullable}}{{> jackson_annotations}}{{/vendorExtensions.x-is-jackson-optional-nullable}}{{/jackson}} public void {{setter}}({{>nullable_var_annotations}} {{{datatypeWithEnum}}} {{name}}) { {{#vendorExtensions.x-enum-as-string}} if (!{{{nameInSnakeCase}}}_VALUES.contains({{name}})) { throw new IllegalArgumentException({{name}} + " is invalid. Possible values for {{name}}: " + String.join(", ", {{{nameInSnakeCase}}}_VALUES)); diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/jersey3/pojo.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/jersey3/pojo.mustache index 06be4ddf265..0d8bc23c6cc 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/jersey3/pojo.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/jersey3/pojo.mustache @@ -81,6 +81,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{#deprecated}} @Deprecated {{/deprecated}} + {{>nullable_var_annotations}} private {{{datatypeWithEnum}}} {{name}}{{#defaultValue}} = {{{.}}}{{/defaultValue}}; {{/vendorExtensions.x-is-jackson-optional-nullable}} @@ -113,7 +114,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{#deprecated}} @Deprecated {{/deprecated}} - public {{classname}} {{name}}({{{datatypeWithEnum}}} {{name}}) { + public {{classname}} {{name}}({{>nullable_var_annotations}} {{{datatypeWithEnum}}} {{name}}) { {{#vendorExtensions.x-enum-as-string}} if (!{{{nameInSnakeCase}}}_VALUES.contains({{name}})) { throw new IllegalArgumentException({{name}} + " is invalid. Possible values for {{name}}: " + String.join(", ", {{{nameInSnakeCase}}}_VALUES)); @@ -197,17 +198,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{#deprecated}} @Deprecated {{/deprecated}} -{{#required}} -{{#isNullable}} - @{{javaxPackage}}.annotation.Nullable -{{/isNullable}} -{{^isNullable}} - @{{javaxPackage}}.annotation.Nonnull -{{/isNullable}} -{{/required}} -{{^required}} - @{{javaxPackage}}.annotation.Nullable -{{/required}} + {{>nullable_var_annotations}} {{#useBeanValidation}} {{>beanValidation}} {{/useBeanValidation}} @@ -257,7 +248,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens @Deprecated {{/deprecated}} {{#vendorExtensions.x-setter-extra-annotation}} {{{vendorExtensions.x-setter-extra-annotation}}} -{{/vendorExtensions.x-setter-extra-annotation}}{{#jackson}}{{^vendorExtensions.x-is-jackson-optional-nullable}}{{> jackson_annotations}}{{/vendorExtensions.x-is-jackson-optional-nullable}}{{/jackson}} public void {{setter}}({{{datatypeWithEnum}}} {{name}}) { +{{/vendorExtensions.x-setter-extra-annotation}}{{#jackson}}{{^vendorExtensions.x-is-jackson-optional-nullable}}{{> jackson_annotations}}{{/vendorExtensions.x-is-jackson-optional-nullable}}{{/jackson}} public void {{setter}}({{>nullable_var_annotations}} {{{datatypeWithEnum}}} {{name}}) { {{#vendorExtensions.x-enum-as-string}} if (!{{{nameInSnakeCase}}}_VALUES.contains({{name}})) { throw new IllegalArgumentException({{name}} + " is invalid. Possible values for {{name}}: " + String.join(", ", {{{nameInSnakeCase}}}_VALUES)); diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/native/pojo.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/native/pojo.mustache index 1250a71eca3..fdb779be03a 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/native/pojo.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/native/pojo.mustache @@ -75,6 +75,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{/isContainer}} {{/vendorExtensions.x-is-jackson-optional-nullable}} {{^vendorExtensions.x-is-jackson-optional-nullable}} + {{>nullable_var_annotations}} private {{{datatypeWithEnum}}} {{name}}{{#defaultValue}} = {{{.}}}{{/defaultValue}}; {{/vendorExtensions.x-is-jackson-optional-nullable}} @@ -104,7 +105,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens )); {{/vendorExtensions.x-enum-as-string}} - public {{classname}} {{name}}({{{datatypeWithEnum}}} {{name}}) { + public {{classname}} {{name}}({{>nullable_var_annotations}} {{{datatypeWithEnum}}} {{name}}) { {{#vendorExtensions.x-enum-as-string}} if (!{{{nameInSnakeCase}}}_VALUES.contains({{name}})) { throw new IllegalArgumentException({{name}} + " is invalid. Possible values for {{name}}: " + String.join(", ", {{{nameInSnakeCase}}}_VALUES)); @@ -188,17 +189,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{#deprecated}} @Deprecated {{/deprecated}} -{{#required}} -{{#isNullable}} - @{{javaxPackage}}.annotation.Nullable -{{/isNullable}} -{{^isNullable}} - @{{javaxPackage}}.annotation.Nonnull -{{/isNullable}} -{{/required}} -{{^required}} - @{{javaxPackage}}.annotation.Nullable -{{/required}} + {{>nullable_var_annotations}} {{#useBeanValidation}} {{>beanValidation}} {{/useBeanValidation}} @@ -244,7 +235,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{^isReadOnly}} {{#vendorExtensions.x-setter-extra-annotation}} {{{vendorExtensions.x-setter-extra-annotation}}} -{{/vendorExtensions.x-setter-extra-annotation}}{{#jackson}}{{^vendorExtensions.x-is-jackson-optional-nullable}}{{> jackson_annotations}}{{/vendorExtensions.x-is-jackson-optional-nullable}}{{/jackson}} public void {{setter}}({{{datatypeWithEnum}}} {{name}}) { +{{/vendorExtensions.x-setter-extra-annotation}}{{#jackson}}{{^vendorExtensions.x-is-jackson-optional-nullable}}{{> jackson_annotations}}{{/vendorExtensions.x-is-jackson-optional-nullable}}{{/jackson}} public void {{setter}}({{>nullable_var_annotations}} {{{datatypeWithEnum}}} {{name}}) { {{#vendorExtensions.x-enum-as-string}} if (!{{{nameInSnakeCase}}}_VALUES.contains({{name}})) { throw new IllegalArgumentException({{name}} + " is invalid. Possible values for {{name}}: " + String.join(", ", {{{nameInSnakeCase}}}_VALUES)); @@ -266,7 +257,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{#allVars}} {{#isOverridden}} @Override - public {{classname}} {{name}}({{{datatypeWithEnum}}} {{name}}) { + public {{classname}} {{name}}({{>nullable_var_annotations}} {{{datatypeWithEnum}}} {{name}}) { {{#vendorExtensions.x-is-jackson-optional-nullable}} this.{{setter}}(JsonNullable.<{{{datatypeWithEnum}}}>of({{name}})); {{/vendorExtensions.x-is-jackson-optional-nullable}} diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/pojo.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/pojo.mustache index 0a32ef09907..de537a06429 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/pojo.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/pojo.mustache @@ -70,6 +70,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{#vendorExtensions.x-field-extra-annotation}} {{{vendorExtensions.x-field-extra-annotation}}} {{/vendorExtensions.x-field-extra-annotation}} + {{>nullable_var_annotations}} {{#isDiscriminator}}protected{{/isDiscriminator}}{{^isDiscriminator}}private{{/isDiscriminator}} {{{datatypeWithEnum}}} {{name}}{{#defaultValue}} = {{{.}}}{{/defaultValue}}; {{/vars}} @@ -106,7 +107,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{#deprecated}} @Deprecated {{/deprecated}} - public {{classname}} {{name}}({{{datatypeWithEnum}}} {{name}}) { + public {{classname}} {{name}}({{>nullable_var_annotations}} {{{datatypeWithEnum}}} {{name}}) { this.{{name}} = {{name}}; return this; } @@ -153,17 +154,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{#deprecated}} @Deprecated {{/deprecated}} -{{#required}} -{{#isNullable}} - @{{javaxPackage}}.annotation.Nullable -{{/isNullable}} -{{^isNullable}} - @{{javaxPackage}}.annotation.Nonnull -{{/isNullable}} -{{/required}} -{{^required}} - @{{javaxPackage}}.annotation.Nullable -{{/required}} + {{>nullable_var_annotations}} {{#useBeanValidation}} {{>beanValidation}} {{/useBeanValidation}} @@ -183,7 +174,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{^isReadOnly}} {{#vendorExtensions.x-setter-extra-annotation}} {{{vendorExtensions.x-setter-extra-annotation}}} {{/vendorExtensions.x-setter-extra-annotation}}{{#deprecated}} @Deprecated -{{/deprecated}} public void {{setter}}({{{datatypeWithEnum}}} {{name}}) { +{{/deprecated}} public void {{setter}}({{>nullable_var_annotations}} {{{datatypeWithEnum}}} {{name}}) { this.{{name}} = {{name}}; } {{/isReadOnly}} diff --git a/modules/openapi-generator/src/main/resources/Java/nullable_var_annotations.mustache b/modules/openapi-generator/src/main/resources/Java/nullable_var_annotations.mustache new file mode 100644 index 00000000000..7dbaf402930 --- /dev/null +++ b/modules/openapi-generator/src/main/resources/Java/nullable_var_annotations.mustache @@ -0,0 +1 @@ +{{#required}}{{#isNullable}}@{{javaxPackage}}.annotation.Nullable{{/isNullable}}{{^isNullable}}@{{javaxPackage}}.annotation.Nonnull{{/isNullable}}{{/required}}{{^required}}@{{javaxPackage}}.annotation.Nullable{{/required}} \ No newline at end of file diff --git a/modules/openapi-generator/src/main/resources/Java/pojo.mustache b/modules/openapi-generator/src/main/resources/Java/pojo.mustache index 05be7e5c538..0de3f814b8a 100644 --- a/modules/openapi-generator/src/main/resources/Java/pojo.mustache +++ b/modules/openapi-generator/src/main/resources/Java/pojo.mustache @@ -65,6 +65,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{#gson}} @SerializedName(SERIALIZED_NAME_{{nameInSnakeCase}}) {{/gson}} + {{>nullable_var_annotations}} {{#vendorExtensions.x-field-extra-annotation}} {{{vendorExtensions.x-field-extra-annotation}}} {{/vendorExtensions.x-field-extra-annotation}} @@ -134,7 +135,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{#vars}} {{^isReadOnly}} - public {{classname}} {{name}}({{{datatypeWithEnum}}} {{name}}) { + public {{classname}} {{name}}({{>nullable_var_annotations}} {{{datatypeWithEnum}}} {{name}}) { {{#vendorExtensions.x-is-jackson-optional-nullable}}this.{{name}} = JsonNullable.<{{{datatypeWithEnum}}}>of({{name}});{{/vendorExtensions.x-is-jackson-optional-nullable}} {{^vendorExtensions.x-is-jackson-optional-nullable}}this.{{name}} = {{name}};{{/vendorExtensions.x-is-jackson-optional-nullable}} return this; @@ -210,17 +211,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{#deprecated}} @Deprecated {{/deprecated}} -{{#required}} -{{#isNullable}} - @{{javaxPackage}}.annotation.Nullable -{{/isNullable}} -{{^isNullable}} - @{{javaxPackage}}.annotation.Nonnull -{{/isNullable}} -{{/required}} -{{^required}} - @{{javaxPackage}}.annotation.Nullable -{{/required}} + {{>nullable_var_annotations}} {{#jsonb}} @JsonbProperty("{{baseName}}") {{/jsonb}} @@ -270,7 +261,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{^isReadOnly}} {{#vendorExtensions.x-setter-extra-annotation}} {{{vendorExtensions.x-setter-extra-annotation}}} -{{/vendorExtensions.x-setter-extra-annotation}}{{#jackson}}{{^vendorExtensions.x-is-jackson-optional-nullable}}{{> jackson_annotations}}{{/vendorExtensions.x-is-jackson-optional-nullable}}{{/jackson}} public void {{setter}}({{{datatypeWithEnum}}} {{name}}) { +{{/vendorExtensions.x-setter-extra-annotation}}{{#jackson}}{{^vendorExtensions.x-is-jackson-optional-nullable}}{{> jackson_annotations}}{{/vendorExtensions.x-is-jackson-optional-nullable}}{{/jackson}} public void {{setter}}({{>nullable_var_annotations}} {{{datatypeWithEnum}}} {{name}}) { {{#vendorExtensions.x-is-jackson-optional-nullable}} this.{{name}} = JsonNullable.<{{{datatypeWithEnum}}}>of({{name}}); {{/vendorExtensions.x-is-jackson-optional-nullable}} @@ -285,7 +276,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{#readWriteVars}} {{#isOverridden}} @Override - public {{classname}} {{name}}({{{datatypeWithEnum}}} {{name}}) { + public {{classname}} {{name}}({{>nullable_var_annotations}} {{{datatypeWithEnum}}} {{name}}) { {{#vendorExtensions.x-is-jackson-optional-nullable}} this.{{setter}}(JsonNullable.<{{{datatypeWithEnum}}}>of({{name}})); {{/vendorExtensions.x-is-jackson-optional-nullable}} diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/JavaClientCodegenTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/JavaClientCodegenTest.java index abab35febc4..42dc774e854 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/JavaClientCodegenTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/JavaClientCodegenTest.java @@ -1954,9 +1954,9 @@ public class JavaClientCodegenTest { new DefaultGenerator().opts(new ClientOptInput().openAPI(openAPI).config(codegen)).generate(); assertThat(output.resolve("src/main/java/org/openapitools/client/model/Cat.java")).content() - .contains(" @Override\n" + " public Cat petType(String petType) {"); + .contains(" @Override\n" + " public Cat petType(@javax.annotation.Nonnull String petType) {"); assertThat(output.resolve("src/main/java/org/openapitools/client/model/Pet.java")).content() - .contains(" }\n" + "\n" + " public Pet petType(String petType) {\n"); + .contains(" }\n" + "\n" + " public Pet petType(@javax.annotation.Nonnull String petType) {\n"); } @Test public void testForJavaNativeClientOverrideSetter() { @@ -1971,9 +1971,9 @@ public class JavaClientCodegenTest { new DefaultGenerator().opts(new ClientOptInput().openAPI(openAPI).config(codegen)).generate(); assertThat(output.resolve("src/main/java/org/openapitools/client/model/Cat.java")).content() - .contains(" @Override\n" + " public Cat petType(String petType) {"); + .contains(" @Override\n" + " public Cat petType(@javax.annotation.Nonnull String petType) {"); assertThat(output.resolve("src/main/java/org/openapitools/client/model/Pet.java")).content() - .contains(" }\n" + "\n" + " public Pet petType(String petType) {\n"); + .contains(" }\n" + "\n" + " public Pet petType(@javax.annotation.Nonnull String petType) {\n"); } @Test public void testDeprecatedProperty() { @@ -1989,9 +1989,9 @@ public class JavaClientCodegenTest { validateJavaSourceFiles(files); TestUtils.assertFileContains( output.resolve("src/main/java/org/openapitools/client/model/BigDog.java"), - "@Deprecated\n public BigDog declawed(Boolean declawed) {", // deprecated builder method + "@Deprecated\n public BigDog declawed(@javax.annotation.Nullable Boolean declawed) {", // deprecated builder method "@Deprecated\n @javax.annotation.Nullable\n\n public Boolean getDeclawed() {", // deprecated getter - "@Deprecated\n" + " public void setDeclawed(Boolean declawed) {" // deprecated setter + "@Deprecated\n" + " public void setDeclawed(@javax.annotation.Nullable Boolean declawed) {" // deprecated setter ); } @@ -2008,13 +2008,13 @@ public class JavaClientCodegenTest { validateJavaSourceFiles(files); TestUtils.assertFileContains( output.resolve("src/main/java/org/openapitools/client/model/BigDog.java"), - "@Deprecated\n public BigDog declawed(Boolean declawed) {", // deprecated builder method + "@Deprecated\n public BigDog declawed(@jakarta.annotation.Nullable Boolean declawed) {", // deprecated builder method "@Deprecated\n @jakarta.annotation.Nullable\n @JsonProperty(JSON_PROPERTY_DECLAWED)\n" + " @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n" + " public Boolean getDeclawed() {", // deprecated getter "@Deprecated\n @JsonProperty(JSON_PROPERTY_DECLAWED)\n" + " @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n" - + " public void setDeclawed(Boolean declawed) {" // deprecated setter + + " public void setDeclawed(@jakarta.annotation.Nullable Boolean declawed) {" // deprecated setter ); } 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 6c1719b4c71..361d461c663 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 @@ import java.util.StringJoiner; @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 class Bird { @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 class Bird { @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 82af2f1f712..ab9af00bda1 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 @@ import java.util.StringJoiner; @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 class Category { @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 class Category { @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 32b3ba5e32a..08a99cf81ee 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 @@ import java.util.StringJoiner; @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 class DataQuery extends Query { @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 class DataQuery extends Query { @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 class DataQuery extends Query { @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 1a4fbefa377..f3878ee3125 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 @@ import java.util.StringJoiner; @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 class DefaultValue { } 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 class DefaultValue { @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 class DefaultValue { @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 class DefaultValue { @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 class DefaultValue { @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 class DefaultValue { @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 class DefaultValue { 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 class DefaultValue { this.arrayStringExtensionNullable = arrayStringExtensionNullable; } - public void setArrayStringExtensionNullable(List 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 class DefaultValue { 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 58d5f5d78e8..5f44753f35b 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 @@ import java.util.StringJoiner; @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 class NumberPropertiesOnly { @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 class NumberPropertiesOnly { @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 class NumberPropertiesOnly { @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 72630c5ea61..32efe4b67ed 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 @@ import java.util.StringJoiner; @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 class Pet { } 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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 ef6ef084bae..7383b1df01a 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 @@ import java.util.StringJoiner; @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 class Query { } 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 class Query { @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 class Query { @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 b8653eee495..bfbc60ff793 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 @@ import java.util.StringJoiner; @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 class Tag { @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 class Tag { @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 f9fec108fd1..b441ab62d79 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 @@ import java.util.StringJoiner; @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 class TestFormObjectMultipartRequestMarker { @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 cf1582cd623..0294f53b1e9 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 @@ import java.util.StringJoiner; @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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter @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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter @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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter @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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter @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 d967e3f36f6..e3f337b3006 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 @@ import java.util.StringJoiner; @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 class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter { @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 835125db933..5dc5e0d3f0c 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 @@ import java.io.IOException; 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 class Bird { } - 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 class Bird { } - 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 aaed170cf6b..c128cee2431 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 @@ import java.io.IOException; 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 class Category { } - 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 class Category { } - 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 235d1e67468..606a98af052 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 @@ import org.openapitools.client.model.Query; 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 class DataQuery extends Query { } - 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 class DataQuery extends Query { } - 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 class DataQuery extends Query { } - 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 6658259201a..09d07d8b75e 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 @@ import org.openapitools.jackson.nullable.JsonNullable; 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 class DefaultValue { 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 class DefaultValue { } - 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 class DefaultValue { } - 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 class DefaultValue { } - 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 class DefaultValue { } - 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 class DefaultValue { } - 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 class DefaultValue { } - 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 class DefaultValue { } - 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 class DefaultValue { } - 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 7bfdbfd78ff..7cfde325390 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 @@ import java.math.BigDecimal; 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 class NumberPropertiesOnly { } - 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 class NumberPropertiesOnly { } - 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 class NumberPropertiesOnly { } - 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 3a4f8e816c6..bf904ee1a7f 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 @@ import org.openapitools.client.model.Tag; 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 class Pet { 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 class Pet { } - 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 class Pet { } - 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 class Pet { } - 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 class Pet { } - 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 class Pet { } - 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 class Pet { } - 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 d5433e88791..23ea531e016 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 @@ import java.util.List; 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 class Query { 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 class Query { } - 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 class Query { } - 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 d3c82653712..3879ea1fbb7 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 @@ import java.io.IOException; 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 class Tag { } - 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 class Tag { } - 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 368e507b61e..6ebad72a27c 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 @@ import java.io.IOException; 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 class TestFormObjectMultipartRequestMarker { } - 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 d9b930c5cc1..93fac35e29f 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 @@ import java.io.IOException; 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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter } - 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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter } - 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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter } - 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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter } - 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 bc6e9e1b849..2947e11be5d 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 @@ import java.util.List; 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 class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter { } - 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 49532034ec6..b84c6db75f2 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 @@ import org.openapitools.client.ApiClient; @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 class Bird { @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 class Bird { @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 45904cf08eb..ffd1ad0aee1 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 @@ import org.openapitools.client.ApiClient; @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 class Category { @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 class Category { @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 7d3c40e9c56..27d78a88f31 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 @@ import org.openapitools.client.ApiClient; @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 class DataQuery extends Query { @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 class DataQuery extends Query { @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 class DataQuery extends Query { @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 34743a420e5..67589ae146c 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 @@ import org.openapitools.client.ApiClient; @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 class DefaultValue { } 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 class DefaultValue { 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 class DefaultValue { @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 class DefaultValue { @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 class DefaultValue { @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 class DefaultValue { @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 class DefaultValue { @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 class DefaultValue { 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 class DefaultValue { this.arrayStringExtensionNullable = arrayStringExtensionNullable; } - public void setArrayStringExtensionNullable(List 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 class DefaultValue { 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 3588da37c5f..7d137c11f08 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 @@ import org.openapitools.client.ApiClient; @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 class NumberPropertiesOnly { @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 class NumberPropertiesOnly { @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 class NumberPropertiesOnly { @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 2d11f96672b..c2103c4e480 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 @@ import org.openapitools.client.ApiClient; @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 class Pet { } 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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 d2d5b5103f9..cb7f8b46aa0 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 @@ import org.openapitools.client.ApiClient; @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 class Query { } 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 class Query { @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 class Query { @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 b08246e4354..40576eb1c3a 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 @@ import org.openapitools.client.ApiClient; @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 class Tag { @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 class Tag { @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 9f26651a706..a94fbeda20b 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 @@ import org.openapitools.client.ApiClient; @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 class TestFormObjectMultipartRequestMarker { @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 602ad9ed77e..17049ccb438 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 @@ import org.openapitools.client.ApiClient; @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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter @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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter @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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter @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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter @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 3ef88b5fb09..749dd75adf9 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 @@ import org.openapitools.client.ApiClient; @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 class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter { @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 30d7474ecea..37002712db4 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 @@ import org.openapitools.client.JSON; 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 class Category { 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 class Category { 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 ccc76998798..4985d7bd908 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 @@ import org.openapitools.client.JSON; 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 class ModelApiResponse { 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 class ModelApiResponse { 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 class ModelApiResponse { 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 79e05bde3c1..2351919eec6 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 @@ import org.openapitools.client.JSON; 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 class Order { 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 class Order { 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 class Order { 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 class Order { 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 class Order { 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 class Order { 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 class Order { 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 bb533c4091e..04a48fb35b6 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 @@ import org.openapitools.client.JSON; 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 class Pet { 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 class Pet { 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 class Pet { 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 class Pet { 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 class Pet { 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 class Pet { 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 class Pet { } @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 b22cee4be7d..6de6cf8769f 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 @@ import org.openapitools.client.JSON; 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 class Tag { 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 class Tag { 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 b8840d60baa..c6a0b23dcbd 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 @@ import org.openapitools.client.JSON; 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 class User { 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 class User { 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 class User { 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 class User { 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 class User { 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 class User { 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 class User { 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 class User { 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 59e5a258341..39abbcc3211 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 @@ import org.openapitools.client.JSON; 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 class Bird { 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 class Bird { 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 482f43d1745..049946e4040 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 @@ import org.openapitools.client.JSON; 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 class Category { 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 class Category { 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 d65048e1a97..1f14e151e70 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 @@ import org.openapitools.client.JSON; 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 class DataQuery extends Query { 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 class DataQuery extends Query { 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 class DataQuery extends Query { 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 317d4aced39..01585e62fce 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 @@ import org.openapitools.client.JSON; 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 class DefaultValue { 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 class DefaultValue { 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 class DefaultValue { 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 class DefaultValue { 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 class DefaultValue { 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 class DefaultValue { 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 class DefaultValue { 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 class DefaultValue { 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 class DefaultValue { 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 4321cd43805..8dddb47bbbb 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 @@ import org.openapitools.client.JSON; 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 class NumberPropertiesOnly { 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 class NumberPropertiesOnly { 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 class NumberPropertiesOnly { 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 8cda1bfebdc..ff29135a2e8 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 @@ import org.openapitools.client.JSON; 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 class Pet { 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 class Pet { 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 class Pet { 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 class Pet { 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 class Pet { 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 class Pet { 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 class Pet { 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 bb043ba30d9..104b498c71d 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 @@ import org.openapitools.client.JSON; 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 class Query { 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 class Query { 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 class Query { 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 10bc5a9bcf6..a9a5ea327d0 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 @@ import org.openapitools.client.JSON; 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 class Tag { 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 class Tag { 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 e714c78686f..e534d99f4a7 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 @@ import org.openapitools.client.JSON; 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 class TestFormObjectMultipartRequestMarker { 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 ff70013785d..d0c5e0944cf 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 @@ import org.openapitools.client.JSON; 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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter 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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter 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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter 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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter 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 49cafde0a1f..2cc07946499 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 @@ import org.openapitools.client.JSON; 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 class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter { 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 4778a735ba7..34e899ff406 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Bird { @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 class Bird { @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 52a6c4b0fc2..e473fd07b52 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Category { @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 class Category { @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 2ac6e7f30ff..2c143745ac8 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class DataQuery extends Query { @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 class DataQuery extends Query { @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 class DataQuery extends Query { @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 2e46e02ce5f..76cb555663a 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class DefaultValue { } 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 class DefaultValue { @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 class DefaultValue { @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 class DefaultValue { @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 class DefaultValue { @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 class DefaultValue { @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 class DefaultValue { 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 class DefaultValue { this.arrayStringExtensionNullable = arrayStringExtensionNullable; } - public void setArrayStringExtensionNullable(List 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 class DefaultValue { 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 01a89cfabd5..0ad8e1425d0 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class NumberPropertiesOnly { @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 class NumberPropertiesOnly { @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 class NumberPropertiesOnly { @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 c4c73d689eb..b87d1ffb0c7 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Pet { } 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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 3f25a7bb1e9..23a78205220 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Query { } 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 class Query { @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 class Query { @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 7ff5a893997..47692c00401 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Tag { @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 class Tag { @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 6b5b526d472..0da88ff9630 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class TestFormObjectMultipartRequestMarker { @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 ec391fe04d8..9266038c303 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter @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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter @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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter @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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter @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 47543241706..b2352039369 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter { @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 ed17d7cfb01..94ea5b6e3a7 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Bird { @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 class Bird { @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 cd14184def2..3352a6a4e9b 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Category { @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 class Category { @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 1b1aa458578..d896a4d99fe 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class DataQuery extends Query { @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 class DataQuery extends Query { @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 class DataQuery extends Query { @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 e60637ea2ff..83bafeeec9a 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class DefaultValue { } 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 class DefaultValue { @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 class DefaultValue { @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 class DefaultValue { @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 class DefaultValue { @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 class DefaultValue { @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 class DefaultValue { 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 class DefaultValue { this.arrayStringExtensionNullable = arrayStringExtensionNullable; } - public void setArrayStringExtensionNullable(List 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 class DefaultValue { 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 2b1924f3022..af5570f15dd 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class NumberPropertiesOnly { @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 class NumberPropertiesOnly { @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 class NumberPropertiesOnly { @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 eb6b6c32952..6b7743d204b 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Pet { } 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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 568fabc676e..3f63c815b9c 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Query { } 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 class Query { @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 class Query { @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 e9bf11d3203..62b91678983 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Tag { @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 class Tag { @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 8fad05857b5..4193be14bab 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class TestFormObjectMultipartRequestMarker { @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 6f3199d6be4..a104c7b8270 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter @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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter @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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter @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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter @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 becc666a71a..3d68a3e00c5 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter { @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 ed17d7cfb01..94ea5b6e3a7 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Bird { @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 class Bird { @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 cd14184def2..3352a6a4e9b 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Category { @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 class Category { @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 1b1aa458578..d896a4d99fe 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class DataQuery extends Query { @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 class DataQuery extends Query { @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 class DataQuery extends Query { @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 eda0b41990f..090e0fd983b 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class DefaultValue { } 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 class DefaultValue { @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 class DefaultValue { @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 class DefaultValue { @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 class DefaultValue { @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 class DefaultValue { @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 class DefaultValue { 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 class DefaultValue { this.arrayStringExtensionNullable = arrayStringExtensionNullable; } - public void setArrayStringExtensionNullable(List 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 class DefaultValue { 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 2b1924f3022..af5570f15dd 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class NumberPropertiesOnly { @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 class NumberPropertiesOnly { @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 class NumberPropertiesOnly { @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 97118a2d27e..fbb00f394dd 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Pet { } 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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 568fabc676e..3f63c815b9c 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Query { } 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 class Query { @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 class Query { @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 e9bf11d3203..62b91678983 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Tag { @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 class Tag { @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 8fad05857b5..4193be14bab 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class TestFormObjectMultipartRequestMarker { @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 6f3199d6be4..a104c7b8270 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter @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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter @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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter @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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter @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 bea5c3c1178..e10a1169c1e 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter { @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 8d3c3502d66..281db31de5e 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 @@ import org.openapitools.client.JSON; 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 class OneOf1 { 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 7ce1663b384..b15c6f7d4c7 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 class SomeObj implements Serializable { 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 class SomeObj implements Serializable { 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 class SomeObj implements Serializable { 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 class SomeObj implements Serializable { 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 class SomeObj implements Serializable { 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 class SomeObj implements Serializable { 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 55c4c84b269..74ce058ec1b 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 @@ import java.util.StringJoiner; @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 d5c81036879..a899009a456 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 @@ import java.util.StringJoiner; @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 class AllOfWithSingleRef { @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 class AllOfWithSingleRef { @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 f70a1e8d5ed..d4f171e4c49 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 @@ import java.util.StringJoiner; 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 class Animal { @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 class Animal { @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 fb21057b8d2..ba4a15fe32d 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 @@ import java.util.StringJoiner; @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 class ArrayOfArrayOfNumberOnly { @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 4b6cb052e1d..3c84db27074 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 @@ import java.util.StringJoiner; @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 class ArrayOfNumberOnly { @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 2f96d1aa7f9..810d92ca044 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 @@ import java.util.StringJoiner; @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 class ArrayTest { @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 class ArrayTest { @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 class ArrayTest { @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 3b278a12247..11a777e6da6 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 @@ import java.util.StringJoiner; @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 2483772e53b..bac4545e7e5 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 @@ import java.util.StringJoiner; 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 class Cat extends Animal { @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 40fbd81ea39..3926afdb8dd 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 @@ import java.util.StringJoiner; @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 class Category { @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 class Category { @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 df46e441042..7d328753303 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 @@ import java.util.StringJoiner; 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 class ChildWithNullable extends ParentWithNullable { @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 d70052078b3..43c9f09ec3c 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 @@ import java.util.StringJoiner; @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 class ClassModel { @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 e1b1a3a89d4..30df82cb695 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 @@ import java.util.StringJoiner; @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 class Client { @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 929c8cfacd7..3d2c0425121 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 @@ import java.util.StringJoiner; @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 class DeprecatedObject { @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 c11901d3e7e..ced4f9b31bb 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 @@ import java.util.StringJoiner; 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 class Dog extends Animal { @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 57e314fbb75..c8e1935acb5 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 class EnumArrays { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** @@ -112,12 +113,13 @@ public class EnumArrays { } 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 class EnumArrays { @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 class EnumArrays { @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 2471ef228a4..b92aab7dc72 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 class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; + @javax.annotation.Nullable private EnumStringEnum enumString; /** @@ -128,6 +129,7 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** @@ -166,6 +168,7 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** @@ -204,24 +207,29 @@ public class EnumTest { } 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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 class EnumTest { 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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 c371b1321be..edeca56d375 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 @@ import java.util.StringJoiner; @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 class FakeBigDecimalMap200Response { @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 class FakeBigDecimalMap200Response { @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 5ef75d54ed7..ccb937946ba 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 @@ import java.util.StringJoiner; @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 class FileSchemaTestClass { @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 class FileSchemaTestClass { @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 03dddd7110a..4d710f38ae3 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 @@ import java.util.StringJoiner; @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 class Foo { @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 abeee592069..724eaf26ce8 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 @@ import java.util.StringJoiner; @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 class FooGetDefaultResponse { @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 f955a596231..38f8559a552 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 @@ import java.util.StringJoiner; @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 47820046645..26165159648 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 @@ import java.util.StringJoiner; @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 453bdec86ae..1acf73166a6 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 @@ import java.util.StringJoiner; @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 class HealthCheckResult { 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 19002b8733a..3d0ecbc8901 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 @@ import java.util.StringJoiner; @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 class MapTest { } 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 class MapTest { @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 class MapTest { @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 class MapTest { @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 class MapTest { @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 fbdb4f24206..dee272de492 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 @@ import java.util.StringJoiner; @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 01b23ac5d23..2d25dfc0040 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 @@ import java.util.StringJoiner; @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 class Model200Response { @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 class Model200Response { @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 3bcb8db27cb..3cf3db40cb1 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 @@ import java.util.StringJoiner; @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 class ModelApiResponse { @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 class ModelApiResponse { @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 class ModelApiResponse { @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 6c611807907..e046111fd71 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 @@ import java.util.StringJoiner; @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 class ModelFile { @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 5239c7e6c93..2fa917edbf7 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 @@ import java.util.StringJoiner; @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 class ModelList { @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 580ed99bfca..cc689e61ece 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 @@ import java.util.StringJoiner; @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 class ModelReturn { @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 9d8ba5b3031..b7971e24e17 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 @@ import java.util.StringJoiner; @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 class 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 class Name { @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 class Name { - public Name property(String property) { + public Name property(@javax.annotation.Nullable String property) { this.property = property; return this; @@ -124,7 +128,7 @@ public class Name { @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 5cb750683c0..81d2b80817b 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 @@ import java.util.StringJoiner; @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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { @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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { this.objectAndItemsNullableProp = objectAndItemsNullableProp; } - public void setObjectAndItemsNullableProp(Map 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 class NullableClass extends HashMap { @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 76e0f575dfd..5337344f95a 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 @@ import java.util.StringJoiner; @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 class NumberOnly { @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 392d9962a38..4628b9595c7 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 @@ import java.util.StringJoiner; @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 5d749fbf869..c6610229f91 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 @@ import java.util.StringJoiner; @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 class Order { } 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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 1feaca67fd2..3f155f2fdb8 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 @@ import java.util.StringJoiner; @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 class OuterComposite { @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 class OuterComposite { @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 class OuterComposite { @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 1a7486efebe..74b4c1a57b1 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 @@ import java.util.StringJoiner; @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 class OuterObjectWithEnumProperty { @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 ff310607ae5..01ae30df66b 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 class ParentWithNullable { } 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 class ParentWithNullable { @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 class ParentWithNullable { 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 609de6f2685..4c32f847c31 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 @@ import java.util.StringJoiner; @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 class Pet { } 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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 7891d1d6c1b..20d269bbbad 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 @@ import java.util.StringJoiner; @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 class ReadOnlyFirst { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { this.baz = baz; return this; @@ -89,7 +91,7 @@ public class ReadOnlyFirst { @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 be65cea7b05..025337edd95 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 @@ import java.util.StringJoiner; @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 class 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 70d44fea372..6f7d33b89fc 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 @@ import java.util.StringJoiner; @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 class Tag { @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 class Tag { @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 53df8de07c6..7a679c10f09 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 @@ import java.util.StringJoiner; @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 class TestInlineFreeformAdditionalPropertiesRequest 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 class AdditionalPropertiesAnyType extends HashMap { @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 5dc0a2812a6..ea7b682f274 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class AdditionalPropertiesArray extends HashMap { @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 3b0c4c6d5f1..957e51a26c2 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class AdditionalPropertiesBoolean extends HashMap { @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 cdc30cc911c..e5f2a700681 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 942dde71189..1d3aa6aa79d 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class AdditionalPropertiesInteger extends HashMap { @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 ab8398d484d..08090c876ba 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class AdditionalPropertiesNumber extends HashMap { @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 4bdad91ad6e..889e43891ea 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class AdditionalPropertiesObject extends HashMap { @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 8322e487fb2..8b779bcb0f2 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class AdditionalPropertiesString extends HashMap { @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 b370c4481b1..f62cf986f2c 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; 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 class Animal { @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 class Animal { @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 7d68e4ebbd6..3268072dde7 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ArrayOfArrayOfNumberOnly { @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 429dd8c23f0..9a2cc4f2cd5 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ArrayOfNumberOnly { @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 e7d78cd2687..b513a4b9ebb 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ArrayTest { @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 class ArrayTest { @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 class ArrayTest { @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 6b5068aad55..bcf069d332c 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 class BigCat extends Cat { } 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 class BigCat extends Cat { @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 5c9cf5692b5..676c763a532 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 d91445b9709..99c1c1f1985 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; 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 class Cat extends Animal { @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 36136775dbd..01b110dc4a2 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Category { @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 class Category { @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 2746d1b69e2..731e8329afb 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ClassModel { @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 3375ebb3693..18ecea78369 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Client { @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 dc0f5e707a7..2abd2a24270 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; 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 class Dog extends Animal { @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 405353054d0..4a6b68fce64 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 class EnumArrays { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** @@ -110,12 +111,13 @@ public class EnumArrays { } 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 class EnumArrays { @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 class EnumArrays { @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 76e09c2b7eb..d4557345000 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 class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; + @javax.annotation.Nullable private EnumStringEnum enumString; /** @@ -116,6 +117,7 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** @@ -154,6 +156,7 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** @@ -192,15 +195,17 @@ public class EnumTest { } 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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 4daf599ec25..e96a02bcd02 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class File { @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 d1da088ff11..250122ef180 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class FileSchemaTestClass { @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 class FileSchemaTestClass { @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 260e56ab7ff..93940d641d0 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 78802bee201..9dc90d1f3ce 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 32992cce102..81c20684340 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class MapTest { } 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 class MapTest { @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 class MapTest { @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 class MapTest { @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 class MapTest { @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 add26f9bdd2..85e8725ad6f 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 fe1358f9c18..05d89779ec1 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Model200Response { @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 class Model200Response { @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 c5e95ce0277..831e6c8580a 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ModelApiResponse { @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 class ModelApiResponse { @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 class ModelApiResponse { @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 818d21cc4ca..712b3cf6b47 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ModelList { @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 79582af88e6..c2c62f72330 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ModelReturn { @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 2ed60039ab6..bbe70280cae 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class 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 class Name { @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 class Name { - public Name property(String property) { + public Name property(@javax.annotation.Nullable String property) { this.property = property; return this; @@ -122,7 +126,7 @@ public class Name { @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 f6609421102..1d49eb406fe 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class NumberOnly { @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 d456f0d5fef..dc6d52dc209 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Order { } 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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 4bc88cf7d32..e919c4e6d9e 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class OuterComposite { @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 class OuterComposite { @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 class OuterComposite { @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 18a005c5170..3fd31774a9d 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Pet { } 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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 69af308abff..e59d2651536 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ReadOnlyFirst { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { this.baz = baz; return this; @@ -86,7 +88,7 @@ public class ReadOnlyFirst { @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 4b2db095fd6..30f18df8bd5 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class 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 e355f32362a..bdb029f7319 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Tag { @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 class Tag { @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 d1918fe5844..f6c5a693e8a 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class TypeHolderDefault { @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 class TypeHolderDefault { @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 class TypeHolderDefault { @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 class TypeHolderDefault { @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 class TypeHolderDefault { @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 87f4f4e0b52..90c368d7a77 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class TypeHolderExample { @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 class TypeHolderExample { @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 class TypeHolderExample { @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 class TypeHolderExample { @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 class TypeHolderExample { @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 class TypeHolderExample { @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 a5c2b677831..453196da014 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 62c1a58da11..bc3a8faa2f0 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 3f1e5e1b288..0c553d4d546 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 dee66f0635c..089ee958bba 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class AllOfWithSingleRef { @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 class AllOfWithSingleRef { @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 15e8b763487..d86137300ef 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; 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 class Animal { @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 class Animal { @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 f32c9602595..a345bf13cb8 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ArrayOfArrayOfNumberOnly { @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 884b8af5408..c8599dbbed7 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ArrayOfNumberOnly { @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 bbeec76bf5b..c7c200f5d82 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ArrayTest { @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 class ArrayTest { @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 class ArrayTest { @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 572a4169ed6..0b9ba1ef618 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 99d8d9442b7..b8f93e16668 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; 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 class Cat extends Animal { @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 cb31fca15d7..4a3bdb2eb4c 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Category { @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 class Category { @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 797e1de9da8..286d111288d 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; 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 class ChildWithNullable extends ParentWithNullable { @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 67baa5dee12..60397c3b745 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ClassModel { @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 30e84c235de..d7256ad2768 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Client { @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 b124f987a9d..7778116e7f0 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class DeprecatedObject { @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 86134e0b004..c9c2c2e7c3a 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; 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 class Dog extends Animal { @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 8951c35e88e..8f468e1c5a1 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 class EnumArrays { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** @@ -109,12 +110,13 @@ public class EnumArrays { } 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 class EnumArrays { @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 class EnumArrays { @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 852e570a601..711954504a1 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 class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; + @javax.annotation.Nullable private EnumStringEnum enumString; /** @@ -125,6 +126,7 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** @@ -163,6 +165,7 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** @@ -201,24 +204,28 @@ public class EnumTest { } 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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 class EnumTest { 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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 2b1634c7a01..3daf00a0bf2 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class FakeBigDecimalMap200Response { @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 class FakeBigDecimalMap200Response { @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 dc042f48f6c..7ce22df97f0 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class File { @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 4d06dc5eca0..35722d4b49a 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class FileSchemaTestClass { @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 class FileSchemaTestClass { @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 8b4af8a809e..3b6433673ce 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Foo { @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 977c57cd353..a4319ee148f 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class FooGetDefaultResponse { @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 2a96e0a2cfd..5c3caaddee2 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 cb49858a835..93ec4a4d3e4 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 1603c1eb935..372ba15fd5f 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 class HealthCheckResult { 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 643457c3839..4a6edec42b1 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class MapTest { } 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 class MapTest { @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 class MapTest { @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 class MapTest { @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 class MapTest { @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 d356f30b652..c477490fecf 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 a6a0c0e9938..bc3f047eb67 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Model200Response { @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 class Model200Response { @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 db86646560e..1f223a20803 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ModelApiResponse { @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 class ModelApiResponse { @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 class ModelApiResponse { @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 a681a117afb..ad8cb01001f 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ModelList { @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 53901e23863..38bb09bc7e2 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ModelReturn { @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 5b7091216cf..4210b723152 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class 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 class Name { @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 class Name { - public Name property(String property) { + public Name property(@javax.annotation.Nullable String property) { this.property = property; return this; @@ -121,7 +125,7 @@ public class Name { @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 455fa588c6a..dd98a8eb614 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { @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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { this.objectAndItemsNullableProp = objectAndItemsNullableProp; } - public void setObjectAndItemsNullableProp(Map 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 class NullableClass extends HashMap { @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 b06ceb852ca..42037dafe83 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class NumberOnly { @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 9bf7ef1651a..b1859152ded 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 fa4449e94ba..c92dba62882 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Order { } 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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 6a2a9bf2768..f29ddc8cf85 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class OuterComposite { @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 class OuterComposite { @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 class OuterComposite { @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 5c0eeeeb38c..6d0241a56b5 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class OuterObjectWithEnumProperty { @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 8402222f5a5..5d28d9b93ac 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 class ParentWithNullable { } 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 class ParentWithNullable { 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 class ParentWithNullable { @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 class ParentWithNullable { 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 76ab55b3da5..915191b2c83 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Pet { } 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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 1207b328b6c..fb5c683390f 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ReadOnlyFirst { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { this.baz = baz; return this; @@ -85,7 +87,7 @@ public class ReadOnlyFirst { @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 1b1f91c5706..f3de79349a7 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class 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 2c3cbf2547d..73425f59e75 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Tag { @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 class Tag { @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 80022173e5e..4b02c3f9999 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class TestInlineFreeformAdditionalPropertiesRequest 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 class AdditionalPropertiesAnyType extends HashMap { @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 2ad9f27b764..0ca63318ea1 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class AdditionalPropertiesArray extends HashMap { @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 925f851c09e..19809899899 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class AdditionalPropertiesBoolean extends HashMap { @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 5a7214ea2e2..fe25bc34ed8 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 7ab64c281e5..95004c43bea 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class AdditionalPropertiesInteger extends HashMap { @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 1b4da048acd..6a2e2be227e 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class AdditionalPropertiesNumber extends HashMap { @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 dea7e86d215..5fbc22151d4 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class AdditionalPropertiesObject extends HashMap { @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 51e0c6cf342..eb29c72010b 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class AdditionalPropertiesString extends HashMap { @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 046dcd9ac82..5e764d85a6c 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; 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 class Animal { @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 class Animal { @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 6a77e798068..6f58e325549 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ArrayOfArrayOfNumberOnly { @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 3af92dd1784..f3d46916faa 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ArrayOfNumberOnly { @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 f3dd9149c33..771578abd0a 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ArrayTest { @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 class ArrayTest { @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 class ArrayTest { @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 41fb5315e7e..073996fa7a0 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 class BigCat extends Cat { } 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 class BigCat extends Cat { @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 334b4c17ccd..6cd94422b1c 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 a27f4a02bc4..ca385024c9d 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; 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 class Cat extends Animal { @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 f2428c4be41..50b6ff1d6a2 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Category { @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 class Category { @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 9887d204018..dbf6964fdad 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ClassModel { @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 645560a2ff3..0be09220e7d 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Client { @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 8599f3b034d..8004beff975 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; 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 class Dog extends Animal { @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 cad068cf3b6..42c505b1189 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 class EnumArrays { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** @@ -109,12 +110,13 @@ public class EnumArrays { } 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 class EnumArrays { @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 class EnumArrays { @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 6c2217c0daf..a5667a13859 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 class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; + @javax.annotation.Nullable private EnumStringEnum enumString; /** @@ -115,6 +116,7 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** @@ -153,6 +155,7 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** @@ -191,15 +194,17 @@ public class EnumTest { } 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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 dd82dfbf055..6c10cc7d053 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class FileSchemaTestClass { @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 class FileSchemaTestClass { @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 8d4d4502e35..0e6b8b1ea93 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 fc6f4de0083..6dc15593463 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 166a1d2e8fd..03fcf621421 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class MapTest { } 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 class MapTest { @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 class MapTest { @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 class MapTest { @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 class MapTest { @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 fd5fce68617..27b5ebbd852 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 1b121986dae..0b83c601140 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Model200Response { @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 class Model200Response { @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 32981db50c5..0938a865de4 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ModelApiResponse { @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 class ModelApiResponse { @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 class ModelApiResponse { @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 e14c2b78f74..73f5779de22 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ModelFile { @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 13e89d73aa3..f8d50bc1762 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ModelList { @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 47b82483f27..314794ba50b 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ModelReturn { @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 e75ec4b62c4..4789044c853 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class 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 class Name { @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 class Name { - public Name property(String property) { + public Name property(@javax.annotation.Nullable String property) { this.property = property; return this; @@ -121,7 +125,7 @@ public class Name { @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 37dd5cf7be0..341017c96d2 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class NumberOnly { @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 59ef01bcb36..0136b2dcc83 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Order { } 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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 200337e0603..c9b0b884ef2 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class OuterComposite { @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 class OuterComposite { @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 class OuterComposite { @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 2ddb87f6a01..8cfe9533fe1 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Pet { } 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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 ce488cfee9f..e0e1e8bb4bb 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ReadOnlyFirst { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { this.baz = baz; return this; @@ -86,7 +88,7 @@ public class ReadOnlyFirst { @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 380e638f55c..74687fe9f3b 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class 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 93bc8a4ebe1..ebcb558efe5 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Tag { @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 class Tag { @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 c34713ecd10..af3db948412 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class TypeHolderDefault { @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 class TypeHolderDefault { @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 class TypeHolderDefault { @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 class TypeHolderDefault { @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 class TypeHolderDefault { @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 c0cf55a10e8..ba7a6d198a2 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class TypeHolderExample { @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 class TypeHolderExample { @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 class TypeHolderExample { @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 class TypeHolderExample { @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 class TypeHolderExample { @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 class TypeHolderExample { @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 9418f0d8365..9d11826fc6b 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 7f6c2f3eb5f..0ff945d70a1 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 c540341c888..a41d26d1146 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 @@ import org.openapitools.client.JSON; @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 class AdditionalPropertiesAnyType { @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 59eaabba5fc..78b73ae76ab 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 @@ import org.openapitools.client.JSON; @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 class AdditionalPropertiesArray { @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 6336c67ad0b..2527c24dc02 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 @@ import org.openapitools.client.JSON; @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 class AdditionalPropertiesBoolean { @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 18cf228e9da..b485defda6e 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 @@ import org.openapitools.client.JSON; @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 d1271f74baf..56987101352 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 @@ import org.openapitools.client.JSON; @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 class AdditionalPropertiesInteger { @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 ae7a1a7ce05..d61bb3d272f 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 @@ import org.openapitools.client.JSON; @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 class AdditionalPropertiesNumber { @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 5f62c0a129f..9cd6382eba7 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 @@ import org.openapitools.client.JSON; @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 class AdditionalPropertiesObject { @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 99f7916524e..6c0b11d6e02 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 @@ import org.openapitools.client.JSON; @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 class AdditionalPropertiesString { @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 f4866892e33..6b6e59d3491 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 @@ import org.openapitools.client.JSON; 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 class Animal { @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 class Animal { @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 de27b6abc9b..5510fb44e7c 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 @@ import org.openapitools.client.JSON; @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 class ArrayOfArrayOfNumberOnly { @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 b56bc870746..2d594551dab 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 @@ import org.openapitools.client.JSON; @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 class ArrayOfNumberOnly { @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 667cc9572ff..3ae301ac9bf 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 @@ import org.openapitools.client.JSON; @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 class ArrayTest { @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 class ArrayTest { @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 class ArrayTest { @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 87ad1570815..5fbb3e27a84 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 class BigCat extends Cat { } 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 class BigCat extends Cat { @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 1cab1da183f..856400a49ec 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 @@ import org.openapitools.client.JSON; @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 b48c3ccf0f5..bbcd180b19e 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 @@ import org.openapitools.client.JSON; 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 class Cat extends Animal { @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 462ef3a308a..12f9b4571b2 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 @@ import org.openapitools.client.JSON; @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 class Category { @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 class Category { @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 ea9d7753c3c..8b5ec06c54d 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 @@ import org.openapitools.client.JSON; @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 class ClassModel { @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 1efa318ae96..f52ad3cd1b1 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 @@ import org.openapitools.client.JSON; @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 class Client { @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 79e3286f83b..eaa6f5fcf07 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 @@ import org.openapitools.client.JSON; 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 class Dog extends Animal { @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 e59c6521454..6238af12763 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 class EnumArrays { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** @@ -111,12 +112,13 @@ public class EnumArrays { } 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 class EnumArrays { @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 class EnumArrays { @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 7ce242e7d13..e67f09cebf9 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 class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; + @javax.annotation.Nullable private EnumStringEnum enumString; /** @@ -118,6 +119,7 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** @@ -156,6 +158,7 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** @@ -194,15 +197,17 @@ public class EnumTest { } 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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 b5c7fd1bf45..170ad2b8b49 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 @@ import org.openapitools.client.JSON; @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 class FileSchemaTestClass { @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 class FileSchemaTestClass { @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 cc68d0ceea6..9719e61e53d 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 @@ import org.openapitools.client.JSON; @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 9f3ed7fb17d..10721debfd1 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 @@ import org.openapitools.client.JSON; @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 dd6910a09b0..dffb29de558 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 @@ import org.openapitools.client.JSON; @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 class MapTest { } 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 class MapTest { @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 class MapTest { @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 class MapTest { @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 class MapTest { @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 5843b7c2e0b..4397d19483f 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 @@ import org.openapitools.client.JSON; @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 62635253abb..35c20d8ca6a 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 @@ import org.openapitools.client.JSON; @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 class Model200Response { @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 class Model200Response { @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 bf2d01a3d91..15a4a419b28 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 @@ import org.openapitools.client.JSON; @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 class ModelApiResponse { @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 class ModelApiResponse { @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 class ModelApiResponse { @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 bfe8c0a714e..b9a89f3a17e 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 @@ import org.openapitools.client.JSON; @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 class ModelFile { @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 6da481f8156..1b91713f445 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 @@ import org.openapitools.client.JSON; @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 class ModelList { @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 d8624a066da..96d2ac44fe7 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 @@ import org.openapitools.client.JSON; @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 class ModelReturn { @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 be88755b620..56f543a8e55 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 @@ import org.openapitools.client.JSON; @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 class 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 class Name { @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 class Name { - public Name property(String property) { + public Name property(@javax.annotation.Nullable String property) { this.property = property; return this; } @@ -122,7 +126,7 @@ public class Name { @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 6b4c25bfb39..4a496bd97f4 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 @@ import org.openapitools.client.JSON; @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 class NumberOnly { @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 4e98b5a404c..bb4bcea84ae 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 @@ import org.openapitools.client.JSON; @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 class Order { } 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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 52a0054efa9..26773fbe640 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 @@ import org.openapitools.client.JSON; @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 class OuterComposite { @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 class OuterComposite { @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 class OuterComposite { @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 418f74f2d4f..ea0266cd031 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 @@ import org.openapitools.client.JSON; @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 class Pet { } 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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 1e1a29181b2..1900fe83eed 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 @@ import org.openapitools.client.JSON; @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 class ReadOnlyFirst { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { this.baz = baz; return this; } @@ -87,7 +89,7 @@ public class ReadOnlyFirst { @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 2c60935d21b..e3d5ef03d1a 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 @@ import org.openapitools.client.JSON; @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 class 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 8f375ade304..ebad74cb005 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 @@ import org.openapitools.client.JSON; @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 class Tag { @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 class Tag { @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 7686ad65fee..1fecc311808 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 @@ import org.openapitools.client.JSON; @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 class TypeHolderDefault { @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 class TypeHolderDefault { @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 class TypeHolderDefault { @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 class TypeHolderDefault { @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 class TypeHolderDefault { @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 bdddb902218..3f6d27cbf4a 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 @@ import org.openapitools.client.JSON; @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 class TypeHolderExample { @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 class TypeHolderExample { @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 class TypeHolderExample { @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 class TypeHolderExample { @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 class TypeHolderExample { @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 class TypeHolderExample { @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 8db18fe24c9..efde0d59cfe 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 @@ import org.openapitools.client.JSON; @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 3e2f644b723..d5ee1d235c4 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 @@ import org.openapitools.client.JSON; @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 c540341c888..a41d26d1146 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 @@ import org.openapitools.client.JSON; @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 class AdditionalPropertiesAnyType { @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 59eaabba5fc..78b73ae76ab 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 @@ import org.openapitools.client.JSON; @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 class AdditionalPropertiesArray { @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 6336c67ad0b..2527c24dc02 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 @@ import org.openapitools.client.JSON; @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 class AdditionalPropertiesBoolean { @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 18cf228e9da..b485defda6e 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 @@ import org.openapitools.client.JSON; @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 d1271f74baf..56987101352 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 @@ import org.openapitools.client.JSON; @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 class AdditionalPropertiesInteger { @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 ae7a1a7ce05..d61bb3d272f 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 @@ import org.openapitools.client.JSON; @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 class AdditionalPropertiesNumber { @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 5f62c0a129f..9cd6382eba7 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 @@ import org.openapitools.client.JSON; @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 class AdditionalPropertiesObject { @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 99f7916524e..6c0b11d6e02 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 @@ import org.openapitools.client.JSON; @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 class AdditionalPropertiesString { @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 f4866892e33..6b6e59d3491 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 @@ import org.openapitools.client.JSON; 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 class Animal { @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 class Animal { @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 de27b6abc9b..5510fb44e7c 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 @@ import org.openapitools.client.JSON; @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 class ArrayOfArrayOfNumberOnly { @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 b56bc870746..2d594551dab 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 @@ import org.openapitools.client.JSON; @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 class ArrayOfNumberOnly { @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 667cc9572ff..3ae301ac9bf 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 @@ import org.openapitools.client.JSON; @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 class ArrayTest { @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 class ArrayTest { @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 class ArrayTest { @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 87ad1570815..5fbb3e27a84 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 class BigCat extends Cat { } 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 class BigCat extends Cat { @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 1cab1da183f..856400a49ec 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 @@ import org.openapitools.client.JSON; @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 b48c3ccf0f5..bbcd180b19e 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 @@ import org.openapitools.client.JSON; 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 class Cat extends Animal { @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 462ef3a308a..12f9b4571b2 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 @@ import org.openapitools.client.JSON; @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 class Category { @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 class Category { @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 ea9d7753c3c..8b5ec06c54d 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 @@ import org.openapitools.client.JSON; @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 class ClassModel { @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 1efa318ae96..f52ad3cd1b1 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 @@ import org.openapitools.client.JSON; @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 class Client { @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 79e3286f83b..eaa6f5fcf07 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 @@ import org.openapitools.client.JSON; 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 class Dog extends Animal { @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 e59c6521454..6238af12763 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 class EnumArrays { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** @@ -111,12 +112,13 @@ public class EnumArrays { } 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 class EnumArrays { @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 class EnumArrays { @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 7ce242e7d13..e67f09cebf9 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 class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; + @javax.annotation.Nullable private EnumStringEnum enumString; /** @@ -118,6 +119,7 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** @@ -156,6 +158,7 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** @@ -194,15 +197,17 @@ public class EnumTest { } 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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 b5c7fd1bf45..170ad2b8b49 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 @@ import org.openapitools.client.JSON; @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 class FileSchemaTestClass { @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 class FileSchemaTestClass { @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 6922efbced5..511fdaa161b 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 @@ import org.openapitools.client.JSON; @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 9f3ed7fb17d..10721debfd1 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 @@ import org.openapitools.client.JSON; @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 dd6910a09b0..dffb29de558 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 @@ import org.openapitools.client.JSON; @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 class MapTest { } 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 class MapTest { @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 class MapTest { @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 class MapTest { @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 class MapTest { @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 9488718bc62..0cdae9a6d43 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 @@ import org.openapitools.client.JSON; @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 62635253abb..35c20d8ca6a 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 @@ import org.openapitools.client.JSON; @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 class Model200Response { @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 class Model200Response { @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 bf2d01a3d91..15a4a419b28 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 @@ import org.openapitools.client.JSON; @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 class ModelApiResponse { @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 class ModelApiResponse { @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 class ModelApiResponse { @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 bfe8c0a714e..b9a89f3a17e 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 @@ import org.openapitools.client.JSON; @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 class ModelFile { @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 6da481f8156..1b91713f445 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 @@ import org.openapitools.client.JSON; @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 class ModelList { @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 d8624a066da..96d2ac44fe7 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 @@ import org.openapitools.client.JSON; @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 class ModelReturn { @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 be88755b620..56f543a8e55 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 @@ import org.openapitools.client.JSON; @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 class 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 class Name { @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 class Name { - public Name property(String property) { + public Name property(@javax.annotation.Nullable String property) { this.property = property; return this; } @@ -122,7 +126,7 @@ public class Name { @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 6b4c25bfb39..4a496bd97f4 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 @@ import org.openapitools.client.JSON; @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 class NumberOnly { @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 8a8e6e65129..6193d72decd 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 @@ import org.openapitools.client.JSON; @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 class Order { } 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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 52a0054efa9..26773fbe640 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 @@ import org.openapitools.client.JSON; @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 class OuterComposite { @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 class OuterComposite { @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 class OuterComposite { @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 418f74f2d4f..ea0266cd031 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 @@ import org.openapitools.client.JSON; @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 class Pet { } 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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 1e1a29181b2..1900fe83eed 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 @@ import org.openapitools.client.JSON; @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 class ReadOnlyFirst { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { this.baz = baz; return this; } @@ -87,7 +89,7 @@ public class ReadOnlyFirst { @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 2c60935d21b..e3d5ef03d1a 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 @@ import org.openapitools.client.JSON; @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 class 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 8f375ade304..ebad74cb005 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 @@ import org.openapitools.client.JSON; @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 class Tag { @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 class Tag { @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 7686ad65fee..1fecc311808 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 @@ import org.openapitools.client.JSON; @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 class TypeHolderDefault { @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 class TypeHolderDefault { @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 class TypeHolderDefault { @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 class TypeHolderDefault { @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 class TypeHolderDefault { @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 bdddb902218..3f6d27cbf4a 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 @@ import org.openapitools.client.JSON; @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 class TypeHolderExample { @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 class TypeHolderExample { @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 class TypeHolderExample { @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 class TypeHolderExample { @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 class TypeHolderExample { @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 class TypeHolderExample { @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 8db18fe24c9..efde0d59cfe 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 @@ import org.openapitools.client.JSON; @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 3e2f644b723..d5ee1d235c4 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 @@ import org.openapitools.client.JSON; @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 981f61776a6..4edcfcaa78e 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 @@ import org.openapitools.client.JSON; @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 class SchemaA { @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 f3031d5a07c..795337f2d52 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 @@ import org.openapitools.client.JSON; @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { 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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 ac1fd0288b0..118df795806 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 @@ import org.openapitools.client.JSON; 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 class Animal { @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 class Animal { @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 11078412b8b..24e7849e22b 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 @@ import org.openapitools.client.JSON; @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 class Apple { @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 class Apple { @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 66a57bdbbd2..73918b98ff7 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 @@ import org.openapitools.client.JSON; @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 class AppleReq { @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 class AppleReq { @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 8453a174138..7f4d13dbf20 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 @@ import org.openapitools.client.JSON; @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 class ArrayOfArrayOfNumberOnly { @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 5d4fe4496a1..da38b552514 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 @@ import org.openapitools.client.JSON; @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 class ArrayOfNumberOnly { @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 08333809a9f..81b5130763e 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 @@ import org.openapitools.client.JSON; @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 class ArrayTest { @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 class ArrayTest { @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 class ArrayTest { @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 1fb3e78437d..9a7d1063835 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 @@ import org.openapitools.client.JSON; @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 class Banana { @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 ceeef28b60f..d2c71a7b906 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 @@ import org.openapitools.client.JSON; @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 class BananaReq { @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 class BananaReq { @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 5578fbbce01..a78866da42e 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 @@ import org.openapitools.client.JSON; @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 class BasquePig { @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 6c8cca86910..940ac1bcbf4 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 @@ import org.openapitools.client.JSON; @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 083be976977..808ea9cad3d 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 @@ import org.openapitools.client.JSON; 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 class Cat extends Animal { @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 f863f983593..025a95801ba 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 @@ import org.openapitools.client.JSON; @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 class Category { @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 class Category { @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 bdf6080b8bf..5f8808c00ad 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 @@ import org.openapitools.client.JSON; 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 class ChildCat extends ParentPet { @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 class ChildCat extends ParentPet { "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 class ChildCat extends ParentPet { @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 528b2150a27..01fe1710971 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 @@ import org.openapitools.client.JSON; @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 class ClassModel { @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 bcc8106aa29..ab42ff0259e 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 @@ import org.openapitools.client.JSON; @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 class Client { @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 ac3319b4dda..fee47826346 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 @@ import org.openapitools.client.JSON; @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 class ComplexQuadrilateral { @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 class ComplexQuadrilateral { @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 14a72da731a..dcd9fe27ff7 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 @@ import org.openapitools.client.JSON; @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 class DanishPig { @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 38d3b77a464..acc3dc73e10 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 @@ import org.openapitools.client.JSON; @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 class DeprecatedObject { @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 855bb9134e9..880c6b5a1a6 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 @@ import org.openapitools.client.JSON; 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 class Dog extends Animal { @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 65d64d7e8b7..b3b4a6666b0 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 @@ import org.openapitools.client.JSON; @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 class Drawing { @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 class Drawing { 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 class Drawing { 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 class Drawing { @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 8828a9dae5f..c171e5308d6 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 class EnumArrays { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; + @jakarta.annotation.Nullable private JustSymbolEnum justSymbol; /** @@ -113,12 +114,13 @@ public class EnumArrays { } 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 class EnumArrays { @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 class EnumArrays { @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 5c283ac44c7..156ca8f8972 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 class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; + @jakarta.annotation.Nullable private EnumStringEnum enumString; /** @@ -131,6 +132,7 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; + @jakarta.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** @@ -169,6 +171,7 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; + @jakarta.annotation.Nullable private EnumIntegerEnum enumInteger; /** @@ -207,6 +210,7 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_INTEGER_ONLY = "enum_integer_only"; + @jakarta.annotation.Nullable private EnumIntegerOnlyEnum enumIntegerOnly; /** @@ -245,24 +249,28 @@ public class EnumTest { } 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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 class EnumTest { 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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 d307edec49e..44732e01391 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 @@ import org.openapitools.client.JSON; @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 class EquilateralTriangle { @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 class EquilateralTriangle { @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 ce42c262bab..ba770c57dd9 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 @@ import org.openapitools.client.JSON; @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 class FileSchemaTestClass { @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 class FileSchemaTestClass { @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 7c741a463c1..62210e1b6ce 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 @@ import org.openapitools.client.JSON; @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 class Foo { @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 f91e7ebe62c..c18b124e09a 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 @@ import org.openapitools.client.JSON; @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 class FooGetDefaultResponse { @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 342ad9429ea..a82a6a123b7 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 @@ import org.openapitools.client.JSON; @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 9bd715d21ef..fbbe6f2788a 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 @@ import org.openapitools.client.JSON; 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 class GrandparentAnimal { @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 eaa6adc17bc..2b6cd744bd2 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 @@ import org.openapitools.client.JSON; @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 b7b996684d6..cb1d09c13c5 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 class HealthCheckResult { 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 a615157bc25..d116617abdd 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 @@ import org.openapitools.client.JSON; @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 class IsoscelesTriangle { @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 class IsoscelesTriangle { @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 c838f4c5360..03f3eda9cc3 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 @@ import org.openapitools.client.JSON; @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 class MapTest { } 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 class MapTest { @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 class MapTest { @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 class MapTest { @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 class MapTest { @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 c7ab5532a12..eb9a5aef500 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 @@ import org.openapitools.client.JSON; @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 163d96ad48d..aabc6c471b2 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 @@ import org.openapitools.client.JSON; @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 class Model200Response { @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 class Model200Response { @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 07be45c51a3..33bdc417985 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 @@ import org.openapitools.client.JSON; @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 class ModelApiResponse { @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 class ModelApiResponse { @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 class ModelApiResponse { @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 cad83fec8f8..98a0e80e521 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 @@ import org.openapitools.client.JSON; @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 class ModelFile { @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 0ea7db01807..0434c06ae29 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 @@ import org.openapitools.client.JSON; @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 class ModelList { @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 d6d7ec06caf..840f3dae748 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 @@ import org.openapitools.client.JSON; @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 class ModelReturn { @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 906d6d54720..2bd14b77f3a 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 @@ import org.openapitools.client.JSON; @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 class 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 class Name { @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 class Name { - public Name property(String property) { + public Name property(@jakarta.annotation.Nullable String property) { this.property = property; return this; } @@ -128,7 +132,7 @@ public class Name { @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 5579ef4e0de..883f1cbba65 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { @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 class NullableClass { 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 class NullableClass { this.objectAndItemsNullableProp = objectAndItemsNullableProp; } - public void setObjectAndItemsNullableProp(Map 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 class NullableClass { @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 8329dcbd6cd..2ce68e24084 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 @@ import org.openapitools.client.JSON; @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 class NumberOnly { @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 9be17902532..a79d8c67c62 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 @@ import org.openapitools.client.JSON; @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 cd9a2432530..1205e73cfcf 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 @@ import org.openapitools.client.JSON; @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 class Order { } 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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 7a747ebd32a..286cf92b75b 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 @@ import org.openapitools.client.JSON; @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 class OuterComposite { @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 class OuterComposite { @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 class OuterComposite { @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 9d3221deced..0db1e478552 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 @@ import org.openapitools.client.JSON; @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 class Pet { } 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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 f811d3b7bfc..b143ca302ec 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 @@ import org.openapitools.client.JSON; @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 class QuadrilateralInterface { @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 c29ff76fe7e..8cfa6a5ae6f 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 @@ import org.openapitools.client.JSON; @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 class ReadOnlyFirst { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@jakarta.annotation.Nullable String baz) { this.baz = baz; return this; } @@ -91,7 +93,7 @@ public class ReadOnlyFirst { @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 e4fca5dbc4d..3714690b948 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 @@ import org.openapitools.client.JSON; @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 class ScaleneTriangle { @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 class ScaleneTriangle { @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 872b2317e2b..c24a869e117 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 @@ import org.openapitools.client.JSON; @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 class ShapeInterface { @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 dac94710329..7fd5a7fc8f6 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 @@ import org.openapitools.client.JSON; @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 class SimpleQuadrilateral { @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 class SimpleQuadrilateral { @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 7e0bfd1be04..ae88910475e 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 @@ import org.openapitools.client.JSON; @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 class 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 class SpecialModelName { @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 594961bb4c5..14fd4f1c766 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 @@ import org.openapitools.client.JSON; @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 class Tag { @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 class Tag { @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 f9a5d015837..deeba97cf15 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 @@ import org.openapitools.client.JSON; @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 class TestInlineFreeformAdditionalPropertiesRequest { @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 9b635fca4d9..374c7406828 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 @@ import org.openapitools.client.JSON; @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 class TriangleInterface { @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 3c99ec54846..f515fdb5a1f 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 @@ import org.openapitools.client.JSON; @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { this.objectWithNoDeclaredPropsNullable = objectWithNoDeclaredPropsNullable; } - public void setObjectWithNoDeclaredPropsNullable(Object objectWithNoDeclaredPropsNullable) { + public void setObjectWithNoDeclaredPropsNullable(@jakarta.annotation.Nullable Object objectWithNoDeclaredPropsNullable) { this.objectWithNoDeclaredPropsNullable = JsonNullable.of(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 class User { 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 class User { 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 e6f9cdbbc94..f82b8c58919 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 @@ import org.openapitools.client.JSON; @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 class Whale { @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 class Whale { @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 class Whale { @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 33fcc7ae0be..7d2e7458855 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 class Zebra { } 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 class Zebra { @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 class Zebra { @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 f3d53e98a69..8d8a1f6eefa 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 @@ import org.openapitools.client.ApiClient; @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { 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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 fd840e43aa6..93b8d1702b3 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 @@ import org.openapitools.client.ApiClient; 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 class Animal { @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 class Animal { @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 097ec70f069..93cce709835 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 @@ import org.openapitools.client.ApiClient; @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 class Apple { @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 class Apple { @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 165e4068569..b099484fabf 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 @@ import org.openapitools.client.ApiClient; @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 class AppleReq { @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 class AppleReq { @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 aada8522114..68a2adae6b8 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 @@ import org.openapitools.client.ApiClient; @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 class ArrayOfArrayOfNumberOnly { @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 388abdbf55e..87be9636418 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 @@ import org.openapitools.client.ApiClient; @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 class ArrayOfNumberOnly { @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 4d0e25b78d0..373aaba494c 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 @@ import org.openapitools.client.ApiClient; @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 class ArrayTest { @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 class ArrayTest { @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 class ArrayTest { @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 85000d56598..2bdfe51040a 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 @@ import org.openapitools.client.ApiClient; @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 class Banana { @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 98d5f523469..0a088640a6c 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 @@ import org.openapitools.client.ApiClient; @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 class BananaReq { @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 class BananaReq { @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 36c00983611..487148eccdd 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 @@ import org.openapitools.client.ApiClient; @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 class BasquePig { @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 64873e376ad..a376eb98ae8 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 @@ import org.openapitools.client.ApiClient; @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 e3ea70f4617..f7fc3c527b5 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 @@ import org.openapitools.client.ApiClient; 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 class Cat extends Animal { @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 b9b1a945f15..3f3aa4cb3b2 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 @@ import org.openapitools.client.ApiClient; @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 class Category { @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 class Category { @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 5e0aa0c0748..3637660c419 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 @@ import org.openapitools.client.ApiClient; 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 class ChildCat extends ParentPet { @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 class ChildCat extends ParentPet { "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 class ChildCat extends ParentPet { @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 5e39ec984c7..d7db6ba2533 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 @@ import org.openapitools.client.ApiClient; @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 class ClassModel { @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 ecaa75046c0..8fe9bbe7f8c 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 @@ import org.openapitools.client.ApiClient; @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 class Client { @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 023dc07ee28..794d11f7dcf 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 @@ import org.openapitools.client.ApiClient; @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 class ComplexQuadrilateral { @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 class ComplexQuadrilateral { @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 cd872676200..194c8fce8bb 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 @@ import org.openapitools.client.ApiClient; @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 class DanishPig { @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 b2b1c9e0baf..7616309d67e 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 @@ import org.openapitools.client.ApiClient; @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 class DeprecatedObject { @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 dd15d61547e..9a224024673 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 @@ import org.openapitools.client.ApiClient; 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 class Dog extends Animal { @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 53c16a69e50..0b50ca21243 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 @@ import org.openapitools.client.ApiClient; @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 class Drawing extends HashMap { @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 class Drawing extends HashMap { @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 class Drawing extends HashMap { 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 class Drawing extends HashMap { @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 f7892d08350..13ca76a48ea 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 class EnumArrays { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** @@ -114,12 +115,13 @@ public class EnumArrays { } 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 class EnumArrays { @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 class EnumArrays { @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 cfbcda342a6..4ca18c79f42 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 class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; + @javax.annotation.Nullable private EnumStringEnum enumString; /** @@ -131,6 +132,7 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** @@ -169,6 +171,7 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** @@ -207,6 +210,7 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_INTEGER_ONLY = "enum_integer_only"; + @javax.annotation.Nullable private EnumIntegerOnlyEnum enumIntegerOnly; /** @@ -245,24 +249,28 @@ public class EnumTest { } 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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 class EnumTest { 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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 a6a9899ff1e..82f5ea90b2e 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 @@ import org.openapitools.client.ApiClient; @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 class EquilateralTriangle { @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 class EquilateralTriangle { @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 088b6655da6..9315c7b2ba6 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 @@ import org.openapitools.client.ApiClient; @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 class FakeBigDecimalMap200Response { @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 class FakeBigDecimalMap200Response { @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 dfc81da34db..63a765d2fba 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 @@ import org.openapitools.client.ApiClient; @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 class FileSchemaTestClass { @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 class FileSchemaTestClass { @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 b5336da21cf..7cfcf087c9a 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 @@ import org.openapitools.client.ApiClient; @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 class Foo { @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 58ea6f024b4..868e8549dc9 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 @@ import org.openapitools.client.ApiClient; @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 class FooGetDefaultResponse { @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 5f5fb67b839..4911e97c9d1 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 @@ import org.openapitools.client.ApiClient; @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 8e801cc1b61..e80b219e13f 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 @@ import org.openapitools.client.ApiClient; 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 class GrandparentAnimal { @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 31c765a7358..88918ca5545 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 @@ import org.openapitools.client.ApiClient; @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 795c0fbf83c..586ad5fc0a9 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 class HealthCheckResult { 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 d48a576f337..36e8f880f49 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 @@ import org.openapitools.client.ApiClient; @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 class IsoscelesTriangle { @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 class IsoscelesTriangle { @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 3add757c9d7..6df3a798f44 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 @@ import org.openapitools.client.ApiClient; @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 class MapTest { } 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 class MapTest { @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 class MapTest { @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 class MapTest { @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 class MapTest { @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 fd6f701797c..189cc0473e6 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 @@ import org.openapitools.client.ApiClient; @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 52fd57b6407..8f8da84f893 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 @@ import org.openapitools.client.ApiClient; @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 class Model200Response { @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 class Model200Response { @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 bfcb51955e8..f9cfad9a631 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 @@ import org.openapitools.client.ApiClient; @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 class ModelApiResponse { @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 class ModelApiResponse { @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 class ModelApiResponse { @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 4069aca23ef..895e319e820 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 @@ import org.openapitools.client.ApiClient; @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 class ModelFile { @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 5c9329a4d50..35e07d36e12 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 @@ import org.openapitools.client.ApiClient; @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 class ModelList { @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 53779fffeef..74647ae19ae 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 @@ import org.openapitools.client.ApiClient; @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 class ModelReturn { @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 cf679a536e4..e4ab623bedf 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 @@ import org.openapitools.client.ApiClient; @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 class 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 class Name { @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 class Name { - public Name property(String property) { + public Name property(@javax.annotation.Nullable String property) { this.property = property; return this; } @@ -122,7 +126,7 @@ public class Name { @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 ae7b291baed..9116b92ee49 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { @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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { this.objectAndItemsNullableProp = objectAndItemsNullableProp; } - public void setObjectAndItemsNullableProp(Map 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 class NullableClass extends HashMap { @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 2e98e1e09c0..0191985c550 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 @@ import org.openapitools.client.ApiClient; @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 class NumberOnly { @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 7a5236cba11..26c7820c3a1 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 @@ import org.openapitools.client.ApiClient; @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 d5e4d4a531a..69e09161e49 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 @@ import org.openapitools.client.ApiClient; @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 class Order { } 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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 e01d9a8e9d3..c57a196e0d4 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 @@ import org.openapitools.client.ApiClient; @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 class OuterComposite { @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 class OuterComposite { @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 class OuterComposite { @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 74a6a9a482e..996ecc54f61 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 class ParentPet extends GrandparentAnimal { } @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 5ac8a595153..bbaa7db7492 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 @@ import org.openapitools.client.ApiClient; @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 class Pet { } 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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 94904d36e10..808502be8d5 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 @@ import org.openapitools.client.ApiClient; @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 class QuadrilateralInterface { @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 156983b591c..b95057fbe55 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 @@ import org.openapitools.client.ApiClient; @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 class ReadOnlyFirst { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { this.baz = baz; return this; } @@ -88,7 +90,7 @@ public class ReadOnlyFirst { @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 fcf766d1cfe..8d32ac208be 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 @@ import org.openapitools.client.ApiClient; @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 class ScaleneTriangle { @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 class ScaleneTriangle { @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 be53595460f..544d0d4a899 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 @@ import org.openapitools.client.ApiClient; @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 class ShapeInterface { @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 ba4801cd2a3..b98d759c8b5 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 @@ import org.openapitools.client.ApiClient; @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 class SimpleQuadrilateral { @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 class SimpleQuadrilateral { @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 057b9a50d78..fca0648ef47 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 @@ import org.openapitools.client.ApiClient; @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 class 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 class SpecialModelName { @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 3c76b92072b..0be17aeb75b 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 @@ import org.openapitools.client.ApiClient; @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 class Tag { @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 class Tag { @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 be12016992d..78ee4289eab 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 @@ import org.openapitools.client.ApiClient; @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 class TestInlineFreeformAdditionalPropertiesRequest extends HashMapof(objectWithNoDeclaredPropsNullable); return this; } @@ -334,12 +343,12 @@ public class User { this.objectWithNoDeclaredPropsNullable = objectWithNoDeclaredPropsNullable; } - public void setObjectWithNoDeclaredPropsNullable(Object objectWithNoDeclaredPropsNullable) { + public void setObjectWithNoDeclaredPropsNullable(@javax.annotation.Nullable Object objectWithNoDeclaredPropsNullable) { this.objectWithNoDeclaredPropsNullable = JsonNullable.of(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 class User { 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 class User { 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 6d98d00486b..b58368c9395 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 @@ import org.openapitools.client.ApiClient; @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 class Whale { @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 class Whale { @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 class Whale { @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 69a2c2d5e9b..c21707d55b0 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 class Zebra extends HashMap { } 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 class Zebra extends HashMap { @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 class Zebra extends HashMap { @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 6b302f8a372..40920ec031e 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 @@ import org.openapitools.client.ApiClient; @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 class Category { @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 class Category { @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 ef9704d0b92..deaecc7dfef 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 @@ import org.openapitools.client.ApiClient; @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 class ModelApiResponse { @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 class ModelApiResponse { @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 class ModelApiResponse { @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 7cfbe14bb74..4b869110f2b 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 @@ import org.openapitools.client.ApiClient; @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 class Order { } 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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 dc5aea37915..9bd07ec6812 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 @@ import org.openapitools.client.ApiClient; @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 class Pet { } 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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 46d1890957a..5fb33a3ada3 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 @@ import org.openapitools.client.ApiClient; @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 class Tag { @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 class Tag { @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 bdc761324d1..eab4c0a8301 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 @@ import org.openapitools.client.ApiClient; @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 638633f5f01..76dc10c07a8 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 @@ import org.openapitools.client.ApiClient; @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { 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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 0d23e545656..d1f3c98076f 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 @@ import org.openapitools.client.ApiClient; 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 class Animal { @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 class Animal { @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 c521b5fe4c1..1c61171ebe6 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 @@ import org.openapitools.client.ApiClient; @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 class Apple { @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 class Apple { @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 c49930b2841..a34652b3c10 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 @@ import org.openapitools.client.ApiClient; @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 class AppleReq { @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 class AppleReq { @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 d92fdd7b612..9028a95c7d4 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 @@ import org.openapitools.client.ApiClient; @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 class ArrayOfArrayOfNumberOnly { @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 93923106da1..03e2f228771 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 @@ import org.openapitools.client.ApiClient; @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 class ArrayOfNumberOnly { @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 095a843da49..234361daf01 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 @@ import org.openapitools.client.ApiClient; @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 class ArrayTest { @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 class ArrayTest { @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 class ArrayTest { @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 1c13e536c05..4292c2d0ea2 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 @@ import org.openapitools.client.ApiClient; @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 class Banana { @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 575c2242723..6756b7f9b3c 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 @@ import org.openapitools.client.ApiClient; @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 class BananaReq { @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 class BananaReq { @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 0a8f3d344b1..4828c1cae62 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 @@ import org.openapitools.client.ApiClient; @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 class BasquePig { @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 2f82af148d8..99cbc682ed7 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 @@ import org.openapitools.client.ApiClient; @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 043b6ec7d8b..591afb1f7d7 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 @@ import org.openapitools.client.ApiClient; 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 class Cat extends Animal { @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 b14f8878c0a..7a2120d0b06 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 @@ import org.openapitools.client.ApiClient; @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 class Category { @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 class Category { @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 b8a5d9f2207..160a533e97c 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 @@ import org.openapitools.client.ApiClient; 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 class ChildCat extends ParentPet { @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 class ChildCat extends ParentPet { "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 class ChildCat extends ParentPet { @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 9323092db95..46bf4f851a9 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 @@ import org.openapitools.client.ApiClient; @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 class ClassModel { @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 8e934aad5ea..2228e599891 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 @@ import org.openapitools.client.ApiClient; @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 class Client { @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 4c896e00e61..c48a15a03b8 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 @@ import org.openapitools.client.ApiClient; @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 class ComplexQuadrilateral { @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 class ComplexQuadrilateral { @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 71704e3b6fd..8051e05c23b 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 @@ import org.openapitools.client.ApiClient; @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 class DanishPig { @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 92dc3dcacea..7a17c8f3d89 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 @@ import org.openapitools.client.ApiClient; @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 class DeprecatedObject { @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 48cb35d58e4..d03f6a1dda8 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 @@ import org.openapitools.client.ApiClient; 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 class Dog extends Animal { @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 4237b410585..d259ea563f8 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 @@ import org.openapitools.client.ApiClient; @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 class Drawing extends HashMap { @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 class Drawing extends HashMap { @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 class Drawing extends HashMap { 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 class Drawing extends HashMap { @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 63f0ca90aa5..91d031f2d38 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 class EnumArrays { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** @@ -114,12 +115,13 @@ public class EnumArrays { } 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 class EnumArrays { @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 class EnumArrays { @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 d5c1384b37c..a5b629557a1 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 class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; + @javax.annotation.Nullable private EnumStringEnum enumString; /** @@ -131,6 +132,7 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** @@ -169,6 +171,7 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** @@ -207,6 +210,7 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_INTEGER_ONLY = "enum_integer_only"; + @javax.annotation.Nullable private EnumIntegerOnlyEnum enumIntegerOnly; /** @@ -245,24 +249,28 @@ public class EnumTest { } 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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 class EnumTest { 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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 fbc81558488..2033162fd12 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 @@ import org.openapitools.client.ApiClient; @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 class EquilateralTriangle { @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 class EquilateralTriangle { @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 460cac6973c..24888be137f 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 @@ import org.openapitools.client.ApiClient; @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 class FakeBigDecimalMap200Response { @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 class FakeBigDecimalMap200Response { @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 5727b3fafc6..5a0e4037072 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 @@ import org.openapitools.client.ApiClient; @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 class FileSchemaTestClass { @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 class FileSchemaTestClass { @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 59dc7710ab3..baf2ad20197 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 @@ import org.openapitools.client.ApiClient; @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 class Foo { @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 ecea7165322..63ff6395a1e 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 @@ import org.openapitools.client.ApiClient; @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 class FooGetDefaultResponse { @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 1e1b2c48b29..3bb358c894a 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 @@ import org.openapitools.client.ApiClient; @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 c21e9837c8a..4d5c1dcadf0 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 @@ import org.openapitools.client.ApiClient; 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 class GrandparentAnimal { @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 c8e49774f7f..26ce80f3fc9 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 @@ import org.openapitools.client.ApiClient; @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 5b6bcd3a877..128a16915fb 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 class HealthCheckResult { 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 98024f9fb4a..640a0091b9a 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 @@ import org.openapitools.client.ApiClient; @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 class IsoscelesTriangle { @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 class IsoscelesTriangle { @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 e310cefaee6..e8ab4903c9f 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 @@ import org.openapitools.client.ApiClient; @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 class MapTest { } 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 class MapTest { @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 class MapTest { @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 class MapTest { @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 class MapTest { @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 f6a1f944b8f..9b8ea43fb25 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 @@ import org.openapitools.client.ApiClient; @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 40e603dc534..a587abd842b 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 @@ import org.openapitools.client.ApiClient; @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 class Model200Response { @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 class Model200Response { @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 860c80b3b95..f1a305ac813 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 @@ import org.openapitools.client.ApiClient; @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 class ModelApiResponse { @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 class ModelApiResponse { @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 class ModelApiResponse { @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 567c9511dd6..2cbb873e1bb 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 @@ import org.openapitools.client.ApiClient; @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 class ModelFile { @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 b70baf4ebcd..688bd3a492b 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 @@ import org.openapitools.client.ApiClient; @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 class ModelList { @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 6969a18b42b..8afe2aa291c 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 @@ import org.openapitools.client.ApiClient; @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 class ModelReturn { @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 ca7bae2ed87..254eb93783d 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 @@ import org.openapitools.client.ApiClient; @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 class 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 class Name { @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 class Name { - public Name property(String property) { + public Name property(@javax.annotation.Nullable String property) { this.property = property; return this; } @@ -122,7 +126,7 @@ public class Name { @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 e6e3a265c84..9cc1aec009d 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { @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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { this.objectAndItemsNullableProp = objectAndItemsNullableProp; } - public void setObjectAndItemsNullableProp(Map 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 class NullableClass extends HashMap { @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 aef7b77f388..311bddd0737 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 @@ import org.openapitools.client.ApiClient; @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 class NumberOnly { @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 24e3be4a8a9..9f22ac33b40 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 @@ import org.openapitools.client.ApiClient; @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 5e240462a15..3ba6eeb6d87 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 @@ import org.openapitools.client.ApiClient; @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 class Order { } 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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 d3e13cc19bd..da51395e38f 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 @@ import org.openapitools.client.ApiClient; @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 class OuterComposite { @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 class OuterComposite { @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 class OuterComposite { @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 cbcb333abfa..93528aa7d7d 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 class ParentPet extends GrandparentAnimal { } @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 72069ff0fe2..d5b671856b5 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 @@ import org.openapitools.client.ApiClient; @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 class Pet { } 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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 4324eb270a9..ca89b2c6f14 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 @@ import org.openapitools.client.ApiClient; @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 class QuadrilateralInterface { @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 9139df4f741..c3c0fff1d5c 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 @@ import org.openapitools.client.ApiClient; @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 class ReadOnlyFirst { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { this.baz = baz; return this; } @@ -88,7 +90,7 @@ public class ReadOnlyFirst { @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 8ea021d8161..d72f51aecf7 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 @@ import org.openapitools.client.ApiClient; @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 class ScaleneTriangle { @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 class ScaleneTriangle { @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 35506dbc2c9..41fcfc60069 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 @@ import org.openapitools.client.ApiClient; @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 class ShapeInterface { @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 2235a432019..98b7071d41f 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 @@ import org.openapitools.client.ApiClient; @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 class SimpleQuadrilateral { @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 class SimpleQuadrilateral { @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 8b5be77a7d1..12a839c0a15 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 @@ import org.openapitools.client.ApiClient; @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 class 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 class SpecialModelName { @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 2c879ae3cef..5f7135324b9 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 @@ import org.openapitools.client.ApiClient; @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 class Tag { @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 class Tag { @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 6f44fc58be0..0fd01ccbd17 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 @@ import org.openapitools.client.ApiClient; @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 class TestInlineFreeformAdditionalPropertiesRequest extends HashMapof(objectWithNoDeclaredPropsNullable); return this; } @@ -334,12 +343,12 @@ public class User { this.objectWithNoDeclaredPropsNullable = objectWithNoDeclaredPropsNullable; } - public void setObjectWithNoDeclaredPropsNullable(Object objectWithNoDeclaredPropsNullable) { + public void setObjectWithNoDeclaredPropsNullable(@javax.annotation.Nullable Object objectWithNoDeclaredPropsNullable) { this.objectWithNoDeclaredPropsNullable = JsonNullable.of(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 class User { 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 class User { 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 a48b542a1e4..be60877fab8 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 @@ import org.openapitools.client.ApiClient; @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 class Whale { @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 class Whale { @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 class Whale { @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 234c1e4718d..9e1fbf95636 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 class Zebra extends HashMap { } 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 class Zebra extends HashMap { @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 class Zebra extends HashMap { @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 79eab6bbc1d..3fbafc4845b 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 @@ import org.openapitools.client.JSON; 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 class AllOfSimpleModel { 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 7b88247af1a..e57747b134a 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 @@ import org.openapitools.client.JSON; 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 class Animal { 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 class Animal { 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 89002fd935d..0bc12f3f4f3 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 @@ import org.openapitools.client.JSON; 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 class AnyTypeTest { 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 class AnyTypeTest { 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 class AnyTypeTest { 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 a9b7cce42b6..4ca37475e25 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 @@ import org.openapitools.client.JSON; 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 class ArrayOfSameRef { 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 class ArrayOfSameRef { 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 class ArrayOfSameRef { 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 d868d4b2923..e22c005616d 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 @@ import org.openapitools.client.JSON; 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 class Cat extends Animal { 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 49061931703..ff68b1fbcef 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 @@ import org.openapitools.client.JSON; 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 class Category { 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 class Category { 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 ad3cfd89486..3b20cafa61e 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 @@ import org.openapitools.client.JSON; 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 class CircularReference1 { 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 21520f1903e..7b9c6cbe399 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 @@ import org.openapitools.client.JSON; 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 class CircularReference2 { 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 8d07e6a8ae5..9b15f332c69 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 @@ import org.openapitools.client.JSON; 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 class CircularReference3 { 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 74c615a80eb..84cb4643a43 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 @@ import org.openapitools.client.JSON; 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 class Dog extends Animal { 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 e3ac2247cd8..0c222131c8a 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 @@ import org.openapitools.client.JSON; 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 class ModelApiResponse { 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 class ModelApiResponse { 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 class ModelApiResponse { 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 d015afaea48..9eabd17d9b2 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 @@ import org.openapitools.client.JSON; 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 class Order { 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 class Order { 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 class Order { 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 class Order { 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 class Order { 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 class Order { 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 class Order { 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 6e40fde3f10..400e711ef3e 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 @@ import org.openapitools.client.JSON; 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 class Pet { 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 class Pet { 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 class Pet { 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 class Pet { 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 class Pet { 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 class Pet { 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 class Pet { } @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 28eb48283fc..bc902fbaee0 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 @@ import org.openapitools.client.JSON; 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 class SelfReferenceAdditionalProperties { 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 d629001b293..f5a7e23aabb 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 @@ import org.openapitools.client.JSON; 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 class SimpleModelWithArrayProperty { 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 7ddf14f4a24..0c1ca3175d3 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 @@ import org.openapitools.client.JSON; 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 class Tag { 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 class Tag { 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 b385dcca70f..2fabf55abee 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 @@ import org.openapitools.client.JSON; 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 class User { 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 class User { 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 class User { 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 class User { 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 class User { 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 class User { 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 class User { 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 class User { 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 49061931703..ff68b1fbcef 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 @@ import org.openapitools.client.JSON; 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 class Category { 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 class Category { 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 e3ac2247cd8..0c222131c8a 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 @@ import org.openapitools.client.JSON; 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 class ModelApiResponse { 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 class ModelApiResponse { 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 class ModelApiResponse { 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 d015afaea48..9eabd17d9b2 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 @@ import org.openapitools.client.JSON; 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 class Order { 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 class Order { 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 class Order { 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 class Order { 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 class Order { 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 class Order { 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 class Order { 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 6e40fde3f10..400e711ef3e 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 @@ import org.openapitools.client.JSON; 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 class Pet { 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 class Pet { 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 class Pet { 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 class Pet { 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 class Pet { 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 class Pet { 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 class Pet { } @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 7ddf14f4a24..0c1ca3175d3 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 @@ import org.openapitools.client.JSON; 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 class Tag { 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 class Tag { 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 b385dcca70f..2fabf55abee 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 @@ import org.openapitools.client.JSON; 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 class User { 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 class User { 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 class User { 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 class User { 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 class User { 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 class User { 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 class User { 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 class User { 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 2d07ae873ee..27ad8af285a 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 @@ import org.openapitools.client.JSON; 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 class AdditionalPropertiesAnyType { 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 1599849c89d..9a73473e340 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 @@ import org.openapitools.client.JSON; 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 class AdditionalPropertiesArray { 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 42612a1e5b9..bc383b18d63 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 @@ import org.openapitools.client.JSON; 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 class AdditionalPropertiesBoolean { 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 05484fe15eb..d5fe2706272 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 @@ import org.openapitools.client.JSON; 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 class AdditionalPropertiesClass { 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 class AdditionalPropertiesClass { 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 class AdditionalPropertiesClass { 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 class AdditionalPropertiesClass { 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 class AdditionalPropertiesClass { 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 class AdditionalPropertiesClass { 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 class AdditionalPropertiesClass { 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 class AdditionalPropertiesClass { 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 class AdditionalPropertiesClass { 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 class AdditionalPropertiesClass { 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 class AdditionalPropertiesClass { 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 ea53b10722a..bef43e8cfaa 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 @@ import org.openapitools.client.JSON; 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 class AdditionalPropertiesInteger { 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 6e92b0ae4c5..e8288d98ffa 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 @@ import org.openapitools.client.JSON; 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 class AdditionalPropertiesNumber { 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 174d09ae337..026dc8e87de 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 @@ import org.openapitools.client.JSON; 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 class AdditionalPropertiesObject { 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 ba90448c2e9..159fc499da7 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 @@ import org.openapitools.client.JSON; 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 class AdditionalPropertiesString { 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 263ab6871eb..3b0341a3f11 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 @@ import org.openapitools.client.JSON; 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 class Animal { 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 class Animal { 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 112c55d576b..34b465cfb18 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 @@ import org.openapitools.client.JSON; 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 class ArrayOfArrayOfNumberOnly { 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 f22abd9f380..3723d0301c6 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 @@ import org.openapitools.client.JSON; 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 class ArrayOfNumberOnly { 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 8dbfd1f04ed..59e4181c2f1 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 @@ import org.openapitools.client.JSON; 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 class ArrayTest { 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 class ArrayTest { 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 class ArrayTest { 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 14a56eaa455..3de322600eb 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 class BigCat extends Cat { 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 class BigCat extends Cat { 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 026493295a3..cb1bc060a17 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 @@ import org.openapitools.client.JSON; 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 class Capitalization { 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 class Capitalization { 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 class Capitalization { 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 class Capitalization { 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 class Capitalization { 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 class Capitalization { 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 b478875d7b1..8b288d7608d 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 @@ import org.openapitools.client.JSON; 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 class Cat extends Animal { 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 f466daac7fe..8a87ed095ab 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 @@ import org.openapitools.client.JSON; 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 class Category { 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 class Category { 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 41a195a1dec..3f732cca0db 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 @@ import org.openapitools.client.JSON; 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 class ClassModel { 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 5e1f630d454..3a63fc204f0 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 @@ import org.openapitools.client.JSON; 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 class Client { 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 95cb5a831a9..c28d7ef4d3f 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 @@ import org.openapitools.client.JSON; 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 class Dog extends Animal { 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 56254927514..977e873ef75 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 class EnumArrays { 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 class EnumArrays { 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 class EnumArrays { 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 class EnumArrays { 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 9898dcc2a24..fab5e63c24b 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 class EnumTest { 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 class EnumTest { 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 class EnumTest { 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 class EnumTest { 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 class EnumTest { 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 class EnumTest { 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 class EnumTest { 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 class EnumTest { 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 class EnumTest { 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 38375ee3d5f..88ded19bbd6 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 @@ import org.openapitools.client.JSON; 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 class FileSchemaTestClass { 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 class FileSchemaTestClass { 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 747255eedf6..0ec5e78ab4d 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 @@ import org.openapitools.client.JSON; 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 class FormatTest { 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 class FormatTest { 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 class FormatTest { 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 class FormatTest { 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 class FormatTest { 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 class FormatTest { 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 class FormatTest { 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 class FormatTest { 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 class FormatTest { 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 class FormatTest { 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 class FormatTest { 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 class FormatTest { 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 class FormatTest { 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 class FormatTest { 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 90b19ac12ca..63408815ceb 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 @@ import org.openapitools.client.JSON; 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 1bf8ae693dd..139380bbbef 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 @@ import org.openapitools.client.JSON; 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 class MapTest { 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 class MapTest { 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 class MapTest { 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 class MapTest { 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 class MapTest { 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 7399fb06b5f..2a412a2c95a 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 @@ import org.openapitools.client.JSON; 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 class MixedPropertiesAndAdditionalPropertiesClass { 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 class MixedPropertiesAndAdditionalPropertiesClass { 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 class MixedPropertiesAndAdditionalPropertiesClass { 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 1fb7dee6b02..d109b3b7170 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 @@ import org.openapitools.client.JSON; 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 class Model200Response { 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 class Model200Response { 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 c9d9af4e001..fd7c4cf6fd2 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 @@ import org.openapitools.client.JSON; 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 class ModelApiResponse { 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 class ModelApiResponse { 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 class ModelApiResponse { 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 65cf5bcfc74..e0715164d2d 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 @@ import org.openapitools.client.JSON; 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 class ModelFile { 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 260725d246e..01236521328 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 @@ import org.openapitools.client.JSON; 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 class ModelList { 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 6d8aac23e3b..13ed2f4071c 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 @@ import org.openapitools.client.JSON; 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 class ModelReturn { 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 209493533aa..7981af04061 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 @@ import org.openapitools.client.JSON; 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 class 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 class Name { return name; } - public void setName(Integer name) { + public void setName(@javax.annotation.Nonnull Integer name) { this.name = name; } @@ -108,7 +112,7 @@ public class Name { - public Name property(String property) { + public Name property(@javax.annotation.Nullable String property) { this.property = property; return this; } @@ -122,7 +126,7 @@ public class Name { 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 0d44c596f27..b799d1c625f 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 @@ import org.openapitools.client.JSON; 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 class NumberOnly { 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 b75619b4b5f..8968dbb20c2 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 @@ import org.openapitools.client.JSON; 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 class Order { 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 class Order { 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 class Order { 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 class Order { 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 class Order { 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 class Order { 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 class Order { 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 d26c6a68574..ab9772c530d 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 @@ import org.openapitools.client.JSON; 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 class OuterComposite { 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 class OuterComposite { 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 class OuterComposite { 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 0ea782f03df..e7436e0eae4 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 @@ import org.openapitools.client.JSON; 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 class Pet { 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 class Pet { 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 class Pet { 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 class Pet { 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 class Pet { 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 class Pet { 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 class Pet { 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 ed5fff58a61..3b772446b36 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 @@ import org.openapitools.client.JSON; 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 class ReadOnlyFirst { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { this.baz = baz; return this; } @@ -93,7 +95,7 @@ public class ReadOnlyFirst { 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 4ffc9bc3ca3..faadfa7ebe3 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 @@ import org.openapitools.client.JSON; 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 class 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 b377d412a09..7d3729f6339 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 @@ import org.openapitools.client.JSON; 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 class Tag { 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 class Tag { 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 b40cd722c72..7f07d19161a 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 @@ import org.openapitools.client.JSON; 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 class TypeHolderDefault { 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 class TypeHolderDefault { 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 class TypeHolderDefault { 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 class TypeHolderDefault { 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 class TypeHolderDefault { 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 96e8f096ceb..8dd6ee46fe1 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 @@ import org.openapitools.client.JSON; 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 class TypeHolderExample { 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 class TypeHolderExample { 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 class TypeHolderExample { 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 class TypeHolderExample { 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 class TypeHolderExample { 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 class TypeHolderExample { 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 9482798c2ba..74089db5703 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 @@ import org.openapitools.client.JSON; 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 class User { 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 class User { 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 class User { 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 class User { 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 class User { 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 class User { 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 class User { 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 class User { 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 9c314176df7..c88e684b699 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 @@ import org.openapitools.client.JSON; 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 class XmlItem { 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 class XmlItem { 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 class XmlItem { 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 class XmlItem { 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 class XmlItem { 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 class XmlItem { 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 class XmlItem { 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 class XmlItem { 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 class XmlItem { 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 class XmlItem { 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 class XmlItem { 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 class XmlItem { 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 class XmlItem { 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 class XmlItem { 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 class XmlItem { 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 class XmlItem { 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 class XmlItem { 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 class XmlItem { 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 class XmlItem { 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 class XmlItem { 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 class XmlItem { 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 class XmlItem { 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 class XmlItem { 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 class XmlItem { 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 class XmlItem { 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 class XmlItem { 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 class XmlItem { 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 class XmlItem { 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 class XmlItem { 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 49061931703..ff68b1fbcef 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 @@ import org.openapitools.client.JSON; 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 class Category { 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 class Category { 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 e3ac2247cd8..0c222131c8a 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 @@ import org.openapitools.client.JSON; 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 class ModelApiResponse { 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 class ModelApiResponse { 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 class ModelApiResponse { 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 d015afaea48..9eabd17d9b2 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 @@ import org.openapitools.client.JSON; 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 class Order { 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 class Order { 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 class Order { 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 class Order { 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 class Order { 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 class Order { 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 class Order { 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 6e40fde3f10..400e711ef3e 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 @@ import org.openapitools.client.JSON; 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 class Pet { 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 class Pet { 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 class Pet { 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 class Pet { 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 class Pet { 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 class Pet { 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 class Pet { } @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 7ddf14f4a24..0c1ca3175d3 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 @@ import org.openapitools.client.JSON; 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 class Tag { 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 class Tag { 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 b385dcca70f..2fabf55abee 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 @@ import org.openapitools.client.JSON; 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 class User { 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 class User { 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 class User { 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 class User { 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 class User { 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 class User { 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 class User { 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 class User { 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 49061931703..ff68b1fbcef 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 @@ import org.openapitools.client.JSON; 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 class Category { 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 class Category { 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 e3ac2247cd8..0c222131c8a 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 @@ import org.openapitools.client.JSON; 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 class ModelApiResponse { 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 class ModelApiResponse { 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 class ModelApiResponse { 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 d015afaea48..9eabd17d9b2 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 @@ import org.openapitools.client.JSON; 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 class Order { 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 class Order { 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 class Order { 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 class Order { 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 class Order { 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 class Order { 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 class Order { 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 6e40fde3f10..400e711ef3e 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 @@ import org.openapitools.client.JSON; 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 class Pet { 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 class Pet { 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 class Pet { 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 class Pet { 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 class Pet { 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 class Pet { 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 class Pet { } @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 8a947ff6864..c611fb32556 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 @@ import org.openapitools.client.JSON; 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 class PetWithRequiredNullableCases1 { 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 class PetWithRequiredNullableCases1 { 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 class PetWithRequiredNullableCases1 { 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 class PetWithRequiredNullableCases1 { 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 class PetWithRequiredNullableCases1 { 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 class PetWithRequiredNullableCases1 { 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 class PetWithRequiredNullableCases1 { } @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 dddb6a2da77..e515cf4566b 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 @@ import org.openapitools.client.JSON; 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 class PetWithRequiredNullableCases2 { 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 class PetWithRequiredNullableCases2 { 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 class PetWithRequiredNullableCases2 { 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 class PetWithRequiredNullableCases2 { 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 class PetWithRequiredNullableCases2 { 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 class PetWithRequiredNullableCases2 { 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 class PetWithRequiredNullableCases2 { } @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 7ddf14f4a24..0c1ca3175d3 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 @@ import org.openapitools.client.JSON; 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 class Tag { 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 class Tag { 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 b385dcca70f..2fabf55abee 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 @@ import org.openapitools.client.JSON; 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 class User { 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 class User { 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 class User { 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 class User { 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 class User { 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 class User { 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 class User { 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 class User { 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 3505a64c776..977aa947b63 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 @@ import org.openapitools.client.JSON; 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 class AdditionalPropertiesAnyType implements Parcelable { 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 32d68604f62..ccd77caea55 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 @@ import org.openapitools.client.JSON; 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 class AdditionalPropertiesArray implements Parcelable { 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 441d55e0c49..59ce65a39bf 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 @@ import org.openapitools.client.JSON; 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 class AdditionalPropertiesBoolean implements Parcelable { 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 49a6e145b3e..a5ee45e1d1d 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 @@ import org.openapitools.client.JSON; 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 class AdditionalPropertiesClass implements Parcelable { 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 class AdditionalPropertiesClass implements Parcelable { 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 class AdditionalPropertiesClass implements Parcelable { 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 class AdditionalPropertiesClass implements Parcelable { 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 class AdditionalPropertiesClass implements Parcelable { 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 class AdditionalPropertiesClass implements Parcelable { 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 class AdditionalPropertiesClass implements Parcelable { 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 class AdditionalPropertiesClass implements Parcelable { 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 class AdditionalPropertiesClass implements Parcelable { 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 class AdditionalPropertiesClass implements Parcelable { 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 class AdditionalPropertiesClass implements Parcelable { 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 73e1c4a22c9..e92e09ffb6d 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 @@ import org.openapitools.client.JSON; 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 class AdditionalPropertiesInteger implements Parcelable { 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 395d6325892..434ca7b5842 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 @@ import org.openapitools.client.JSON; 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 class AdditionalPropertiesNumber implements Parcelable { 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 fe5280d11da..1e0bcf777ad 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 @@ import org.openapitools.client.JSON; 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 class AdditionalPropertiesObject implements Parcelable { 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 53387dad03c..57a772a2a82 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 @@ import org.openapitools.client.JSON; 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 class AdditionalPropertiesString implements Parcelable { 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 6e96f2cf020..55815dbec81 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 @@ import org.openapitools.client.JSON; 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 class Animal implements Parcelable { 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 class Animal implements Parcelable { 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 0318354bfd4..7024a80f451 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 @@ import org.openapitools.client.JSON; 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 class ArrayOfArrayOfNumberOnly implements Parcelable { 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 9211b4204b2..7cb5e36e068 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 @@ import org.openapitools.client.JSON; 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 class ArrayOfNumberOnly implements Parcelable { 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 c92415b3560..138b680a05b 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 @@ import org.openapitools.client.JSON; 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 class ArrayTest implements Parcelable { 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 class ArrayTest implements Parcelable { 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 class ArrayTest implements Parcelable { 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 993c3c5030d..c5a244bf74a 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 class BigCat extends Cat implements Parcelable { 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 class BigCat extends Cat implements Parcelable { 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 class BigCat extends Cat implements Parcelable { 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 08c5ceeea98..c4f2014209c 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 @@ import org.openapitools.client.JSON; 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 class Capitalization implements Parcelable { 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 class Capitalization implements Parcelable { 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 class Capitalization implements Parcelable { 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 class Capitalization implements Parcelable { 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 class Capitalization implements Parcelable { 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 class Capitalization implements Parcelable { 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 893fcb4ffa6..ad9bf464ff0 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 @@ import org.openapitools.client.JSON; 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 class Cat extends Animal implements Parcelable { 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 class Cat extends Animal implements Parcelable { 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 c28d4f58ebe..337778c4b0a 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 @@ import org.openapitools.client.JSON; 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 class Category implements Parcelable { 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 class Category implements Parcelable { 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 46f9d94bf1a..95cecdab6ab 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 @@ import org.openapitools.client.JSON; 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 class ClassModel implements Parcelable { 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 9f9f9d83f50..ea135acd7cd 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 @@ import org.openapitools.client.JSON; 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 class Client implements Parcelable { 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 c0335081895..d6eb36b278d 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 @@ import org.openapitools.client.JSON; 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 class Dog extends Animal implements Parcelable { 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 class Dog extends Animal implements Parcelable { 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 c0911d0c8ad..9810b116a3c 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 class EnumArrays implements Parcelable { 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 class EnumArrays implements Parcelable { 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 class EnumArrays implements Parcelable { 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 class EnumArrays implements Parcelable { 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 20ff3782019..8e5f26782ad 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 class EnumTest implements Parcelable { 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 class EnumTest implements Parcelable { 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 class EnumTest implements Parcelable { 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 class EnumTest implements Parcelable { 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 class EnumTest implements Parcelable { 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 class EnumTest implements Parcelable { 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 class EnumTest implements Parcelable { 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 class EnumTest implements Parcelable { 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 class EnumTest implements Parcelable { 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 5c3303d931a..18eac6176f5 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 @@ import org.openapitools.client.JSON; 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 class FileSchemaTestClass implements Parcelable { 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 class FileSchemaTestClass implements Parcelable { 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 e68bc838114..337bf9dbdc3 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 @@ import org.openapitools.client.JSON; 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 class FormatTest implements Parcelable { 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 class FormatTest implements Parcelable { 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 class FormatTest implements Parcelable { 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 class FormatTest implements Parcelable { 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 class FormatTest implements Parcelable { 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 class FormatTest implements Parcelable { 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 class FormatTest implements Parcelable { 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 class FormatTest implements Parcelable { 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 class FormatTest implements Parcelable { 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 class FormatTest implements Parcelable { 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 class FormatTest implements Parcelable { 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 class FormatTest implements Parcelable { 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 class FormatTest implements Parcelable { 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 class FormatTest implements Parcelable { 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 671f880de8f..456ccab2ab4 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 @@ import org.openapitools.client.JSON; 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 0841cf9887e..38ad4ebb3e5 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 @@ import org.openapitools.client.JSON; 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 class MapTest implements Parcelable { 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 class MapTest implements Parcelable { 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 class MapTest implements Parcelable { 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 class MapTest implements Parcelable { 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 class MapTest implements Parcelable { 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 7fb88c44c00..8473c16eb9a 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 @@ import org.openapitools.client.JSON; 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 class MixedPropertiesAndAdditionalPropertiesClass implements Parcelable { 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 class MixedPropertiesAndAdditionalPropertiesClass implements Parcelable { 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 class MixedPropertiesAndAdditionalPropertiesClass implements Parcelable { 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 c42df519ef9..d21c66877bc 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 @@ import org.openapitools.client.JSON; 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 class Model200Response implements Parcelable { 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 class Model200Response implements Parcelable { 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 1035552de78..1ef06f5ecdb 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 @@ import org.openapitools.client.JSON; 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 class ModelApiResponse implements Parcelable { 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 class ModelApiResponse implements Parcelable { 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 class ModelApiResponse implements Parcelable { 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 7efa95cfb16..315634ff850 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 @@ import org.openapitools.client.JSON; 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 class ModelFile implements Parcelable { 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 7bde00ebc28..9ca62c3cd4e 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 @@ import org.openapitools.client.JSON; 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 class ModelList implements Parcelable { 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 9d5c9aea419..3c26ebb9c9d 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 @@ import org.openapitools.client.JSON; 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 class ModelReturn implements Parcelable { 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 dca67461197..f93cbf4452a 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 @@ import org.openapitools.client.JSON; 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 class Name implements Parcelable { 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 class Name implements Parcelable { return name; } - public void setName(Integer name) { + public void setName(@javax.annotation.Nonnull Integer name) { this.name = name; } @@ -110,7 +114,7 @@ public class Name implements Parcelable { - public Name property(String property) { + public Name property(@javax.annotation.Nullable String property) { this.property = property; return this; } @@ -124,7 +128,7 @@ public class Name implements Parcelable { 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 2cbf75208e4..7a1aabeae9b 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 @@ import org.openapitools.client.JSON; 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 class NumberOnly implements Parcelable { 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 875b96be6b2..56d533a88a7 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 @@ import org.openapitools.client.JSON; 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 class Order implements Parcelable { 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 class Order implements Parcelable { 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 class Order implements Parcelable { 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 class Order implements Parcelable { 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 class Order implements Parcelable { 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 class Order implements Parcelable { 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 class Order implements Parcelable { 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 3a28122293d..9805f1ac57d 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 @@ import org.openapitools.client.JSON; 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 class OuterComposite implements Parcelable { 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 class OuterComposite implements Parcelable { 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 class OuterComposite implements Parcelable { 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 adb2e3c1adc..b7c4b12323c 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 @@ import org.openapitools.client.JSON; 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 class Pet implements Parcelable { 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 class Pet implements Parcelable { 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 class Pet implements Parcelable { 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 class Pet implements Parcelable { 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 class Pet implements Parcelable { 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 class Pet implements Parcelable { 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 class Pet implements Parcelable { 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 1526a63e6c1..9dad0b3ebc4 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 @@ import org.openapitools.client.JSON; 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 class ReadOnlyFirst implements Parcelable { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { this.baz = baz; return this; } @@ -95,7 +97,7 @@ public class ReadOnlyFirst implements Parcelable { 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 223dfbaf63e..d33e808147a 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 @@ import org.openapitools.client.JSON; 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 class SpecialModelName implements Parcelable { 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 9758219a215..af792f48e97 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 @@ import org.openapitools.client.JSON; 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 class Tag implements Parcelable { 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 class Tag implements Parcelable { 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 e6c977d577a..a75a03f36cb 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 @@ import org.openapitools.client.JSON; 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 class TypeHolderDefault implements Parcelable { 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 class TypeHolderDefault implements Parcelable { 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 class TypeHolderDefault implements Parcelable { 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 class TypeHolderDefault implements Parcelable { 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 class TypeHolderDefault implements Parcelable { 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 b85c7eda670..71e4368bfc0 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 @@ import org.openapitools.client.JSON; 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 class TypeHolderExample implements Parcelable { 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 class TypeHolderExample implements Parcelable { 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 class TypeHolderExample implements Parcelable { 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 class TypeHolderExample implements Parcelable { 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 class TypeHolderExample implements Parcelable { 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 class TypeHolderExample implements Parcelable { 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 19bd241a556..b7c5c323b83 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 @@ import org.openapitools.client.JSON; 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 class User implements Parcelable { 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 class User implements Parcelable { 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 class User implements Parcelable { 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 class User implements Parcelable { 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 class User implements Parcelable { 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 class User implements Parcelable { 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 class User implements Parcelable { 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 class User implements Parcelable { 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 d3f9e7f0c35..0f1f6ceaf11 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 @@ import org.openapitools.client.JSON; 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 class XmlItem implements Parcelable { 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 class XmlItem implements Parcelable { 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 class XmlItem implements Parcelable { 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 class XmlItem implements Parcelable { 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 class XmlItem implements Parcelable { 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 class XmlItem implements Parcelable { 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 class XmlItem implements Parcelable { 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 class XmlItem implements Parcelable { 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 class XmlItem implements Parcelable { 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 class XmlItem implements Parcelable { 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 class XmlItem implements Parcelable { 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 class XmlItem implements Parcelable { 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 class XmlItem implements Parcelable { 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 class XmlItem implements Parcelable { 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 class XmlItem implements Parcelable { 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 class XmlItem implements Parcelable { 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 class XmlItem implements Parcelable { 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 class XmlItem implements Parcelable { 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 class XmlItem implements Parcelable { 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 class XmlItem implements Parcelable { 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 class XmlItem implements Parcelable { 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 class XmlItem implements Parcelable { 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 class XmlItem implements Parcelable { 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 class XmlItem implements Parcelable { 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 class XmlItem implements Parcelable { 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 class XmlItem implements Parcelable { 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 class XmlItem implements Parcelable { 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 class XmlItem implements Parcelable { 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 class XmlItem implements Parcelable { 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 baf8224274d..39b9a8ebaa7 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 @@ import org.openapitools.client.JSON; 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 class Category { 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 class Category { 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 d61139c3c87..dcefda59a0d 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 @@ import org.openapitools.client.JSON; 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 class ModelApiResponse { 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 class ModelApiResponse { 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 class ModelApiResponse { 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 0b3a5cbd4bd..3ea19019893 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 @@ import org.openapitools.client.JSON; 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 class Order { 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 class Order { 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 class Order { 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 class Order { 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 class Order { 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 class Order { 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 class Order { 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 f0214f579f9..7dd5ffad472 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 @@ import org.openapitools.client.JSON; 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 class Pet { 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 class Pet { 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 class Pet { 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 class Pet { 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 class Pet { 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 class Pet { 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 class Pet { } @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 bb1ba5a974c..8f5257f9eee 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 @@ import org.openapitools.client.JSON; 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 class Tag { 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 class Tag { 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 87f5419019a..3ae44ced878 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 @@ import org.openapitools.client.JSON; 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 class User { 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 class User { 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 class User { 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 class User { 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 class User { 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 class User { 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 class User { 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 class User { 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 3f864a2c469..f73e02d0236 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 @@ import org.openapitools.client.JSON; 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 class Category { 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 class Category { 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 11c2591b368..8ace8ccfd72 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 @@ import org.openapitools.client.JSON; 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 class ModelApiResponse { 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 class ModelApiResponse { 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 class ModelApiResponse { 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 cc004e61507..f171e2ee3f4 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 @@ import org.openapitools.client.JSON; 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 class Order { 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 class Order { 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 class Order { 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 class Order { 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 class Order { 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 class Order { 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 class Order { 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 9ecd2fddfab..9b3bba4f629 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 @@ import org.openapitools.client.JSON; 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 class Pet { 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 class Pet { 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 class Pet { 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 class Pet { 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 class Pet { 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 class Pet { 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 class Pet { } @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 8cdaf3a1309..1ab4fb7fe65 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 @@ import org.openapitools.client.JSON; 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 class Tag { 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 class Tag { 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 d3044248c6b..622d71015ec 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 @@ import org.openapitools.client.JSON; 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 class User { 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 class User { 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 class User { 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 class User { 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 class User { 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 class User { 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 class User { 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 class User { 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 0480ce099b8..16593bdd415 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 @@ import org.openapitools.client.JSON; 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 class AdditionalPropertiesClass { 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 class AdditionalPropertiesClass { 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 class AdditionalPropertiesClass { 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 class AdditionalPropertiesClass { 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 class AdditionalPropertiesClass { 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 class AdditionalPropertiesClass { 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 class AdditionalPropertiesClass { 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 class AdditionalPropertiesClass { 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 ddf2d23ce7e..75d05d78b3a 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 @@ import org.openapitools.client.JSON; 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 class AllOfModelArrayAnyOf { 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 class AllOfModelArrayAnyOf { 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 class AllOfModelArrayAnyOf { 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 class AllOfModelArrayAnyOf { 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 2d98b541667..5f756714f75 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 @@ import org.openapitools.client.JSON; 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 class AllOfModelArrayAnyOfAllOfAttributes { 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 061fe813eb0..90333d54c67 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 @@ import org.openapitools.client.JSON; 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 class AllOfModelArrayAnyOfAllOfLinkListColumn1 { 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 33e836d430e..6ca3d6967ed 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 @@ import org.openapitools.client.JSON; 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 class Animal { 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 class Animal { 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 52514b46932..ceefe69ba28 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 @@ import org.openapitools.client.JSON; 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 class Apple { 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 class Apple { 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 aa5dcdef568..c068fbff782 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 @@ import org.openapitools.client.JSON; 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 class AppleReq { 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 class AppleReq { 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 7281c87f4a7..8d41d7a7341 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 @@ import org.openapitools.client.JSON; 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 class ArrayDefault { 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 class ArrayDefault { 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 af793b8839f..8a3fb4ab0d1 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 @@ import org.openapitools.client.JSON; 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 class ArrayOfArrayOfNumberOnly { 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 b3eb934f9b9..aa3479b1f4f 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 @@ import org.openapitools.client.JSON; 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 class ArrayOfInlineAllOf { 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 class ArrayOfInlineAllOf { 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 class ArrayOfInlineAllOf { 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 56ce0157a34..8c8eefd36a2 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 @@ import org.openapitools.client.JSON; 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 class ArrayOfInlineAllOfArrayAllofDogPropertyInner { 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 class ArrayOfInlineAllOfArrayAllofDogPropertyInner { 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 a0ffd321f05..cf21b4ac9a1 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 @@ import org.openapitools.client.JSON; 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 class ArrayOfNumberOnly { 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 f0e32ff0edd..ce61db498af 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 @@ import org.openapitools.client.JSON; 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 class ArrayTest { 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 class ArrayTest { 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 class ArrayTest { 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 5e535ddaa71..e6112ba1347 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 @@ import org.openapitools.client.JSON; 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 class Banana { 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 c9d9c2ee759..32e3759d635 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 @@ import org.openapitools.client.JSON; 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 class BananaReq { 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 class BananaReq { 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 6a479c91571..6ded2877d02 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 @@ import org.openapitools.client.JSON; 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 class BasquePig { 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 dc91991b313..d786023e334 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 @@ import org.openapitools.client.JSON; 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 class Capitalization { 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 class Capitalization { 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 class Capitalization { 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 class Capitalization { 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 class Capitalization { 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 class Capitalization { 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 f80bc854635..7b8ee58288f 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 @@ import org.openapitools.client.JSON; 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 class Cat extends Animal { 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 0096f7fd4d9..69f14ba2ead 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 @@ import org.openapitools.client.JSON; 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 class Category { 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 class Category { 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 a6c033668ec..31fca454186 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 @@ import org.openapitools.client.JSON; 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 class ClassModel { 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 eb5089fb36a..023a7958a7c 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 @@ import org.openapitools.client.JSON; 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 class Client { 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 a20395cd0df..f35c22c0d7d 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 @@ import org.openapitools.client.JSON; 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 class ComplexQuadrilateral { 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 class ComplexQuadrilateral { 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 8dcc0bc149a..f63fe000152 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 @@ import org.openapitools.client.JSON; 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 class DanishPig { 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 f04bc1284a0..f156105af0f 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 @@ import org.openapitools.client.JSON; 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 class DeprecatedObject { 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 b59ff8f72cb..dfef6252229 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 @@ import org.openapitools.client.JSON; 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 class Dog extends Animal { 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 cb6c3629a46..24934ad12e1 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 @@ import org.openapitools.client.JSON; 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 class Drawing { 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 class Drawing { 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 class Drawing { 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 class Drawing { 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 3ea2218995e..80ad1e7b9dd 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 class EnumArrays { 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 class EnumArrays { 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 class EnumArrays { 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 class EnumArrays { 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 0fc23a42a8b..b657538588d 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 class EnumStringDiscriminator { 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 class EnumStringDiscriminator { 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 0013c84df40..b9f647c0006 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 class EnumTest { 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 class EnumTest { 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 class EnumTest { 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 class EnumTest { 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 class EnumTest { 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 class EnumTest { 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 class EnumTest { 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 class EnumTest { 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 class EnumTest { 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 class EnumTest { 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 class EnumTest { 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 class EnumTest { 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 class EnumTest { 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 class EnumTest { 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 b3168117439..c664bb6a4fc 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 @@ import org.openapitools.client.JSON; 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 class EquilateralTriangle { 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 class EquilateralTriangle { 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 15ab51e4fc3..bb107516598 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 @@ import org.openapitools.client.JSON; 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 class FileSchemaTestClass { 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 class FileSchemaTestClass { 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 ec947081f98..718e074ee6e 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 @@ import org.openapitools.client.JSON; 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 class Foo { 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 7afec656042..023db16359a 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 @@ import org.openapitools.client.JSON; 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 class FooGetDefaultResponse { 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 e1c9fe64b7f..6afb7d793d6 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 @@ import org.openapitools.client.JSON; 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 class FormatTest { 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 class FormatTest { 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 class FormatTest { 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 class FormatTest { 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 class FormatTest { 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 class FormatTest { 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 class FormatTest { 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 class FormatTest { 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 class FormatTest { 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 class FormatTest { 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 class FormatTest { 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 class FormatTest { 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 class FormatTest { 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 class FormatTest { 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 class FormatTest { 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 class FormatTest { 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 class FormatTest { 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 91f6e81ee07..d68db860914 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 @@ import org.openapitools.client.JSON; 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 class FreeFormObjectTestClass { 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 class FreeFormObjectTestClass { 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 e7f96ffe9df..4d17b3959f6 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 @@ import org.openapitools.client.JSON; 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 class GrandparentAnimal { 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 f8077c9a003..2ef25e15353 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 @@ import org.openapitools.client.JSON; 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 40f482d71fb..91cd55bc38d 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 @@ import org.openapitools.client.JSON; 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 class HealthCheckResult { 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 6e55481a93c..714fe4a527e 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 @@ import org.openapitools.client.JSON; 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 class IsoscelesTriangle { 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 class IsoscelesTriangle { 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 7bbdebb8f8e..ec9af3d7189 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 @@ import org.openapitools.client.JSON; 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 class MapTest { 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 class MapTest { 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 class MapTest { 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 class MapTest { 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 class MapTest { 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 971aca834d2..524250a90fb 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 @@ import org.openapitools.client.JSON; 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 class MixedPropertiesAndAdditionalPropertiesClass { 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 class MixedPropertiesAndAdditionalPropertiesClass { 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 class MixedPropertiesAndAdditionalPropertiesClass { 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 4ac64719971..9e6f09be30c 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 @@ import org.openapitools.client.JSON; 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 class Model200Response { 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 class Model200Response { 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 5222ce48282..68b75cc06b6 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 @@ import org.openapitools.client.JSON; 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 class ModelApiResponse { 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 class ModelApiResponse { 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 class ModelApiResponse { 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 42ed8449954..6c4d329b1cf 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 @@ import org.openapitools.client.JSON; 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 class ModelFile { 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 353e08c39a3..07c55e9c778 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 @@ import org.openapitools.client.JSON; 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 class ModelList { 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 a63995a6d32..fa671ab3fbd 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 @@ import org.openapitools.client.JSON; 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 class ModelReturn { 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 48983f9d85f..2f0212f35e6 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 @@ import org.openapitools.client.JSON; 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 class ModelWithOneOfAnyOfProperties { 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 class ModelWithOneOfAnyOfProperties { 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 3be5b25610a..b12177c99c6 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 @@ import org.openapitools.client.JSON; 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 class 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 class Name { return name; } - public void setName(Integer name) { + public void setName(@javax.annotation.Nonnull Integer name) { this.name = name; } @@ -108,7 +112,7 @@ public class Name { - public Name property(String property) { + public Name property(@javax.annotation.Nullable String property) { this.property = property; return this; } @@ -122,7 +126,7 @@ public class Name { 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 b35ce16df17..7a9b9f0c077 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 @@ import org.openapitools.client.JSON; 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 class NewPet { 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 class 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 class NewPet { 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 class NewPet { 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 class NewPet { 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 class NewPet { return categoryAllOfRefDescription; } - public void setCategoryAllOfRefDescription(Category categoryAllOfRefDescription) { + public void setCategoryAllOfRefDescription(@javax.annotation.Nullable Category categoryAllOfRefDescription) { this.categoryAllOfRefDescription = categoryAllOfRefDescription; } @@ -242,7 +251,7 @@ public class NewPet { - public NewPet name(String name) { + public NewPet name(@javax.annotation.Nonnull String name) { this.name = name; return this; } @@ -256,12 +265,12 @@ public class NewPet { 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 class NewPet { 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 class NewPet { 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 class NewPet { 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 70c527ad464..8ada9002bc7 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 @@ import org.openapitools.client.JSON; 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 class NewPetCategoryInlineAllof { 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 class NewPetCategoryInlineAllof { 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 class NewPetCategoryInlineAllof { 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 de4eb8fd128..1c8ab1023c7 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 @@ import org.openapitools.client.JSON; 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 class NewPetCategoryInlineAllofAllOfCategoryTag { 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 class NewPetCategoryInlineAllofAllOfCategoryTag { 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 4dc07845aea..6919b6ddf04 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 @@ import org.openapitools.client.JSON; 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 6261a043682..bc4825628c2 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 @@ import org.openapitools.client.JSON; 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 class NumberOnly { 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 fbeb02617cc..eee0aa245b7 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 @@ import org.openapitools.client.JSON; 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 class ObjectWithDeprecatedFields { 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 class ObjectWithDeprecatedFields { } @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 class ObjectWithDeprecatedFields { } @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 class ObjectWithDeprecatedFields { } @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 323bc84bc57..46ebb52916b 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 @@ import org.openapitools.client.JSON; 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 class Order { 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 class Order { 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 class Order { 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 class Order { 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 class Order { 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 class Order { 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 class Order { 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 7f7ceb54e63..f65ff6cfd3e 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 @@ import org.openapitools.client.JSON; 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 class OuterComposite { 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 class OuterComposite { 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 class OuterComposite { 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 365c119ed73..c6054b244c4 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 @@ import org.openapitools.client.JSON; 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 class Pet { 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 class Pet { 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 class Pet { 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 class Pet { 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 class Pet { 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 class Pet { 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 class Pet { 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 939f81c08d2..912e6401aab 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 @@ import org.openapitools.client.JSON; 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 class PetComposition { 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 class PetComposition { 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 class PetComposition { 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 class PetComposition { 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 class PetComposition { 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 class PetComposition { 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 class PetComposition { 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 3f353264585..d8a430f7459 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 @@ import org.openapitools.client.JSON; 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 class PetRef { 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 class PetRef { 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 class PetRef { 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 class PetRef { 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 class PetRef { 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 class PetRef { 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 class PetRef { 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 934b924c9bb..348ad5d696a 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 @@ import org.openapitools.client.JSON; 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 class PetUsingAllOf { 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 class PetUsingAllOf { 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 class PetUsingAllOf { 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 class PetUsingAllOf { 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 class PetUsingAllOf { 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 class PetUsingAllOf { 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 class PetUsingAllOf { 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 39f89843011..bf6927f72ef 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 @@ import org.openapitools.client.JSON; 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 class PetWithRequiredTags { 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 class PetWithRequiredTags { 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 class PetWithRequiredTags { 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 class PetWithRequiredTags { 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 class PetWithRequiredTags { 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 class PetWithRequiredTags { 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 class PetWithRequiredTags { 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 d714571b29c..4496c78d8f2 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 @@ import org.openapitools.client.JSON; 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 class PropertyNameCollision { 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 class PropertyNameCollision { 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 class PropertyNameCollision { 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 36bc86b1901..d22dea43eec 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 @@ import org.openapitools.client.JSON; 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 class QuadrilateralInterface { 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 2ec8cfe6680..7cd589a822e 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 @@ import org.openapitools.client.JSON; 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 class ReadOnlyFirst { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { this.baz = baz; return this; } @@ -93,7 +95,7 @@ public class ReadOnlyFirst { 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 ffd3c07c601..ffa101f26d5 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 @@ import org.openapitools.client.JSON; 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 class ScaleneTriangle { 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 class ScaleneTriangle { 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 1d1dcae9e0d..749c94428e4 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 @@ import org.openapitools.client.JSON; 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 class ShapeInterface { 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 b35b0eb3e3f..dc3ce5d8241 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 @@ import org.openapitools.client.JSON; 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 class SimpleQuadrilateral { 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 class SimpleQuadrilateral { 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 661ea1ce049..4470a5d725b 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 @@ import org.openapitools.client.JSON; 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 class 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 class SpecialModelName { 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 01e76fdf651..9f73911be66 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 @@ import org.openapitools.client.JSON; 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 class Tag { 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 class Tag { 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 5f437b62c89..f48d068d6d3 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 @@ import org.openapitools.client.JSON; 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 class TestInlineFreeformAdditionalPropertiesRequest { 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 949472c76d4..eee6e0dbe6e 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 @@ import org.openapitools.client.JSON; 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 class TriangleInterface { 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 17abbbcdde0..0015c82e90c 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 @@ import org.openapitools.client.JSON; 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 class User { 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 class User { 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 class User { 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 class User { 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 class User { 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 class User { 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 class User { 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 class User { 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 class User { 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 class User { 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 class User { 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 class User { 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 f75047b45e8..98dadc424e9 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 @@ import org.openapitools.client.JSON; 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 class Variable { 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 class Variable { 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 b283937f4af..109906d5a01 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 @@ import org.openapitools.client.JSON; 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 class Whale { 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 class Whale { 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 class Whale { 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 06476c516f9..f3dfb5aad2c 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 class Zebra { 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 class Zebra { 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 class Zebra { 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 154c27ed54e..39248c921d2 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 @@ import org.hibernate.validator.constraints.*; @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 class AdditionalPropertiesAnyType extends HashMap { @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 460e9ebabc1..0aaeb44f790 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 @@ import org.hibernate.validator.constraints.*; @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 class AdditionalPropertiesArray extends HashMap { @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 ca5af15ce4b..900b396ef85 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 @@ import org.hibernate.validator.constraints.*; @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 class AdditionalPropertiesBoolean extends HashMap { @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 27a2e3bf17c..f6b0dd80cf5 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 @@ import org.hibernate.validator.constraints.*; @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 eb9be8aa811..9d30692cc4b 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 @@ import org.hibernate.validator.constraints.*; @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 class AdditionalPropertiesInteger extends HashMap { @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 b97ddbf48b1..abd01ad623d 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 @@ import org.hibernate.validator.constraints.*; @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 class AdditionalPropertiesNumber extends HashMap { @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 7b91a466988..6be4637ed18 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 @@ import org.hibernate.validator.constraints.*; @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 class AdditionalPropertiesObject extends HashMap { @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 ce776df3c99..74ceb8d006a 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 @@ import org.hibernate.validator.constraints.*; @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 class AdditionalPropertiesString extends HashMap { @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 fda31e881c5..24e8e93396e 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 @@ import org.hibernate.validator.constraints.*; 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 class Animal { @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 class Animal { @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 46b2dc83a88..127a00e3573 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 @@ import org.hibernate.validator.constraints.*; @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 class ArrayOfArrayOfNumberOnly { @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 208b8d2fabc..757c7a12f59 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 @@ import org.hibernate.validator.constraints.*; @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 class ArrayOfNumberOnly { @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 f076f22adac..a8af5f2a6b0 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 @@ import org.hibernate.validator.constraints.*; @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 class ArrayTest { @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 class ArrayTest { @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 class ArrayTest { @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 dd518e39548..d6944e01757 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 class BigCat extends Cat { } 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 class BigCat extends Cat { @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 ade7b1ffa37..1305b9c1852 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 @@ import org.hibernate.validator.constraints.*; @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 eb2523a358c..aa6610f6f6c 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 @@ import org.hibernate.validator.constraints.*; 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 class Cat extends Animal { @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 17b2e605d3c..4fb7afd7ccd 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 @@ import org.hibernate.validator.constraints.*; @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 class Category { @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 class Category { @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 7840c0de1f3..a57c0106883 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 @@ import org.hibernate.validator.constraints.*; @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 class ClassModel { @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 6b5a1086fb6..74b7ac8cac0 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 @@ import org.hibernate.validator.constraints.*; @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 class Client { @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 863441969b6..33045cfca43 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 @@ import org.hibernate.validator.constraints.*; 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 class Dog extends Animal { @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 84d4daeef28..01f0cfcf0eb 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 class EnumArrays { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** @@ -112,12 +113,13 @@ public class EnumArrays { } 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 class EnumArrays { @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 class EnumArrays { @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 350addeaaad..6fd258985d5 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 class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; + @javax.annotation.Nullable private EnumStringEnum enumString; /** @@ -118,6 +119,7 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** @@ -156,6 +158,7 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** @@ -194,15 +197,17 @@ public class EnumTest { } 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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 e14db09883c..e6f15d47f55 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 @@ import org.hibernate.validator.constraints.*; @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 class FileSchemaTestClass { @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 class FileSchemaTestClass { @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 81a8bb5812a..3abea3128f9 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 @@ import org.hibernate.validator.constraints.*; @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 11be4646012..49078b74788 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 @@ import org.hibernate.validator.constraints.*; @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 699cefe023a..a76e9693b26 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 @@ import org.hibernate.validator.constraints.*; @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 class MapTest { } 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 class MapTest { @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 class MapTest { @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 class MapTest { @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 class MapTest { @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 a24e86315b3..95418f67677 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 @@ import org.hibernate.validator.constraints.*; @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 cf9d1f3296b..879df59546a 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 @@ import org.hibernate.validator.constraints.*; @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 class Model200Response { @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 class Model200Response { @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 f644b2433b2..886fa70c0c1 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 @@ import org.hibernate.validator.constraints.*; @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 class ModelApiResponse { @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 class ModelApiResponse { @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 class ModelApiResponse { @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 63301e0d496..aca3044c7b8 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 @@ import org.hibernate.validator.constraints.*; @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 class ModelFile { @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 2cb1981f92d..4328a5cb838 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 @@ import org.hibernate.validator.constraints.*; @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 class ModelList { @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 c2714e47ee5..d55b6c92ba0 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 @@ import org.hibernate.validator.constraints.*; @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 class ModelReturn { @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 5ed1266b0b2..e0f72a2670e 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 @@ import org.hibernate.validator.constraints.*; @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 class 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 class Name { @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 class Name { - public Name property(String property) { + public Name property(@javax.annotation.Nullable String property) { this.property = property; return this; @@ -128,7 +132,7 @@ public class Name { @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 ebd91a2c36d..02a77010ae4 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 @@ import org.hibernate.validator.constraints.*; @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 class NumberOnly { @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 a189ec53ddd..00afa5dcb2f 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 @@ import org.hibernate.validator.constraints.*; @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 class Order { } 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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 aa700f0acf7..468b4eddb3c 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 @@ import org.hibernate.validator.constraints.*; @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 class OuterComposite { @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 class OuterComposite { @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 class OuterComposite { @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 eaebc52d510..dfaed337a31 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 @@ import org.hibernate.validator.constraints.*; @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 class Pet { } 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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 23c5bca26b6..0efdf4e2155 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 @@ import org.hibernate.validator.constraints.*; @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 class ReadOnlyFirst { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { this.baz = baz; return this; @@ -91,7 +93,7 @@ public class ReadOnlyFirst { @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 6f9d17e9b0c..840b67b99e1 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 @@ import org.hibernate.validator.constraints.*; @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 class 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 45aa64fbcc2..8b927ba4e28 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 @@ import org.hibernate.validator.constraints.*; @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 class Tag { @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 class Tag { @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 94d35fa3bce..5573e2a35c3 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 @@ import org.hibernate.validator.constraints.*; @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 class TypeHolderDefault { @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 class TypeHolderDefault { @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 class TypeHolderDefault { @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 class TypeHolderDefault { @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 class TypeHolderDefault { @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 09bc5d00631..59748c90823 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 @@ import org.hibernate.validator.constraints.*; @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 class TypeHolderExample { @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 class TypeHolderExample { @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 class TypeHolderExample { @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 class TypeHolderExample { @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 class TypeHolderExample { @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 class TypeHolderExample { @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 f581ae65f57..97c4b4a2fc4 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 @@ import org.hibernate.validator.constraints.*; @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 c22d1da8a2a..b3bcc4c5f84 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 @@ import org.hibernate.validator.constraints.*; @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 e6b93f12f37..37b6a39f460 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 @@ import org.hibernate.validator.constraints.*; 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 class AdditionalPropertiesAnyType extends HashMap { } - 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 bac098ab6d0..84d8818e3b2 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 @@ import org.hibernate.validator.constraints.*; 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 class AdditionalPropertiesArray extends HashMap { } - 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 ea1309c2731..e2f9e5a8ecc 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 @@ import org.hibernate.validator.constraints.*; 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 class AdditionalPropertiesBoolean extends HashMap { } - 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 c6956f766ce..1cc6ca8a441 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 @@ import org.hibernate.validator.constraints.*; 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 class AdditionalPropertiesClass { } - 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 class AdditionalPropertiesClass { } - 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 class AdditionalPropertiesClass { } - 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 class AdditionalPropertiesClass { } - 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 class AdditionalPropertiesClass { } - 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 class AdditionalPropertiesClass { } - 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 class AdditionalPropertiesClass { } - 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 class AdditionalPropertiesClass { } - 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 class AdditionalPropertiesClass { } - 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 class AdditionalPropertiesClass { } - 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 class AdditionalPropertiesClass { } - 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 0e3aa9e6cc2..5c4c3b03704 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 @@ import org.hibernate.validator.constraints.*; 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 class AdditionalPropertiesInteger extends HashMap { } - 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 cfee42a8166..577cb1a09dc 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 @@ import org.hibernate.validator.constraints.*; 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 class AdditionalPropertiesNumber extends HashMap { } - 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 aa18f49d50e..ed885439f69 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 @@ import org.hibernate.validator.constraints.*; 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 class AdditionalPropertiesObject extends HashMap { } - 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 cde65307ef5..2a117baa7b9 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 @@ import org.hibernate.validator.constraints.*; 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 class AdditionalPropertiesString extends HashMap { } - 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 ba574caff59..0ed8747d60d 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 @@ import org.hibernate.validator.constraints.*; 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 class Animal { } - 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 class Animal { } - 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 0d244663eb4..e46afca9c35 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 @@ import org.hibernate.validator.constraints.*; 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 class ArrayOfArrayOfNumberOnly { } - 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 be016aa386e..68b9ca6b546 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 @@ import org.hibernate.validator.constraints.*; 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 class ArrayOfNumberOnly { } - 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 a4a3861adf6..ac359c0a0da 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 @@ import org.hibernate.validator.constraints.*; 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 class ArrayTest { } - 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 class ArrayTest { } - 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 class ArrayTest { } - 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 3a1a711212a..fdc798846bb 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 class BigCat extends Cat { 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 class BigCat extends Cat { } - 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 4a93a48f601..1a207cec613 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 @@ import org.hibernate.validator.constraints.*; 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 class Capitalization { } - 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 class Capitalization { } - 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 class Capitalization { } - 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 class Capitalization { } - 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 class Capitalization { } - 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 class Capitalization { } - 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 2575a398dea..1edc97a7c5a 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 @@ import org.hibernate.validator.constraints.*; 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 class Cat extends Animal { } - 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 c97f5f9ce0e..84f0e1a3aed 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 @@ import org.hibernate.validator.constraints.*; 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 class Category { } - 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 class Category { } - 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 e368e3ed821..ca882ededc3 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 @@ import org.hibernate.validator.constraints.*; 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 class ClassModel { } - 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 551da12bd5f..76bd3f849c5 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 @@ import org.hibernate.validator.constraints.*; 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 class Client { } - 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 0d111b81c9c..2c927a13e68 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 @@ import org.hibernate.validator.constraints.*; 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 class Dog extends Animal { } - 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 972043c9e66..64aa1b2e169 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 class EnumArrays { 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 class EnumArrays { 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 class EnumArrays { } - 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 class EnumArrays { } - 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 b500657eb76..73f12308c80 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 class EnumTest { 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 class EnumTest { 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 class EnumTest { 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 class EnumTest { 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 class EnumTest { } - 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 class EnumTest { } - 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 class EnumTest { } - 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 class EnumTest { } - 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 class EnumTest { } - 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 34944308fbc..d73cc3b08df 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 @@ import org.hibernate.validator.constraints.*; 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 class FileSchemaTestClass { } - 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 class FileSchemaTestClass { } - 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 4a090fec148..0232813a8e2 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 @@ import org.hibernate.validator.constraints.*; 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 class FormatTest { } - 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 class FormatTest { } - 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 class FormatTest { } - 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 class FormatTest { } - 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 class FormatTest { } - 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 class FormatTest { } - 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 class FormatTest { } - 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 class FormatTest { } - 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 class FormatTest { } - 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 class FormatTest { } - 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 class FormatTest { } - 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 class FormatTest { } - 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 class FormatTest { } - 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 class FormatTest { } - 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 4763fe6dc30..0279aca7c87 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 @@ import org.hibernate.validator.constraints.*; 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 c18e8a0d2eb..24f6549924b 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 @@ import org.hibernate.validator.constraints.*; 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 class MapTest { 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 class MapTest { } - 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 class MapTest { } - 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 class MapTest { } - 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 class MapTest { } - 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 11189366626..b0587289c9d 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 @@ import org.hibernate.validator.constraints.*; 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 class MixedPropertiesAndAdditionalPropertiesClass { } - 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 class MixedPropertiesAndAdditionalPropertiesClass { } - 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 class MixedPropertiesAndAdditionalPropertiesClass { } - 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 79bc2d6f072..57b82e3e59f 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 @@ import org.hibernate.validator.constraints.*; 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 class Model200Response { } - 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 class Model200Response { } - 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 826e8f26f7c..041eebf8202 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 @@ import org.hibernate.validator.constraints.*; 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 class ModelApiResponse { } - 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 class ModelApiResponse { } - 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 class ModelApiResponse { } - 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 c7e006478bb..b3caf101d91 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 @@ import org.hibernate.validator.constraints.*; 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 class ModelFile { } - 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 9cdc9dce637..bc447936f22 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 @@ import org.hibernate.validator.constraints.*; 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 class ModelList { } - 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 adeba52de64..5ef3a698141 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 @@ import org.hibernate.validator.constraints.*; 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 class ModelReturn { } - 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 5ba5dc13677..114a9245e21 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 @@ import org.hibernate.validator.constraints.*; 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 class 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 class Name { } - public void setName(Integer name) { + public void setName(@javax.annotation.Nonnull Integer name) { this.name = name; } @@ -97,7 +101,7 @@ public class Name { - public Name property(String property) { + public Name property(@javax.annotation.Nullable String property) { this.property = property; return this; @@ -115,7 +119,7 @@ public class Name { } - 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 36bc9f73466..961e7797c77 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 @@ import org.hibernate.validator.constraints.*; 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 class NumberOnly { } - 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 50237b77850..02e8cf1a431 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 @@ import org.hibernate.validator.constraints.*; 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 class Order { 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 class Order { } - 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 class Order { } - 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 class Order { } - 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 class Order { } - 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 class Order { } - 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 class Order { } - 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 da02903e219..13e101cd839 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 @@ import org.hibernate.validator.constraints.*; 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 class OuterComposite { } - 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 class OuterComposite { } - 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 class OuterComposite { } - 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 c8fe5c9aea2..fc096a09f4b 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 @@ import org.hibernate.validator.constraints.*; 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 class Pet { 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 class Pet { } - 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 class Pet { } - 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 class Pet { } - 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 class Pet { } - 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 class Pet { } - 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 class Pet { } - 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 631f9dc30bd..3cb220d55ad 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 @@ import org.hibernate.validator.constraints.*; 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 class ReadOnlyFirst { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { this.baz = baz; return this; @@ -82,7 +84,7 @@ public class ReadOnlyFirst { } - 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 570b335f5c3..aebe355c58c 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 @@ import org.hibernate.validator.constraints.*; 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 class 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 9761f2d714b..24c72201a86 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 @@ import org.hibernate.validator.constraints.*; 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 class Tag { } - 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 class Tag { } - 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 0f4f5d63dc5..aea18b10cbd 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 @@ import org.hibernate.validator.constraints.*; 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 class TypeHolderDefault { } - 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 class TypeHolderDefault { } - 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 class TypeHolderDefault { } - 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 class TypeHolderDefault { } - 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 class TypeHolderDefault { } - 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 9bc66399c73..d4b4654cd38 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 @@ import org.hibernate.validator.constraints.*; 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 class TypeHolderExample { } - 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 class TypeHolderExample { } - 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 class TypeHolderExample { } - 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 class TypeHolderExample { } - 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 class TypeHolderExample { } - 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 class TypeHolderExample { } - 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 84fee6d7551..18ab177e9df 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 @@ import org.hibernate.validator.constraints.*; 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 class User { } - 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 class User { } - 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 class User { } - 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 class User { } - 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 class User { } - 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 class User { } - 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 class User { } - 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 class User { } - 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 87119610e67..36b195673fe 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 @@ import org.hibernate.validator.constraints.*; 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 df399224577..f071fdbca84 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ByteArrayObject { 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 class ByteArrayObject { @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 class ByteArrayObject { 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 class ByteArrayObject { @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 class ByteArrayObject { @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 910ef5a3da1..4c1fb1ab1b6 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 c2b7df08a8e..7e2402198df 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class AllOfWithSingleRef { @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 class AllOfWithSingleRef { @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 5d0e2799ccb..dc52954efbe 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; 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 class Animal { @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 class Animal { @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 20019f9d640..640cda17255 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ArrayOfArrayOfNumberOnly { @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 39d530f3bea..9d09a152b21 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ArrayOfNumberOnly { @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 764fd2892d8..b5ae4339224 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ArrayTest { @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 class ArrayTest { @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 class ArrayTest { @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 62594af41e5..991900b765b 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 cf0c6e420e2..b2e630bd70f 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; 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 class Cat extends Animal { @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 b635bdae746..2b89e433892 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Category { @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 class Category { @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 96a0d5d6d82..95fc52d321c 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; 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 class ChildWithNullable extends ParentWithNullable { @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 3ee4b111b28..35a270b6894 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ClassModel { @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 d2d8f238f45..cdfb6eefa0f 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Client { @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 ae1310e533d..bdebab9d14e 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class DeprecatedObject { @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 93c21f5e3b1..9e2dd021ac6 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; 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 class Dog extends Animal { @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 015f0793f2c..c3d617bc111 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 class EnumArrays { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; + @jakarta.annotation.Nullable private JustSymbolEnum justSymbol; /** @@ -110,12 +111,13 @@ public class EnumArrays { } 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 class EnumArrays { @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 class EnumArrays { @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 53d35b1f785..d565f82e567 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 class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; + @jakarta.annotation.Nullable private EnumStringEnum enumString; /** @@ -126,6 +127,7 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; + @jakarta.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** @@ -164,6 +166,7 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; + @jakarta.annotation.Nullable private EnumIntegerEnum enumInteger; /** @@ -202,24 +205,29 @@ public class EnumTest { } 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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 class EnumTest { 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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 a0b27aa3dc0..90903a4d61b 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class FakeBigDecimalMap200Response { @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 class FakeBigDecimalMap200Response { @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 e8126cb6a6c..f91f7d58a1b 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class FileSchemaTestClass { @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 class FileSchemaTestClass { @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 b62529012f0..863ac0111b5 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Foo { @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 3159f8fce1f..8aa4e8aa359 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class FooGetDefaultResponse { @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 db01bb2520a..a085258040b 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 9c6ffd3264a..db5d99ca5dd 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 118c8e5f405..571d9a8b3a8 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class HealthCheckResult { 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 2b025d331d4..554a7e10901 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class MapTest { } 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 class MapTest { @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 class MapTest { @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 class MapTest { @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 class MapTest { @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 5b95cf4a1c6..89b492db8af 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 b791483db45..a6fb8e38098 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Model200Response { @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 class Model200Response { @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 18874b41891..6d36a8519b9 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ModelApiResponse { @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 class ModelApiResponse { @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 class ModelApiResponse { @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 7c2db5efb4b..206203c91c7 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ModelFile { @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 c4ce96dc2c5..2c5493f624e 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ModelList { @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 9b3089df080..f13befb3bb8 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ModelReturn { @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 4b553d5892a..f0e0fb1d7bb 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class 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 class Name { @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 class Name { - public Name property(String property) { + public Name property(@jakarta.annotation.Nullable String property) { this.property = property; return this; @@ -126,7 +130,7 @@ public class Name { @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 6a054c16a65..b7b6a900a84 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { @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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { this.objectAndItemsNullableProp = objectAndItemsNullableProp; } - public void setObjectAndItemsNullableProp(Map 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 class NullableClass extends HashMap { @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 6a74ca96deb..e36be12cc0c 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class NumberOnly { @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 1cf4fb9b458..6f35b9d36fe 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 cb31f00aecb..cc8a1f2d574 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Order { } 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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 6d6d8eb5616..3a98ce5e1fe 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class OuterComposite { @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 class OuterComposite { @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 class OuterComposite { @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 92383236325..62978ed5dca 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class OuterObjectWithEnumProperty { @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 413f04ad3d1..c0987dfd8a2 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 class ParentWithNullable { } 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 class ParentWithNullable { @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 class ParentWithNullable { 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 2002352d296..1f4e14d32ee 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Pet { } 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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 48dc0ce7488..ee2d408d145 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ReadOnlyFirst { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@jakarta.annotation.Nullable String baz) { this.baz = baz; return this; @@ -89,7 +91,7 @@ public class ReadOnlyFirst { @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 8a5e215629b..63db3d16aa6 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class 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 e970d8cab86..fb1b8f4a02e 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Tag { @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 class Tag { @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 c21fcbe9625..ccdff99571e 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class TestInlineFreeformAdditionalPropertiesRequest extends HashMap 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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 553c86b8c67..fbf8d61fa17 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class AllOfWithSingleRef { @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 class AllOfWithSingleRef { @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 7723bbd0b3e..86cc58eb17b 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; 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 class Animal { @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 class Animal { @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 7a324c2d64a..87cea9ecb8d 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ArrayOfArrayOfNumberOnly { @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 2db544721c9..ddac35e167a 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ArrayOfNumberOnly { @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 eefee53145b..69f13d66946 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ArrayTest { @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 class ArrayTest { @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 class ArrayTest { @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 4532d7e6e98..4527c5efd07 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 0d124c2efa1..73f8201c2c7 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; 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 class Cat extends Animal { @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 45150aed846..c87cc6d9d03 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Category { @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 class Category { @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 dc0ab1108bf..55e6ce12678 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; 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 class ChildWithNullable extends ParentWithNullable { @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 50ab7257d81..cc5edb0ddf1 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ClassModel { @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 462dc166cbb..7b7843af208 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Client { @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 d051f58bdfb..da99cf34032 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class DeprecatedObject { @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 8db2e461f85..6a11ad89d6f 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; 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 class Dog extends Animal { @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 5854a5e7e1f..3e2e0802583 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 class EnumArrays { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; + @jakarta.annotation.Nullable private JustSymbolEnum justSymbol; /** @@ -109,12 +110,13 @@ public class EnumArrays { } 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 class EnumArrays { @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 class EnumArrays { @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 36ac6c705c6..f9347fc97f5 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 class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; + @jakarta.annotation.Nullable private EnumStringEnum enumString; /** @@ -125,6 +126,7 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; + @jakarta.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** @@ -163,6 +165,7 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; + @jakarta.annotation.Nullable private EnumIntegerEnum enumInteger; /** @@ -201,24 +204,29 @@ public class EnumTest { } 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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 class EnumTest { 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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 e0f8858870d..e9edabdcfab 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class FakeBigDecimalMap200Response { @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 class FakeBigDecimalMap200Response { @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 f3ecd1b8d45..d1b7648e7be 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class FileSchemaTestClass { @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 class FileSchemaTestClass { @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 d4ae08190d1..e673cf96824 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Foo { @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 f68474edecd..6c72b31783b 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class FooGetDefaultResponse { @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 58cfa9edade..818b19b86bd 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 18e5c0c3120..7fcd7679b14 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 ed47a852041..e30ee78c1c4 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class HealthCheckResult { 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 130b2f2c72e..f279dad1037 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class MapTest { } 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 class MapTest { @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 class MapTest { @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 class MapTest { @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 class MapTest { @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 dc194d8d675..0eb4099d56e 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 f2623213d53..7d0bfb91707 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Model200Response { @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 class Model200Response { @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 8d4aa0f98fe..dac5d47ec9c 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ModelApiResponse { @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 class ModelApiResponse { @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 class ModelApiResponse { @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 927fde00309..3c99c5d565e 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ModelFile { @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 42636b21cef..54a220f2c63 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ModelList { @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 58804071544..3620721ba40 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ModelReturn { @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 dc4e21d3e69..d80704b7a71 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class 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 class Name { @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 class Name { - public Name property(String property) { + public Name property(@jakarta.annotation.Nullable String property) { this.property = property; return this; @@ -121,7 +125,7 @@ public class Name { @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 27f64e04bdb..04989802ba7 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { @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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { this.objectAndItemsNullableProp = objectAndItemsNullableProp; } - public void setObjectAndItemsNullableProp(Map 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 class NullableClass extends HashMap { @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 d3ab7dbb2fe..3c21f20754c 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class NumberOnly { @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 bc7c49a40c4..2f0d9d3b946 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 dd1d51cce1c..8f4db12e822 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Order { } 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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 709ac97e93a..b2b88b32009 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class OuterComposite { @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 class OuterComposite { @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 class OuterComposite { @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 1002adf36ee..0b5fecce1ce 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class OuterObjectWithEnumProperty { @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 38c70b580a1..78772c7e27c 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 class ParentWithNullable { } 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 class ParentWithNullable { @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 class ParentWithNullable { 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 d00626a0146..893ffedd5f5 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Pet { } 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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 df185785e83..f6d848fa88c 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ReadOnlyFirst { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@jakarta.annotation.Nullable String baz) { this.baz = baz; return this; @@ -86,7 +88,7 @@ public class ReadOnlyFirst { @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 28682f92204..fb9e96a8da6 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class 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 419d5646c3e..f5c4ae0e446 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Tag { @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 class Tag { @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 b898ad17907..58e2d9d3f8e 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class TestInlineFreeformAdditionalPropertiesRequest extends HashMap 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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 553c86b8c67..fbf8d61fa17 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class AllOfWithSingleRef { @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 class AllOfWithSingleRef { @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 7723bbd0b3e..86cc58eb17b 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; 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 class Animal { @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 class Animal { @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 3832ee87835..d003cd28189 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ArrayOfArrayOfNumberOnly { @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 e201106307d..c2d18a06f40 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ArrayOfNumberOnly { @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 b98ac2e7ed2..f96b497bc24 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ArrayTest { @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 class ArrayTest { @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 class ArrayTest { @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 4532d7e6e98..4527c5efd07 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 0d124c2efa1..73f8201c2c7 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; 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 class Cat extends Animal { @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 45150aed846..c87cc6d9d03 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Category { @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 class Category { @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 dc0ab1108bf..55e6ce12678 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; 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 class ChildWithNullable extends ParentWithNullable { @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 50ab7257d81..cc5edb0ddf1 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ClassModel { @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 462dc166cbb..7b7843af208 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Client { @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 d051f58bdfb..da99cf34032 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class DeprecatedObject { @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 8db2e461f85..6a11ad89d6f 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; 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 class Dog extends Animal { @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 fe7b67934c2..eab3ae93381 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 class EnumArrays { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; + @jakarta.annotation.Nullable private JustSymbolEnum justSymbol; /** @@ -109,12 +110,13 @@ public class EnumArrays { } 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 class EnumArrays { @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 class EnumArrays { @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 36ac6c705c6..f9347fc97f5 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 class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; + @jakarta.annotation.Nullable private EnumStringEnum enumString; /** @@ -125,6 +126,7 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; + @jakarta.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** @@ -163,6 +165,7 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; + @jakarta.annotation.Nullable private EnumIntegerEnum enumInteger; /** @@ -201,24 +204,29 @@ public class EnumTest { } 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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 class EnumTest { 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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 c158a72b66d..4b169000a15 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class FakeBigDecimalMap200Response { @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 class FakeBigDecimalMap200Response { @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 c3c8474bc80..d910ae1c5dd 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class FileSchemaTestClass { @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 class FileSchemaTestClass { @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 d4ae08190d1..e673cf96824 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Foo { @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 f68474edecd..6c72b31783b 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class FooGetDefaultResponse { @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 58cfa9edade..818b19b86bd 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 18e5c0c3120..7fcd7679b14 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 ed47a852041..e30ee78c1c4 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class HealthCheckResult { 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 4b1aaeeaebe..2d47dfc83e2 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class MapTest { } 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 class MapTest { @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 class MapTest { @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 class MapTest { @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 class MapTest { @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 0a129c9740d..b7e67c4888e 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 f2623213d53..7d0bfb91707 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Model200Response { @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 class Model200Response { @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 8d4aa0f98fe..dac5d47ec9c 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ModelApiResponse { @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 class ModelApiResponse { @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 class ModelApiResponse { @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 927fde00309..3c99c5d565e 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ModelFile { @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 42636b21cef..54a220f2c63 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ModelList { @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 58804071544..3620721ba40 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ModelReturn { @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 dc4e21d3e69..d80704b7a71 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class 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 class Name { @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 class Name { - public Name property(String property) { + public Name property(@jakarta.annotation.Nullable String property) { this.property = property; return this; @@ -121,7 +125,7 @@ public class Name { @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 6d98a889c59..b5ea57f5061 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { @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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { this.objectAndItemsNullableProp = objectAndItemsNullableProp; } - public void setObjectAndItemsNullableProp(Map 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 class NullableClass extends HashMap { @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 d3ab7dbb2fe..3c21f20754c 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class NumberOnly { @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 1e2fa4ca4fc..7f4dc85f1a0 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 dd1d51cce1c..8f4db12e822 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Order { } 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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 709ac97e93a..b2b88b32009 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class OuterComposite { @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 class OuterComposite { @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 class OuterComposite { @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 1002adf36ee..0b5fecce1ce 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class OuterObjectWithEnumProperty { @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 38c70b580a1..78772c7e27c 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 class ParentWithNullable { } 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 class ParentWithNullable { @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 class ParentWithNullable { 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 45f080fd853..f20bf09a36b 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Pet { } 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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 df185785e83..f6d848fa88c 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ReadOnlyFirst { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@jakarta.annotation.Nullable String baz) { this.baz = baz; return this; @@ -86,7 +88,7 @@ public class ReadOnlyFirst { @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 28682f92204..fb9e96a8da6 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class 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 419d5646c3e..f5c4ae0e446 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Tag { @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 class Tag { @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 b898ad17907..58e2d9d3f8e 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class TestInlineFreeformAdditionalPropertiesRequest extends HashMap 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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 6d7099790f2..5a60fa128dd 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class AllOfWithSingleRef { @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 class AllOfWithSingleRef { @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 2afb3937091..745689d7191 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; 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 class Animal { @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 class Animal { @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 6a77e798068..6f58e325549 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ArrayOfArrayOfNumberOnly { @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 3af92dd1784..f3d46916faa 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ArrayOfNumberOnly { @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 f3dd9149c33..771578abd0a 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ArrayTest { @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 class ArrayTest { @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 class ArrayTest { @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 334b4c17ccd..6cd94422b1c 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 ed573be3fe4..f8705b67de5 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; 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 class Cat extends Animal { @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 f2428c4be41..50b6ff1d6a2 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Category { @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 class Category { @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 92ac78ada81..b436febdcc4 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; 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 class ChildWithNullable extends ParentWithNullable { @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 9887d204018..dbf6964fdad 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ClassModel { @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 645560a2ff3..0be09220e7d 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Client { @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 f567d4de2c5..acdb137161a 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class DeprecatedObject { @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 8599f3b034d..8004beff975 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; 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 class Dog extends Animal { @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 cad068cf3b6..42c505b1189 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 class EnumArrays { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** @@ -109,12 +110,13 @@ public class EnumArrays { } 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 class EnumArrays { @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 class EnumArrays { @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 ffcec49f58d..915ba1b91ce 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 class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; + @javax.annotation.Nullable private EnumStringEnum enumString; /** @@ -125,6 +126,7 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** @@ -163,6 +165,7 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** @@ -201,24 +204,29 @@ public class EnumTest { } 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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 class EnumTest { 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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 ad6b00e77a2..0f3aaeb0af4 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class FakeBigDecimalMap200Response { @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 class FakeBigDecimalMap200Response { @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 dd82dfbf055..6c10cc7d053 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class FileSchemaTestClass { @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 class FileSchemaTestClass { @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 007462a052c..6c446b295f8 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Foo { @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 13dbee6c4a2..395eecaf8b5 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class FooGetDefaultResponse { @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 48e2602997c..bb7fb37b632 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 fc6f4de0083..6dc15593463 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 a8cc7eadd0b..b772672c401 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class HealthCheckResult { 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 166a1d2e8fd..03fcf621421 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class MapTest { } 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 class MapTest { @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 class MapTest { @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 class MapTest { @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 class MapTest { @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 fd5fce68617..27b5ebbd852 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 1b121986dae..0b83c601140 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Model200Response { @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 class Model200Response { @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 32981db50c5..0938a865de4 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ModelApiResponse { @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 class ModelApiResponse { @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 class ModelApiResponse { @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 e14c2b78f74..73f5779de22 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ModelFile { @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 13e89d73aa3..f8d50bc1762 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ModelList { @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 47b82483f27..314794ba50b 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ModelReturn { @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 e75ec4b62c4..4789044c853 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class 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 class Name { @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 class Name { - public Name property(String property) { + public Name property(@javax.annotation.Nullable String property) { this.property = property; return this; @@ -121,7 +125,7 @@ public class Name { @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 d510152c6ef..bb516d7739d 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { @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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { this.objectAndItemsNullableProp = objectAndItemsNullableProp; } - public void setObjectAndItemsNullableProp(Map 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 class NullableClass extends HashMap { @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 37dd5cf7be0..341017c96d2 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class NumberOnly { @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 79b51c10799..c6a3cc14fad 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 59ef01bcb36..0136b2dcc83 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Order { } 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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 200337e0603..c9b0b884ef2 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class OuterComposite { @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 class OuterComposite { @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 class OuterComposite { @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 4314007ec56..88cf19fe07a 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class OuterObjectWithEnumProperty { @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 b08e28c101b..b97f28bbcfd 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 class ParentWithNullable { } 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 class ParentWithNullable { @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 class ParentWithNullable { 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 2ddb87f6a01..8cfe9533fe1 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Pet { } 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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 ce488cfee9f..e0e1e8bb4bb 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ReadOnlyFirst { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { this.baz = baz; return this; @@ -86,7 +88,7 @@ public class ReadOnlyFirst { @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 12d15d92650..8d7cee19879 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class 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 93bc8a4ebe1..ebcb558efe5 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Tag { @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 class Tag { @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 8524bfaed6b..89584fa7c93 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class TestInlineFreeformAdditionalPropertiesRequest extends HashMap photoUrls = new ArrayList<>(); public static final String JSON_PROPERTY_TAGS = "tags"; + @jakarta.annotation.Nullable private List tags = new ArrayList<>(); /** @@ -94,6 +99,7 @@ public class Pet { } public static final String JSON_PROPERTY_STATUS = "status"; + @jakarta.annotation.Nullable private StatusEnum status; public Pet() { @@ -111,7 +117,7 @@ public class Pet { 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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 96d08704246..13d5e6c28f6 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Tag { 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 class Tag { @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 class Tag { @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 dbe5cee986f..f81fbc6d277 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class User { 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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 79f2513e107..c9126e5c009 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Category { @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 class Category { @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 7ca678232b9..f1fdad96123 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ModelApiResponse { @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 class ModelApiResponse { @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 class ModelApiResponse { @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 d8f63e772ce..ce6c7f5343a 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Order { } 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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 84b613c9031..2e82ad5c0e7 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Pet { } 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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 e22ab68285c..d73de854276 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Tag { @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 class Tag { @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 b5e61d1c746..432b127fca3 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 715726f7f29..14dca1cd360 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Category { @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 class Category { @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 b26baa7536b..7026940729f 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ModelApiResponse { @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 class ModelApiResponse { @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 class ModelApiResponse { @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 25803cc2736..2e50954e68d 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Order { } 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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 bba657efb0e..a7c3f1ed405 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Pet { } 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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 017fcc0c4e8..205f6cbd7d9 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Tag { @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 class Tag { @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 9e471a14866..866fea13490 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 dadb888d270..a25fa0629ea 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 @@ import io.github.threetenjaxb.core.*; 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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 c5fac5e8e2e..337564b48ea 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 @@ import io.github.threetenjaxb.core.*; 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 class AllOfWithSingleRef { @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 class AllOfWithSingleRef { @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 72a0ac2f8e2..e6829787410 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 @@ import io.github.threetenjaxb.core.*; 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 class Animal { @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 class Animal { @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 de9d7042729..f9ceab56f6d 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 @@ import io.github.threetenjaxb.core.*; 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 class ArrayOfArrayOfNumberOnly { @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 0beb61c5889..90c4337bada 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 @@ import io.github.threetenjaxb.core.*; 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 class ArrayOfNumberOnly { @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 d07954afa2f..98e085d3567 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 @@ import io.github.threetenjaxb.core.*; 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 class ArrayTest { @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 class ArrayTest { @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 class ArrayTest { @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 61477e4e171..f0eedaf2524 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 @@ import io.github.threetenjaxb.core.*; 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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 55b79717004..4a2ebd1c97c 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 @@ import io.github.threetenjaxb.core.*; 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 class Cat extends Animal { @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 83ddd1f8b13..48f33123f1b 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 @@ import io.github.threetenjaxb.core.*; 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 class Category { @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 class Category { @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 5b80cd47421..e1f8271d6f6 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 @@ import io.github.threetenjaxb.core.*; 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 class ChildWithNullable extends ParentWithNullable { @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 bb7711d87d3..b36c0fd70fb 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 @@ import io.github.threetenjaxb.core.*; 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 class ClassModel { @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 b7a2bc78335..518cc82f38d 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 @@ import io.github.threetenjaxb.core.*; 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 class Client { @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 a2f6064f289..c7f9052bc7e 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 @@ import io.github.threetenjaxb.core.*; 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 class DeprecatedObject { @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 bef63bbeb37..ce9bc5ca884 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 @@ import io.github.threetenjaxb.core.*; 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 class Dog extends Animal { @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 aa44f664977..43eea73f77f 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 class EnumArrays { 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 class EnumArrays { 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 class EnumArrays { @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 class EnumArrays { @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 65dbb1ad349..f8b65989d0c 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 class EnumTest { 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 class EnumTest { 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 class EnumTest { 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 class EnumTest { 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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 class EnumTest { 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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 bea678e73fe..254bf2205f3 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 @@ import io.github.threetenjaxb.core.*; 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 class FakeBigDecimalMap200Response { @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 class FakeBigDecimalMap200Response { @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 f0e5afce93e..608c5a53e72 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 @@ import io.github.threetenjaxb.core.*; 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 class FileSchemaTestClass { @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 class FileSchemaTestClass { @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 efb149c6689..e2de6c2a8d3 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 @@ import io.github.threetenjaxb.core.*; 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 class Foo { @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 5ca06a47e28..d4a65cfe4ad 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 @@ import io.github.threetenjaxb.core.*; 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 class FooGetDefaultResponse { @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 862a5609717..69198659923 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 @@ import io.github.threetenjaxb.core.*; 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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 40713a0dbec..56626769465 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 @@ import io.github.threetenjaxb.core.*; 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 662a74e34a5..0b70621b93f 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 @@ import io.github.threetenjaxb.core.*; 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 class HealthCheckResult { 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 210b681951b..9bc9610b635 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 @@ import io.github.threetenjaxb.core.*; 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 class MapTest { 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 class MapTest { @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 class MapTest { @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 class MapTest { @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 class MapTest { @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 b3f40b5448a..05adb433f0f 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 @@ import io.github.threetenjaxb.core.*; 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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 e3019d03b0f..0b780b8a190 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 @@ import io.github.threetenjaxb.core.*; 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 class Model200Response { @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 class Model200Response { @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 ea346f57234..381b7013576 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 @@ import io.github.threetenjaxb.core.*; 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 class ModelApiResponse { @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 class ModelApiResponse { @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 class ModelApiResponse { @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 6fb7c7c5709..868af1bf211 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 @@ import io.github.threetenjaxb.core.*; 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 class ModelFile { @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 07a1ac3a0b5..b8f28eda30d 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 @@ import io.github.threetenjaxb.core.*; 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 class ModelList { @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 e9ac1161791..2ffaf8b9330 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 @@ import io.github.threetenjaxb.core.*; 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 class ModelReturn { @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 a688d244b74..5d0af3485a5 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 @@ import io.github.threetenjaxb.core.*; 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 class Name { @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 class Name { - public Name property(String property) { + public Name property(@javax.annotation.Nullable String property) { this.property = property; return this; @@ -125,7 +129,7 @@ public class Name { @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 5468186a7a0..36f56fd6ce7 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 @@ import io.github.threetenjaxb.core.*; 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { @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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { this.objectAndItemsNullableProp = objectAndItemsNullableProp; } - public void setObjectAndItemsNullableProp(Map 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 class NullableClass extends HashMap { @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 23df38a8747..667934e6168 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 @@ import io.github.threetenjaxb.core.*; 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 class NumberOnly { @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 80fc0686b55..0929e2be428 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 @@ import io.github.threetenjaxb.core.*; 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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 d6d3db37224..dd4c2d34986 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 @@ import io.github.threetenjaxb.core.*; 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 class Order { 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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 2e5b7515517..5564530719d 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 @@ import io.github.threetenjaxb.core.*; 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 class OuterComposite { @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 class OuterComposite { @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 class OuterComposite { @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 85eeaafac6e..81a5c5b5415 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 @@ import io.github.threetenjaxb.core.*; 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 class OuterObjectWithEnumProperty { @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 6ed104e1316..c0d87520338 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 class ParentWithNullable { 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 class ParentWithNullable { @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 class ParentWithNullable { 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 6c1a7ac3e8a..ae6f87b76f2 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 @@ import io.github.threetenjaxb.core.*; 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 class Pet { 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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 1c073e4cabb..182ffd7fd0e 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 @@ import io.github.threetenjaxb.core.*; 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 class ReadOnlyFirst { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { this.baz = baz; return this; @@ -88,7 +90,7 @@ public class ReadOnlyFirst { @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 3a74d127754..fd29274e068 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 @@ import io.github.threetenjaxb.core.*; 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 class 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 035bbd82223..57e079ea579 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 @@ import io.github.threetenjaxb.core.*; 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 class Tag { @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 class Tag { @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 041e97c9742..7797b12ece8 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 @@ import io.github.threetenjaxb.core.*; 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 class TestInlineFreeformAdditionalPropertiesRequest extends HashMap 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 class AdditionalPropertiesClass { this.mapOfMapProperty = mapOfMapProperty; } - public AdditionalPropertiesClass mapProperty(Map mapProperty) { + public AdditionalPropertiesClass mapProperty(@javax.annotation.Nullable Map mapProperty) { this.mapProperty = mapProperty; return this; @@ -80,11 +82,11 @@ public class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 4497942f85a..f021b9ac1fe 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class AllOfWithSingleRef { 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 class AllOfWithSingleRef { @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 class AllOfWithSingleRef { @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 1b1c2ee8a19..be3d68394ed 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; 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 class Animal { 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 class Animal { @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 class Animal { @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 234b7ec0fc3..a2e283df81d 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ArrayOfArrayOfNumberOnly { 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 class ArrayOfArrayOfNumberOnly { @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 c0173392668..fb608415f92 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ArrayOfNumberOnly { this.arrayNumber = arrayNumber; } - public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + public ArrayOfNumberOnly arrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; return this; @@ -77,7 +78,7 @@ public class ArrayOfNumberOnly { @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 fb074c5504c..1df676af0c1 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ArrayTest { 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 class ArrayTest { @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 class ArrayTest { @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 class ArrayTest { @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 bc9e550f858..1276877afd6 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Capitalization { 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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 3143e237332..3cf0d6a9341 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; 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 class Cat extends Animal { 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 class Cat extends Animal { @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 123c62f27e9..27c1e9db960 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Category { 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 class Category { @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 class Category { @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 6474b477ffb..9b90067d53f 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; 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 class ChildWithNullable extends ParentWithNullable { 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 class ChildWithNullable extends ParentWithNullable { @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 e15c3d34f2b..c21da6c5ad3 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ClassModel { 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 class ClassModel { @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 f9434091369..bde6845077b 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class 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 class Client { @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 6823e294478..3f8aeaa5fa1 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class DeprecatedObject { 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 class DeprecatedObject { @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 0524d2e44b7..893c2946070 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; 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 class Dog extends Animal { 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 class Dog extends Animal { @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 4cdeffea1e0..34839da447e 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 class EnumArrays { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** @@ -109,6 +110,7 @@ public class EnumArrays { } public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; + @javax.annotation.Nullable private List arrayEnum; public EnumArrays() { @@ -122,7 +124,7 @@ public class EnumArrays { 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 class EnumArrays { @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 class EnumArrays { @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 a9d3a815151..1ae323dee5a 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 class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; + @javax.annotation.Nullable private EnumStringEnum enumString; /** @@ -125,6 +126,7 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** @@ -163,6 +165,7 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** @@ -201,18 +204,23 @@ public class EnumTest { } 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 class EnumTest { 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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 class EnumTest { 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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 1c8f18e3b0d..e87525f9549 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class FakeBigDecimalMap200Response { 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 class FakeBigDecimalMap200Response { @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 class FakeBigDecimalMap200Response { @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 2c2d18f2864..551d58b14aa 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class FileSchemaTestClass { 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 class FileSchemaTestClass { @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 class FileSchemaTestClass { @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 5f5bd7d028a..674fb880f64 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Foo { 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 class Foo { @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 1100abc04f1..944edea0aeb 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class FooGetDefaultResponse { 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 class FooGetDefaultResponse { @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 3be7581dda6..9b629a311cc 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class FormatTest { 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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 e80b8ee8ad0..01441f80c3b 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 f278099134a..a36cead6d17 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class HealthCheckResult { 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 class HealthCheckResult { 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 ce5a79813a8..dc9b7536a7f 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class MapTest { } 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 class MapTest { this.indirectMap = indirectMap; } - public MapTest mapMapOfString(Map> mapMapOfString) { + public MapTest mapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; return this; @@ -125,11 +129,11 @@ public class MapTest { @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 class MapTest { @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 class MapTest { @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 class MapTest { @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 fdd148937f1..69ea559db1d 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class MixedPropertiesAndAdditionalPropertiesClass { 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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 48974cab86d..286cfcc9f68 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Model200Response { 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 class Model200Response { @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 class Model200Response { @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 2f3c28a5363..9ddff62a18e 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ModelApiResponse { 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 class ModelApiResponse { @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 class ModelApiResponse { @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 class ModelApiResponse { @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 14b5569af48..fd8b9086791 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ModelFile { 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 class ModelFile { @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 8ac18dd876a..7168306a424 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ModelList { 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 class ModelList { @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 84e2cb19ff4..e945d4da428 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ModelReturn { 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 class ModelReturn { @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 945272f3610..727f8d366eb 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class 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 class Name { @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 class Name { - public Name property(String property) { + public Name property(@javax.annotation.Nullable String property) { this.property = property; return this; @@ -131,7 +135,7 @@ public class Name { @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 1688a92bf00..db322081dc9 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { @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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { this.objectAndItemsNullableProp = objectAndItemsNullableProp; } - public void setObjectAndItemsNullableProp(Map 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 class NullableClass extends HashMap { @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 bc2de2e01ab..411417ab236 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class NumberOnly { 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 class NumberOnly { @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 edd08ce1532..e37535a862f 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ObjectWithDeprecatedFields { 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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 4ef340f337b..90a58922099 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Order { } 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 class Order { 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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 b060e74716e..6318e7e93e4 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class OuterComposite { 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 class OuterComposite { @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 class OuterComposite { @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 class OuterComposite { @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 b804a13bf31..d9636453010 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class OuterObjectWithEnumProperty { 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 class OuterObjectWithEnumProperty { @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 09a088e10e6..db3e690abb9 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 class ParentWithNullable { } 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 class ParentWithNullable { 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 class ParentWithNullable { @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 class ParentWithNullable { 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 3ed911744db..f49ee675ca4 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Pet { } public static final String JSON_PROPERTY_STATUS = "status"; + @javax.annotation.Nullable private StatusEnum status; public Pet() { @@ -114,7 +120,7 @@ public class Pet { 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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 0742fc28147..15f85b1643f 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ReadOnlyFirst { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { this.baz = baz; return this; @@ -94,7 +96,7 @@ public class ReadOnlyFirst { @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 677b7667066..0019d96d484 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class SpecialModelName { 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 class 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/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 c5b53eb9c03..2c2ad180eae 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Tag { 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 class Tag { @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 class Tag { @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 79179284638..f1ead98c6cd 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class TestInlineFreeformAdditionalPropertiesRequest 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 class AdditionalPropertiesAnyType extends HashMap { @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 26657909704..87f94a2a5eb 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 @@ import jakarta.validation.Valid; @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 class AdditionalPropertiesArray extends HashMap { @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 14825361b70..38ce50595dd 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 @@ import jakarta.validation.Valid; @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 class AdditionalPropertiesBoolean extends HashMap { @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 3b89d553506..f20e91f8baf 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 @@ import jakarta.validation.Valid; @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 534f09efe63..8673916d40c 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 @@ import jakarta.validation.Valid; @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 class AdditionalPropertiesInteger extends HashMap { @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 e9ae1bf0894..3b879e80636 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 @@ import jakarta.validation.Valid; @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 class AdditionalPropertiesNumber extends HashMap { @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 8b0391c7f2b..ed6f748f7e1 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 @@ import jakarta.validation.Valid; @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 class AdditionalPropertiesObject extends HashMap { @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 b7c1ff257c8..ee0a5bc3c00 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 @@ import jakarta.validation.Valid; @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 class AdditionalPropertiesString extends HashMap { @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 c57f37d90ea..72d13d6b579 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 @@ import jakarta.validation.Valid; 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 class Animal { @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 class Animal { @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 7d796469aa6..05021eb5a6e 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 @@ import jakarta.validation.Valid; @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 class ArrayOfArrayOfNumberOnly { @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 443cef57230..89758b2cb4d 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 @@ import jakarta.validation.Valid; @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 class ArrayOfNumberOnly { @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 7c82f3d409c..434fc737672 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 @@ import jakarta.validation.Valid; @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 class ArrayTest { @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 class ArrayTest { @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 class ArrayTest { @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 980bfaa3df6..7b95129fc73 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 class BigCat extends Cat { } 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 class BigCat extends Cat { @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 60359cd9ad9..ebe7fd596ea 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 @@ import jakarta.validation.Valid; @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 4365811994c..abc5716e6ee 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 @@ import jakarta.validation.Valid; 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 class Cat extends Animal { @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 ffcc53ce2ff..10e2f02ac00 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 @@ import jakarta.validation.Valid; @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 class Category { @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 class Category { @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 d2db1262f75..95f5f1fd41c 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 @@ import jakarta.validation.Valid; @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 class ClassModel { @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 3d179537e21..05043f2638b 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 @@ import jakarta.validation.Valid; @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 class Client { @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 92062e30544..3e9f7cb920c 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 @@ import jakarta.validation.Valid; 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 class Dog extends Animal { @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 dd036079464..88a61e20cff 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 class EnumArrays { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; + @jakarta.annotation.Nullable private JustSymbolEnum justSymbol; /** @@ -111,12 +112,13 @@ public class EnumArrays { } 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 class EnumArrays { @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 class EnumArrays { @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 60490f8f45d..c9a75a9569c 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 class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; + @jakarta.annotation.Nullable private EnumStringEnum enumString; /** @@ -117,6 +118,7 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; + @jakarta.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** @@ -155,6 +157,7 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; + @jakarta.annotation.Nullable private EnumIntegerEnum enumInteger; /** @@ -193,15 +196,17 @@ public class EnumTest { } 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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 5f003a6ef57..de8cfc1ad38 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 @@ import jakarta.validation.Valid; @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 class FileSchemaTestClass { @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 class FileSchemaTestClass { @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 7fdee0b9781..2738a053228 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 @@ import jakarta.validation.Valid; @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 85d9d637cde..2295fda29f5 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 @@ import jakarta.validation.Valid; @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 f4baa60281e..9177c94842c 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 @@ import jakarta.validation.Valid; @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 class MapTest { } 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 class MapTest { @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 class MapTest { @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 class MapTest { @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 class MapTest { @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 2f0e24c7ced..821ec3fb79e 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 @@ import jakarta.validation.Valid; @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 26dca932aff..4c889f467bf 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 @@ import jakarta.validation.Valid; @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 class Model200Response { @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 class Model200Response { @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 9318dbb47f4..2d91f091f5f 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 @@ import jakarta.validation.Valid; @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 class ModelApiResponse { @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 class ModelApiResponse { @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 class ModelApiResponse { @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 eb129b94daf..768be29a93a 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 @@ import jakarta.validation.Valid; @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 class ModelFile { @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 ade635952a8..bac0169ad44 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 @@ import jakarta.validation.Valid; @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 class ModelList { @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 597ac4a40cd..0e5a4a76419 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 @@ import jakarta.validation.Valid; @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 class ModelReturn { @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 0d169eb2c73..65fe8b3edf6 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 @@ import jakarta.validation.Valid; @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 class 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 class Name { @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 class Name { - public Name property(String property) { + public Name property(@jakarta.annotation.Nullable String property) { this.property = property; return this; @@ -127,7 +131,7 @@ public class Name { @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 81e5730312e..232233b2340 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 @@ import jakarta.validation.Valid; @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 class NumberOnly { @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 13a07ac9374..6734ca66124 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 @@ import jakarta.validation.Valid; @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 class Order { } 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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 643f00a6298..d3603f7d741 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 @@ import jakarta.validation.Valid; @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 class OuterComposite { @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 class OuterComposite { @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 class OuterComposite { @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 e19e099a279..cb658e254f4 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 @@ import jakarta.validation.Valid; @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 class Pet { } 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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 d04982a2d13..2094e0f526c 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 @@ import jakarta.validation.Valid; @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 class ReadOnlyFirst { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@jakarta.annotation.Nullable String baz) { this.baz = baz; return this; @@ -90,7 +92,7 @@ public class ReadOnlyFirst { @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 cef85155870..07b09e2e3d6 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 @@ import jakarta.validation.Valid; @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 class 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 ebe15b0dc23..1328af0e5c5 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 @@ import jakarta.validation.Valid; @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 class Tag { @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 class Tag { @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 ad143dbba07..0cb4c2f9756 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 @@ import jakarta.validation.Valid; @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 class TypeHolderDefault { @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 class TypeHolderDefault { @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 class TypeHolderDefault { @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 class TypeHolderDefault { @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 class TypeHolderDefault { @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 a5e004d0aab..b6faa330223 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 @@ import jakarta.validation.Valid; @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 class TypeHolderExample { @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 class TypeHolderExample { @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 class TypeHolderExample { @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 class TypeHolderExample { @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 class TypeHolderExample { @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 class TypeHolderExample { @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 5638f918ad0..8c6fcea6aca 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 @@ import jakarta.validation.Valid; @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 93bc531e45d..af4ca6412c0 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 @@ import jakarta.validation.Valid; @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 ffede6774ff..5c9f023af80 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 @@ import java.util.Map; 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 class AdditionalPropertiesAnyType extends HashMap { } - 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 f1a815df70f..bbb26f370e1 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 @@ import java.util.Map; 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 class AdditionalPropertiesArray extends HashMap { } - 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 2727d92d086..f1cd2f1e713 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 @@ import java.util.Map; 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 class AdditionalPropertiesBoolean extends HashMap { } - 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 24d30583fec..7e6901510c0 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 @@ import java.util.Map; 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 class AdditionalPropertiesClass { } - 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 class AdditionalPropertiesClass { } - 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 class AdditionalPropertiesClass { } - 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 class AdditionalPropertiesClass { } - 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 class AdditionalPropertiesClass { } - 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 class AdditionalPropertiesClass { } - 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 class AdditionalPropertiesClass { } - 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 class AdditionalPropertiesClass { } - 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 class AdditionalPropertiesClass { } - 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 class AdditionalPropertiesClass { } - 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 class AdditionalPropertiesClass { } - 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 c2d901a0c36..b3b92e6e227 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 @@ import java.util.Map; 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 class AdditionalPropertiesInteger extends HashMap { } - 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 93a11982d00..ea8f5b44915 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 @@ import java.util.Map; 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 class AdditionalPropertiesNumber extends HashMap { } - 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 f5ac0f3113d..4381139af30 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 @@ import java.util.Map; 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 class AdditionalPropertiesObject extends HashMap { } - 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 9f4ce890d82..c0682136e73 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 @@ import java.util.Map; 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 class AdditionalPropertiesString extends HashMap { } - 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 16d00b0110f..fc0306d2f68 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 @@ import java.io.IOException; 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 class Animal { } - 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 class Animal { } - 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 8476028707a..312bce79cac 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 @@ import java.util.List; 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 class ArrayOfArrayOfNumberOnly { } - 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 5d8a025acc4..9d266ae3636 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 @@ import java.util.List; 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 class ArrayOfNumberOnly { } - 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 d3d29ab19cd..085ae37c1cf 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 @@ import org.openapitools.client.model.ReadOnlyFirst; 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 class ArrayTest { } - 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 class ArrayTest { } - 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 class ArrayTest { } - 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 f86d35bb39a..af2200f1686 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 class BigCat extends Cat { 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 class BigCat extends Cat { } - 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 16877979316..9d5577818a3 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 @@ import java.io.IOException; 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 class Capitalization { } - 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 class Capitalization { } - 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 class Capitalization { } - 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 class Capitalization { } - 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 class Capitalization { } - 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 class Capitalization { } - 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 7ba3507cf87..45f1a7a35a4 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 @@ import org.openapitools.client.model.Animal; 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 class Cat extends Animal { } - 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 10adac82c5c..644b24f3622 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 @@ import java.io.IOException; 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 class Category { } - 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 class Category { } - 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 66542082859..862d2f79463 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 @@ import java.io.IOException; 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 class ClassModel { } - 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 9c8444fe514..71f9b680f0e 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 @@ import java.io.IOException; 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 class Client { } - 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 7046e2e94cc..27772815700 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 @@ import org.openapitools.client.model.Animal; 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 class Dog extends Animal { } - 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 94d1e5946b9..ec837ff1b2e 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 class EnumArrays { 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 class EnumArrays { 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 class EnumArrays { } - 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 class EnumArrays { } - 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 3edb6902523..cef08bf0628 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 class EnumTest { 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 class EnumTest { 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 class EnumTest { 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 class EnumTest { 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 class EnumTest { } - 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 class EnumTest { } - 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 class EnumTest { } - 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 class EnumTest { } - 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 class EnumTest { } - 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 1e68e1d7ebd..df6dacaa1f7 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 @@ import org.openapitools.client.model.ModelFile; 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 class FileSchemaTestClass { } - 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 class FileSchemaTestClass { } - 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 7f96faef597..6c59071c375 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 @@ import java.util.UUID; 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 class FormatTest { } - 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 class FormatTest { } - 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 class FormatTest { } - 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 class FormatTest { } - 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 class FormatTest { } - 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 class FormatTest { } - 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 class FormatTest { } - 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 class FormatTest { } - 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 class FormatTest { } - 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 class FormatTest { } - 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 class FormatTest { } - 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 class FormatTest { } - 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 class FormatTest { } - 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 class FormatTest { } - 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 74b4ca225d4..99cfb90c57c 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 @@ import java.io.IOException; 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 ad82b8c1afa..8c0599df912 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 @@ import java.util.Map; 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 class MapTest { 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 class MapTest { } - 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 class MapTest { } - 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 class MapTest { } - 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 class MapTest { } - 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 1a613e38d6b..d092e0b0c48 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 @@ import org.openapitools.client.model.Animal; 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 class MixedPropertiesAndAdditionalPropertiesClass { } - 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 class MixedPropertiesAndAdditionalPropertiesClass { } - 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 class MixedPropertiesAndAdditionalPropertiesClass { } - 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 0fc506e8190..d3be6fce2e7 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 @@ import java.io.IOException; 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 class Model200Response { } - 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 class Model200Response { } - 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 d858276783f..14fa3f08aed 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 @@ import java.io.IOException; 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 class ModelApiResponse { } - 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 class ModelApiResponse { } - 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 class ModelApiResponse { } - 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 bcfcb1fd7a2..46a3d5365b3 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 @@ import java.io.IOException; 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 class ModelFile { } - 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 7c5399c07b4..85975144e8e 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 @@ import java.io.IOException; 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 class ModelList { } - 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 515fe5501ad..39be3519230 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 @@ import java.io.IOException; 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 class ModelReturn { } - 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 1ae15483ea5..568ff8a20d1 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 @@ import java.io.IOException; 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 class 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 class Name { } - public void setName(Integer name) { + public void setName(@javax.annotation.Nonnull Integer name) { this.name = name; } @@ -91,7 +95,7 @@ public class Name { - public Name property(String property) { + public Name property(@javax.annotation.Nullable String property) { this.property = property; return this; @@ -108,7 +112,7 @@ public class Name { } - 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 b7833e193d4..e0a06c9ddee 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 @@ import java.math.BigDecimal; 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 class NumberOnly { } - 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 86bedc54e42..a0d68146490 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 @@ import java.time.OffsetDateTime; 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 class Order { 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 class Order { } - 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 class Order { } - 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 class Order { } - 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 class Order { } - 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 class Order { } - 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 class Order { } - 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 18a1a8466f4..4fd0d4035ca 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 @@ import java.math.BigDecimal; 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 class OuterComposite { } - 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 class OuterComposite { } - 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 class OuterComposite { } - 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 f58d038d298..ff5b80cb4d2 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 @@ import org.openapitools.client.model.Tag; 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 class Pet { 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 class Pet { } - 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 class Pet { } - 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 class Pet { } - 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 class Pet { } - 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 class Pet { } - 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 class Pet { } - 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 409ab9317ff..374fce7ae20 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 @@ import java.io.IOException; 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 class ReadOnlyFirst { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { this.baz = baz; return this; @@ -77,7 +79,7 @@ public class ReadOnlyFirst { } - 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 ae1c2b2d468..f7c1b083728 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 @@ import java.io.IOException; 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 class 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 c2c65f70f8c..ee88c867e6d 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 @@ import java.io.IOException; 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 class Tag { } - 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 class Tag { } - 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 cf615890df2..72de8399c0f 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 @@ import java.util.List; 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 class TypeHolderDefault { } - 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 class TypeHolderDefault { } - 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 class TypeHolderDefault { } - 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 class TypeHolderDefault { } - 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 class TypeHolderDefault { } - 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 9d73e7ecef3..9c92fcd4ebc 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 @@ import java.util.List; 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 class TypeHolderExample { } - 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 class TypeHolderExample { } - 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 class TypeHolderExample { } - 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 class TypeHolderExample { } - 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 class TypeHolderExample { } - 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 class TypeHolderExample { } - 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 3a6b7d027f0..6f7346a43f3 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 @@ import java.io.IOException; 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 class User { } - 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 class User { } - 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 class User { } - 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 class User { } - 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 class User { } - 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 class User { } - 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 class User { } - 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 class User { } - 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 8ab822a96ab..ba4045a781b 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 @@ import java.util.List; 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 ffede6774ff..5c9f023af80 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 @@ import java.util.Map; 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 class AdditionalPropertiesAnyType extends HashMap { } - 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 f1a815df70f..bbb26f370e1 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 @@ import java.util.Map; 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 class AdditionalPropertiesArray extends HashMap { } - 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 2727d92d086..f1cd2f1e713 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 @@ import java.util.Map; 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 class AdditionalPropertiesBoolean extends HashMap { } - 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 24d30583fec..7e6901510c0 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 @@ import java.util.Map; 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 class AdditionalPropertiesClass { } - 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 class AdditionalPropertiesClass { } - 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 class AdditionalPropertiesClass { } - 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 class AdditionalPropertiesClass { } - 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 class AdditionalPropertiesClass { } - 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 class AdditionalPropertiesClass { } - 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 class AdditionalPropertiesClass { } - 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 class AdditionalPropertiesClass { } - 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 class AdditionalPropertiesClass { } - 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 class AdditionalPropertiesClass { } - 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 class AdditionalPropertiesClass { } - 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 c2d901a0c36..b3b92e6e227 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 @@ import java.util.Map; 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 class AdditionalPropertiesInteger extends HashMap { } - 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 93a11982d00..ea8f5b44915 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 @@ import java.util.Map; 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 class AdditionalPropertiesNumber extends HashMap { } - 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 f5ac0f3113d..4381139af30 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 @@ import java.util.Map; 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 class AdditionalPropertiesObject extends HashMap { } - 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 9f4ce890d82..c0682136e73 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 @@ import java.util.Map; 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 class AdditionalPropertiesString extends HashMap { } - 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 16d00b0110f..fc0306d2f68 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 @@ import java.io.IOException; 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 class Animal { } - 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 class Animal { } - 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 8476028707a..312bce79cac 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 @@ import java.util.List; 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 class ArrayOfArrayOfNumberOnly { } - 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 5d8a025acc4..9d266ae3636 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 @@ import java.util.List; 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 class ArrayOfNumberOnly { } - 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 d3d29ab19cd..085ae37c1cf 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 @@ import org.openapitools.client.model.ReadOnlyFirst; 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 class ArrayTest { } - 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 class ArrayTest { } - 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 class ArrayTest { } - 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 f86d35bb39a..af2200f1686 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 class BigCat extends Cat { 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 class BigCat extends Cat { } - 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 16877979316..9d5577818a3 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 @@ import java.io.IOException; 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 class Capitalization { } - 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 class Capitalization { } - 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 class Capitalization { } - 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 class Capitalization { } - 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 class Capitalization { } - 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 class Capitalization { } - 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 7ba3507cf87..45f1a7a35a4 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 @@ import org.openapitools.client.model.Animal; 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 class Cat extends Animal { } - 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 10adac82c5c..644b24f3622 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 @@ import java.io.IOException; 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 class Category { } - 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 class Category { } - 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 66542082859..862d2f79463 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 @@ import java.io.IOException; 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 class ClassModel { } - 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 9c8444fe514..71f9b680f0e 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 @@ import java.io.IOException; 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 class Client { } - 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 7046e2e94cc..27772815700 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 @@ import org.openapitools.client.model.Animal; 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 class Dog extends Animal { } - 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 94d1e5946b9..ec837ff1b2e 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 class EnumArrays { 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 class EnumArrays { 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 class EnumArrays { } - 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 class EnumArrays { } - 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 3edb6902523..cef08bf0628 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 class EnumTest { 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 class EnumTest { 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 class EnumTest { 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 class EnumTest { 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 class EnumTest { } - 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 class EnumTest { } - 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 class EnumTest { } - 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 class EnumTest { } - 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 class EnumTest { } - 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 1e68e1d7ebd..df6dacaa1f7 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 @@ import org.openapitools.client.model.ModelFile; 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 class FileSchemaTestClass { } - 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 class FileSchemaTestClass { } - 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 7f96faef597..6c59071c375 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 @@ import java.util.UUID; 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 class FormatTest { } - 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 class FormatTest { } - 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 class FormatTest { } - 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 class FormatTest { } - 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 class FormatTest { } - 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 class FormatTest { } - 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 class FormatTest { } - 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 class FormatTest { } - 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 class FormatTest { } - 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 class FormatTest { } - 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 class FormatTest { } - 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 class FormatTest { } - 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 class FormatTest { } - 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 class FormatTest { } - 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 74b4ca225d4..99cfb90c57c 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 @@ import java.io.IOException; 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 ad82b8c1afa..8c0599df912 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 @@ import java.util.Map; 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 class MapTest { 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 class MapTest { } - 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 class MapTest { } - 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 class MapTest { } - 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 class MapTest { } - 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 1a613e38d6b..d092e0b0c48 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 @@ import org.openapitools.client.model.Animal; 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 class MixedPropertiesAndAdditionalPropertiesClass { } - 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 class MixedPropertiesAndAdditionalPropertiesClass { } - 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 class MixedPropertiesAndAdditionalPropertiesClass { } - 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 0fc506e8190..d3be6fce2e7 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 @@ import java.io.IOException; 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 class Model200Response { } - 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 class Model200Response { } - 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 d858276783f..14fa3f08aed 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 @@ import java.io.IOException; 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 class ModelApiResponse { } - 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 class ModelApiResponse { } - 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 class ModelApiResponse { } - 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 bcfcb1fd7a2..46a3d5365b3 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 @@ import java.io.IOException; 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 class ModelFile { } - 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 7c5399c07b4..85975144e8e 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 @@ import java.io.IOException; 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 class ModelList { } - 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 515fe5501ad..39be3519230 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 @@ import java.io.IOException; 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 class ModelReturn { } - 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 1ae15483ea5..568ff8a20d1 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 @@ import java.io.IOException; 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 class 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 class Name { } - public void setName(Integer name) { + public void setName(@javax.annotation.Nonnull Integer name) { this.name = name; } @@ -91,7 +95,7 @@ public class Name { - public Name property(String property) { + public Name property(@javax.annotation.Nullable String property) { this.property = property; return this; @@ -108,7 +112,7 @@ public class Name { } - 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 b7833e193d4..e0a06c9ddee 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 @@ import java.math.BigDecimal; 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 class NumberOnly { } - 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 86bedc54e42..a0d68146490 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 @@ import java.time.OffsetDateTime; 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 class Order { 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 class Order { } - 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 class Order { } - 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 class Order { } - 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 class Order { } - 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 class Order { } - 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 class Order { } - 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 18a1a8466f4..4fd0d4035ca 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 @@ import java.math.BigDecimal; 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 class OuterComposite { } - 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 class OuterComposite { } - 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 class OuterComposite { } - 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 f58d038d298..ff5b80cb4d2 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 @@ import org.openapitools.client.model.Tag; 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 class Pet { 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 class Pet { } - 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 class Pet { } - 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 class Pet { } - 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 class Pet { } - 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 class Pet { } - 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 class Pet { } - 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 409ab9317ff..374fce7ae20 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 @@ import java.io.IOException; 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 class ReadOnlyFirst { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { this.baz = baz; return this; @@ -77,7 +79,7 @@ public class ReadOnlyFirst { } - 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 ae1c2b2d468..f7c1b083728 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 @@ import java.io.IOException; 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 class 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 c2c65f70f8c..ee88c867e6d 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 @@ import java.io.IOException; 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 class Tag { } - 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 class Tag { } - 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 cf615890df2..72de8399c0f 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 @@ import java.util.List; 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 class TypeHolderDefault { } - 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 class TypeHolderDefault { } - 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 class TypeHolderDefault { } - 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 class TypeHolderDefault { } - 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 class TypeHolderDefault { } - 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 9d73e7ecef3..9c92fcd4ebc 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 @@ import java.util.List; 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 class TypeHolderExample { } - 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 class TypeHolderExample { } - 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 class TypeHolderExample { } - 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 class TypeHolderExample { } - 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 class TypeHolderExample { } - 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 class TypeHolderExample { } - 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 3a6b7d027f0..6f7346a43f3 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 @@ import java.io.IOException; 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 class User { } - 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 class User { } - 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 class User { } - 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 class User { } - 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 class User { } - 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 class User { } - 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 class User { } - 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 class User { } - 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 8ab822a96ab..ba4045a781b 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 @@ import java.util.List; 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 ffede6774ff..5c9f023af80 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 @@ import java.util.Map; 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 class AdditionalPropertiesAnyType extends HashMap { } - 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 f1a815df70f..bbb26f370e1 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 @@ import java.util.Map; 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 class AdditionalPropertiesArray extends HashMap { } - 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 2727d92d086..f1cd2f1e713 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 @@ import java.util.Map; 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 class AdditionalPropertiesBoolean extends HashMap { } - 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 24d30583fec..7e6901510c0 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 @@ import java.util.Map; 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 class AdditionalPropertiesClass { } - 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 class AdditionalPropertiesClass { } - 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 class AdditionalPropertiesClass { } - 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 class AdditionalPropertiesClass { } - 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 class AdditionalPropertiesClass { } - 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 class AdditionalPropertiesClass { } - 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 class AdditionalPropertiesClass { } - 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 class AdditionalPropertiesClass { } - 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 class AdditionalPropertiesClass { } - 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 class AdditionalPropertiesClass { } - 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 class AdditionalPropertiesClass { } - 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 c2d901a0c36..b3b92e6e227 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 @@ import java.util.Map; 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 class AdditionalPropertiesInteger extends HashMap { } - 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 93a11982d00..ea8f5b44915 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 @@ import java.util.Map; 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 class AdditionalPropertiesNumber extends HashMap { } - 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 f5ac0f3113d..4381139af30 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 @@ import java.util.Map; 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 class AdditionalPropertiesObject extends HashMap { } - 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 9f4ce890d82..c0682136e73 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 @@ import java.util.Map; 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 class AdditionalPropertiesString extends HashMap { } - 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 16d00b0110f..fc0306d2f68 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 @@ import java.io.IOException; 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 class Animal { } - 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 class Animal { } - 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 8476028707a..312bce79cac 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 @@ import java.util.List; 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 class ArrayOfArrayOfNumberOnly { } - 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 5d8a025acc4..9d266ae3636 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 @@ import java.util.List; 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 class ArrayOfNumberOnly { } - 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 d3d29ab19cd..085ae37c1cf 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 @@ import org.openapitools.client.model.ReadOnlyFirst; 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 class ArrayTest { } - 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 class ArrayTest { } - 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 class ArrayTest { } - 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 f86d35bb39a..af2200f1686 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 class BigCat extends Cat { 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 class BigCat extends Cat { } - 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 16877979316..9d5577818a3 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 @@ import java.io.IOException; 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 class Capitalization { } - 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 class Capitalization { } - 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 class Capitalization { } - 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 class Capitalization { } - 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 class Capitalization { } - 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 class Capitalization { } - 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 7ba3507cf87..45f1a7a35a4 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 @@ import org.openapitools.client.model.Animal; 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 class Cat extends Animal { } - 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 10adac82c5c..644b24f3622 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 @@ import java.io.IOException; 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 class Category { } - 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 class Category { } - 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 66542082859..862d2f79463 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 @@ import java.io.IOException; 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 class ClassModel { } - 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 9c8444fe514..71f9b680f0e 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 @@ import java.io.IOException; 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 class Client { } - 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 7046e2e94cc..27772815700 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 @@ import org.openapitools.client.model.Animal; 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 class Dog extends Animal { } - 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 94d1e5946b9..ec837ff1b2e 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 class EnumArrays { 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 class EnumArrays { 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 class EnumArrays { } - 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 class EnumArrays { } - 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 3edb6902523..cef08bf0628 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 class EnumTest { 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 class EnumTest { 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 class EnumTest { 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 class EnumTest { 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 class EnumTest { } - 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 class EnumTest { } - 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 class EnumTest { } - 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 class EnumTest { } - 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 class EnumTest { } - 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 1e68e1d7ebd..df6dacaa1f7 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 @@ import org.openapitools.client.model.ModelFile; 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 class FileSchemaTestClass { } - 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 class FileSchemaTestClass { } - 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 7f96faef597..6c59071c375 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 @@ import java.util.UUID; 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 class FormatTest { } - 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 class FormatTest { } - 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 class FormatTest { } - 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 class FormatTest { } - 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 class FormatTest { } - 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 class FormatTest { } - 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 class FormatTest { } - 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 class FormatTest { } - 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 class FormatTest { } - 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 class FormatTest { } - 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 class FormatTest { } - 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 class FormatTest { } - 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 class FormatTest { } - 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 class FormatTest { } - 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 74b4ca225d4..99cfb90c57c 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 @@ import java.io.IOException; 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 ad82b8c1afa..8c0599df912 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 @@ import java.util.Map; 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 class MapTest { 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 class MapTest { } - 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 class MapTest { } - 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 class MapTest { } - 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 class MapTest { } - 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 1a613e38d6b..d092e0b0c48 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 @@ import org.openapitools.client.model.Animal; 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 class MixedPropertiesAndAdditionalPropertiesClass { } - 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 class MixedPropertiesAndAdditionalPropertiesClass { } - 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 class MixedPropertiesAndAdditionalPropertiesClass { } - 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 0fc506e8190..d3be6fce2e7 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 @@ import java.io.IOException; 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 class Model200Response { } - 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 class Model200Response { } - 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 d858276783f..14fa3f08aed 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 @@ import java.io.IOException; 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 class ModelApiResponse { } - 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 class ModelApiResponse { } - 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 class ModelApiResponse { } - 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 bcfcb1fd7a2..46a3d5365b3 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 @@ import java.io.IOException; 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 class ModelFile { } - 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 7c5399c07b4..85975144e8e 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 @@ import java.io.IOException; 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 class ModelList { } - 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 515fe5501ad..39be3519230 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 @@ import java.io.IOException; 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 class ModelReturn { } - 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 1ae15483ea5..568ff8a20d1 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 @@ import java.io.IOException; 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 class 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 class Name { } - public void setName(Integer name) { + public void setName(@javax.annotation.Nonnull Integer name) { this.name = name; } @@ -91,7 +95,7 @@ public class Name { - public Name property(String property) { + public Name property(@javax.annotation.Nullable String property) { this.property = property; return this; @@ -108,7 +112,7 @@ public class Name { } - 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 b7833e193d4..e0a06c9ddee 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 @@ import java.math.BigDecimal; 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 class NumberOnly { } - 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 86bedc54e42..a0d68146490 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 @@ import java.time.OffsetDateTime; 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 class Order { 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 class Order { } - 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 class Order { } - 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 class Order { } - 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 class Order { } - 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 class Order { } - 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 class Order { } - 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 18a1a8466f4..4fd0d4035ca 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 @@ import java.math.BigDecimal; 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 class OuterComposite { } - 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 class OuterComposite { } - 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 class OuterComposite { } - 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 f58d038d298..ff5b80cb4d2 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 @@ import org.openapitools.client.model.Tag; 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 class Pet { 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 class Pet { } - 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 class Pet { } - 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 class Pet { } - 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 class Pet { } - 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 class Pet { } - 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 class Pet { } - 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 409ab9317ff..374fce7ae20 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 @@ import java.io.IOException; 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 class ReadOnlyFirst { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { this.baz = baz; return this; @@ -77,7 +79,7 @@ public class ReadOnlyFirst { } - 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 ae1c2b2d468..f7c1b083728 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 @@ import java.io.IOException; 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 class 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 c2c65f70f8c..ee88c867e6d 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 @@ import java.io.IOException; 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 class Tag { } - 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 class Tag { } - 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 cf615890df2..72de8399c0f 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 @@ import java.util.List; 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 class TypeHolderDefault { } - 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 class TypeHolderDefault { } - 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 class TypeHolderDefault { } - 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 class TypeHolderDefault { } - 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 class TypeHolderDefault { } - 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 9d73e7ecef3..9c92fcd4ebc 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 @@ import java.util.List; 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 class TypeHolderExample { } - 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 class TypeHolderExample { } - 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 class TypeHolderExample { } - 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 class TypeHolderExample { } - 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 class TypeHolderExample { } - 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 class TypeHolderExample { } - 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 3a6b7d027f0..6f7346a43f3 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 @@ import java.io.IOException; 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 class User { } - 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 class User { } - 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 class User { } - 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 class User { } - 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 class User { } - 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 class User { } - 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 class User { } - 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 class User { } - 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 8ab822a96ab..ba4045a781b 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 @@ import java.util.List; 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 class XmlItem { } - 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 8b087ab66c1..9debf0e54b4 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class AdditionalPropertiesAnyType extends HashMap { @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 2ad9f27b764..0ca63318ea1 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class AdditionalPropertiesArray extends HashMap { @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 925f851c09e..19809899899 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class AdditionalPropertiesBoolean extends HashMap { @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 5a7214ea2e2..fe25bc34ed8 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 7ab64c281e5..95004c43bea 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class AdditionalPropertiesInteger extends HashMap { @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 1b4da048acd..6a2e2be227e 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class AdditionalPropertiesNumber extends HashMap { @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 dea7e86d215..5fbc22151d4 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class AdditionalPropertiesObject extends HashMap { @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 51e0c6cf342..eb29c72010b 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class AdditionalPropertiesString extends HashMap { @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 046dcd9ac82..5e764d85a6c 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; 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 class Animal { @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 class Animal { @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 6a77e798068..6f58e325549 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ArrayOfArrayOfNumberOnly { @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 3af92dd1784..f3d46916faa 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ArrayOfNumberOnly { @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 f3dd9149c33..771578abd0a 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ArrayTest { @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 class ArrayTest { @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 class ArrayTest { @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 41fb5315e7e..073996fa7a0 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 class BigCat extends Cat { } 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 class BigCat extends Cat { @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 334b4c17ccd..6cd94422b1c 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 a27f4a02bc4..ca385024c9d 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; 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 class Cat extends Animal { @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 f2428c4be41..50b6ff1d6a2 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Category { @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 class Category { @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 9887d204018..dbf6964fdad 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ClassModel { @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 645560a2ff3..0be09220e7d 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Client { @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 8599f3b034d..8004beff975 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; 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 class Dog extends Animal { @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 cad068cf3b6..42c505b1189 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 class EnumArrays { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** @@ -109,12 +110,13 @@ public class EnumArrays { } 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 class EnumArrays { @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 class EnumArrays { @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 6c2217c0daf..a5667a13859 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 class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; + @javax.annotation.Nullable private EnumStringEnum enumString; /** @@ -115,6 +116,7 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** @@ -153,6 +155,7 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** @@ -191,15 +194,17 @@ public class EnumTest { } 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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 dd82dfbf055..6c10cc7d053 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class FileSchemaTestClass { @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 class FileSchemaTestClass { @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 1622486750e..ff518a3770f 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 fc6f4de0083..6dc15593463 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 166a1d2e8fd..03fcf621421 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class MapTest { } 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 class MapTest { @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 class MapTest { @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 class MapTest { @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 class MapTest { @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 fd5fce68617..27b5ebbd852 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 1b121986dae..0b83c601140 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Model200Response { @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 class Model200Response { @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 32981db50c5..0938a865de4 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ModelApiResponse { @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 class ModelApiResponse { @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 class ModelApiResponse { @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 e14c2b78f74..73f5779de22 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ModelFile { @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 13e89d73aa3..f8d50bc1762 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ModelList { @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 47b82483f27..314794ba50b 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ModelReturn { @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 e75ec4b62c4..4789044c853 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class 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 class Name { @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 class Name { - public Name property(String property) { + public Name property(@javax.annotation.Nullable String property) { this.property = property; return this; @@ -121,7 +125,7 @@ public class Name { @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 37dd5cf7be0..341017c96d2 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class NumberOnly { @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 59ef01bcb36..0136b2dcc83 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Order { } 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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 200337e0603..c9b0b884ef2 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class OuterComposite { @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 class OuterComposite { @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 class OuterComposite { @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 2ddb87f6a01..8cfe9533fe1 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Pet { } 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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 ce488cfee9f..e0e1e8bb4bb 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ReadOnlyFirst { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { this.baz = baz; return this; @@ -86,7 +88,7 @@ public class ReadOnlyFirst { @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 380e638f55c..74687fe9f3b 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class 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 93bc8a4ebe1..ebcb558efe5 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Tag { @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 class Tag { @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 c34713ecd10..af3db948412 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class TypeHolderDefault { @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 class TypeHolderDefault { @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 class TypeHolderDefault { @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 class TypeHolderDefault { @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 class TypeHolderDefault { @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 c0cf55a10e8..ba7a6d198a2 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class TypeHolderExample { @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 class TypeHolderExample { @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 class TypeHolderExample { @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 class TypeHolderExample { @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 class TypeHolderExample { @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 class TypeHolderExample { @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 9418f0d8365..9d11826fc6b 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 7f6c2f3eb5f..0ff945d70a1 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 class XmlItem { @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 93d0220ad32..936b8bafdbb 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 6d7099790f2..5a60fa128dd 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class AllOfWithSingleRef { @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 class AllOfWithSingleRef { @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 2afb3937091..745689d7191 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; 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 class Animal { @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 class Animal { @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 6a77e798068..6f58e325549 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ArrayOfArrayOfNumberOnly { @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 3af92dd1784..f3d46916faa 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ArrayOfNumberOnly { @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 f3dd9149c33..771578abd0a 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ArrayTest { @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 class ArrayTest { @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 class ArrayTest { @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 334b4c17ccd..6cd94422b1c 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 ed573be3fe4..f8705b67de5 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; 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 class Cat extends Animal { @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 f2428c4be41..50b6ff1d6a2 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Category { @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 class Category { @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 92ac78ada81..b436febdcc4 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; 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 class ChildWithNullable extends ParentWithNullable { @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 9887d204018..dbf6964fdad 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ClassModel { @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 645560a2ff3..0be09220e7d 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Client { @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 f567d4de2c5..acdb137161a 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class DeprecatedObject { @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 8599f3b034d..8004beff975 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; 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 class Dog extends Animal { @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 cad068cf3b6..42c505b1189 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 class EnumArrays { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** @@ -109,12 +110,13 @@ public class EnumArrays { } 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 class EnumArrays { @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 class EnumArrays { @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 ffcec49f58d..915ba1b91ce 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 class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; + @javax.annotation.Nullable private EnumStringEnum enumString; /** @@ -125,6 +126,7 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** @@ -163,6 +165,7 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** @@ -201,24 +204,29 @@ public class EnumTest { } 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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 class EnumTest { 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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 ad6b00e77a2..0f3aaeb0af4 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class FakeBigDecimalMap200Response { @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 class FakeBigDecimalMap200Response { @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 dd82dfbf055..6c10cc7d053 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class FileSchemaTestClass { @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 class FileSchemaTestClass { @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 007462a052c..6c446b295f8 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Foo { @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 13dbee6c4a2..395eecaf8b5 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class FooGetDefaultResponse { @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 cb3013e2354..2ecd1819621 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 fc6f4de0083..6dc15593463 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 a8cc7eadd0b..b772672c401 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class HealthCheckResult { 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 166a1d2e8fd..03fcf621421 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class MapTest { } 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 class MapTest { @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 class MapTest { @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 class MapTest { @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 class MapTest { @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 fd5fce68617..27b5ebbd852 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 1b121986dae..0b83c601140 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Model200Response { @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 class Model200Response { @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 32981db50c5..0938a865de4 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ModelApiResponse { @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 class ModelApiResponse { @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 class ModelApiResponse { @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 e14c2b78f74..73f5779de22 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ModelFile { @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 13e89d73aa3..f8d50bc1762 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ModelList { @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 47b82483f27..314794ba50b 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ModelReturn { @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 e75ec4b62c4..4789044c853 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class 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 class Name { @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 class Name { - public Name property(String property) { + public Name property(@javax.annotation.Nullable String property) { this.property = property; return this; @@ -121,7 +125,7 @@ public class Name { @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 d510152c6ef..bb516d7739d 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { @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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { this.objectAndItemsNullableProp = objectAndItemsNullableProp; } - public void setObjectAndItemsNullableProp(Map 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 class NullableClass extends HashMap { @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 37dd5cf7be0..341017c96d2 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class NumberOnly { @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 79b51c10799..c6a3cc14fad 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 59ef01bcb36..0136b2dcc83 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Order { } 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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 200337e0603..c9b0b884ef2 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class OuterComposite { @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 class OuterComposite { @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 class OuterComposite { @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 4314007ec56..88cf19fe07a 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class OuterObjectWithEnumProperty { @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 b08e28c101b..b97f28bbcfd 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 class ParentWithNullable { } 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 class ParentWithNullable { @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 class ParentWithNullable { 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 2ddb87f6a01..8cfe9533fe1 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Pet { } 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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 ce488cfee9f..e0e1e8bb4bb 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ReadOnlyFirst { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { this.baz = baz; return this; @@ -86,7 +88,7 @@ public class ReadOnlyFirst { @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 12d15d92650..8d7cee19879 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class 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 93bc8a4ebe1..ebcb558efe5 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Tag { @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 class Tag { @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 8524bfaed6b..89584fa7c93 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class TestInlineFreeformAdditionalPropertiesRequest extends HashMap 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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 553c86b8c67..fbf8d61fa17 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class AllOfWithSingleRef { @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 class AllOfWithSingleRef { @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 7723bbd0b3e..86cc58eb17b 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; 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 class Animal { @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 class Animal { @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 7a324c2d64a..87cea9ecb8d 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ArrayOfArrayOfNumberOnly { @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 2db544721c9..ddac35e167a 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ArrayOfNumberOnly { @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 eefee53145b..69f13d66946 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ArrayTest { @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 class ArrayTest { @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 class ArrayTest { @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 4532d7e6e98..4527c5efd07 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 0d124c2efa1..73f8201c2c7 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; 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 class Cat extends Animal { @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 45150aed846..c87cc6d9d03 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Category { @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 class Category { @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 dc0ab1108bf..55e6ce12678 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; 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 class ChildWithNullable extends ParentWithNullable { @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 50ab7257d81..cc5edb0ddf1 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ClassModel { @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 462dc166cbb..7b7843af208 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Client { @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 d051f58bdfb..da99cf34032 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class DeprecatedObject { @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 8db2e461f85..6a11ad89d6f 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; 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 class Dog extends Animal { @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 5854a5e7e1f..3e2e0802583 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 class EnumArrays { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; + @jakarta.annotation.Nullable private JustSymbolEnum justSymbol; /** @@ -109,12 +110,13 @@ public class EnumArrays { } 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 class EnumArrays { @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 class EnumArrays { @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 36ac6c705c6..f9347fc97f5 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 class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; + @jakarta.annotation.Nullable private EnumStringEnum enumString; /** @@ -125,6 +126,7 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; + @jakarta.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** @@ -163,6 +165,7 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; + @jakarta.annotation.Nullable private EnumIntegerEnum enumInteger; /** @@ -201,24 +204,29 @@ public class EnumTest { } 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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 class EnumTest { 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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 e0f8858870d..e9edabdcfab 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class FakeBigDecimalMap200Response { @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 class FakeBigDecimalMap200Response { @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 f3ecd1b8d45..d1b7648e7be 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class FileSchemaTestClass { @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 class FileSchemaTestClass { @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 d4ae08190d1..e673cf96824 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Foo { @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 f68474edecd..6c72b31783b 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class FooGetDefaultResponse { @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 58cfa9edade..818b19b86bd 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 18e5c0c3120..7fcd7679b14 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 ed47a852041..e30ee78c1c4 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class HealthCheckResult { 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 130b2f2c72e..f279dad1037 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class MapTest { } 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 class MapTest { @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 class MapTest { @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 class MapTest { @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 class MapTest { @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 dc194d8d675..0eb4099d56e 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 f2623213d53..7d0bfb91707 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Model200Response { @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 class Model200Response { @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 8d4aa0f98fe..dac5d47ec9c 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ModelApiResponse { @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 class ModelApiResponse { @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 class ModelApiResponse { @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 927fde00309..3c99c5d565e 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ModelFile { @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 42636b21cef..54a220f2c63 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ModelList { @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 58804071544..3620721ba40 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ModelReturn { @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 dc4e21d3e69..d80704b7a71 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class 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 class Name { @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 class Name { - public Name property(String property) { + public Name property(@jakarta.annotation.Nullable String property) { this.property = property; return this; @@ -121,7 +125,7 @@ public class Name { @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 27f64e04bdb..04989802ba7 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { @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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { this.objectAndItemsNullableProp = objectAndItemsNullableProp; } - public void setObjectAndItemsNullableProp(Map 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 class NullableClass extends HashMap { @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 d3ab7dbb2fe..3c21f20754c 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class NumberOnly { @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 bc7c49a40c4..2f0d9d3b946 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 dd1d51cce1c..8f4db12e822 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Order { } 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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 709ac97e93a..b2b88b32009 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class OuterComposite { @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 class OuterComposite { @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 class OuterComposite { @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 1002adf36ee..0b5fecce1ce 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class OuterObjectWithEnumProperty { @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 38c70b580a1..78772c7e27c 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 class ParentWithNullable { } 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 class ParentWithNullable { @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 class ParentWithNullable { 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 d00626a0146..893ffedd5f5 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Pet { } 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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 df185785e83..f6d848fa88c 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ReadOnlyFirst { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@jakarta.annotation.Nullable String baz) { this.baz = baz; return this; @@ -86,7 +88,7 @@ public class ReadOnlyFirst { @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 28682f92204..fb9e96a8da6 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class 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 419d5646c3e..f5c4ae0e446 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Tag { @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 class Tag { @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 b898ad17907..58e2d9d3f8e 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class TestInlineFreeformAdditionalPropertiesRequest extends HashMap 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 class ByteArrayObject { 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 class ByteArrayObject { @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 class ByteArrayObject { 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 class ByteArrayObject { @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 class ByteArrayObject { @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 e7c553e21ff..d3f9c8a8257 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 ec8c6b2462a..7d7cdf5501d 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class AllOfWithSingleRef { @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 class AllOfWithSingleRef { @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 a5f7d83f2ef..e3904f0a610 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; 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 class Animal { @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 class Animal { @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 e4ac77f87da..5c49f35618e 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ArrayOfArrayOfNumberOnly { @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 3c674fb1e94..6d3ea3645bf 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ArrayOfNumberOnly { @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 8cdc94b5b12..07a36c9fcc7 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ArrayTest { @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 class ArrayTest { @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 class ArrayTest { @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 d5a66af3275..722e1eab2db 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 2783d54e9ba..827d2556bee 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; 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 class Cat extends Animal { @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 34cc7919f23..07e5d75a4e5 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Category { @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 class Category { @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 30a14064a5f..d1da73a19c2 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; 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 class ChildWithNullable extends ParentWithNullable { @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 87d03784600..012dd2c278e 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ClassModel { @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 e089b3d48c5..c2b9f484cd7 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Client { @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 b0f2c15b7a9..d8dcc870c7f 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class DeprecatedObject { @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 dcd09969d21..9165437575b 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; 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 class Dog extends Animal { @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 bc593d083fa..c9dd3f0c968 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 class EnumArrays { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** @@ -110,12 +111,13 @@ public class EnumArrays { } 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 class EnumArrays { @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 class EnumArrays { @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 6150c3578c1..351aa9ec9f5 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 class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; + @javax.annotation.Nullable private EnumStringEnum enumString; /** @@ -126,6 +127,7 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** @@ -164,6 +166,7 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** @@ -202,24 +205,29 @@ public class EnumTest { } 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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 class EnumTest { 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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 b7f33873eda..8f0f6ff2a30 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class FakeBigDecimalMap200Response { @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 class FakeBigDecimalMap200Response { @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 cf65128bd2a..30064d17637 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class FileSchemaTestClass { @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 class FileSchemaTestClass { @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 a8514fe501f..51a7f657505 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Foo { @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 2a275459343..a022654bb58 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class FooGetDefaultResponse { @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 5f985f659d9..fa42deddf15 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 b9f13f910cd..d2a07a0a865 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 ea339806ef3..9a7bdf26b83 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class HealthCheckResult { 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 6bce51c1c1d..c9895b73e1a 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class MapTest { } 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 class MapTest { @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 class MapTest { @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 class MapTest { @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 class MapTest { @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 2ac5b6b0c5f..4d8a4c61581 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 0482c4bb888..2245a4229be 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Model200Response { @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 class Model200Response { @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 3d561d9d9a1..575404902e5 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ModelApiResponse { @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 class ModelApiResponse { @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 class ModelApiResponse { @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 88936f8eb98..f1d78d68b67 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ModelFile { @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 b18b38e833e..61d5ba8249a 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ModelList { @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 66cc27cbfd7..bd1d313643d 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ModelReturn { @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 dcb46ef9ceb..030b8bb59fb 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class 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 class Name { @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 class Name { - public Name property(String property) { + public Name property(@javax.annotation.Nullable String property) { this.property = property; return this; @@ -126,7 +130,7 @@ public class Name { @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 fadfacbd493..0f2bdaf1cf4 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { @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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { this.objectAndItemsNullableProp = objectAndItemsNullableProp; } - public void setObjectAndItemsNullableProp(Map 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 class NullableClass extends HashMap { @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 13656d43019..274b98cfe41 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class NumberOnly { @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 00a5b935ac9..e9488f20546 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 e7c8f1e13a0..accc9461396 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Order { } 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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 00b7f4930ad..68b3c557a01 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class OuterComposite { @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 class OuterComposite { @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 class OuterComposite { @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 46e980520e6..c1ed9389a56 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class OuterObjectWithEnumProperty { @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 ca06cbd65ff..414daf5832e 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 class ParentWithNullable { } 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 class ParentWithNullable { @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 class ParentWithNullable { 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 65efa4eae07..a3045ad1ee9 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Pet { } 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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 1df118215c7..17fa54948d8 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ReadOnlyFirst { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { this.baz = baz; return this; @@ -89,7 +91,7 @@ public class ReadOnlyFirst { @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 c238e666a44..bb01969ec77 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class 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 f9ba13db729..f30b547f211 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Tag { @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 class Tag { @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 8e29f869f05..154fb1804bd 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class TestInlineFreeformAdditionalPropertiesRequest extends HashMap 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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 6d7099790f2..5a60fa128dd 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class AllOfWithSingleRef { @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 class AllOfWithSingleRef { @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 2afb3937091..745689d7191 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; 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 class Animal { @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 class Animal { @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 740f6978809..ae711e2787d 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ArrayOfArrayOfNumberOnly { @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 277102745d8..a0ba0e0c16e 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ArrayOfNumberOnly { @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 41a3755c400..e263e2ee4c2 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ArrayTest { @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 class ArrayTest { @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 class ArrayTest { @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 334b4c17ccd..6cd94422b1c 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 ed573be3fe4..f8705b67de5 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; 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 class Cat extends Animal { @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 f2428c4be41..50b6ff1d6a2 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Category { @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 class Category { @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 92ac78ada81..b436febdcc4 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; 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 class ChildWithNullable extends ParentWithNullable { @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 9887d204018..dbf6964fdad 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ClassModel { @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 645560a2ff3..0be09220e7d 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Client { @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 f567d4de2c5..acdb137161a 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class DeprecatedObject { @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 8599f3b034d..8004beff975 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; 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 class Dog extends Animal { @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 c08e641e1c4..e6a5ddc351a 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 class EnumArrays { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** @@ -109,12 +110,13 @@ public class EnumArrays { } 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 class EnumArrays { @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 class EnumArrays { @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 ffcec49f58d..915ba1b91ce 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 class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; + @javax.annotation.Nullable private EnumStringEnum enumString; /** @@ -125,6 +126,7 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** @@ -163,6 +165,7 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** @@ -201,24 +204,29 @@ public class EnumTest { } 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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 class EnumTest { 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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 1631163f335..eb9c0d5618c 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class FakeBigDecimalMap200Response { @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 class FakeBigDecimalMap200Response { @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 56f084627bb..b413890feef 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class FileSchemaTestClass { @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 class FileSchemaTestClass { @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 007462a052c..6c446b295f8 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Foo { @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 13dbee6c4a2..395eecaf8b5 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class FooGetDefaultResponse { @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 48e2602997c..bb7fb37b632 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 fc6f4de0083..6dc15593463 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 a8cc7eadd0b..b772672c401 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class HealthCheckResult { 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 7832bc9aa35..3dfecb96db5 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class MapTest { } 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 class MapTest { @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 class MapTest { @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 class MapTest { @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 class MapTest { @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 7a5db3b0aac..55a43c42b31 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 1b121986dae..0b83c601140 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Model200Response { @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 class Model200Response { @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 32981db50c5..0938a865de4 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ModelApiResponse { @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 class ModelApiResponse { @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 class ModelApiResponse { @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 e14c2b78f74..73f5779de22 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ModelFile { @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 13e89d73aa3..f8d50bc1762 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ModelList { @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 47b82483f27..314794ba50b 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ModelReturn { @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 e75ec4b62c4..4789044c853 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class 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 class Name { @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 class Name { - public Name property(String property) { + public Name property(@javax.annotation.Nullable String property) { this.property = property; return this; @@ -121,7 +125,7 @@ public class Name { @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 49539dd1e24..d5a15f45614 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { @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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { this.objectAndItemsNullableProp = objectAndItemsNullableProp; } - public void setObjectAndItemsNullableProp(Map 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 class NullableClass extends HashMap { @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 37dd5cf7be0..341017c96d2 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class NumberOnly { @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 23cb3a344f3..9c7dd338540 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 59ef01bcb36..0136b2dcc83 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Order { } 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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 200337e0603..c9b0b884ef2 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class OuterComposite { @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 class OuterComposite { @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 class OuterComposite { @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 4314007ec56..88cf19fe07a 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class OuterObjectWithEnumProperty { @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 b08e28c101b..b97f28bbcfd 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 class ParentWithNullable { } 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 class ParentWithNullable { @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 class ParentWithNullable { 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 ac3173a7e15..5a91c5d0773 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Pet { } 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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 ce488cfee9f..e0e1e8bb4bb 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class ReadOnlyFirst { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { this.baz = baz; return this; @@ -86,7 +88,7 @@ public class ReadOnlyFirst { @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 12d15d92650..8d7cee19879 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class 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 93bc8a4ebe1..ebcb558efe5 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class Tag { @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 class Tag { @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 8524bfaed6b..89584fa7c93 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 @@ import com.fasterxml.jackson.annotation.JsonTypeName; @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 class TestInlineFreeformAdditionalPropertiesRequest extends HashMap photoUrls = new ArrayList<>(); public static final String JSON_PROPERTY_TAGS = "tags"; + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** @@ -100,12 +105,13 @@ public class Pet { 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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 4b279664aba..541861ada26 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 @@ import org.openapitools.client.JSON; @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 class Tag { @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 class Tag { @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 eefc2de5061..dccffb563dd 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 @@ import org.openapitools.client.JSON; @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 a020ca34419..2e9f6c4e38f 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 @@ import org.openapitools.client.JSON; @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 class Category { @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 class Category { @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 2b628cb2e7c..8c5741315ba 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 @@ import org.openapitools.client.JSON; @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 class ModelApiResponse { @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 class ModelApiResponse { @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 class ModelApiResponse { @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 87677532752..03afb59a273 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 @@ import org.openapitools.client.JSON; @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 class Order { } 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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 80e4c199e7f..c07fdfe2091 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 @@ import org.openapitools.client.JSON; @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 class Pet { 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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 c3bbe3d87f1..0f4122271db 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 @@ import org.openapitools.client.JSON; @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 class Tag { @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 class Tag { @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 a5d940fcfc7..325609e3ef2 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 @@ import org.openapitools.client.JSON; @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 07f2c99b7c7..43745cdf21a 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 @@ import org.openapitools.client.JSON; @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { 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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { @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 b84a89e0cfd..4d2ce0fec2e 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 @@ import org.openapitools.client.JSON; 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 class Animal { @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 class Animal { @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 fab6a468871..e53e2e86c5d 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 @@ import org.openapitools.client.JSON; @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 class Apple { @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 class Apple { @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 a50486b6d5e..8557a52e994 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 @@ import org.openapitools.client.JSON; @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 class AppleReq { @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 class AppleReq { @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 de27b6abc9b..5510fb44e7c 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 @@ import org.openapitools.client.JSON; @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 class ArrayOfArrayOfNumberOnly { @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 b56bc870746..2d594551dab 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 @@ import org.openapitools.client.JSON; @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 class ArrayOfNumberOnly { @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 667cc9572ff..3ae301ac9bf 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 @@ import org.openapitools.client.JSON; @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 class ArrayTest { @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 class ArrayTest { @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 class ArrayTest { @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 0ecce8b7860..18a084d1c4b 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 @@ import org.openapitools.client.JSON; @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 class Banana { @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 594dbc12dcd..ba41a747493 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 @@ import org.openapitools.client.JSON; @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 class BananaReq { @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 class BananaReq { @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 861dfdfdd0e..4bb12b97ab8 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 @@ import org.openapitools.client.JSON; @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 class BasquePig { @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 1cab1da183f..856400a49ec 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 @@ import org.openapitools.client.JSON; @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 class Capitalization { @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 57fc01359ee..5db8352f8ae 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 @@ import org.openapitools.client.JSON; 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 class Cat extends Animal { @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 462ef3a308a..12f9b4571b2 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 @@ import org.openapitools.client.JSON; @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 class Category { @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 class Category { @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 2624f4bc0cd..7aacf45411a 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 @@ import org.openapitools.client.JSON; 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 class ChildCat extends ParentPet { @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 class ChildCat extends ParentPet { "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 class ChildCat extends ParentPet { @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 ea9d7753c3c..8b5ec06c54d 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 @@ import org.openapitools.client.JSON; @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 class ClassModel { @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 1efa318ae96..f52ad3cd1b1 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 @@ import org.openapitools.client.JSON; @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 class Client { @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 7a179f3915a..dd3e26115b5 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 @@ import org.openapitools.client.JSON; @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 class ComplexQuadrilateral { @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 class ComplexQuadrilateral { @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 94b76a3972e..53b4fe023d8 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 @@ import org.openapitools.client.JSON; @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 class DanishPig { @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 53a060b0e66..2551abc904d 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 @@ import org.openapitools.client.JSON; @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 class DeprecatedObject { @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 0b69f302fbc..e99cab89178 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 @@ import org.openapitools.client.JSON; 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 class Dog extends Animal { @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 9c7aa3c01af..aa41efe595f 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 @@ import org.openapitools.client.JSON; @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 class Drawing { @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 class Drawing { 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 class Drawing { 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 class Drawing { @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 e59c6521454..6238af12763 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 class EnumArrays { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** @@ -111,12 +112,13 @@ public class EnumArrays { } 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 class EnumArrays { @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 class EnumArrays { @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 3a793413436..59c58ab91eb 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 class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; + @javax.annotation.Nullable private EnumStringEnum enumString; /** @@ -129,6 +130,7 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** @@ -167,6 +169,7 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** @@ -205,6 +208,7 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_INTEGER_ONLY = "enum_integer_only"; + @javax.annotation.Nullable private EnumIntegerOnlyEnum enumIntegerOnly; /** @@ -243,24 +247,28 @@ public class EnumTest { } 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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 class EnumTest { 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 class EnumTest { @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 class EnumTest { @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 class EnumTest { @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 402b3a10e44..1c31a6c15b7 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 @@ import org.openapitools.client.JSON; @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 class EquilateralTriangle { @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 class EquilateralTriangle { @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 b5c7fd1bf45..170ad2b8b49 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 @@ import org.openapitools.client.JSON; @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 class FileSchemaTestClass { @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 class FileSchemaTestClass { @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 73df772a63a..c3d7e4aa3d8 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 @@ import org.openapitools.client.JSON; @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 class Foo { @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 de2d30f5a10..986bb8b5d00 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 @@ import org.openapitools.client.JSON; @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 class FooGetDefaultResponse { @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 7473d998aba..a51743669e2 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 @@ import org.openapitools.client.JSON; @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 class FormatTest { @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 53a36e10056..4512e112c8d 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 @@ import org.openapitools.client.JSON; 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 class GrandparentAnimal { @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 9f3ed7fb17d..10721debfd1 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 @@ import org.openapitools.client.JSON; @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 0cacc1bf51d..547f0d1bc84 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 class HealthCheckResult { 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 db386d847be..741c289a890 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 @@ import org.openapitools.client.JSON; @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 class IsoscelesTriangle { @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 class IsoscelesTriangle { @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 dd6910a09b0..dffb29de558 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 @@ import org.openapitools.client.JSON; @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 class MapTest { } 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 class MapTest { @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 class MapTest { @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 class MapTest { @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 class MapTest { @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 9488718bc62..0cdae9a6d43 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 @@ import org.openapitools.client.JSON; @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 62635253abb..35c20d8ca6a 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 @@ import org.openapitools.client.JSON; @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 class Model200Response { @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 class Model200Response { @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 bf2d01a3d91..15a4a419b28 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 @@ import org.openapitools.client.JSON; @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 class ModelApiResponse { @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 class ModelApiResponse { @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 class ModelApiResponse { @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 bfe8c0a714e..b9a89f3a17e 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 @@ import org.openapitools.client.JSON; @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 class ModelFile { @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 6da481f8156..1b91713f445 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 @@ import org.openapitools.client.JSON; @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 class ModelList { @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 d8624a066da..96d2ac44fe7 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 @@ import org.openapitools.client.JSON; @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 class ModelReturn { @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 be88755b620..56f543a8e55 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 @@ import org.openapitools.client.JSON; @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 class 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 class Name { @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 class Name { - public Name property(String property) { + public Name property(@javax.annotation.Nullable String property) { this.property = property; return this; } @@ -122,7 +126,7 @@ public class Name { @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 653cd5c80e4..f5617df6884 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { @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 class NullableClass { 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 class NullableClass { this.objectAndItemsNullableProp = objectAndItemsNullableProp; } - public void setObjectAndItemsNullableProp(Map 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 class NullableClass { @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 6b4c25bfb39..4a496bd97f4 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 @@ import org.openapitools.client.JSON; @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 class NumberOnly { @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 88f67756396..e6c33ef2e1d 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 @@ import org.openapitools.client.JSON; @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 8a8e6e65129..6193d72decd 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 @@ import org.openapitools.client.JSON; @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 class Order { } 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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 class Order { @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 52a0054efa9..26773fbe640 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 @@ import org.openapitools.client.JSON; @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 class OuterComposite { @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 class OuterComposite { @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 class OuterComposite { @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 96f0cdfc610..1a2bbc67b03 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 @@ import org.openapitools.client.JSON; @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 class Pet { } 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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { @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 05d826e7e69..7d2f4602c43 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 @@ import org.openapitools.client.JSON; @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 class QuadrilateralInterface { @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 1e1a29181b2..1900fe83eed 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 @@ import org.openapitools.client.JSON; @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 class ReadOnlyFirst { - public ReadOnlyFirst baz(String baz) { + public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { this.baz = baz; return this; } @@ -87,7 +89,7 @@ public class ReadOnlyFirst { @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 08ce9db3d6f..757ca96e161 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 @@ import org.openapitools.client.JSON; @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 class ScaleneTriangle { @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 class ScaleneTriangle { @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 2728d700639..1ca563f3048 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 @@ import org.openapitools.client.JSON; @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 class ShapeInterface { @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 c4e854ad671..9b4b85607a6 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 @@ import org.openapitools.client.JSON; @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 class SimpleQuadrilateral { @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 class SimpleQuadrilateral { @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 6d79fb013ac..d2ee2257b9c 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 @@ import org.openapitools.client.JSON; @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 class 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 class SpecialModelName { @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 8f375ade304..ebad74cb005 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 @@ import org.openapitools.client.JSON; @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 class Tag { @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 class Tag { @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 52c6ed70a8d..2fed072b1e7 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 @@ import org.openapitools.client.JSON; @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 class TestInlineFreeformAdditionalPropertiesRequest { @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 6676d1937a4..b736e78ae30 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 @@ import org.openapitools.client.JSON; @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 class TriangleInterface { @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 b06fd870383..2a11183ef57 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 @@ import org.openapitools.client.JSON; @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { @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 class User { this.objectWithNoDeclaredPropsNullable = objectWithNoDeclaredPropsNullable; } - public void setObjectWithNoDeclaredPropsNullable(Object objectWithNoDeclaredPropsNullable) { + public void setObjectWithNoDeclaredPropsNullable(@javax.annotation.Nullable Object objectWithNoDeclaredPropsNullable) { this.objectWithNoDeclaredPropsNullable = JsonNullable.of(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 class User { 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 class User { 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 dad5b3874ab..19204742743 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 @@ import org.openapitools.client.JSON; @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 class Whale { @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 class Whale { @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 class Whale { @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 df15190f2ea..f408a6fac66 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 class Zebra { } 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 class Zebra { @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 class Zebra { @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; }