From 5182955cca70a1da240e6e8086314519f7ede24e Mon Sep 17 00:00:00 2001 From: Slavek Kabrda Date: Fri, 16 Aug 2019 10:26:06 +0200 Subject: [PATCH] [Java][client] make it possible to send explicit nulls for nullable fields (#3474) * [Java][client] make it possible to send explicit nulls for nullable fields * Regenerate samples --- .../examples/java-client.xml | 8 +- .../examples/multi-module/java-client/pom.xml | 7 +- .../examples/multi-module/pom.xml | 1 + .../languages/AbstractJavaCodegen.java | 8 + .../codegen/languages/JavaClientCodegen.java | 35 ++ .../Java/jackson_annotations.mustache | 19 + .../Java/libraries/feign/ApiClient.mustache | 3 + .../Java/libraries/feign/pom.mustache | 6 + .../google-api-client/ApiClient.mustache | 3 + .../libraries/google-api-client/pom.mustache | 6 + .../Java/libraries/jersey2/JSON.mustache | 3 + .../Java/libraries/jersey2/pom.mustache | 6 + .../Java/libraries/native/ApiClient.mustache | 3 + .../Java/libraries/native/pom.mustache | 6 + .../Java/libraries/resteasy/JSON.mustache | 3 + .../Java/libraries/resteasy/pom.mustache | 6 + .../libraries/resttemplate/ApiClient.mustache | 3 + .../Java/libraries/resttemplate/pom.mustache | 6 + .../retrofit2/play24/ApiClient.mustache | 8 +- .../retrofit2/play25/ApiClient.mustache | 8 +- .../retrofit2/play26/ApiClient.mustache | 3 + .../Java/libraries/retrofit2/pom.mustache | 16 + .../Java/libraries/vertx/ApiClient.mustache | 3 + .../Java/libraries/vertx/pom.mustache | 6 + .../libraries/webclient/ApiClient.mustache | 3 + .../Java/libraries/webclient/pom.mustache | 6 + .../src/main/resources/Java/pojo.mustache | 88 ++++- .../groovy/org/openapitools/model/Pet.groovy | 2 +- samples/client/petstore/java/feign/pom.xml | 6 + .../org/openapitools/client/ApiClient.java | 3 + .../model/AdditionalPropertiesAnyType.java | 9 +- .../model/AdditionalPropertiesArray.java | 9 +- .../model/AdditionalPropertiesBoolean.java | 9 +- .../model/AdditionalPropertiesClass.java | 95 ++++- .../model/AdditionalPropertiesInteger.java | 9 +- .../model/AdditionalPropertiesNumber.java | 9 +- .../model/AdditionalPropertiesObject.java | 9 +- .../model/AdditionalPropertiesString.java | 9 +- .../org/openapitools/client/model/Animal.java | 17 +- .../model/ArrayOfArrayOfNumberOnly.java | 9 +- .../client/model/ArrayOfNumberOnly.java | 9 +- .../openapitools/client/model/ArrayTest.java | 25 +- .../client/model/Capitalization.java | 49 ++- .../org/openapitools/client/model/Cat.java | 9 +- .../openapitools/client/model/CatAllOf.java | 9 +- .../openapitools/client/model/Category.java | 17 +- .../openapitools/client/model/ClassModel.java | 9 +- .../org/openapitools/client/model/Client.java | 9 +- .../org/openapitools/client/model/Dog.java | 9 +- .../openapitools/client/model/DogAllOf.java | 9 +- .../openapitools/client/model/EnumArrays.java | 17 +- .../openapitools/client/model/EnumTest.java | 41 +- .../client/model/FileSchemaTestClass.java | 19 +- .../openapitools/client/model/FormatTest.java | 105 +++++- .../client/model/HasOnlyReadOnly.java | 15 +- .../openapitools/client/model/MapTest.java | 33 +- ...ropertiesAndAdditionalPropertiesClass.java | 25 +- .../client/model/Model200Response.java | 17 +- .../client/model/ModelApiResponse.java | 25 +- .../client/model/ModelReturn.java | 9 +- .../org/openapitools/client/model/Name.java | 31 +- .../openapitools/client/model/NumberOnly.java | 9 +- .../org/openapitools/client/model/Order.java | 49 ++- .../client/model/OuterComposite.java | 25 +- .../org/openapitools/client/model/Pet.java | 51 ++- .../client/model/ReadOnlyFirst.java | 16 +- .../client/model/SpecialModelName.java | 9 +- .../org/openapitools/client/model/Tag.java | 17 +- .../client/model/TypeHolderDefault.java | 41 +- .../client/model/TypeHolderExample.java | 41 +- .../org/openapitools/client/model/User.java | 65 +++- .../openapitools/client/model/XmlItem.java | 233 ++++++++++-- samples/client/petstore/java/feign10x/pom.xml | 6 + .../org/openapitools/client/ApiClient.java | 3 + .../model/AdditionalPropertiesAnyType.java | 9 +- .../model/AdditionalPropertiesArray.java | 9 +- .../model/AdditionalPropertiesBoolean.java | 9 +- .../model/AdditionalPropertiesClass.java | 95 ++++- .../model/AdditionalPropertiesInteger.java | 9 +- .../model/AdditionalPropertiesNumber.java | 9 +- .../model/AdditionalPropertiesObject.java | 9 +- .../model/AdditionalPropertiesString.java | 9 +- .../org/openapitools/client/model/Animal.java | 17 +- .../model/ArrayOfArrayOfNumberOnly.java | 9 +- .../client/model/ArrayOfNumberOnly.java | 9 +- .../openapitools/client/model/ArrayTest.java | 25 +- .../client/model/Capitalization.java | 49 ++- .../org/openapitools/client/model/Cat.java | 9 +- .../openapitools/client/model/CatAllOf.java | 9 +- .../openapitools/client/model/Category.java | 17 +- .../openapitools/client/model/ClassModel.java | 9 +- .../org/openapitools/client/model/Client.java | 9 +- .../org/openapitools/client/model/Dog.java | 9 +- .../openapitools/client/model/DogAllOf.java | 9 +- .../openapitools/client/model/EnumArrays.java | 17 +- .../openapitools/client/model/EnumTest.java | 41 +- .../client/model/FileSchemaTestClass.java | 19 +- .../openapitools/client/model/FormatTest.java | 105 +++++- .../client/model/HasOnlyReadOnly.java | 15 +- .../openapitools/client/model/MapTest.java | 33 +- ...ropertiesAndAdditionalPropertiesClass.java | 25 +- .../client/model/Model200Response.java | 17 +- .../client/model/ModelApiResponse.java | 25 +- .../client/model/ModelReturn.java | 9 +- .../org/openapitools/client/model/Name.java | 31 +- .../openapitools/client/model/NumberOnly.java | 9 +- .../org/openapitools/client/model/Order.java | 49 ++- .../client/model/OuterComposite.java | 25 +- .../org/openapitools/client/model/Pet.java | 51 ++- .../client/model/ReadOnlyFirst.java | 16 +- .../client/model/SpecialModelName.java | 9 +- .../org/openapitools/client/model/Tag.java | 17 +- .../client/model/TypeHolderDefault.java | 41 +- .../client/model/TypeHolderExample.java | 41 +- .../org/openapitools/client/model/User.java | 65 +++- .../openapitools/client/model/XmlItem.java | 233 ++++++++++-- .../java/google-api-client/docs/UserApi.md | 4 +- .../petstore/java/google-api-client/pom.xml | 6 + .../org/openapitools/client/ApiClient.java | 3 + .../model/AdditionalPropertiesAnyType.java | 9 +- .../model/AdditionalPropertiesArray.java | 9 +- .../model/AdditionalPropertiesBoolean.java | 9 +- .../model/AdditionalPropertiesClass.java | 95 ++++- .../model/AdditionalPropertiesInteger.java | 9 +- .../model/AdditionalPropertiesNumber.java | 9 +- .../model/AdditionalPropertiesObject.java | 9 +- .../model/AdditionalPropertiesString.java | 9 +- .../org/openapitools/client/model/Animal.java | 17 +- .../model/ArrayOfArrayOfNumberOnly.java | 9 +- .../client/model/ArrayOfNumberOnly.java | 9 +- .../openapitools/client/model/ArrayTest.java | 25 +- .../client/model/Capitalization.java | 49 ++- .../org/openapitools/client/model/Cat.java | 9 +- .../openapitools/client/model/CatAllOf.java | 9 +- .../openapitools/client/model/Category.java | 17 +- .../openapitools/client/model/ClassModel.java | 9 +- .../org/openapitools/client/model/Client.java | 9 +- .../org/openapitools/client/model/Dog.java | 9 +- .../openapitools/client/model/DogAllOf.java | 9 +- .../openapitools/client/model/EnumArrays.java | 17 +- .../openapitools/client/model/EnumTest.java | 41 +- .../client/model/FileSchemaTestClass.java | 19 +- .../openapitools/client/model/FormatTest.java | 105 +++++- .../client/model/HasOnlyReadOnly.java | 15 +- .../openapitools/client/model/MapTest.java | 33 +- ...ropertiesAndAdditionalPropertiesClass.java | 25 +- .../client/model/Model200Response.java | 17 +- .../client/model/ModelApiResponse.java | 25 +- .../client/model/ModelReturn.java | 9 +- .../org/openapitools/client/model/Name.java | 31 +- .../openapitools/client/model/NumberOnly.java | 9 +- .../org/openapitools/client/model/Order.java | 49 ++- .../client/model/OuterComposite.java | 25 +- .../org/openapitools/client/model/Pet.java | 51 ++- .../client/model/ReadOnlyFirst.java | 16 +- .../client/model/SpecialModelName.java | 9 +- .../org/openapitools/client/model/Tag.java | 17 +- .../client/model/TypeHolderDefault.java | 41 +- .../client/model/TypeHolderExample.java | 41 +- .../org/openapitools/client/model/User.java | 65 +++- .../openapitools/client/model/XmlItem.java | 233 ++++++++++-- .../petstore/java/jersey1/docs/UserApi.md | 4 +- .../model/AdditionalPropertiesAnyType.java | 9 +- .../model/AdditionalPropertiesArray.java | 9 +- .../model/AdditionalPropertiesBoolean.java | 9 +- .../model/AdditionalPropertiesClass.java | 95 ++++- .../model/AdditionalPropertiesInteger.java | 9 +- .../model/AdditionalPropertiesNumber.java | 9 +- .../model/AdditionalPropertiesObject.java | 9 +- .../model/AdditionalPropertiesString.java | 9 +- .../org/openapitools/client/model/Animal.java | 17 +- .../model/ArrayOfArrayOfNumberOnly.java | 9 +- .../client/model/ArrayOfNumberOnly.java | 9 +- .../openapitools/client/model/ArrayTest.java | 25 +- .../client/model/Capitalization.java | 49 ++- .../org/openapitools/client/model/Cat.java | 9 +- .../openapitools/client/model/CatAllOf.java | 9 +- .../openapitools/client/model/Category.java | 17 +- .../openapitools/client/model/ClassModel.java | 9 +- .../org/openapitools/client/model/Client.java | 9 +- .../org/openapitools/client/model/Dog.java | 9 +- .../openapitools/client/model/DogAllOf.java | 9 +- .../openapitools/client/model/EnumArrays.java | 17 +- .../openapitools/client/model/EnumTest.java | 41 +- .../client/model/FileSchemaTestClass.java | 19 +- .../openapitools/client/model/FormatTest.java | 105 +++++- .../client/model/HasOnlyReadOnly.java | 15 +- .../openapitools/client/model/MapTest.java | 33 +- ...ropertiesAndAdditionalPropertiesClass.java | 25 +- .../client/model/Model200Response.java | 17 +- .../client/model/ModelApiResponse.java | 25 +- .../client/model/ModelReturn.java | 9 +- .../org/openapitools/client/model/Name.java | 31 +- .../openapitools/client/model/NumberOnly.java | 9 +- .../org/openapitools/client/model/Order.java | 49 ++- .../client/model/OuterComposite.java | 25 +- .../org/openapitools/client/model/Pet.java | 51 ++- .../client/model/ReadOnlyFirst.java | 16 +- .../client/model/SpecialModelName.java | 9 +- .../org/openapitools/client/model/Tag.java | 17 +- .../client/model/TypeHolderDefault.java | 41 +- .../client/model/TypeHolderExample.java | 41 +- .../org/openapitools/client/model/User.java | 65 +++- .../openapitools/client/model/XmlItem.java | 233 ++++++++++-- .../java/jersey2-java6/docs/UserApi.md | 4 +- .../petstore/java/jersey2-java6/pom.xml | 6 + .../java/org/openapitools/client/JSON.java | 3 + .../model/AdditionalPropertiesAnyType.java | 9 +- .../model/AdditionalPropertiesArray.java | 9 +- .../model/AdditionalPropertiesBoolean.java | 9 +- .../model/AdditionalPropertiesClass.java | 95 ++++- .../model/AdditionalPropertiesInteger.java | 9 +- .../model/AdditionalPropertiesNumber.java | 9 +- .../model/AdditionalPropertiesObject.java | 9 +- .../model/AdditionalPropertiesString.java | 9 +- .../org/openapitools/client/model/Animal.java | 17 +- .../model/ArrayOfArrayOfNumberOnly.java | 9 +- .../client/model/ArrayOfNumberOnly.java | 9 +- .../openapitools/client/model/ArrayTest.java | 25 +- .../client/model/Capitalization.java | 49 ++- .../org/openapitools/client/model/Cat.java | 9 +- .../openapitools/client/model/CatAllOf.java | 9 +- .../openapitools/client/model/Category.java | 17 +- .../openapitools/client/model/ClassModel.java | 9 +- .../org/openapitools/client/model/Client.java | 9 +- .../org/openapitools/client/model/Dog.java | 9 +- .../openapitools/client/model/DogAllOf.java | 9 +- .../openapitools/client/model/EnumArrays.java | 17 +- .../openapitools/client/model/EnumTest.java | 41 +- .../client/model/FileSchemaTestClass.java | 19 +- .../openapitools/client/model/FormatTest.java | 105 +++++- .../client/model/HasOnlyReadOnly.java | 15 +- .../openapitools/client/model/MapTest.java | 33 +- ...ropertiesAndAdditionalPropertiesClass.java | 25 +- .../client/model/Model200Response.java | 17 +- .../client/model/ModelApiResponse.java | 25 +- .../client/model/ModelReturn.java | 9 +- .../org/openapitools/client/model/Name.java | 31 +- .../openapitools/client/model/NumberOnly.java | 9 +- .../org/openapitools/client/model/Order.java | 49 ++- .../client/model/OuterComposite.java | 25 +- .../org/openapitools/client/model/Pet.java | 51 ++- .../client/model/ReadOnlyFirst.java | 16 +- .../client/model/SpecialModelName.java | 9 +- .../org/openapitools/client/model/Tag.java | 17 +- .../client/model/TypeHolderDefault.java | 41 +- .../client/model/TypeHolderExample.java | 41 +- .../org/openapitools/client/model/User.java | 65 +++- .../openapitools/client/model/XmlItem.java | 233 ++++++++++-- .../java/jersey2-java8/docs/UserApi.md | 4 +- .../petstore/java/jersey2-java8/pom.xml | 6 + .../java/org/openapitools/client/JSON.java | 3 + .../model/AdditionalPropertiesAnyType.java | 9 +- .../model/AdditionalPropertiesArray.java | 9 +- .../model/AdditionalPropertiesBoolean.java | 9 +- .../model/AdditionalPropertiesClass.java | 95 ++++- .../model/AdditionalPropertiesInteger.java | 9 +- .../model/AdditionalPropertiesNumber.java | 9 +- .../model/AdditionalPropertiesObject.java | 9 +- .../model/AdditionalPropertiesString.java | 9 +- .../org/openapitools/client/model/Animal.java | 17 +- .../model/ArrayOfArrayOfNumberOnly.java | 9 +- .../client/model/ArrayOfNumberOnly.java | 9 +- .../openapitools/client/model/ArrayTest.java | 25 +- .../client/model/Capitalization.java | 49 ++- .../org/openapitools/client/model/Cat.java | 9 +- .../openapitools/client/model/CatAllOf.java | 9 +- .../openapitools/client/model/Category.java | 17 +- .../openapitools/client/model/ClassModel.java | 9 +- .../org/openapitools/client/model/Client.java | 9 +- .../org/openapitools/client/model/Dog.java | 9 +- .../openapitools/client/model/DogAllOf.java | 9 +- .../openapitools/client/model/EnumArrays.java | 17 +- .../openapitools/client/model/EnumTest.java | 41 +- .../client/model/FileSchemaTestClass.java | 19 +- .../openapitools/client/model/FormatTest.java | 105 +++++- .../client/model/HasOnlyReadOnly.java | 15 +- .../openapitools/client/model/MapTest.java | 33 +- ...ropertiesAndAdditionalPropertiesClass.java | 25 +- .../client/model/Model200Response.java | 17 +- .../client/model/ModelApiResponse.java | 25 +- .../client/model/ModelReturn.java | 9 +- .../org/openapitools/client/model/Name.java | 31 +- .../openapitools/client/model/NumberOnly.java | 9 +- .../org/openapitools/client/model/Order.java | 49 ++- .../client/model/OuterComposite.java | 25 +- .../org/openapitools/client/model/Pet.java | 51 ++- .../client/model/ReadOnlyFirst.java | 16 +- .../client/model/SpecialModelName.java | 9 +- .../org/openapitools/client/model/Tag.java | 17 +- .../client/model/TypeHolderDefault.java | 41 +- .../client/model/TypeHolderExample.java | 41 +- .../org/openapitools/client/model/User.java | 65 +++- .../openapitools/client/model/XmlItem.java | 233 ++++++++++-- .../petstore/java/jersey2/docs/UserApi.md | 4 +- samples/client/petstore/java/jersey2/pom.xml | 6 + .../java/org/openapitools/client/JSON.java | 3 + .../model/AdditionalPropertiesAnyType.java | 9 +- .../model/AdditionalPropertiesArray.java | 9 +- .../model/AdditionalPropertiesBoolean.java | 9 +- .../model/AdditionalPropertiesClass.java | 95 ++++- .../model/AdditionalPropertiesInteger.java | 9 +- .../model/AdditionalPropertiesNumber.java | 9 +- .../model/AdditionalPropertiesObject.java | 9 +- .../model/AdditionalPropertiesString.java | 9 +- .../org/openapitools/client/model/Animal.java | 17 +- .../model/ArrayOfArrayOfNumberOnly.java | 9 +- .../client/model/ArrayOfNumberOnly.java | 9 +- .../openapitools/client/model/ArrayTest.java | 25 +- .../client/model/Capitalization.java | 49 ++- .../org/openapitools/client/model/Cat.java | 9 +- .../openapitools/client/model/CatAllOf.java | 9 +- .../openapitools/client/model/Category.java | 17 +- .../openapitools/client/model/ClassModel.java | 9 +- .../org/openapitools/client/model/Client.java | 9 +- .../org/openapitools/client/model/Dog.java | 9 +- .../openapitools/client/model/DogAllOf.java | 9 +- .../openapitools/client/model/EnumArrays.java | 17 +- .../openapitools/client/model/EnumTest.java | 41 +- .../client/model/FileSchemaTestClass.java | 19 +- .../openapitools/client/model/FormatTest.java | 105 +++++- .../client/model/HasOnlyReadOnly.java | 15 +- .../openapitools/client/model/MapTest.java | 33 +- ...ropertiesAndAdditionalPropertiesClass.java | 25 +- .../client/model/Model200Response.java | 17 +- .../client/model/ModelApiResponse.java | 25 +- .../client/model/ModelReturn.java | 9 +- .../org/openapitools/client/model/Name.java | 31 +- .../openapitools/client/model/NumberOnly.java | 9 +- .../org/openapitools/client/model/Order.java | 49 ++- .../client/model/OuterComposite.java | 25 +- .../org/openapitools/client/model/Pet.java | 51 ++- .../client/model/ReadOnlyFirst.java | 16 +- .../client/model/SpecialModelName.java | 9 +- .../org/openapitools/client/model/Tag.java | 17 +- .../client/model/TypeHolderDefault.java | 41 +- .../client/model/TypeHolderExample.java | 41 +- .../org/openapitools/client/model/User.java | 65 +++- .../openapitools/client/model/XmlItem.java | 233 ++++++++++-- .../petstore/java/native/docs/UserApi.md | 4 +- samples/client/petstore/java/native/pom.xml | 6 + .../org/openapitools/client/ApiClient.java | 3 + .../model/AdditionalPropertiesAnyType.java | 9 +- .../model/AdditionalPropertiesArray.java | 9 +- .../model/AdditionalPropertiesBoolean.java | 9 +- .../model/AdditionalPropertiesClass.java | 95 ++++- .../model/AdditionalPropertiesInteger.java | 9 +- .../model/AdditionalPropertiesNumber.java | 9 +- .../model/AdditionalPropertiesObject.java | 9 +- .../model/AdditionalPropertiesString.java | 9 +- .../org/openapitools/client/model/Animal.java | 17 +- .../model/ArrayOfArrayOfNumberOnly.java | 9 +- .../client/model/ArrayOfNumberOnly.java | 9 +- .../openapitools/client/model/ArrayTest.java | 25 +- .../client/model/Capitalization.java | 49 ++- .../org/openapitools/client/model/Cat.java | 9 +- .../openapitools/client/model/CatAllOf.java | 9 +- .../openapitools/client/model/Category.java | 17 +- .../openapitools/client/model/ClassModel.java | 9 +- .../org/openapitools/client/model/Client.java | 9 +- .../org/openapitools/client/model/Dog.java | 9 +- .../openapitools/client/model/DogAllOf.java | 9 +- .../openapitools/client/model/EnumArrays.java | 17 +- .../openapitools/client/model/EnumTest.java | 41 +- .../client/model/FileSchemaTestClass.java | 19 +- .../openapitools/client/model/FormatTest.java | 105 +++++- .../client/model/HasOnlyReadOnly.java | 15 +- .../openapitools/client/model/MapTest.java | 33 +- ...ropertiesAndAdditionalPropertiesClass.java | 25 +- .../client/model/Model200Response.java | 17 +- .../client/model/ModelApiResponse.java | 25 +- .../client/model/ModelReturn.java | 9 +- .../org/openapitools/client/model/Name.java | 31 +- .../openapitools/client/model/NumberOnly.java | 9 +- .../org/openapitools/client/model/Order.java | 49 ++- .../client/model/OuterComposite.java | 25 +- .../org/openapitools/client/model/Pet.java | 51 ++- .../client/model/ReadOnlyFirst.java | 16 +- .../client/model/SpecialModelName.java | 9 +- .../org/openapitools/client/model/Tag.java | 17 +- .../client/model/TypeHolderDefault.java | 41 +- .../client/model/TypeHolderExample.java | 41 +- .../org/openapitools/client/model/User.java | 65 +++- .../openapitools/client/model/XmlItem.java | 233 ++++++++++-- .../docs/UserApi.md | 4 +- .../model/AdditionalPropertiesAnyType.java | 5 + .../model/AdditionalPropertiesArray.java | 5 + .../model/AdditionalPropertiesBoolean.java | 5 + .../model/AdditionalPropertiesClass.java | 61 ++- .../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 + .../client/model/Capitalization.java | 30 ++ .../org/openapitools/client/model/Cat.java | 5 + .../openapitools/client/model/CatAllOf.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/DogAllOf.java | 5 + .../openapitools/client/model/EnumArrays.java | 10 + .../openapitools/client/model/EnumTest.java | 25 ++ .../client/model/FileSchemaTestClass.java | 12 +- .../openapitools/client/model/FormatTest.java | 65 ++++ .../client/model/HasOnlyReadOnly.java | 8 + .../openapitools/client/model/MapTest.java | 20 + ...ropertiesAndAdditionalPropertiesClass.java | 15 + .../client/model/Model200Response.java | 10 + .../client/model/ModelApiResponse.java | 15 + .../client/model/ModelReturn.java | 5 + .../org/openapitools/client/model/Name.java | 18 + .../openapitools/client/model/NumberOnly.java | 5 + .../org/openapitools/client/model/Order.java | 30 ++ .../client/model/OuterComposite.java | 15 + .../org/openapitools/client/model/Pet.java | 32 +- .../client/model/ReadOnlyFirst.java | 9 + .../client/model/SpecialModelName.java | 5 + .../org/openapitools/client/model/Tag.java | 10 + .../client/model/TypeHolderDefault.java | 25 ++ .../client/model/TypeHolderExample.java | 25 ++ .../org/openapitools/client/model/User.java | 40 ++ .../openapitools/client/model/XmlItem.java | 145 ++++++++ .../petstore/java/okhttp-gson/docs/UserApi.md | 4 +- .../model/AdditionalPropertiesAnyType.java | 5 + .../model/AdditionalPropertiesArray.java | 5 + .../model/AdditionalPropertiesBoolean.java | 5 + .../model/AdditionalPropertiesClass.java | 61 ++- .../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 + .../client/model/Capitalization.java | 30 ++ .../org/openapitools/client/model/Cat.java | 5 + .../openapitools/client/model/CatAllOf.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/DogAllOf.java | 5 + .../openapitools/client/model/EnumArrays.java | 10 + .../openapitools/client/model/EnumTest.java | 25 ++ .../client/model/FileSchemaTestClass.java | 12 +- .../openapitools/client/model/FormatTest.java | 65 ++++ .../client/model/HasOnlyReadOnly.java | 8 + .../openapitools/client/model/MapTest.java | 20 + ...ropertiesAndAdditionalPropertiesClass.java | 15 + .../client/model/Model200Response.java | 10 + .../client/model/ModelApiResponse.java | 15 + .../client/model/ModelReturn.java | 5 + .../org/openapitools/client/model/Name.java | 18 + .../openapitools/client/model/NumberOnly.java | 5 + .../org/openapitools/client/model/Order.java | 30 ++ .../client/model/OuterComposite.java | 15 + .../org/openapitools/client/model/Pet.java | 32 +- .../client/model/ReadOnlyFirst.java | 9 + .../client/model/SpecialModelName.java | 5 + .../org/openapitools/client/model/Tag.java | 10 + .../client/model/TypeHolderDefault.java | 25 ++ .../client/model/TypeHolderExample.java | 25 ++ .../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 | 61 ++- .../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 + .../client/model/Capitalization.java | 30 ++ .../org/openapitools/client/model/Cat.java | 5 + .../openapitools/client/model/CatAllOf.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/DogAllOf.java | 5 + .../openapitools/client/model/EnumArrays.java | 10 + .../openapitools/client/model/EnumTest.java | 25 ++ .../client/model/FileSchemaTestClass.java | 12 +- .../openapitools/client/model/FormatTest.java | 65 ++++ .../client/model/HasOnlyReadOnly.java | 8 + .../openapitools/client/model/MapTest.java | 20 + ...ropertiesAndAdditionalPropertiesClass.java | 15 + .../client/model/Model200Response.java | 10 + .../client/model/ModelApiResponse.java | 15 + .../client/model/ModelReturn.java | 5 + .../org/openapitools/client/model/Name.java | 18 + .../openapitools/client/model/NumberOnly.java | 5 + .../org/openapitools/client/model/Order.java | 30 ++ .../client/model/OuterComposite.java | 15 + .../org/openapitools/client/model/Pet.java | 32 +- .../client/model/ReadOnlyFirst.java | 9 + .../client/model/SpecialModelName.java | 5 + .../org/openapitools/client/model/Tag.java | 10 + .../client/model/TypeHolderDefault.java | 25 ++ .../client/model/TypeHolderExample.java | 25 ++ .../org/openapitools/client/model/User.java | 40 ++ .../openapitools/client/model/XmlItem.java | 145 ++++++++ .../petstore/java/resteasy/docs/UserApi.md | 4 +- samples/client/petstore/java/resteasy/pom.xml | 6 + .../java/org/openapitools/client/JSON.java | 3 + .../model/AdditionalPropertiesAnyType.java | 9 +- .../model/AdditionalPropertiesArray.java | 9 +- .../model/AdditionalPropertiesBoolean.java | 9 +- .../model/AdditionalPropertiesClass.java | 95 ++++- .../model/AdditionalPropertiesInteger.java | 9 +- .../model/AdditionalPropertiesNumber.java | 9 +- .../model/AdditionalPropertiesObject.java | 9 +- .../model/AdditionalPropertiesString.java | 9 +- .../org/openapitools/client/model/Animal.java | 17 +- .../model/ArrayOfArrayOfNumberOnly.java | 9 +- .../client/model/ArrayOfNumberOnly.java | 9 +- .../openapitools/client/model/ArrayTest.java | 25 +- .../client/model/Capitalization.java | 49 ++- .../org/openapitools/client/model/Cat.java | 9 +- .../openapitools/client/model/CatAllOf.java | 9 +- .../openapitools/client/model/Category.java | 17 +- .../openapitools/client/model/ClassModel.java | 9 +- .../org/openapitools/client/model/Client.java | 9 +- .../org/openapitools/client/model/Dog.java | 9 +- .../openapitools/client/model/DogAllOf.java | 9 +- .../openapitools/client/model/EnumArrays.java | 17 +- .../openapitools/client/model/EnumTest.java | 41 +- .../client/model/FileSchemaTestClass.java | 19 +- .../openapitools/client/model/FormatTest.java | 105 +++++- .../client/model/HasOnlyReadOnly.java | 15 +- .../openapitools/client/model/MapTest.java | 33 +- ...ropertiesAndAdditionalPropertiesClass.java | 25 +- .../client/model/Model200Response.java | 17 +- .../client/model/ModelApiResponse.java | 25 +- .../client/model/ModelReturn.java | 9 +- .../org/openapitools/client/model/Name.java | 31 +- .../openapitools/client/model/NumberOnly.java | 9 +- .../org/openapitools/client/model/Order.java | 49 ++- .../client/model/OuterComposite.java | 25 +- .../org/openapitools/client/model/Pet.java | 51 ++- .../client/model/ReadOnlyFirst.java | 16 +- .../client/model/SpecialModelName.java | 9 +- .../org/openapitools/client/model/Tag.java | 17 +- .../client/model/TypeHolderDefault.java | 41 +- .../client/model/TypeHolderExample.java | 41 +- .../org/openapitools/client/model/User.java | 65 +++- .../openapitools/client/model/XmlItem.java | 233 ++++++++++-- .../java/resttemplate-withXml/docs/UserApi.md | 4 +- .../java/resttemplate-withXml/pom.xml | 6 + .../org/openapitools/client/ApiClient.java | 3 + .../model/AdditionalPropertiesAnyType.java | 13 +- .../model/AdditionalPropertiesArray.java | 13 +- .../model/AdditionalPropertiesBoolean.java | 13 +- .../model/AdditionalPropertiesClass.java | 123 ++++-- .../model/AdditionalPropertiesInteger.java | 13 +- .../model/AdditionalPropertiesNumber.java | 13 +- .../model/AdditionalPropertiesObject.java | 13 +- .../model/AdditionalPropertiesString.java | 13 +- .../org/openapitools/client/model/Animal.java | 25 +- .../model/ArrayOfArrayOfNumberOnly.java | 11 +- .../client/model/ArrayOfNumberOnly.java | 11 +- .../openapitools/client/model/ArrayTest.java | 31 +- .../client/model/Capitalization.java | 73 +++- .../org/openapitools/client/model/Cat.java | 13 +- .../openapitools/client/model/CatAllOf.java | 13 +- .../openapitools/client/model/Category.java | 25 +- .../openapitools/client/model/ClassModel.java | 13 +- .../org/openapitools/client/model/Client.java | 13 +- .../org/openapitools/client/model/Dog.java | 13 +- .../openapitools/client/model/DogAllOf.java | 13 +- .../openapitools/client/model/EnumArrays.java | 23 +- .../openapitools/client/model/EnumTest.java | 61 ++- .../client/model/FileSchemaTestClass.java | 25 +- .../openapitools/client/model/FormatTest.java | 157 ++++++-- .../client/model/HasOnlyReadOnly.java | 23 +- .../openapitools/client/model/MapTest.java | 41 +- ...ropertiesAndAdditionalPropertiesClass.java | 35 +- .../client/model/Model200Response.java | 25 +- .../client/model/ModelApiResponse.java | 37 +- .../client/model/ModelReturn.java | 13 +- .../org/openapitools/client/model/Name.java | 47 ++- .../openapitools/client/model/NumberOnly.java | 13 +- .../org/openapitools/client/model/Order.java | 73 +++- .../client/model/OuterComposite.java | 37 +- .../org/openapitools/client/model/Pet.java | 79 ++-- .../client/model/ReadOnlyFirst.java | 24 +- .../client/model/SpecialModelName.java | 13 +- .../org/openapitools/client/model/Tag.java | 25 +- .../client/model/TypeHolderDefault.java | 59 ++- .../client/model/TypeHolderExample.java | 59 ++- .../org/openapitools/client/model/User.java | 97 +++-- .../openapitools/client/model/XmlItem.java | 351 +++++++++++++----- .../java/resttemplate/docs/UserApi.md | 4 +- .../client/petstore/java/resttemplate/pom.xml | 6 + .../org/openapitools/client/ApiClient.java | 2 + .../model/AdditionalPropertiesAnyType.java | 9 +- .../model/AdditionalPropertiesArray.java | 9 +- .../model/AdditionalPropertiesBoolean.java | 9 +- .../model/AdditionalPropertiesClass.java | 95 ++++- .../model/AdditionalPropertiesInteger.java | 9 +- .../model/AdditionalPropertiesNumber.java | 9 +- .../model/AdditionalPropertiesObject.java | 9 +- .../model/AdditionalPropertiesString.java | 9 +- .../org/openapitools/client/model/Animal.java | 17 +- .../model/ArrayOfArrayOfNumberOnly.java | 9 +- .../client/model/ArrayOfNumberOnly.java | 9 +- .../openapitools/client/model/ArrayTest.java | 25 +- .../client/model/Capitalization.java | 49 ++- .../org/openapitools/client/model/Cat.java | 9 +- .../openapitools/client/model/CatAllOf.java | 9 +- .../openapitools/client/model/Category.java | 17 +- .../openapitools/client/model/ClassModel.java | 9 +- .../org/openapitools/client/model/Client.java | 9 +- .../org/openapitools/client/model/Dog.java | 9 +- .../openapitools/client/model/DogAllOf.java | 9 +- .../openapitools/client/model/EnumArrays.java | 17 +- .../openapitools/client/model/EnumTest.java | 41 +- .../client/model/FileSchemaTestClass.java | 19 +- .../openapitools/client/model/FormatTest.java | 105 +++++- .../client/model/HasOnlyReadOnly.java | 15 +- .../openapitools/client/model/MapTest.java | 33 +- ...ropertiesAndAdditionalPropertiesClass.java | 25 +- .../client/model/Model200Response.java | 17 +- .../client/model/ModelApiResponse.java | 25 +- .../client/model/ModelReturn.java | 9 +- .../org/openapitools/client/model/Name.java | 31 +- .../openapitools/client/model/NumberOnly.java | 9 +- .../org/openapitools/client/model/Order.java | 49 ++- .../client/model/OuterComposite.java | 25 +- .../org/openapitools/client/model/Pet.java | 51 ++- .../client/model/ReadOnlyFirst.java | 16 +- .../client/model/SpecialModelName.java | 9 +- .../org/openapitools/client/model/Tag.java | 17 +- .../client/model/TypeHolderDefault.java | 41 +- .../client/model/TypeHolderExample.java | 41 +- .../org/openapitools/client/model/User.java | 65 +++- .../openapitools/client/model/XmlItem.java | 233 ++++++++++-- .../model/AdditionalPropertiesAnyType.java | 5 + .../model/AdditionalPropertiesArray.java | 5 + .../model/AdditionalPropertiesBoolean.java | 5 + .../model/AdditionalPropertiesClass.java | 61 ++- .../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 + .../client/model/Capitalization.java | 30 ++ .../org/openapitools/client/model/Cat.java | 5 + .../openapitools/client/model/CatAllOf.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/DogAllOf.java | 5 + .../openapitools/client/model/EnumArrays.java | 10 + .../openapitools/client/model/EnumTest.java | 25 ++ .../client/model/FileSchemaTestClass.java | 12 +- .../openapitools/client/model/FormatTest.java | 65 ++++ .../client/model/HasOnlyReadOnly.java | 8 + .../openapitools/client/model/MapTest.java | 20 + ...ropertiesAndAdditionalPropertiesClass.java | 15 + .../client/model/Model200Response.java | 10 + .../client/model/ModelApiResponse.java | 15 + .../client/model/ModelReturn.java | 5 + .../org/openapitools/client/model/Name.java | 18 + .../openapitools/client/model/NumberOnly.java | 5 + .../org/openapitools/client/model/Order.java | 30 ++ .../client/model/OuterComposite.java | 15 + .../org/openapitools/client/model/Pet.java | 32 +- .../client/model/ReadOnlyFirst.java | 9 + .../client/model/SpecialModelName.java | 5 + .../org/openapitools/client/model/Tag.java | 10 + .../client/model/TypeHolderDefault.java | 25 ++ .../client/model/TypeHolderExample.java | 25 ++ .../org/openapitools/client/model/User.java | 40 ++ .../openapitools/client/model/XmlItem.java | 145 ++++++++ .../java/retrofit2-play24/docs/UserApi.md | 4 +- .../petstore/java/retrofit2-play24/pom.xml | 6 + .../org/openapitools/client/ApiClient.java | 8 +- .../model/AdditionalPropertiesAnyType.java | 9 +- .../model/AdditionalPropertiesArray.java | 9 +- .../model/AdditionalPropertiesBoolean.java | 9 +- .../model/AdditionalPropertiesClass.java | 95 ++++- .../model/AdditionalPropertiesInteger.java | 9 +- .../model/AdditionalPropertiesNumber.java | 9 +- .../model/AdditionalPropertiesObject.java | 9 +- .../model/AdditionalPropertiesString.java | 9 +- .../org/openapitools/client/model/Animal.java | 17 +- .../model/ArrayOfArrayOfNumberOnly.java | 9 +- .../client/model/ArrayOfNumberOnly.java | 9 +- .../openapitools/client/model/ArrayTest.java | 25 +- .../client/model/Capitalization.java | 49 ++- .../org/openapitools/client/model/Cat.java | 9 +- .../openapitools/client/model/CatAllOf.java | 9 +- .../openapitools/client/model/Category.java | 17 +- .../openapitools/client/model/ClassModel.java | 9 +- .../org/openapitools/client/model/Client.java | 9 +- .../org/openapitools/client/model/Dog.java | 9 +- .../openapitools/client/model/DogAllOf.java | 9 +- .../openapitools/client/model/EnumArrays.java | 17 +- .../openapitools/client/model/EnumTest.java | 41 +- .../client/model/FileSchemaTestClass.java | 19 +- .../openapitools/client/model/FormatTest.java | 105 +++++- .../client/model/HasOnlyReadOnly.java | 15 +- .../openapitools/client/model/MapTest.java | 33 +- ...ropertiesAndAdditionalPropertiesClass.java | 25 +- .../client/model/Model200Response.java | 17 +- .../client/model/ModelApiResponse.java | 25 +- .../client/model/ModelReturn.java | 9 +- .../org/openapitools/client/model/Name.java | 31 +- .../openapitools/client/model/NumberOnly.java | 9 +- .../org/openapitools/client/model/Order.java | 49 ++- .../client/model/OuterComposite.java | 25 +- .../org/openapitools/client/model/Pet.java | 51 ++- .../client/model/ReadOnlyFirst.java | 16 +- .../client/model/SpecialModelName.java | 9 +- .../org/openapitools/client/model/Tag.java | 17 +- .../client/model/TypeHolderDefault.java | 41 +- .../client/model/TypeHolderExample.java | 41 +- .../org/openapitools/client/model/User.java | 65 +++- .../openapitools/client/model/XmlItem.java | 233 ++++++++++-- .../java/retrofit2-play25/docs/UserApi.md | 4 +- .../petstore/java/retrofit2-play25/pom.xml | 6 + .../org/openapitools/client/ApiClient.java | 8 +- .../model/AdditionalPropertiesAnyType.java | 9 +- .../model/AdditionalPropertiesArray.java | 9 +- .../model/AdditionalPropertiesBoolean.java | 9 +- .../model/AdditionalPropertiesClass.java | 95 ++++- .../model/AdditionalPropertiesInteger.java | 9 +- .../model/AdditionalPropertiesNumber.java | 9 +- .../model/AdditionalPropertiesObject.java | 9 +- .../model/AdditionalPropertiesString.java | 9 +- .../org/openapitools/client/model/Animal.java | 17 +- .../model/ArrayOfArrayOfNumberOnly.java | 9 +- .../client/model/ArrayOfNumberOnly.java | 9 +- .../openapitools/client/model/ArrayTest.java | 25 +- .../client/model/Capitalization.java | 49 ++- .../org/openapitools/client/model/Cat.java | 9 +- .../openapitools/client/model/CatAllOf.java | 9 +- .../openapitools/client/model/Category.java | 17 +- .../openapitools/client/model/ClassModel.java | 9 +- .../org/openapitools/client/model/Client.java | 9 +- .../org/openapitools/client/model/Dog.java | 9 +- .../openapitools/client/model/DogAllOf.java | 9 +- .../openapitools/client/model/EnumArrays.java | 17 +- .../openapitools/client/model/EnumTest.java | 41 +- .../client/model/FileSchemaTestClass.java | 19 +- .../openapitools/client/model/FormatTest.java | 105 +++++- .../client/model/HasOnlyReadOnly.java | 15 +- .../openapitools/client/model/MapTest.java | 33 +- ...ropertiesAndAdditionalPropertiesClass.java | 25 +- .../client/model/Model200Response.java | 17 +- .../client/model/ModelApiResponse.java | 25 +- .../client/model/ModelReturn.java | 9 +- .../org/openapitools/client/model/Name.java | 31 +- .../openapitools/client/model/NumberOnly.java | 9 +- .../org/openapitools/client/model/Order.java | 49 ++- .../client/model/OuterComposite.java | 25 +- .../org/openapitools/client/model/Pet.java | 51 ++- .../client/model/ReadOnlyFirst.java | 16 +- .../client/model/SpecialModelName.java | 9 +- .../org/openapitools/client/model/Tag.java | 17 +- .../client/model/TypeHolderDefault.java | 41 +- .../client/model/TypeHolderExample.java | 41 +- .../org/openapitools/client/model/User.java | 65 +++- .../openapitools/client/model/XmlItem.java | 233 ++++++++++-- .../java/retrofit2-play26/docs/UserApi.md | 4 +- .../petstore/java/retrofit2-play26/pom.xml | 6 + .../org/openapitools/client/ApiClient.java | 3 + .../model/AdditionalPropertiesAnyType.java | 9 +- .../model/AdditionalPropertiesArray.java | 9 +- .../model/AdditionalPropertiesBoolean.java | 9 +- .../model/AdditionalPropertiesClass.java | 95 ++++- .../model/AdditionalPropertiesInteger.java | 9 +- .../model/AdditionalPropertiesNumber.java | 9 +- .../model/AdditionalPropertiesObject.java | 9 +- .../model/AdditionalPropertiesString.java | 9 +- .../org/openapitools/client/model/Animal.java | 17 +- .../model/ArrayOfArrayOfNumberOnly.java | 9 +- .../client/model/ArrayOfNumberOnly.java | 9 +- .../openapitools/client/model/ArrayTest.java | 25 +- .../client/model/Capitalization.java | 49 ++- .../org/openapitools/client/model/Cat.java | 9 +- .../openapitools/client/model/CatAllOf.java | 9 +- .../openapitools/client/model/Category.java | 17 +- .../openapitools/client/model/ClassModel.java | 9 +- .../org/openapitools/client/model/Client.java | 9 +- .../org/openapitools/client/model/Dog.java | 9 +- .../openapitools/client/model/DogAllOf.java | 9 +- .../openapitools/client/model/EnumArrays.java | 17 +- .../openapitools/client/model/EnumTest.java | 41 +- .../client/model/FileSchemaTestClass.java | 19 +- .../openapitools/client/model/FormatTest.java | 105 +++++- .../client/model/HasOnlyReadOnly.java | 15 +- .../openapitools/client/model/MapTest.java | 33 +- ...ropertiesAndAdditionalPropertiesClass.java | 25 +- .../client/model/Model200Response.java | 17 +- .../client/model/ModelApiResponse.java | 25 +- .../client/model/ModelReturn.java | 9 +- .../org/openapitools/client/model/Name.java | 31 +- .../openapitools/client/model/NumberOnly.java | 9 +- .../org/openapitools/client/model/Order.java | 49 ++- .../client/model/OuterComposite.java | 25 +- .../org/openapitools/client/model/Pet.java | 51 ++- .../client/model/ReadOnlyFirst.java | 16 +- .../client/model/SpecialModelName.java | 9 +- .../org/openapitools/client/model/Tag.java | 17 +- .../client/model/TypeHolderDefault.java | 41 +- .../client/model/TypeHolderExample.java | 41 +- .../org/openapitools/client/model/User.java | 65 +++- .../openapitools/client/model/XmlItem.java | 233 ++++++++++-- .../petstore/java/retrofit2/docs/UserApi.md | 4 +- .../model/AdditionalPropertiesAnyType.java | 5 + .../model/AdditionalPropertiesArray.java | 5 + .../model/AdditionalPropertiesBoolean.java | 5 + .../model/AdditionalPropertiesClass.java | 61 ++- .../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 + .../client/model/Capitalization.java | 30 ++ .../org/openapitools/client/model/Cat.java | 5 + .../openapitools/client/model/CatAllOf.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/DogAllOf.java | 5 + .../openapitools/client/model/EnumArrays.java | 10 + .../openapitools/client/model/EnumTest.java | 25 ++ .../client/model/FileSchemaTestClass.java | 12 +- .../openapitools/client/model/FormatTest.java | 65 ++++ .../client/model/HasOnlyReadOnly.java | 8 + .../openapitools/client/model/MapTest.java | 20 + ...ropertiesAndAdditionalPropertiesClass.java | 15 + .../client/model/Model200Response.java | 10 + .../client/model/ModelApiResponse.java | 15 + .../client/model/ModelReturn.java | 5 + .../org/openapitools/client/model/Name.java | 18 + .../openapitools/client/model/NumberOnly.java | 5 + .../org/openapitools/client/model/Order.java | 30 ++ .../client/model/OuterComposite.java | 15 + .../org/openapitools/client/model/Pet.java | 32 +- .../client/model/ReadOnlyFirst.java | 9 + .../client/model/SpecialModelName.java | 5 + .../org/openapitools/client/model/Tag.java | 10 + .../client/model/TypeHolderDefault.java | 25 ++ .../client/model/TypeHolderExample.java | 25 ++ .../org/openapitools/client/model/User.java | 40 ++ .../openapitools/client/model/XmlItem.java | 145 ++++++++ .../petstore/java/retrofit2rx/docs/UserApi.md | 4 +- .../model/AdditionalPropertiesAnyType.java | 5 + .../model/AdditionalPropertiesArray.java | 5 + .../model/AdditionalPropertiesBoolean.java | 5 + .../model/AdditionalPropertiesClass.java | 61 ++- .../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 + .../client/model/Capitalization.java | 30 ++ .../org/openapitools/client/model/Cat.java | 5 + .../openapitools/client/model/CatAllOf.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/DogAllOf.java | 5 + .../openapitools/client/model/EnumArrays.java | 10 + .../openapitools/client/model/EnumTest.java | 25 ++ .../client/model/FileSchemaTestClass.java | 12 +- .../openapitools/client/model/FormatTest.java | 65 ++++ .../client/model/HasOnlyReadOnly.java | 8 + .../openapitools/client/model/MapTest.java | 20 + ...ropertiesAndAdditionalPropertiesClass.java | 15 + .../client/model/Model200Response.java | 10 + .../client/model/ModelApiResponse.java | 15 + .../client/model/ModelReturn.java | 5 + .../org/openapitools/client/model/Name.java | 18 + .../openapitools/client/model/NumberOnly.java | 5 + .../org/openapitools/client/model/Order.java | 30 ++ .../client/model/OuterComposite.java | 15 + .../org/openapitools/client/model/Pet.java | 32 +- .../client/model/ReadOnlyFirst.java | 9 + .../client/model/SpecialModelName.java | 5 + .../org/openapitools/client/model/Tag.java | 10 + .../client/model/TypeHolderDefault.java | 25 ++ .../client/model/TypeHolderExample.java | 25 ++ .../org/openapitools/client/model/User.java | 40 ++ .../openapitools/client/model/XmlItem.java | 145 ++++++++ .../java/retrofit2rx2/docs/UserApi.md | 4 +- .../model/AdditionalPropertiesAnyType.java | 5 + .../model/AdditionalPropertiesArray.java | 5 + .../model/AdditionalPropertiesBoolean.java | 5 + .../model/AdditionalPropertiesClass.java | 61 ++- .../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 + .../client/model/Capitalization.java | 30 ++ .../org/openapitools/client/model/Cat.java | 5 + .../openapitools/client/model/CatAllOf.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/DogAllOf.java | 5 + .../openapitools/client/model/EnumArrays.java | 10 + .../openapitools/client/model/EnumTest.java | 25 ++ .../client/model/FileSchemaTestClass.java | 12 +- .../openapitools/client/model/FormatTest.java | 65 ++++ .../client/model/HasOnlyReadOnly.java | 8 + .../openapitools/client/model/MapTest.java | 20 + ...ropertiesAndAdditionalPropertiesClass.java | 15 + .../client/model/Model200Response.java | 10 + .../client/model/ModelApiResponse.java | 15 + .../client/model/ModelReturn.java | 5 + .../org/openapitools/client/model/Name.java | 18 + .../openapitools/client/model/NumberOnly.java | 5 + .../org/openapitools/client/model/Order.java | 30 ++ .../client/model/OuterComposite.java | 15 + .../org/openapitools/client/model/Pet.java | 32 +- .../client/model/ReadOnlyFirst.java | 9 + .../client/model/SpecialModelName.java | 5 + .../org/openapitools/client/model/Tag.java | 10 + .../client/model/TypeHolderDefault.java | 25 ++ .../client/model/TypeHolderExample.java | 25 ++ .../org/openapitools/client/model/User.java | 40 ++ .../openapitools/client/model/XmlItem.java | 145 ++++++++ .../petstore/java/vertx/docs/UserApi.md | 4 +- samples/client/petstore/java/vertx/pom.xml | 6 + .../org/openapitools/client/ApiClient.java | 3 + .../model/AdditionalPropertiesAnyType.java | 9 +- .../model/AdditionalPropertiesArray.java | 9 +- .../model/AdditionalPropertiesBoolean.java | 9 +- .../model/AdditionalPropertiesClass.java | 95 ++++- .../model/AdditionalPropertiesInteger.java | 9 +- .../model/AdditionalPropertiesNumber.java | 9 +- .../model/AdditionalPropertiesObject.java | 9 +- .../model/AdditionalPropertiesString.java | 9 +- .../org/openapitools/client/model/Animal.java | 17 +- .../model/ArrayOfArrayOfNumberOnly.java | 9 +- .../client/model/ArrayOfNumberOnly.java | 9 +- .../openapitools/client/model/ArrayTest.java | 25 +- .../client/model/Capitalization.java | 49 ++- .../org/openapitools/client/model/Cat.java | 9 +- .../openapitools/client/model/CatAllOf.java | 9 +- .../openapitools/client/model/Category.java | 17 +- .../openapitools/client/model/ClassModel.java | 9 +- .../org/openapitools/client/model/Client.java | 9 +- .../org/openapitools/client/model/Dog.java | 9 +- .../openapitools/client/model/DogAllOf.java | 9 +- .../openapitools/client/model/EnumArrays.java | 17 +- .../openapitools/client/model/EnumTest.java | 41 +- .../client/model/FileSchemaTestClass.java | 19 +- .../openapitools/client/model/FormatTest.java | 105 +++++- .../client/model/HasOnlyReadOnly.java | 15 +- .../openapitools/client/model/MapTest.java | 33 +- ...ropertiesAndAdditionalPropertiesClass.java | 25 +- .../client/model/Model200Response.java | 17 +- .../client/model/ModelApiResponse.java | 25 +- .../client/model/ModelReturn.java | 9 +- .../org/openapitools/client/model/Name.java | 31 +- .../openapitools/client/model/NumberOnly.java | 9 +- .../org/openapitools/client/model/Order.java | 49 ++- .../client/model/OuterComposite.java | 25 +- .../org/openapitools/client/model/Pet.java | 51 ++- .../client/model/ReadOnlyFirst.java | 16 +- .../client/model/SpecialModelName.java | 9 +- .../org/openapitools/client/model/Tag.java | 17 +- .../client/model/TypeHolderDefault.java | 41 +- .../client/model/TypeHolderExample.java | 41 +- .../org/openapitools/client/model/User.java | 65 +++- .../openapitools/client/model/XmlItem.java | 233 ++++++++++-- .../petstore/java/webclient/docs/UserApi.md | 4 +- .../client/petstore/java/webclient/pom.xml | 6 + .../org/openapitools/client/ApiClient.java | 3 + .../model/AdditionalPropertiesAnyType.java | 9 +- .../model/AdditionalPropertiesArray.java | 9 +- .../model/AdditionalPropertiesBoolean.java | 9 +- .../model/AdditionalPropertiesClass.java | 95 ++++- .../model/AdditionalPropertiesInteger.java | 9 +- .../model/AdditionalPropertiesNumber.java | 9 +- .../model/AdditionalPropertiesObject.java | 9 +- .../model/AdditionalPropertiesString.java | 9 +- .../org/openapitools/client/model/Animal.java | 17 +- .../model/ArrayOfArrayOfNumberOnly.java | 9 +- .../client/model/ArrayOfNumberOnly.java | 9 +- .../openapitools/client/model/ArrayTest.java | 25 +- .../client/model/Capitalization.java | 49 ++- .../org/openapitools/client/model/Cat.java | 9 +- .../openapitools/client/model/CatAllOf.java | 9 +- .../openapitools/client/model/Category.java | 17 +- .../openapitools/client/model/ClassModel.java | 9 +- .../org/openapitools/client/model/Client.java | 9 +- .../org/openapitools/client/model/Dog.java | 9 +- .../openapitools/client/model/DogAllOf.java | 9 +- .../openapitools/client/model/EnumArrays.java | 17 +- .../openapitools/client/model/EnumTest.java | 41 +- .../client/model/FileSchemaTestClass.java | 19 +- .../openapitools/client/model/FormatTest.java | 105 +++++- .../client/model/HasOnlyReadOnly.java | 15 +- .../openapitools/client/model/MapTest.java | 33 +- ...ropertiesAndAdditionalPropertiesClass.java | 25 +- .../client/model/Model200Response.java | 17 +- .../client/model/ModelApiResponse.java | 25 +- .../client/model/ModelReturn.java | 9 +- .../org/openapitools/client/model/Name.java | 31 +- .../openapitools/client/model/NumberOnly.java | 9 +- .../org/openapitools/client/model/Order.java | 49 ++- .../client/model/OuterComposite.java | 25 +- .../org/openapitools/client/model/Pet.java | 51 ++- .../client/model/ReadOnlyFirst.java | 16 +- .../client/model/SpecialModelName.java | 9 +- .../org/openapitools/client/model/Tag.java | 17 +- .../client/model/TypeHolderDefault.java | 41 +- .../client/model/TypeHolderExample.java | 41 +- .../org/openapitools/client/model/User.java | 65 +++- .../openapitools/client/model/XmlItem.java | 233 ++++++++++-- .../main/java/org/openapitools/model/Pet.java | 2 +- .../main/java/org/openapitools/model/Pet.java | 2 +- .../main/java/org/openapitools/model/Pet.java | 2 +- .../model/AdditionalPropertiesClass.java | 6 +- .../model/FileSchemaTestClass.java | 2 +- .../gen/java/org/openapitools/model/Pet.java | 2 +- .../gen/java/org/openapitools/model/Pet.java | 2 +- .../gen/java/org/openapitools/model/Pet.java | 2 +- .../gen/java/org/openapitools/model/Pet.java | 2 +- .../model/AdditionalPropertiesClass.java | 6 +- .../model/FileSchemaTestClass.java | 2 +- .../gen/java/org/openapitools/model/Pet.java | 2 +- .../model/AdditionalPropertiesClass.java | 6 +- .../model/FileSchemaTestClass.java | 2 +- .../gen/java/org/openapitools/model/Pet.java | 2 +- .../model/FileSchemaTestClass.java | 2 +- .../model/InlineResponseDefault.java | 2 +- .../gen/java/org/openapitools/model/Pet.java | 2 +- .../gen/java/org/openapitools/model/Pet.java | 2 +- .../gen/java/org/openapitools/model/Pet.java | 2 +- .../gen/java/org/openapitools/model/Pet.java | 2 +- .../gen/java/org/openapitools/model/Pet.java | 2 +- .../gen/java/org/openapitools/model/Pet.java | 2 +- .../model/AdditionalPropertiesClass.java | 6 +- .../model/FileSchemaTestClass.java | 2 +- .../gen/java/org/openapitools/model/Pet.java | 2 +- .../model/AdditionalPropertiesClass.java | 6 +- .../model/FileSchemaTestClass.java | 2 +- .../gen/java/org/openapitools/model/Pet.java | 2 +- .../model/AdditionalPropertiesClass.java | 6 +- .../model/FileSchemaTestClass.java | 2 +- .../gen/java/org/openapitools/model/Pet.java | 2 +- .../model/AdditionalPropertiesClass.java | 6 +- .../model/FileSchemaTestClass.java | 2 +- .../gen/java/org/openapitools/model/Pet.java | 2 +- .../model/AdditionalPropertiesClass.java | 6 +- .../model/FileSchemaTestClass.java | 2 +- .../gen/java/org/openapitools/model/Pet.java | 2 +- .../model/AdditionalPropertiesClass.java | 6 +- .../model/FileSchemaTestClass.java | 2 +- .../gen/java/org/openapitools/model/Pet.java | 2 +- .../model/AdditionalPropertiesClass.java | 6 +- .../model/FileSchemaTestClass.java | 2 +- .../main/java/org/openapitools/model/Pet.java | 2 +- .../model/AdditionalPropertiesClass.java | 6 +- .../model/FileSchemaTestClass.java | 2 +- .../main/java/org/openapitools/model/Pet.java | 2 +- .../model/AdditionalPropertiesClass.java | 6 +- .../model/FileSchemaTestClass.java | 2 +- .../main/java/org/openapitools/model/Pet.java | 2 +- .../model/AdditionalPropertiesClass.java | 6 +- .../model/FileSchemaTestClass.java | 2 +- .../main/java/org/openapitools/model/Pet.java | 2 +- .../model/AdditionalPropertiesClass.java | 6 +- .../model/FileSchemaTestClass.java | 2 +- .../main/java/org/openapitools/model/Pet.java | 2 +- .../model/AdditionalPropertiesClass.java | 6 +- .../model/FileSchemaTestClass.java | 2 +- .../main/java/org/openapitools/model/Pet.java | 2 +- .../model/AdditionalPropertiesClass.java | 6 +- .../model/FileSchemaTestClass.java | 2 +- .../main/java/org/openapitools/model/Pet.java | 2 +- .../model/AdditionalPropertiesClass.java | 6 +- .../model/FileSchemaTestClass.java | 2 +- .../main/java/org/openapitools/model/Pet.java | 2 +- .../model/AdditionalPropertiesClass.java | 6 +- .../model/FileSchemaTestClass.java | 2 +- .../main/java/org/openapitools/model/Pet.java | 2 +- .../model/AdditionalPropertiesClass.java | 6 +- .../virtualan/model/FileSchemaTestClass.java | 2 +- .../org/openapitools/virtualan/model/Pet.java | 2 +- .../model/AdditionalPropertiesClass.java | 6 +- .../model/FileSchemaTestClass.java | 2 +- .../main/java/org/openapitools/model/Pet.java | 2 +- 1117 files changed, 23253 insertions(+), 2935 deletions(-) create mode 100644 modules/openapi-generator/src/main/resources/Java/jackson_annotations.mustache diff --git a/modules/openapi-generator-maven-plugin/examples/java-client.xml b/modules/openapi-generator-maven-plugin/examples/java-client.xml index f7f5df89de0..5753e557b11 100644 --- a/modules/openapi-generator-maven-plugin/examples/java-client.xml +++ b/modules/openapi-generator-maven-plugin/examples/java-client.xml @@ -120,7 +120,12 @@ com.fasterxml.jackson.jaxrs jackson-jaxrs-json-provider ${jackson-version} - + + + org.openapitools + jackson-databind-nullable + ${jackson-databind-nullable-version} + @@ -146,6 +151,7 @@ 1.5.8 2.27 2.8.9 + 0.2.0 2.7 1.0.0 4.8.1 diff --git a/modules/openapi-generator-maven-plugin/examples/multi-module/java-client/pom.xml b/modules/openapi-generator-maven-plugin/examples/multi-module/java-client/pom.xml index 6652de2d265..2f2ebf62312 100644 --- a/modules/openapi-generator-maven-plugin/examples/multi-module/java-client/pom.xml +++ b/modules/openapi-generator-maven-plugin/examples/multi-module/java-client/pom.xml @@ -133,7 +133,12 @@ com.fasterxml.jackson.jaxrs jackson-jaxrs-json-provider ${jackson-version} - + + + org.openapitools + jackson-databind-nullable + ${jackson-databind-nullable-version} + diff --git a/modules/openapi-generator-maven-plugin/examples/multi-module/pom.xml b/modules/openapi-generator-maven-plugin/examples/multi-module/pom.xml index 944377917ec..5e4a60c7f1c 100644 --- a/modules/openapi-generator-maven-plugin/examples/multi-module/pom.xml +++ b/modules/openapi-generator-maven-plugin/examples/multi-module/pom.xml @@ -16,6 +16,7 @@ 1.5.8 2.27 2.8.9 + 0.2.0 2.7 1.0.0 4.8.1 diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJavaCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJavaCodegen.java index 2d7f3d2ce6c..db5a2d9ac0e 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJavaCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJavaCodegen.java @@ -417,6 +417,8 @@ public abstract class AbstractJavaCodegen extends DefaultCodegen implements Code importMapping.put("JsonTypeInfo", "com.fasterxml.jackson.annotation.JsonTypeInfo"); importMapping.put("JsonCreator", "com.fasterxml.jackson.annotation.JsonCreator"); importMapping.put("JsonValue", "com.fasterxml.jackson.annotation.JsonValue"); + importMapping.put("JsonIgnore", "com.fasterxml.jackson.annotation.JsonIgnore"); + importMapping.put("JsonInclude", "com.fasterxml.jackson.annotation.JsonInclude"); importMapping.put("SerializedName", "com.google.gson.annotations.SerializedName"); importMapping.put("TypeAdapter", "com.google.gson.TypeAdapter"); importMapping.put("JsonAdapter", "com.google.gson.annotations.JsonAdapter"); @@ -800,7 +802,13 @@ public abstract class AbstractJavaCodegen extends DefaultCodegen implements Code } } return null; + } else if (ModelUtils.isObjectSchema(p)) { + if (p.getDefault() != null) { + return super.toDefaultValue(p); + } + return null; } + return super.toDefaultValue(p); } diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaClientCodegen.java index 8f1a232f808..4faf042518f 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaClientCodegen.java @@ -24,6 +24,7 @@ import org.openapitools.codegen.languages.features.BeanValidationFeatures; import org.openapitools.codegen.languages.features.GzipFeatures; import org.openapitools.codegen.languages.features.PerformBeanValidationFeatures; import org.openapitools.codegen.templating.mustache.CaseFormatLambda; +import org.openapitools.codegen.utils.ModelUtils; import org.openapitools.codegen.utils.ProcessUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -583,6 +584,7 @@ public class JavaClientCodegen extends AbstractJavaCodegen if (additionalProperties.containsKey("jackson")) { model.imports.add("JsonProperty"); model.imports.add("JsonValue"); + model.imports.add("JsonInclude"); } if (additionalProperties.containsKey("gson")) { model.imports.add("SerializedName"); @@ -623,6 +625,39 @@ public class JavaClientCodegen extends AbstractJavaCodegen return objs; } + @Override + public Map postProcessModels(Map objs) { + objs = super.postProcessModels(objs); + if (additionalProperties.containsKey("jackson") && !JERSEY1.equals(getLibrary())) { + List> imports = (List>) objs.get("imports"); + List models = (List) objs.get("models"); + for (Object _mo : models) { + Map mo = (Map) _mo; + CodegenModel cm = (CodegenModel) mo.get("model"); + boolean addImports = false; + for (CodegenProperty var : cm.vars) { + boolean isOptionalNullable = Boolean.FALSE.equals(var.required) && Boolean.TRUE.equals(var.isNullable); + // only add JsonNullable and related imports to optional and nullable values + addImports |= isOptionalNullable; + var.getVendorExtensions().put("isJacksonOptionalNullable", isOptionalNullable); + } + if (addImports) { + cm.imports.add("JsonNullable"); + Map itemJsonNullable = new HashMap(); + itemJsonNullable.put("import", "org.openapitools.jackson.nullable.JsonNullable"); + imports.add(itemJsonNullable); + + cm.imports.add("NoSuchElementException"); + Map itemExc = new HashMap(); + itemExc.put("import", "java.util.NoSuchElementException"); + imports.add(itemExc); + } + } + } + + return objs; + } + public void setUseRxJava(boolean useRxJava) { this.useRxJava = useRxJava; doNotUseRx = false; diff --git a/modules/openapi-generator/src/main/resources/Java/jackson_annotations.mustache b/modules/openapi-generator/src/main/resources/Java/jackson_annotations.mustache new file mode 100644 index 00000000000..ac01b293cc1 --- /dev/null +++ b/modules/openapi-generator/src/main/resources/Java/jackson_annotations.mustache @@ -0,0 +1,19 @@ +{{! + If this is map and items are nullable, make sure that nulls are included. + To determine what JsonInclude.Include method to use, consider the following: + * If the field is required, always include it, even if it is null. + * Else use custom behaviour, IOW use whatever is defined on the object mapper + }} + @JsonProperty(JSON_PROPERTY_{{nameInSnakeCase}}) + @JsonInclude({{#isMapContainer}}{{#items.isNullable}}content = JsonInclude.Include.ALWAYS, {{/items.isNullable}}{{/isMapContainer}}value = JsonInclude.Include.{{#required}}ALWAYS{{/required}}{{^required}}USE_DEFAULTS{{/required}}) + {{#withXml}} + {{^isContainer}} + @JacksonXmlProperty({{#isXmlAttribute}}isAttribute = true, {{/isXmlAttribute}}{{#xmlNamespace}}namespace="{{xmlNamespace}}", {{/xmlNamespace}}localName = "{{#xmlName}}{{xmlName}}{{/xmlName}}{{^xmlName}}{{baseName}}{{/xmlName}}") + {{/isContainer}} + {{#isContainer}} + {{#isXmlWrapped}} + // items.xmlName={{items.xmlName}} + @JacksonXmlElementWrapper(useWrapping = {{isXmlWrapped}}, {{#xmlNamespace}}namespace="{{xmlNamespace}}", {{/xmlNamespace}}localName = "{{#items.xmlName}}{{items.xmlName}}{{/items.xmlName}}{{^items.xmlName}}{{items.baseName}}{{/items.xmlName}}") + {{/isXmlWrapped}} + {{/isContainer}} + {{/withXml}} \ No newline at end of file diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/feign/ApiClient.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/feign/ApiClient.mustache index 6d43061d347..9df586c08cb 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/feign/ApiClient.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/feign/ApiClient.mustache @@ -12,6 +12,7 @@ import org.threeten.bp.*; import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.SerializationFeature; +import org.openapitools.jackson.nullable.JsonNullableModule; {{#joda}} import com.fasterxml.jackson.datatype.joda.JodaModule; {{/joda}} @@ -177,6 +178,8 @@ public class ApiClient { module.addDeserializer(ZonedDateTime.class, CustomInstantDeserializer.ZONED_DATE_TIME); objectMapper.registerModule(module); {{/threetenbp}} + JsonNullableModule jnm = new JsonNullableModule(); + objectMapper.registerModule(jnm); return objectMapper; } diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/feign/pom.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/feign/pom.mustache index d2634ca5df4..1e9edaec8c0 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/feign/pom.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/feign/pom.mustache @@ -244,6 +244,11 @@ jackson-databind ${jackson-databind-version} + + org.openapitools + jackson-databind-nullable + ${jackson-databind-nullable-version} + {{#withXml}} @@ -310,6 +315,7 @@ {{#useFeign10}}10.2.3{{/useFeign10}}{{^useFeign10}}9.7.0{{/useFeign10}} 2.1.0 2.9.9 + 0.2.0 2.9.9 {{#threetenbp}} 2.6.4 diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/google-api-client/ApiClient.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/google-api-client/ApiClient.mustache index fa6e7a601fe..9df560415d0 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/google-api-client/ApiClient.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/google-api-client/ApiClient.mustache @@ -4,6 +4,7 @@ import {{apiPackage}}.*; import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.SerializationFeature; +import org.openapitools.jackson.nullable.JsonNullableModule; {{#joda}} import com.fasterxml.jackson.datatype.joda.JodaModule; {{/joda}} @@ -53,6 +54,8 @@ public class ApiClient { module.addDeserializer(ZonedDateTime.class, CustomInstantDeserializer.ZONED_DATE_TIME); objectMapper.registerModule(module); {{/threetenbp}} + JsonNullableModule jnm = new JsonNullableModule(); + objectMapper.registerModule(jnm); return objectMapper; } diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/google-api-client/pom.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/google-api-client/pom.mustache index 0269a88c3bc..be8c28602dd 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/google-api-client/pom.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/google-api-client/pom.mustache @@ -253,6 +253,11 @@ jackson-databind ${jackson-version} + + org.openapitools + jackson-databind-nullable + ${jackson-databind-nullable-version} + {{#withXml}} @@ -303,6 +308,7 @@ 2.25.1 2.9.9 2.9.9 + 0.2.0 {{#joda}} 2.9.9 {{/joda}} diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/JSON.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/JSON.mustache index 911391a6baf..56ea77278f7 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/JSON.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/JSON.mustache @@ -5,6 +5,7 @@ import org.threeten.bp.*; {{/threetenbp}} import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; +import org.openapitools.jackson.nullable.JsonNullableModule; {{#java8}} import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; {{/java8}} @@ -45,6 +46,8 @@ public class JSON implements ContextResolver { module.addDeserializer(ZonedDateTime.class, CustomInstantDeserializer.ZONED_DATE_TIME); mapper.registerModule(module); {{/threetenbp}} + JsonNullableModule jnm = new JsonNullableModule(); + mapper.registerModule(jnm); } /** diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/pom.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/pom.mustache index 27a94b56311..d72e0b1fe81 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/pom.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/pom.mustache @@ -276,6 +276,11 @@ jackson-databind ${jackson-databind-version} + + org.openapitools + jackson-databind-nullable + ${jackson-databind-nullable-version} + {{#withXml}} @@ -357,6 +362,7 @@ {{/supportJava6}} 2.9.9 2.9.9 + 0.2.0 {{#threetenbp}} 2.6.4 {{/threetenbp}} diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/native/ApiClient.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/native/ApiClient.mustache index eee8f2923d9..ce313c70ef5 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/native/ApiClient.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/native/ApiClient.mustache @@ -6,6 +6,7 @@ import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.SerializationFeature; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; +import org.openapitools.jackson.nullable.JsonNullableModule; import java.net.URI; import java.net.URLEncoder; @@ -151,6 +152,8 @@ public class ApiClient { mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); mapper.registerModule(new JavaTimeModule()); + JsonNullableModule jnm = new JsonNullableModule(); + mapper.registerModule(jnm); URI baseURI = URI.create("{{{basePath}}}"); scheme = baseURI.getScheme(); host = baseURI.getHost(); diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/native/pom.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/native/pom.mustache index ad7c4234c1c..e3fe7f74118 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/native/pom.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/native/pom.mustache @@ -188,6 +188,11 @@ jackson-datatype-jsr310 ${jackson-version} + + org.openapitools + jackson-databind-nullable + ${jackson-databind-nullable-version} + @@ -210,6 +215,7 @@ 11 11 2.9.9 + 0.2.0 4.12 diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/resteasy/JSON.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/resteasy/JSON.mustache index 6f5829fa509..22888421d82 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/resteasy/JSON.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/resteasy/JSON.mustache @@ -2,6 +2,7 @@ package {{invokerPackage}}; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; +import org.openapitools.jackson.nullable.JsonNullableModule; {{#java8}} import com.fasterxml.jackson.datatype.jsr310.*; {{/java8}} @@ -26,6 +27,8 @@ public class JSON implements ContextResolver { mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); mapper.setDateFormat(new RFC3339DateFormat()); + JsonNullableModule jnm = new JsonNullableModule(); + mapper.registerModule(jnm); {{#java8}} mapper.registerModule(new JavaTimeModule()); {{/java8}} diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/resteasy/pom.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/resteasy/pom.mustache index 7d6927871f1..d190566bac5 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/resteasy/pom.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/resteasy/pom.mustache @@ -212,6 +212,11 @@ jackson-databind ${jackson-databind-version} + + org.openapitools + jackson-databind-nullable + ${jackson-databind-nullable-version} + {{#withXml}} @@ -291,6 +296,7 @@ 3.1.3.Final 2.9.9 2.9.9 + 0.2.0 2.6.4 {{^java8}} 2.9.9 diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/resttemplate/ApiClient.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/resttemplate/ApiClient.mustache index 52e5f96e994..43078344343 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/resttemplate/ApiClient.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/resttemplate/ApiClient.mustache @@ -39,6 +39,7 @@ import com.fasterxml.jackson.datatype.threetenbp.ThreeTenModule; import org.springframework.http.converter.HttpMessageConverter; import org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter; import com.fasterxml.jackson.databind.ObjectMapper; +import org.openapitools.jackson.nullable.JsonNullableModule; {{/threetenbp}} import java.io.BufferedReader; @@ -661,6 +662,7 @@ public class ApiClient { messageConverters.add(new MappingJackson2HttpMessageConverter()); XmlMapper xmlMapper = new XmlMapper(); xmlMapper.configure(ToXmlGenerator.Feature.WRITE_XML_DECLARATION, true); + xmlMapper.registerModule(new JsonNullableModule()); messageConverters.add(new MappingJackson2XmlHttpMessageConverter(xmlMapper)); RestTemplate restTemplate = new RestTemplate(messageConverters); @@ -674,6 +676,7 @@ public class ApiClient { module.addDeserializer(OffsetDateTime.class, CustomInstantDeserializer.OFFSET_DATE_TIME); module.addDeserializer(ZonedDateTime.class, CustomInstantDeserializer.ZONED_DATE_TIME); mapper.registerModule(module); + mapper.registerModule(new JsonNullableModule()); } } {{/threetenbp}} diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/resttemplate/pom.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/resttemplate/pom.mustache index 77d021644d6..c48a68e347a 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/resttemplate/pom.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/resttemplate/pom.mustache @@ -255,6 +255,11 @@ jackson-jaxrs-json-provider ${jackson-version} + + org.openapitools + jackson-databind-nullable + ${jackson-databind-nullable-version} + {{#withXml}} @@ -306,6 +311,7 @@ 4.3.9.RELEASE 2.9.9 2.9.9 + 0.2.0 {{#joda}} 2.9.9 {{/joda}} diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/retrofit2/play24/ApiClient.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/retrofit2/play24/ApiClient.mustache index e03dc69971b..2395426ab2c 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/retrofit2/play24/ApiClient.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/retrofit2/play24/ApiClient.mustache @@ -8,6 +8,8 @@ import java.util.*; import retrofit2.Retrofit; import retrofit2.converter.scalars.ScalarsConverterFactory; import retrofit2.converter.jackson.JacksonConverterFactory; +import com.fasterxml.jackson.databind.ObjectMapper; +import org.openapitools.jackson.nullable.JsonNullableModule; import play.libs.Json; import play.libs.ws.WSClient; @@ -68,10 +70,14 @@ public class ApiClient { auth.applyToParams(extraQueryParams, extraHeaders); } + ObjectMapper mapper = Json.mapper(); + JsonNullableModule jnm = new JsonNullableModule(); + mapper.registerModule(jnm); + return new Retrofit.Builder() .baseUrl(basePath) .addConverterFactory(ScalarsConverterFactory.create()) - .addConverterFactory(JacksonConverterFactory.create(Json.mapper())) + .addConverterFactory(JacksonConverterFactory.create(mapper)) .callFactory(new Play24CallFactory(wsClient, extraHeaders, extraQueryParams)) .addCallAdapterFactory(new Play24CallAdapterFactory()) .build() diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/retrofit2/play25/ApiClient.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/retrofit2/play25/ApiClient.mustache index 7d3dbd1e28c..221d52c4e9b 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/retrofit2/play25/ApiClient.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/retrofit2/play25/ApiClient.mustache @@ -8,6 +8,8 @@ import java.util.*; import retrofit2.Retrofit; import retrofit2.converter.scalars.ScalarsConverterFactory; import retrofit2.converter.jackson.JacksonConverterFactory; +import com.fasterxml.jackson.databind.ObjectMapper; +import org.openapitools.jackson.nullable.JsonNullableModule; import play.libs.Json; import play.libs.ws.WSClient; @@ -67,10 +69,14 @@ public class ApiClient { auth.applyToParams(extraQueryParams, extraHeaders); } + ObjectMapper mapper = Json.mapper(); + JsonNullableModule jnm = new JsonNullableModule(); + mapper.registerModule(jnm); + return new Retrofit.Builder() .baseUrl(basePath) .addConverterFactory(ScalarsConverterFactory.create()) - .addConverterFactory(JacksonConverterFactory.create(Json.mapper())) + .addConverterFactory(JacksonConverterFactory.create(mapper)) .callFactory(new Play25CallFactory(wsClient, extraHeaders, extraQueryParams)) .addCallAdapterFactory(new Play25CallAdapterFactory()) .build() diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/retrofit2/play26/ApiClient.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/retrofit2/play26/ApiClient.mustache index d59912773c8..166fb088019 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/retrofit2/play26/ApiClient.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/retrofit2/play26/ApiClient.mustache @@ -13,6 +13,7 @@ import retrofit2.Converter; import retrofit2.Retrofit; import retrofit2.converter.scalars.ScalarsConverterFactory; import retrofit2.converter.jackson.JacksonConverterFactory; +import org.openapitools.jackson.nullable.JsonNullableModule; import play.libs.Json; import play.libs.ws.WSClient; @@ -89,6 +90,8 @@ public class ApiClient { } if (defaultMapper == null) { defaultMapper = Json.mapper(); + JsonNullableModule jnm = new JsonNullableModule(); + defaultMapper.registerModule(jnm); } return new Retrofit.Builder() diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/retrofit2/pom.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/retrofit2/pom.mustache index aef50309c1c..b35ffe66264 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/retrofit2/pom.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/retrofit2/pom.mustache @@ -314,6 +314,11 @@ play-java-ws_2.11 ${play-version} + + org.openapitools + jackson-databind-nullable + ${jackson-databind-nullable-version} + {{/play24}} {{#play25}} @@ -321,6 +326,11 @@ play-java-ws_2.11 ${play-version} + + org.openapitools + jackson-databind-nullable + ${jackson-databind-nullable-version} + {{/play25}} {{#play26}} @@ -333,6 +343,11 @@ validation-api 1.1.0.Final + + org.openapitools + jackson-databind-nullable + ${jackson-databind-nullable-version} + {{/play26}} {{/usePlayWS}} {{#parcelableModel}} @@ -373,6 +388,7 @@ 2.9.9 2.6.7 {{/play26}} + 0.2.0 {{/usePlayWS}} 2.5.0 {{#useRxJava}} diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/vertx/ApiClient.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/vertx/ApiClient.mustache index 170c92666ed..90f4cbcb33b 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/vertx/ApiClient.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/vertx/ApiClient.mustache @@ -14,6 +14,7 @@ import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.SerializationFeature; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; +import org.openapitools.jackson.nullable.JsonNullableModule; import io.vertx.core.*; import io.vertx.core.buffer.Buffer; import io.vertx.core.file.AsyncFile; @@ -77,6 +78,8 @@ public class ApiClient { this.objectMapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); this.objectMapper.registerModule(new JavaTimeModule()); this.objectMapper.setDateFormat(dateFormat); + JsonNullableModule jnm = new JsonNullableModule(); + this.objectMapper.registerModule(jnm); // Setup authentications (key: authentication name, value: authentication). this.authentications = new HashMap<>();{{#authMethods}}{{#isBasic}}{{#isBasicBasic}} diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/vertx/pom.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/vertx/pom.mustache index db6ef66924b..a2fd9f30ebe 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/vertx/pom.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/vertx/pom.mustache @@ -243,6 +243,11 @@ jackson-databind ${jackson-databind} + + org.openapitools + jackson-databind-nullable + ${jackson-databind-nullable-version} + {{#joda}} com.fasterxml.jackson.datatype @@ -286,6 +291,7 @@ 1.5.22 {{^threetenbp}}2.9.9{{/threetenbp}}{{#threetenbp}}2.6.4{{/threetenbp}} {{^threetenbp}}2.9.9{{/threetenbp}}{{#threetenbp}}2.6.4{{/threetenbp}} + 0.2.0 4.12 diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/webclient/ApiClient.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/webclient/ApiClient.mustache index 943acff9c37..2e08f6da5f2 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/webclient/ApiClient.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/webclient/ApiClient.mustache @@ -3,6 +3,7 @@ package {{invokerPackage}}; import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; +import org.openapitools.jackson.nullable.JsonNullableModule; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.springframework.core.ParameterizedTypeReference; @@ -96,6 +97,8 @@ public class ApiClient { mapper.setDateFormat(dateFormat); mapper.registerModule(new JavaTimeModule()); mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + JsonNullableModule jnm = new JsonNullableModule(); + mapper.registerModule(jnm); this.webClient = buildWebClient(mapper); this.init(); diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/webclient/pom.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/webclient/pom.mustache index 44098edb0f3..4fbf5d9cf1d 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/webclient/pom.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/webclient/pom.mustache @@ -105,6 +105,11 @@ jackson-databind ${jackson-databind-version} + + org.openapitools + jackson-databind-nullable + ${jackson-databind-nullable-version} + {{#java8}} @@ -140,6 +145,7 @@ 5.0.7.RELEASE 2.9.9 2.9.9 + 0.2.0 4.12 3.1.8.RELEASE 0.7.8.RELEASE diff --git a/modules/openapi-generator/src/main/resources/Java/pojo.mustache b/modules/openapi-generator/src/main/resources/Java/pojo.mustache index f0c3a646258..6ba1d72e2bc 100644 --- a/modules/openapi-generator/src/main/resources/Java/pojo.mustache +++ b/modules/openapi-generator/src/main/resources/Java/pojo.mustache @@ -19,21 +19,6 @@ public class {{classname}} {{#parent}}extends {{{parent}}} {{/parent}}{{#parcela {{/mostInnerItems}} {{/isContainer}} {{/isEnum}} - {{#jackson}} - public static final String JSON_PROPERTY_{{nameInSnakeCase}} = "{{baseName}}"; - @JsonProperty(JSON_PROPERTY_{{nameInSnakeCase}}) - {{#withXml}} - {{^isContainer}} - @JacksonXmlProperty({{#isXmlAttribute}}isAttribute = true, {{/isXmlAttribute}}{{#xmlNamespace}}namespace="{{xmlNamespace}}", {{/xmlNamespace}}localName = "{{#xmlName}}{{xmlName}}{{/xmlName}}{{^xmlName}}{{baseName}}{{/xmlName}}") - {{/isContainer}} - {{#isContainer}} - {{#isXmlWrapped}} - // items.xmlName={{items.xmlName}} - @JacksonXmlElementWrapper(useWrapping = {{isXmlWrapped}}, {{#xmlNamespace}}namespace="{{xmlNamespace}}", {{/xmlNamespace}}localName = "{{#items.xmlName}}{{items.xmlName}}{{/items.xmlName}}{{^items.xmlName}}{{items.baseName}}{{/items.xmlName}}") - {{/isXmlWrapped}} - {{/isContainer}} - {{/withXml}} - {{/jackson}} {{#withXml}} {{#isXmlAttribute}} @XmlAttribute(name = "{{#xmlName}}{{xmlName}}{{/xmlName}}{{^xmlName}}{{baseName}}{{/xmlName}}") @@ -59,12 +44,25 @@ public class {{classname}} {{#parent}}extends {{{parent}}} {{/parent}}{{#parcela public static final String SERIALIZED_NAME_{{nameInSnakeCase}} = "{{baseName}}"; @SerializedName(SERIALIZED_NAME_{{nameInSnakeCase}}) {{/gson}} + {{#jackson}} + public static final String JSON_PROPERTY_{{nameInSnakeCase}} = "{{baseName}}"; + {{/jackson}} + {{#vendorExtensions.isJacksonOptionalNullable}} + {{#isContainer}} + private JsonNullable<{{{datatypeWithEnum}}}> {{name}} = JsonNullable.<{{{datatypeWithEnum}}}>undefined(); + {{/isContainer}} + {{^isContainer}} + private JsonNullable<{{{datatypeWithEnum}}}> {{name}} = JsonNullable.<{{{datatypeWithEnum}}}>{{#defaultValue}}of({{{.}}}){{/defaultValue}}{{^defaultValue}}undefined(){{/defaultValue}}; + {{/isContainer}} + {{/vendorExtensions.isJacksonOptionalNullable}} + {{^vendorExtensions.isJacksonOptionalNullable}} {{#isContainer}} private {{{datatypeWithEnum}}} {{name}}{{#required}}{{#defaultValue}} = {{{.}}}{{/defaultValue}}{{/required}}{{^required}} = null{{/required}}; {{/isContainer}} {{^isContainer}} private {{{datatypeWithEnum}}} {{name}}{{#defaultValue}} = {{{.}}}{{/defaultValue}}; {{/isContainer}} + {{/vendorExtensions.isJacksonOptionalNullable}} {{/vars}} {{#parcelableModel}} @@ -89,14 +87,28 @@ public class {{classname}} {{#parent}}extends {{{parent}}} {{/parent}}{{#parcela {{/gson}} {{/parcelableModel}} {{#vars}} + {{^isReadOnly}} public {{classname}} {{name}}({{{datatypeWithEnum}}} {{name}}) { - this.{{name}} = {{name}}; + {{#vendorExtensions.isJacksonOptionalNullable}}this.{{name}} = JsonNullable.<{{{datatypeWithEnum}}}>of({{name}});{{/vendorExtensions.isJacksonOptionalNullable}} + {{^vendorExtensions.isJacksonOptionalNullable}}this.{{name}} = {{name}};{{/vendorExtensions.isJacksonOptionalNullable}} return this; } {{#isListContainer}} public {{classname}} add{{nameInCamelCase}}Item({{{items.datatypeWithEnum}}} {{name}}Item) { + {{#vendorExtensions.isJacksonOptionalNullable}} + if (this.{{name}} == null || !this.{{name}}.isPresent()) { + this.{{name}} = JsonNullable.<{{{datatypeWithEnum}}}>of({{{defaultValue}}}); + } + try { + this.{{name}}.get().add({{name}}Item); + } catch (java.util.NoSuchElementException e) { + // this can never happen, as we make sure above that the value is present + } + return this; + {{/vendorExtensions.isJacksonOptionalNullable}} + {{^vendorExtensions.isJacksonOptionalNullable}} {{^required}} if (this.{{name}} == null) { this.{{name}} = {{{defaultValue}}}; @@ -104,11 +116,24 @@ public class {{classname}} {{#parent}}extends {{{parent}}} {{/parent}}{{#parcela {{/required}} this.{{name}}.add({{name}}Item); return this; + {{/vendorExtensions.isJacksonOptionalNullable}} } {{/isListContainer}} {{#isMapContainer}} public {{classname}} put{{nameInCamelCase}}Item(String key, {{{items.datatypeWithEnum}}} {{name}}Item) { + {{#vendorExtensions.isJacksonOptionalNullable}} + if (this.{{name}} == null || !this.{{name}}.isPresent()) { + this.{{name}} = JsonNullable.<{{{datatypeWithEnum}}}>of({{{defaultValue}}}); + } + try { + this.{{name}}.get().put(key, {{name}}Item); + } catch (java.util.NoSuchElementException e) { + // this can never happen, as we make sure above that the value is present + } + return this; + {{/vendorExtensions.isJacksonOptionalNullable}} + {{^vendorExtensions.isJacksonOptionalNullable}} {{^required}} if (this.{{name}} == null) { this.{{name}} = {{{defaultValue}}}; @@ -116,6 +141,7 @@ public class {{classname}} {{#parent}}extends {{{parent}}} {{/parent}}{{#parcela {{/required}} this.{{name}}.put(key, {{name}}Item); return this; + {{/vendorExtensions.isJacksonOptionalNullable}} } {{/isMapContainer}} @@ -147,13 +173,43 @@ public class {{classname}} {{#parent}}extends {{{parent}}} {{/parent}}{{#parcela {{#vendorExtensions.extraAnnotation}} {{{vendorExtensions.extraAnnotation}}} {{/vendorExtensions.extraAnnotation}} +{{^vendorExtensions.isJacksonOptionalNullable}}{{#jackson}}{{> jackson_annotations}}{{/jackson}}{{/vendorExtensions.isJacksonOptionalNullable}} public {{{datatypeWithEnum}}} {{getter}}() { + {{#vendorExtensions.isJacksonOptionalNullable}} + {{#isReadOnly}}{{! A readonly attribute doesn't have setter => jackson will set null directly if explicitly returned by API, so make sure we have an empty JsonNullable}} + if ({{name}} == null) { + {{name}} = JsonNullable.<{{{datatypeWithEnum}}}>{{#defaultValue}}of({{{.}}}){{/defaultValue}}{{^defaultValue}}undefined(){{/defaultValue}}; + } + {{/isReadOnly}} + return {{name}}.orElse(null); + {{/vendorExtensions.isJacksonOptionalNullable}} + {{^vendorExtensions.isJacksonOptionalNullable}} + return {{name}}; + {{/vendorExtensions.isJacksonOptionalNullable}} + } + + {{#vendorExtensions.isJacksonOptionalNullable}} +{{> jackson_annotations}} + public JsonNullable<{{{datatypeWithEnum}}}> {{getter}}_JsonNullable() { return {{name}}; } + {{/vendorExtensions.isJacksonOptionalNullable}} + {{^isReadOnly}} + {{#vendorExtensions.isJacksonOptionalNullable}} + @JsonProperty(JSON_PROPERTY_{{nameInSnakeCase}}) + public void {{setter}}_JsonNullable(JsonNullable<{{{datatypeWithEnum}}}> {{name}}) { + this.{{name}} = {{name}}; + } + {{/vendorExtensions.isJacksonOptionalNullable}} public void {{setter}}({{{datatypeWithEnum}}} {{name}}) { + {{#vendorExtensions.isJacksonOptionalNullable}} + this.{{name}} = JsonNullable.<{{{datatypeWithEnum}}}>of({{name}}); + {{/vendorExtensions.isJacksonOptionalNullable}} + {{^vendorExtensions.isJacksonOptionalNullable}} this.{{name}} = {{name}}; + {{/vendorExtensions.isJacksonOptionalNullable}} } {{/isReadOnly}} diff --git a/samples/client/petstore/groovy/src/main/groovy/org/openapitools/model/Pet.groovy b/samples/client/petstore/groovy/src/main/groovy/org/openapitools/model/Pet.groovy index ab4b87def72..630c015aaa4 100644 --- a/samples/client/petstore/groovy/src/main/groovy/org/openapitools/model/Pet.groovy +++ b/samples/client/petstore/groovy/src/main/groovy/org/openapitools/model/Pet.groovy @@ -13,7 +13,7 @@ class Pet { Long id - Category category = null + Category category String name diff --git a/samples/client/petstore/java/feign/pom.xml b/samples/client/petstore/java/feign/pom.xml index a55c44d6546..9e22f5a2fd4 100644 --- a/samples/client/petstore/java/feign/pom.xml +++ b/samples/client/petstore/java/feign/pom.xml @@ -236,6 +236,11 @@ com.fasterxml.jackson.core jackson-databind ${jackson-databind-version} + + + org.openapitools + jackson-databind-nullable + ${jackson-databind-nullable-version} com.github.joschi.jackson @@ -277,6 +282,7 @@ 9.7.0 2.1.0 2.9.9 + 0.2.0 2.9.9 2.6.4 4.12 diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/ApiClient.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/ApiClient.java index 95f82ac14c7..26dcada607e 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/ApiClient.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/ApiClient.java @@ -10,6 +10,7 @@ import org.threeten.bp.*; import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.SerializationFeature; +import org.openapitools.jackson.nullable.JsonNullableModule; import com.fasterxml.jackson.datatype.threetenbp.ThreeTenModule; import feign.Feign; @@ -143,6 +144,8 @@ public class ApiClient { module.addDeserializer(OffsetDateTime.class, CustomInstantDeserializer.OFFSET_DATE_TIME); module.addDeserializer(ZonedDateTime.class, CustomInstantDeserializer.ZONED_DATE_TIME); objectMapper.registerModule(module); + JsonNullableModule jnm = new JsonNullableModule(); + objectMapper.registerModule(jnm); return objectMapper; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index 0df18c37e39..80e4d937cb7 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesAnyType extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesAnyType name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesAnyType extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 0d9a6b14532..59c845c40ac 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import java.util.Map; public class AdditionalPropertiesArray extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesArray name(String name) { + this.name = name; return this; } @@ -44,10 +46,15 @@ public class AdditionalPropertiesArray extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 8e85a1f2246..c6c2919f37d 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesBoolean extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesBoolean name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesBoolean extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } 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 0fa49af1afd..29f38bc34c9 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,50 +32,41 @@ import java.util.Map; public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_STRING = "map_string"; - @JsonProperty(JSON_PROPERTY_MAP_STRING) private Map mapString = null; public static final String JSON_PROPERTY_MAP_NUMBER = "map_number"; - @JsonProperty(JSON_PROPERTY_MAP_NUMBER) private Map mapNumber = null; public static final String JSON_PROPERTY_MAP_INTEGER = "map_integer"; - @JsonProperty(JSON_PROPERTY_MAP_INTEGER) private Map mapInteger = null; public static final String JSON_PROPERTY_MAP_BOOLEAN = "map_boolean"; - @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) private Map mapBoolean = null; public static final String JSON_PROPERTY_MAP_ARRAY_INTEGER = "map_array_integer"; - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) private Map> mapArrayInteger = null; public static final String JSON_PROPERTY_MAP_ARRAY_ANYTYPE = "map_array_anytype"; - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) private Map> mapArrayAnytype = null; public static final String JSON_PROPERTY_MAP_MAP_STRING = "map_map_string"; - @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) private Map> mapMapString = null; public static final String JSON_PROPERTY_MAP_MAP_ANYTYPE = "map_map_anytype"; - @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) private Map> mapMapAnytype = null; public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1"; - @JsonProperty(JSON_PROPERTY_ANYTYPE1) - private Object anytype1 = null; + private Object anytype1; public static final String JSON_PROPERTY_ANYTYPE2 = "anytype_2"; - @JsonProperty(JSON_PROPERTY_ANYTYPE2) - private Object anytype2 = null; + private Object anytype2; public static final String JSON_PROPERTY_ANYTYPE3 = "anytype_3"; - @JsonProperty(JSON_PROPERTY_ANYTYPE3) - private Object anytype3 = null; + private Object anytype3; + public AdditionalPropertiesClass mapString(Map mapString) { + this.mapString = mapString; return this; } @@ -93,15 +85,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapString() { return mapString; } + + public void setMapString(Map mapString) { this.mapString = mapString; } + public AdditionalPropertiesClass mapNumber(Map mapNumber) { + this.mapNumber = mapNumber; return this; } @@ -120,15 +119,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapNumber() { return mapNumber; } + + public void setMapNumber(Map mapNumber) { this.mapNumber = mapNumber; } + public AdditionalPropertiesClass mapInteger(Map mapInteger) { + this.mapInteger = mapInteger; return this; } @@ -147,15 +153,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapInteger() { return mapInteger; } + + public void setMapInteger(Map mapInteger) { this.mapInteger = mapInteger; } + public AdditionalPropertiesClass mapBoolean(Map mapBoolean) { + this.mapBoolean = mapBoolean; return this; } @@ -174,15 +187,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapBoolean() { return mapBoolean; } + + public void setMapBoolean(Map mapBoolean) { this.mapBoolean = mapBoolean; } + public AdditionalPropertiesClass mapArrayInteger(Map> mapArrayInteger) { + this.mapArrayInteger = mapArrayInteger; return this; } @@ -201,15 +221,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapArrayInteger() { return mapArrayInteger; } + + public void setMapArrayInteger(Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; } + public AdditionalPropertiesClass mapArrayAnytype(Map> mapArrayAnytype) { + this.mapArrayAnytype = mapArrayAnytype; return this; } @@ -228,15 +255,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapArrayAnytype() { return mapArrayAnytype; } + + public void setMapArrayAnytype(Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; } + public AdditionalPropertiesClass mapMapString(Map> mapMapString) { + this.mapMapString = mapMapString; return this; } @@ -255,15 +289,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapMapString() { return mapMapString; } + + public void setMapMapString(Map> mapMapString) { this.mapMapString = mapMapString; } + public AdditionalPropertiesClass mapMapAnytype(Map> mapMapAnytype) { + this.mapMapAnytype = mapMapAnytype; return this; } @@ -282,15 +323,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapMapAnytype() { return mapMapAnytype; } + + public void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } + public AdditionalPropertiesClass anytype1(Object anytype1) { + this.anytype1 = anytype1; return this; } @@ -301,15 +349,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Object getAnytype1() { return anytype1; } + + public void setAnytype1(Object anytype1) { this.anytype1 = anytype1; } + public AdditionalPropertiesClass anytype2(Object anytype2) { + this.anytype2 = anytype2; return this; } @@ -320,15 +375,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ANYTYPE2) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Object getAnytype2() { return anytype2; } + + public void setAnytype2(Object anytype2) { this.anytype2 = anytype2; } + public AdditionalPropertiesClass anytype3(Object anytype3) { + this.anytype3 = anytype3; return this; } @@ -339,10 +401,15 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ANYTYPE3) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Object getAnytype3() { return anytype3; } + + public void setAnytype3(Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 77388b95d86..3d41e99ac8b 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesInteger extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesInteger name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesInteger extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index f0a3318bca1..799674f1e1b 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import java.util.Map; public class AdditionalPropertiesNumber extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesNumber name(String name) { + this.name = name; return this; } @@ -44,10 +46,15 @@ public class AdditionalPropertiesNumber extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index 19d772f4522..3d5a5c25bfa 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesObject extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesObject name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesObject extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 09e6431c916..d0c854414c3 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesString extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesString name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesString extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } 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 a2d34d82f47..1f548074919 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; @@ -35,14 +36,14 @@ import io.swagger.annotations.ApiModelProperty; public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; - @JsonProperty(JSON_PROPERTY_CLASS_NAME) private String className; public static final String JSON_PROPERTY_COLOR = "color"; - @JsonProperty(JSON_PROPERTY_COLOR) private String color = "red"; + public Animal className(String className) { + this.className = className; return this; } @@ -52,15 +53,22 @@ public class Animal { * @return className **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getClassName() { return className; } + + public void setClassName(String className) { this.className = className; } + public Animal color(String color) { + this.color = color; return this; } @@ -71,10 +79,15 @@ public class Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_COLOR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getColor() { return color; } + + public void setColor(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 e1a5139bd25..40fd3259fc7 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import java.util.List; public class ArrayOfArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) private List> arrayArrayNumber = null; + public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + this.arrayArrayNumber = arrayArrayNumber; return this; } @@ -52,10 +54,15 @@ public class ArrayOfArrayOfNumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List> getArrayArrayNumber() { return arrayArrayNumber; } + + public void setArrayArrayNumber(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 76fc13b8ce8..1b695be1510 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import java.util.List; public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) private List arrayNumber = null; + public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + this.arrayNumber = arrayNumber; return this; } @@ -52,10 +54,15 @@ public class ArrayOfNumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArrayNumber() { return arrayNumber; } + + public void setArrayNumber(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 a0082db628c..0effb728488 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,18 +31,17 @@ import org.openapitools.client.model.ReadOnlyFirst; public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) private List arrayOfString = null; public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) private List> arrayArrayOfInteger = null; public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) private List> arrayArrayOfModel = null; + public ArrayTest arrayOfString(List arrayOfString) { + this.arrayOfString = arrayOfString; return this; } @@ -60,15 +60,22 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArrayOfString() { return arrayOfString; } + + public void setArrayOfString(List arrayOfString) { this.arrayOfString = arrayOfString; } + public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + this.arrayArrayOfInteger = arrayArrayOfInteger; return this; } @@ -87,15 +94,22 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List> getArrayArrayOfInteger() { return arrayArrayOfInteger; } + + public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } + public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + this.arrayArrayOfModel = arrayArrayOfModel; return this; } @@ -114,10 +128,15 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List> getArrayArrayOfModel() { return arrayArrayOfModel; } + + public void setArrayArrayOfModel(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 1d4ebff1533..1db509bc7a9 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,30 +28,26 @@ import io.swagger.annotations.ApiModelProperty; public class Capitalization { public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) private String smallCamel; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) private String capitalCamel; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) private String smallSnake; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) private String capitalSnake; public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) private String scAETHFlowPoints; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) private String ATT_NAME; + public Capitalization smallCamel(String smallCamel) { + this.smallCamel = smallCamel; return this; } @@ -61,15 +58,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSmallCamel() { return smallCamel; } + + public void setSmallCamel(String smallCamel) { this.smallCamel = smallCamel; } + public Capitalization capitalCamel(String capitalCamel) { + this.capitalCamel = capitalCamel; return this; } @@ -80,15 +84,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getCapitalCamel() { return capitalCamel; } + + public void setCapitalCamel(String capitalCamel) { this.capitalCamel = capitalCamel; } + public Capitalization smallSnake(String smallSnake) { + this.smallSnake = smallSnake; return this; } @@ -99,15 +110,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSmallSnake() { return smallSnake; } + + public void setSmallSnake(String smallSnake) { this.smallSnake = smallSnake; } + public Capitalization capitalSnake(String capitalSnake) { + this.capitalSnake = capitalSnake; return this; } @@ -118,15 +136,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getCapitalSnake() { return capitalSnake; } + + public void setCapitalSnake(String capitalSnake) { this.capitalSnake = capitalSnake; } + public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -137,15 +162,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getScAETHFlowPoints() { return scAETHFlowPoints; } + + public void setScAETHFlowPoints(String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } + public Capitalization ATT_NAME(String ATT_NAME) { + this.ATT_NAME = ATT_NAME; return this; } @@ -156,10 +188,15 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "Name of the pet ") + @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getATTNAME() { return ATT_NAME; } + + public void setATTNAME(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 d43f2333bc9..a9ac75e4980 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import org.openapitools.client.model.CatAllOf; public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; - @JsonProperty(JSON_PROPERTY_DECLAWED) private Boolean declawed; + public Cat declawed(Boolean declawed) { + this.declawed = declawed; return this; } @@ -43,10 +45,15 @@ public class Cat extends Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean isDeclawed() { return declawed; } + + public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/CatAllOf.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/CatAllOf.java index ba49e716c4e..7064e9380c6 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/CatAllOf.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/CatAllOf.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty; public class CatAllOf { public static final String JSON_PROPERTY_DECLAWED = "declawed"; - @JsonProperty(JSON_PROPERTY_DECLAWED) private Boolean declawed; + public CatAllOf declawed(Boolean declawed) { + this.declawed = declawed; return this; } @@ -41,10 +43,15 @@ public class CatAllOf { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean isDeclawed() { return declawed; } + + public void setDeclawed(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 652d69552d1..3c4385a7132 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,14 +28,14 @@ import io.swagger.annotations.ApiModelProperty; public class Category { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name = "default-name"; + public Category id(Long id) { + this.id = id; return this; } @@ -45,15 +46,22 @@ public class Category { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Category name(String name) { + this.name = name; return this; } @@ -63,10 +71,15 @@ public class Category { * @return name **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } 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 16036936e7a..47ad8fce655 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,10 +29,11 @@ import io.swagger.annotations.ApiModelProperty; public class ClassModel { public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) private String propertyClass; + public ClassModel propertyClass(String propertyClass) { + this.propertyClass = propertyClass; return this; } @@ -42,10 +44,15 @@ public class ClassModel { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPropertyClass() { return propertyClass; } + + public void setPropertyClass(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 a5c065a1dd0..d325f1378cb 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty; public class Client { public static final String JSON_PROPERTY_CLIENT = "client"; - @JsonProperty(JSON_PROPERTY_CLIENT) private String client; + public Client client(String client) { + this.client = client; return this; } @@ -41,10 +43,15 @@ public class Client { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getClient() { return client; } + + public void setClient(String client) { this.client = client; } 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 7ac3c33202e..cc0acce7049 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import org.openapitools.client.model.DogAllOf; public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; - @JsonProperty(JSON_PROPERTY_BREED) private String breed; + public Dog breed(String breed) { + this.breed = breed; return this; } @@ -43,10 +45,15 @@ public class Dog extends Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBreed() { return breed; } + + public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/DogAllOf.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/DogAllOf.java index b79847a96e4..31d4cc3c80e 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/DogAllOf.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/DogAllOf.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty; public class DogAllOf { public static final String JSON_PROPERTY_BREED = "breed"; - @JsonProperty(JSON_PROPERTY_BREED) private String breed; + public DogAllOf breed(String breed) { + this.breed = breed; return this; } @@ -41,10 +43,15 @@ public class DogAllOf { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBreed() { return breed; } + + public void setBreed(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 93e0acd5746..c60e85ce7d6 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -64,7 +65,6 @@ public class EnumArrays { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) private JustSymbolEnum justSymbol; /** @@ -103,10 +103,11 @@ public class EnumArrays { } public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) private List arrayEnum = null; + public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + this.justSymbol = justSymbol; return this; } @@ -117,15 +118,22 @@ public class EnumArrays { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public JustSymbolEnum getJustSymbol() { return justSymbol; } + + public void setJustSymbol(JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } + public EnumArrays arrayEnum(List arrayEnum) { + this.arrayEnum = arrayEnum; return this; } @@ -144,10 +152,15 @@ public class EnumArrays { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArrayEnum() { return arrayEnum; } + + public void setArrayEnum(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 bde85ff2a09..615f4806ebd 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -65,7 +66,6 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; - @JsonProperty(JSON_PROPERTY_ENUM_STRING) private EnumStringEnum enumString; /** @@ -106,7 +106,6 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) private EnumStringRequiredEnum enumStringRequired; /** @@ -145,7 +144,6 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) private EnumIntegerEnum enumInteger; /** @@ -184,14 +182,14 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) private OuterEnum outerEnum; + public EnumTest enumString(EnumStringEnum enumString) { + this.enumString = enumString; return this; } @@ -202,15 +200,22 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public EnumStringEnum getEnumString() { return enumString; } + + public void setEnumString(EnumStringEnum enumString) { this.enumString = enumString; } + public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + this.enumStringRequired = enumStringRequired; return this; } @@ -220,15 +225,22 @@ public class EnumTest { * @return enumStringRequired **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; } + + public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } + public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + this.enumInteger = enumInteger; return this; } @@ -239,15 +251,22 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public EnumIntegerEnum getEnumInteger() { return enumInteger; } + + public void setEnumInteger(EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } + public EnumTest enumNumber(EnumNumberEnum enumNumber) { + this.enumNumber = enumNumber; return this; } @@ -258,15 +277,22 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public EnumNumberEnum getEnumNumber() { return enumNumber; } + + public void setEnumNumber(EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } + public EnumTest outerEnum(OuterEnum outerEnum) { + this.outerEnum = outerEnum; return this; } @@ -277,10 +303,15 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OuterEnum getOuterEnum() { return outerEnum; } + + public void setOuterEnum(OuterEnum outerEnum) { this.outerEnum = outerEnum; } 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 1c2623fca90..e2dab74c358 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,14 +30,14 @@ import java.util.List; public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; - @JsonProperty(JSON_PROPERTY_FILE) - private java.io.File file = null; + private java.io.File file; public static final String JSON_PROPERTY_FILES = "files"; - @JsonProperty(JSON_PROPERTY_FILES) private List files = null; + public FileSchemaTestClass file(java.io.File file) { + this.file = file; return this; } @@ -47,15 +48,22 @@ public class FileSchemaTestClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FILE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public java.io.File getFile() { return file; } + + public void setFile(java.io.File file) { this.file = file; } + public FileSchemaTestClass files(List files) { + this.files = files; return this; } @@ -74,10 +82,15 @@ public class FileSchemaTestClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FILES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getFiles() { return files; } + + public void setFiles(List files) { this.files = files; } 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 509048cd5e9..b6dd912d49e 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -32,58 +33,47 @@ import org.threeten.bp.OffsetDateTime; public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; - @JsonProperty(JSON_PROPERTY_INTEGER) private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; - @JsonProperty(JSON_PROPERTY_INT32) private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; - @JsonProperty(JSON_PROPERTY_INT64) private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; - @JsonProperty(JSON_PROPERTY_NUMBER) private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; - @JsonProperty(JSON_PROPERTY_FLOAT) private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; - @JsonProperty(JSON_PROPERTY_DOUBLE) private Double _double; public static final String JSON_PROPERTY_STRING = "string"; - @JsonProperty(JSON_PROPERTY_STRING) private String string; public static final String JSON_PROPERTY_BYTE = "byte"; - @JsonProperty(JSON_PROPERTY_BYTE) private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; - @JsonProperty(JSON_PROPERTY_BINARY) private File binary; public static final String JSON_PROPERTY_DATE = "date"; - @JsonProperty(JSON_PROPERTY_DATE) private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @JsonProperty(JSON_PROPERTY_DATE_TIME) private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; - @JsonProperty(JSON_PROPERTY_UUID) private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; - @JsonProperty(JSON_PROPERTY_PASSWORD) private String password; + public FormatTest integer(Integer integer) { + this.integer = integer; return this; } @@ -96,15 +86,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getInteger() { return integer; } + + public void setInteger(Integer integer) { this.integer = integer; } + public FormatTest int32(Integer int32) { + this.int32 = int32; return this; } @@ -117,15 +114,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INT32) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getInt32() { return int32; } + + public void setInt32(Integer int32) { this.int32 = int32; } + public FormatTest int64(Long int64) { + this.int64 = int64; return this; } @@ -136,15 +140,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INT64) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getInt64() { return int64; } + + public void setInt64(Long int64) { this.int64 = int64; } + public FormatTest number(BigDecimal number) { + this.number = number; return this; } @@ -156,15 +167,22 @@ public class FormatTest { * @return number **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getNumber() { return number; } + + public void setNumber(BigDecimal number) { this.number = number; } + public FormatTest _float(Float _float) { + this._float = _float; return this; } @@ -177,15 +195,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Float getFloat() { return _float; } + + public void setFloat(Float _float) { this._float = _float; } + public FormatTest _double(Double _double) { + this._double = _double; return this; } @@ -198,15 +223,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Double getDouble() { return _double; } + + public void setDouble(Double _double) { this._double = _double; } + public FormatTest string(String string) { + this.string = string; return this; } @@ -217,15 +249,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getString() { return string; } + + public void setString(String string) { this.string = string; } + public FormatTest _byte(byte[] _byte) { + this._byte = _byte; return this; } @@ -235,15 +274,22 @@ public class FormatTest { * @return _byte **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_BYTE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public byte[] getByte() { return _byte; } + + public void setByte(byte[] _byte) { this._byte = _byte; } + public FormatTest binary(File binary) { + this.binary = binary; return this; } @@ -254,15 +300,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BINARY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public File getBinary() { return binary; } + + public void setBinary(File binary) { this.binary = binary; } + public FormatTest date(LocalDate date) { + this.date = date; return this; } @@ -272,15 +325,22 @@ public class FormatTest { * @return date **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_DATE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public LocalDate getDate() { return date; } + + public void setDate(LocalDate date) { this.date = date; } + public FormatTest dateTime(OffsetDateTime dateTime) { + this.dateTime = dateTime; return this; } @@ -291,15 +351,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OffsetDateTime getDateTime() { return dateTime; } + + public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } + public FormatTest uuid(UUID uuid) { + this.uuid = uuid; return this; } @@ -310,15 +377,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public UUID getUuid() { return uuid; } + + public void setUuid(UUID uuid) { this.uuid = uuid; } + public FormatTest password(String password) { + this.password = password; return this; } @@ -328,10 +402,15 @@ public class FormatTest { * @return password **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getPassword() { return password; } + + public void setPassword(String password) { this.password = password; } 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 ad6b28d9d1e..9c25eddaa1b 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,34 +28,44 @@ import io.swagger.annotations.ApiModelProperty; public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; - @JsonProperty(JSON_PROPERTY_BAR) private String bar; public static final String JSON_PROPERTY_FOO = "foo"; - @JsonProperty(JSON_PROPERTY_FOO) private String foo; + /** * Get bar * @return bar **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BAR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBar() { return bar; } + + + /** * Get foo * @return foo **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FOO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getFoo() { return foo; } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { 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 66b41268e51..c6193edaf98 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,7 +31,6 @@ import java.util.Map; public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) private Map> mapMapOfString = null; /** @@ -69,18 +69,17 @@ public class MapTest { } public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) private Map mapOfEnumString = null; public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) private Map directMap = null; public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) private Map indirectMap = null; + public MapTest mapMapOfString(Map> mapMapOfString) { + this.mapMapOfString = mapMapOfString; return this; } @@ -99,15 +98,22 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapMapOfString() { return mapMapOfString; } + + public void setMapMapOfString(Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } + public MapTest mapOfEnumString(Map mapOfEnumString) { + this.mapOfEnumString = mapOfEnumString; return this; } @@ -126,15 +132,22 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapOfEnumString() { return mapOfEnumString; } + + public void setMapOfEnumString(Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } + public MapTest directMap(Map directMap) { + this.directMap = directMap; return this; } @@ -153,15 +166,22 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getDirectMap() { return directMap; } + + public void setDirectMap(Map directMap) { this.directMap = directMap; } + public MapTest indirectMap(Map indirectMap) { + this.indirectMap = indirectMap; return this; } @@ -180,10 +200,15 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getIndirectMap() { return indirectMap; } + + public void setIndirectMap(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 b66724ea321..df4761bf27b 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -33,18 +34,17 @@ import org.threeten.bp.OffsetDateTime; public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; - @JsonProperty(JSON_PROPERTY_UUID) private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @JsonProperty(JSON_PROPERTY_DATE_TIME) private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; - @JsonProperty(JSON_PROPERTY_MAP) private Map map = null; + public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + this.uuid = uuid; return this; } @@ -55,15 +55,22 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public UUID getUuid() { return uuid; } + + public void setUuid(UUID uuid) { this.uuid = uuid; } + public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + this.dateTime = dateTime; return this; } @@ -74,15 +81,22 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OffsetDateTime getDateTime() { return dateTime; } + + public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } + public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + this.map = map; return this; } @@ -101,10 +115,15 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMap() { return map; } + + public void setMap(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 d86df5d7eab..0b39d4177e2 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,14 +29,14 @@ import io.swagger.annotations.ApiModelProperty; public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) private String propertyClass; + public Model200Response name(Integer name) { + this.name = name; return this; } @@ -46,15 +47,22 @@ public class Model200Response { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getName() { return name; } + + public void setName(Integer name) { this.name = name; } + public Model200Response propertyClass(String propertyClass) { + this.propertyClass = propertyClass; return this; } @@ -65,10 +73,15 @@ public class Model200Response { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPropertyClass() { return propertyClass; } + + public void setPropertyClass(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 4c9a7f87b5a..9ca6e78b233 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,18 +28,17 @@ import io.swagger.annotations.ApiModelProperty; public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; - @JsonProperty(JSON_PROPERTY_CODE) private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; - @JsonProperty(JSON_PROPERTY_TYPE) private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; - @JsonProperty(JSON_PROPERTY_MESSAGE) private String message; + public ModelApiResponse code(Integer code) { + this.code = code; return this; } @@ -49,15 +49,22 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getCode() { return code; } + + public void setCode(Integer code) { this.code = code; } + public ModelApiResponse type(String type) { + this.type = type; return this; } @@ -68,15 +75,22 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getType() { return type; } + + public void setType(String type) { this.type = type; } + public ModelApiResponse message(String message) { + this.message = message; return this; } @@ -87,10 +101,15 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } 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 9c9ac21a3fb..300598b5d0b 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,10 +29,11 @@ import io.swagger.annotations.ApiModelProperty; public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; - @JsonProperty(JSON_PROPERTY_RETURN) private Integer _return; + public ModelReturn _return(Integer _return) { + this._return = _return; return this; } @@ -42,10 +44,15 @@ public class ModelReturn { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_RETURN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getReturn() { return _return; } + + public void setReturn(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 47f89c54361..98a92f76c18 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,22 +29,20 @@ import io.swagger.annotations.ApiModelProperty; public class Name { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; - @JsonProperty(JSON_PROPERTY_PROPERTY) private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; - @JsonProperty(JSON_PROPERTY_123NUMBER) private Integer _123number; + public Name name(Integer name) { + this.name = name; return this; } @@ -53,25 +52,38 @@ public class Name { * @return name **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getName() { return name; } + + public void setName(Integer name) { this.name = name; } + /** * Get snakeCase * @return snakeCase **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getSnakeCase() { return snakeCase; } + + + public Name property(String property) { + this.property = property; return this; } @@ -82,25 +94,36 @@ public class Name { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getProperty() { return property; } + + public void setProperty(String property) { this.property = property; } + /** * Get _123number * @return _123number **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_123NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer get123number() { return _123number; } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { 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 f5331da226e..499144e4016 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,10 +29,11 @@ import java.math.BigDecimal; public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) private BigDecimal justNumber; + public NumberOnly justNumber(BigDecimal justNumber) { + this.justNumber = justNumber; return this; } @@ -42,10 +44,15 @@ public class NumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getJustNumber() { return justNumber; } + + public void setJustNumber(BigDecimal justNumber) { this.justNumber = justNumber; } 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 b0d37534e89..babfa0957e0 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,19 +29,15 @@ import org.threeten.bp.OffsetDateTime; public class Order { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; - @JsonProperty(JSON_PROPERTY_PET_ID) private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; - @JsonProperty(JSON_PROPERTY_QUANTITY) private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; - @JsonProperty(JSON_PROPERTY_SHIP_DATE) private OffsetDateTime shipDate; /** @@ -81,14 +78,14 @@ public class Order { } public static final String JSON_PROPERTY_STATUS = "status"; - @JsonProperty(JSON_PROPERTY_STATUS) private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; - @JsonProperty(JSON_PROPERTY_COMPLETE) private Boolean complete = false; + public Order id(Long id) { + this.id = id; return this; } @@ -99,15 +96,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Order petId(Long petId) { + this.petId = petId; return this; } @@ -118,15 +122,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getPetId() { return petId; } + + public void setPetId(Long petId) { this.petId = petId; } + public Order quantity(Integer quantity) { + this.quantity = quantity; return this; } @@ -137,15 +148,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getQuantity() { return quantity; } + + public void setQuantity(Integer quantity) { this.quantity = quantity; } + public Order shipDate(OffsetDateTime shipDate) { + this.shipDate = shipDate; return this; } @@ -156,15 +174,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OffsetDateTime getShipDate() { return shipDate; } + + public void setShipDate(OffsetDateTime shipDate) { this.shipDate = shipDate; } + public Order status(StatusEnum status) { + this.status = status; return this; } @@ -175,15 +200,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "Order Status") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public StatusEnum getStatus() { return status; } + + public void setStatus(StatusEnum status) { this.status = status; } + public Order complete(Boolean complete) { + this.complete = complete; return this; } @@ -194,10 +226,15 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean isComplete() { return complete; } + + public void setComplete(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 edde668a2ad..68b362b3739 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,18 +29,17 @@ import java.math.BigDecimal; public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; - @JsonProperty(JSON_PROPERTY_MY_NUMBER) private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; - @JsonProperty(JSON_PROPERTY_MY_STRING) private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) private Boolean myBoolean; + public OuterComposite myNumber(BigDecimal myNumber) { + this.myNumber = myNumber; return this; } @@ -50,15 +50,22 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getMyNumber() { return myNumber; } + + public void setMyNumber(BigDecimal myNumber) { this.myNumber = myNumber; } + public OuterComposite myString(String myString) { + this.myString = myString; return this; } @@ -69,15 +76,22 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getMyString() { return myString; } + + public void setMyString(String myString) { this.myString = myString; } + public OuterComposite myBoolean(Boolean myBoolean) { + this.myBoolean = myBoolean; return this; } @@ -88,10 +102,15 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean isMyBoolean() { return myBoolean; } + + public void setMyBoolean(Boolean myBoolean) { this.myBoolean = myBoolean; } 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 fb59d996bf6..63f1f3771b2 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,23 +32,18 @@ import org.openapitools.client.model.Tag; public class Pet { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; - @JsonProperty(JSON_PROPERTY_CATEGORY) - private Category category = null; + private Category category; public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) private List photoUrls = new ArrayList(); public static final String JSON_PROPERTY_TAGS = "tags"; - @JsonProperty(JSON_PROPERTY_TAGS) private List tags = null; /** @@ -88,10 +84,11 @@ public class Pet { } public static final String JSON_PROPERTY_STATUS = "status"; - @JsonProperty(JSON_PROPERTY_STATUS) private StatusEnum status; + public Pet id(Long id) { + this.id = id; return this; } @@ -102,15 +99,22 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Pet category(Category category) { + this.category = category; return this; } @@ -121,15 +125,22 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Category getCategory() { return category; } + + public void setCategory(Category category) { this.category = category; } + public Pet name(String name) { + this.name = name; return this; } @@ -139,15 +150,22 @@ public class Pet { * @return name **/ @ApiModelProperty(example = "doggie", required = true, value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public Pet photoUrls(List photoUrls) { + this.photoUrls = photoUrls; return this; } @@ -162,15 +180,22 @@ public class Pet { * @return photoUrls **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getPhotoUrls() { return photoUrls; } + + public void setPhotoUrls(List photoUrls) { this.photoUrls = photoUrls; } + public Pet tags(List tags) { + this.tags = tags; return this; } @@ -189,15 +214,22 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getTags() { return tags; } + + public void setTags(List tags) { this.tags = tags; } + public Pet status(StatusEnum status) { + this.status = status; return this; } @@ -208,10 +240,15 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "pet status in the store") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public StatusEnum getStatus() { return status; } + + public void setStatus(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 b0949b9e2ea..28901097fa4 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,24 +28,30 @@ import io.swagger.annotations.ApiModelProperty; public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; - @JsonProperty(JSON_PROPERTY_BAR) private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; - @JsonProperty(JSON_PROPERTY_BAZ) private String baz; + /** * Get bar * @return bar **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BAR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBar() { return bar; } + + + public ReadOnlyFirst baz(String baz) { + this.baz = baz; return this; } @@ -55,10 +62,15 @@ public class ReadOnlyFirst { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BAZ) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBaz() { return baz; } + + public void setBaz(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 a9d03234061..c7820abb0fc 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty; public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) private Long $specialPropertyName; + public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + this.$specialPropertyName = $specialPropertyName; return this; } @@ -41,10 +43,15 @@ public class SpecialModelName { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long get$SpecialPropertyName() { return $specialPropertyName; } + + public void set$SpecialPropertyName(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 45f17b22cf3..7e20ebf4a31 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,14 +28,14 @@ import io.swagger.annotations.ApiModelProperty; public class Tag { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public Tag id(Long id) { + this.id = id; return this; } @@ -45,15 +46,22 @@ public class Tag { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Tag name(String name) { + this.name = name; return this; } @@ -64,10 +72,15 @@ public class Tag { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index 75ddd671fa8..5a157e31b4b 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,26 +31,23 @@ import java.util.List; public class TypeHolderDefault { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; - @JsonProperty(JSON_PROPERTY_STRING_ITEM) private String stringItem = "what"; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) private BigDecimal numberItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) private Boolean boolItem = true; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) private List arrayItem = new ArrayList(); + public TypeHolderDefault stringItem(String stringItem) { + this.stringItem = stringItem; return this; } @@ -59,15 +57,22 @@ public class TypeHolderDefault { * @return stringItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getStringItem() { return stringItem; } + + public void setStringItem(String stringItem) { this.stringItem = stringItem; } + public TypeHolderDefault numberItem(BigDecimal numberItem) { + this.numberItem = numberItem; return this; } @@ -77,15 +82,22 @@ public class TypeHolderDefault { * @return numberItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getNumberItem() { return numberItem; } + + public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } + public TypeHolderDefault integerItem(Integer integerItem) { + this.integerItem = integerItem; return this; } @@ -95,15 +107,22 @@ public class TypeHolderDefault { * @return integerItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getIntegerItem() { return integerItem; } + + public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } + public TypeHolderDefault boolItem(Boolean boolItem) { + this.boolItem = boolItem; return this; } @@ -113,15 +132,22 @@ public class TypeHolderDefault { * @return boolItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Boolean isBoolItem() { return boolItem; } + + public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } + public TypeHolderDefault arrayItem(List arrayItem) { + this.arrayItem = arrayItem; return this; } @@ -136,10 +162,15 @@ public class TypeHolderDefault { * @return arrayItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getArrayItem() { return arrayItem; } + + public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/TypeHolderExample.java index 79a56d1ac73..7f00da24259 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,26 +31,23 @@ import java.util.List; public class TypeHolderExample { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; - @JsonProperty(JSON_PROPERTY_STRING_ITEM) private String stringItem; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) private BigDecimal numberItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) private Boolean boolItem; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) private List arrayItem = new ArrayList(); + public TypeHolderExample stringItem(String stringItem) { + this.stringItem = stringItem; return this; } @@ -59,15 +57,22 @@ public class TypeHolderExample { * @return stringItem **/ @ApiModelProperty(example = "what", required = true, value = "") + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getStringItem() { return stringItem; } + + public void setStringItem(String stringItem) { this.stringItem = stringItem; } + public TypeHolderExample numberItem(BigDecimal numberItem) { + this.numberItem = numberItem; return this; } @@ -77,15 +82,22 @@ public class TypeHolderExample { * @return numberItem **/ @ApiModelProperty(example = "1.234", required = true, value = "") + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getNumberItem() { return numberItem; } + + public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } + public TypeHolderExample integerItem(Integer integerItem) { + this.integerItem = integerItem; return this; } @@ -95,15 +107,22 @@ public class TypeHolderExample { * @return integerItem **/ @ApiModelProperty(example = "-2", required = true, value = "") + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getIntegerItem() { return integerItem; } + + public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } + public TypeHolderExample boolItem(Boolean boolItem) { + this.boolItem = boolItem; return this; } @@ -113,15 +132,22 @@ public class TypeHolderExample { * @return boolItem **/ @ApiModelProperty(example = "true", required = true, value = "") + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Boolean isBoolItem() { return boolItem; } + + public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } + public TypeHolderExample arrayItem(List arrayItem) { + this.arrayItem = arrayItem; return this; } @@ -136,10 +162,15 @@ public class TypeHolderExample { * @return arrayItem **/ @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getArrayItem() { return arrayItem; } + + public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/User.java index 9ce7869e755..b181265d97d 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/User.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,38 +28,32 @@ import io.swagger.annotations.ApiModelProperty; public class User { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; - @JsonProperty(JSON_PROPERTY_USERNAME) private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; - @JsonProperty(JSON_PROPERTY_FIRST_NAME) private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; - @JsonProperty(JSON_PROPERTY_LAST_NAME) private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; - @JsonProperty(JSON_PROPERTY_EMAIL) private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; - @JsonProperty(JSON_PROPERTY_PASSWORD) private String password; public static final String JSON_PROPERTY_PHONE = "phone"; - @JsonProperty(JSON_PROPERTY_PHONE) private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; - @JsonProperty(JSON_PROPERTY_USER_STATUS) private Integer userStatus; + public User id(Long id) { + this.id = id; return this; } @@ -69,15 +64,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public User username(String username) { + this.username = username; return this; } @@ -88,15 +90,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getUsername() { return username; } + + public void setUsername(String username) { this.username = username; } + public User firstName(String firstName) { + this.firstName = firstName; return this; } @@ -107,15 +116,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getFirstName() { return firstName; } + + public void setFirstName(String firstName) { this.firstName = firstName; } + public User lastName(String lastName) { + this.lastName = lastName; return this; } @@ -126,15 +142,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getLastName() { return lastName; } + + public void setLastName(String lastName) { this.lastName = lastName; } + public User email(String email) { + this.email = email; return this; } @@ -145,15 +168,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getEmail() { return email; } + + public void setEmail(String email) { this.email = email; } + public User password(String password) { + this.password = password; return this; } @@ -164,15 +194,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPassword() { return password; } + + public void setPassword(String password) { this.password = password; } + public User phone(String phone) { + this.phone = phone; return this; } @@ -183,15 +220,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PHONE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPhone() { return phone; } + + public void setPhone(String phone) { this.phone = phone; } + public User userStatus(Integer userStatus) { + this.userStatus = userStatus; return this; } @@ -202,10 +246,15 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "User Status") + @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getUserStatus() { return userStatus; } + + public void setUserStatus(Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/XmlItem.java index b8c9c4ad726..3e30e7d43f9 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/XmlItem.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,122 +31,95 @@ import java.util.List; public class XmlItem { public static final String JSON_PROPERTY_ATTRIBUTE_STRING = "attribute_string"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) private String attributeString; public static final String JSON_PROPERTY_ATTRIBUTE_NUMBER = "attribute_number"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) private BigDecimal attributeNumber; public static final String JSON_PROPERTY_ATTRIBUTE_INTEGER = "attribute_integer"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) private Integer attributeInteger; public static final String JSON_PROPERTY_ATTRIBUTE_BOOLEAN = "attribute_boolean"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) private Boolean attributeBoolean; public static final String JSON_PROPERTY_WRAPPED_ARRAY = "wrapped_array"; - @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) private List wrappedArray = null; public static final String JSON_PROPERTY_NAME_STRING = "name_string"; - @JsonProperty(JSON_PROPERTY_NAME_STRING) private String nameString; public static final String JSON_PROPERTY_NAME_NUMBER = "name_number"; - @JsonProperty(JSON_PROPERTY_NAME_NUMBER) private BigDecimal nameNumber; public static final String JSON_PROPERTY_NAME_INTEGER = "name_integer"; - @JsonProperty(JSON_PROPERTY_NAME_INTEGER) private Integer nameInteger; public static final String JSON_PROPERTY_NAME_BOOLEAN = "name_boolean"; - @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) private Boolean nameBoolean; public static final String JSON_PROPERTY_NAME_ARRAY = "name_array"; - @JsonProperty(JSON_PROPERTY_NAME_ARRAY) private List nameArray = null; public static final String JSON_PROPERTY_NAME_WRAPPED_ARRAY = "name_wrapped_array"; - @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) private List nameWrappedArray = null; public static final String JSON_PROPERTY_PREFIX_STRING = "prefix_string"; - @JsonProperty(JSON_PROPERTY_PREFIX_STRING) private String prefixString; public static final String JSON_PROPERTY_PREFIX_NUMBER = "prefix_number"; - @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) private BigDecimal prefixNumber; public static final String JSON_PROPERTY_PREFIX_INTEGER = "prefix_integer"; - @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) private Integer prefixInteger; public static final String JSON_PROPERTY_PREFIX_BOOLEAN = "prefix_boolean"; - @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) private Boolean prefixBoolean; public static final String JSON_PROPERTY_PREFIX_ARRAY = "prefix_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) private List prefixArray = null; public static final String JSON_PROPERTY_PREFIX_WRAPPED_ARRAY = "prefix_wrapped_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) private List prefixWrappedArray = null; public static final String JSON_PROPERTY_NAMESPACE_STRING = "namespace_string"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) private String namespaceString; public static final String JSON_PROPERTY_NAMESPACE_NUMBER = "namespace_number"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) private BigDecimal namespaceNumber; public static final String JSON_PROPERTY_NAMESPACE_INTEGER = "namespace_integer"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) private Integer namespaceInteger; public static final String JSON_PROPERTY_NAMESPACE_BOOLEAN = "namespace_boolean"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) private Boolean namespaceBoolean; public static final String JSON_PROPERTY_NAMESPACE_ARRAY = "namespace_array"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) private List namespaceArray = null; public static final String JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY = "namespace_wrapped_array"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) private List namespaceWrappedArray = null; public static final String JSON_PROPERTY_PREFIX_NS_STRING = "prefix_ns_string"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) private String prefixNsString; public static final String JSON_PROPERTY_PREFIX_NS_NUMBER = "prefix_ns_number"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) private BigDecimal prefixNsNumber; public static final String JSON_PROPERTY_PREFIX_NS_INTEGER = "prefix_ns_integer"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) private Integer prefixNsInteger; public static final String JSON_PROPERTY_PREFIX_NS_BOOLEAN = "prefix_ns_boolean"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) private Boolean prefixNsBoolean; public static final String JSON_PROPERTY_PREFIX_NS_ARRAY = "prefix_ns_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) private List prefixNsArray = null; public static final String JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY = "prefix_ns_wrapped_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) private List prefixNsWrappedArray = null; + public XmlItem attributeString(String attributeString) { + this.attributeString = attributeString; return this; } @@ -156,15 +130,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getAttributeString() { return attributeString; } + + public void setAttributeString(String attributeString) { this.attributeString = attributeString; } + public XmlItem attributeNumber(BigDecimal attributeNumber) { + this.attributeNumber = attributeNumber; return this; } @@ -175,15 +156,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getAttributeNumber() { return attributeNumber; } + + public void setAttributeNumber(BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } + public XmlItem attributeInteger(Integer attributeInteger) { + this.attributeInteger = attributeInteger; return this; } @@ -194,15 +182,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getAttributeInteger() { return attributeInteger; } + + public void setAttributeInteger(Integer attributeInteger) { this.attributeInteger = attributeInteger; } + public XmlItem attributeBoolean(Boolean attributeBoolean) { + this.attributeBoolean = attributeBoolean; return this; } @@ -213,15 +208,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean isAttributeBoolean() { return attributeBoolean; } + + public void setAttributeBoolean(Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } + public XmlItem wrappedArray(List wrappedArray) { + this.wrappedArray = wrappedArray; return this; } @@ -240,15 +242,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getWrappedArray() { return wrappedArray; } + + public void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } + public XmlItem nameString(String nameString) { + this.nameString = nameString; return this; } @@ -259,15 +268,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_NAME_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getNameString() { return nameString; } + + public void setNameString(String nameString) { this.nameString = nameString; } + public XmlItem nameNumber(BigDecimal nameNumber) { + this.nameNumber = nameNumber; return this; } @@ -278,15 +294,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_NAME_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getNameNumber() { return nameNumber; } + + public void setNameNumber(BigDecimal nameNumber) { this.nameNumber = nameNumber; } + public XmlItem nameInteger(Integer nameInteger) { + this.nameInteger = nameInteger; return this; } @@ -297,15 +320,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_NAME_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getNameInteger() { return nameInteger; } + + public void setNameInteger(Integer nameInteger) { this.nameInteger = nameInteger; } + public XmlItem nameBoolean(Boolean nameBoolean) { + this.nameBoolean = nameBoolean; return this; } @@ -316,15 +346,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean isNameBoolean() { return nameBoolean; } + + public void setNameBoolean(Boolean nameBoolean) { this.nameBoolean = nameBoolean; } + public XmlItem nameArray(List nameArray) { + this.nameArray = nameArray; return this; } @@ -343,15 +380,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNameArray() { return nameArray; } + + public void setNameArray(List nameArray) { this.nameArray = nameArray; } + public XmlItem nameWrappedArray(List nameWrappedArray) { + this.nameWrappedArray = nameWrappedArray; return this; } @@ -370,15 +414,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNameWrappedArray() { return nameWrappedArray; } + + public void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } + public XmlItem prefixString(String prefixString) { + this.prefixString = prefixString; return this; } @@ -389,15 +440,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPrefixString() { return prefixString; } + + public void setPrefixString(String prefixString) { this.prefixString = prefixString; } + public XmlItem prefixNumber(BigDecimal prefixNumber) { + this.prefixNumber = prefixNumber; return this; } @@ -408,15 +466,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getPrefixNumber() { return prefixNumber; } + + public void setPrefixNumber(BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } + public XmlItem prefixInteger(Integer prefixInteger) { + this.prefixInteger = prefixInteger; return this; } @@ -427,15 +492,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getPrefixInteger() { return prefixInteger; } + + public void setPrefixInteger(Integer prefixInteger) { this.prefixInteger = prefixInteger; } + public XmlItem prefixBoolean(Boolean prefixBoolean) { + this.prefixBoolean = prefixBoolean; return this; } @@ -446,15 +518,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean isPrefixBoolean() { return prefixBoolean; } + + public void setPrefixBoolean(Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } + public XmlItem prefixArray(List prefixArray) { + this.prefixArray = prefixArray; return this; } @@ -473,15 +552,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixArray() { return prefixArray; } + + public void setPrefixArray(List prefixArray) { this.prefixArray = prefixArray; } + public XmlItem prefixWrappedArray(List prefixWrappedArray) { + this.prefixWrappedArray = prefixWrappedArray; return this; } @@ -500,15 +586,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixWrappedArray() { return prefixWrappedArray; } + + public void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } + public XmlItem namespaceString(String namespaceString) { + this.namespaceString = namespaceString; return this; } @@ -519,15 +612,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getNamespaceString() { return namespaceString; } + + public void setNamespaceString(String namespaceString) { this.namespaceString = namespaceString; } + public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + this.namespaceNumber = namespaceNumber; return this; } @@ -538,15 +638,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getNamespaceNumber() { return namespaceNumber; } + + public void setNamespaceNumber(BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } + public XmlItem namespaceInteger(Integer namespaceInteger) { + this.namespaceInteger = namespaceInteger; return this; } @@ -557,15 +664,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getNamespaceInteger() { return namespaceInteger; } + + public void setNamespaceInteger(Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } + public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + this.namespaceBoolean = namespaceBoolean; return this; } @@ -576,15 +690,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean isNamespaceBoolean() { return namespaceBoolean; } + + public void setNamespaceBoolean(Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } + public XmlItem namespaceArray(List namespaceArray) { + this.namespaceArray = namespaceArray; return this; } @@ -603,15 +724,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNamespaceArray() { return namespaceArray; } + + public void setNamespaceArray(List namespaceArray) { this.namespaceArray = namespaceArray; } + public XmlItem namespaceWrappedArray(List namespaceWrappedArray) { + this.namespaceWrappedArray = namespaceWrappedArray; return this; } @@ -630,15 +758,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNamespaceWrappedArray() { return namespaceWrappedArray; } + + public void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } + public XmlItem prefixNsString(String prefixNsString) { + this.prefixNsString = prefixNsString; return this; } @@ -649,15 +784,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPrefixNsString() { return prefixNsString; } + + public void setPrefixNsString(String prefixNsString) { this.prefixNsString = prefixNsString; } + public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + this.prefixNsNumber = prefixNsNumber; return this; } @@ -668,15 +810,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getPrefixNsNumber() { return prefixNsNumber; } + + public void setPrefixNsNumber(BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } + public XmlItem prefixNsInteger(Integer prefixNsInteger) { + this.prefixNsInteger = prefixNsInteger; return this; } @@ -687,15 +836,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getPrefixNsInteger() { return prefixNsInteger; } + + public void setPrefixNsInteger(Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } + public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + this.prefixNsBoolean = prefixNsBoolean; return this; } @@ -706,15 +862,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean isPrefixNsBoolean() { return prefixNsBoolean; } + + public void setPrefixNsBoolean(Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } + public XmlItem prefixNsArray(List prefixNsArray) { + this.prefixNsArray = prefixNsArray; return this; } @@ -733,15 +896,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixNsArray() { return prefixNsArray; } + + public void setPrefixNsArray(List prefixNsArray) { this.prefixNsArray = prefixNsArray; } + public XmlItem prefixNsWrappedArray(List prefixNsWrappedArray) { + this.prefixNsWrappedArray = prefixNsWrappedArray; return this; } @@ -760,10 +930,15 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixNsWrappedArray() { return prefixNsWrappedArray; } + + public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/feign10x/pom.xml b/samples/client/petstore/java/feign10x/pom.xml index 0bf621890ff..706fb1494b0 100644 --- a/samples/client/petstore/java/feign10x/pom.xml +++ b/samples/client/petstore/java/feign10x/pom.xml @@ -236,6 +236,11 @@ com.fasterxml.jackson.core jackson-databind ${jackson-databind-version} + + + org.openapitools + jackson-databind-nullable + ${jackson-databind-nullable-version} com.github.joschi.jackson @@ -277,6 +282,7 @@ 10.2.3 2.1.0 2.9.9 + 0.2.0 2.9.9 2.6.4 4.12 diff --git a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/ApiClient.java b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/ApiClient.java index 95f82ac14c7..26dcada607e 100644 --- a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/ApiClient.java +++ b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/ApiClient.java @@ -10,6 +10,7 @@ import org.threeten.bp.*; import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.SerializationFeature; +import org.openapitools.jackson.nullable.JsonNullableModule; import com.fasterxml.jackson.datatype.threetenbp.ThreeTenModule; import feign.Feign; @@ -143,6 +144,8 @@ public class ApiClient { module.addDeserializer(OffsetDateTime.class, CustomInstantDeserializer.OFFSET_DATE_TIME); module.addDeserializer(ZonedDateTime.class, CustomInstantDeserializer.ZONED_DATE_TIME); objectMapper.registerModule(module); + JsonNullableModule jnm = new JsonNullableModule(); + objectMapper.registerModule(jnm); return objectMapper; } diff --git a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index 0df18c37e39..80e4d937cb7 100644 --- a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesAnyType extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesAnyType name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesAnyType extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 0d9a6b14532..59c845c40ac 100644 --- a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import java.util.Map; public class AdditionalPropertiesArray extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesArray name(String name) { + this.name = name; return this; } @@ -44,10 +46,15 @@ public class AdditionalPropertiesArray extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 8e85a1f2246..c6c2919f37d 100644 --- a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesBoolean extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesBoolean name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesBoolean extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 0fa49af1afd..29f38bc34c9 100644 --- a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,50 +32,41 @@ import java.util.Map; public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_STRING = "map_string"; - @JsonProperty(JSON_PROPERTY_MAP_STRING) private Map mapString = null; public static final String JSON_PROPERTY_MAP_NUMBER = "map_number"; - @JsonProperty(JSON_PROPERTY_MAP_NUMBER) private Map mapNumber = null; public static final String JSON_PROPERTY_MAP_INTEGER = "map_integer"; - @JsonProperty(JSON_PROPERTY_MAP_INTEGER) private Map mapInteger = null; public static final String JSON_PROPERTY_MAP_BOOLEAN = "map_boolean"; - @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) private Map mapBoolean = null; public static final String JSON_PROPERTY_MAP_ARRAY_INTEGER = "map_array_integer"; - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) private Map> mapArrayInteger = null; public static final String JSON_PROPERTY_MAP_ARRAY_ANYTYPE = "map_array_anytype"; - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) private Map> mapArrayAnytype = null; public static final String JSON_PROPERTY_MAP_MAP_STRING = "map_map_string"; - @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) private Map> mapMapString = null; public static final String JSON_PROPERTY_MAP_MAP_ANYTYPE = "map_map_anytype"; - @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) private Map> mapMapAnytype = null; public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1"; - @JsonProperty(JSON_PROPERTY_ANYTYPE1) - private Object anytype1 = null; + private Object anytype1; public static final String JSON_PROPERTY_ANYTYPE2 = "anytype_2"; - @JsonProperty(JSON_PROPERTY_ANYTYPE2) - private Object anytype2 = null; + private Object anytype2; public static final String JSON_PROPERTY_ANYTYPE3 = "anytype_3"; - @JsonProperty(JSON_PROPERTY_ANYTYPE3) - private Object anytype3 = null; + private Object anytype3; + public AdditionalPropertiesClass mapString(Map mapString) { + this.mapString = mapString; return this; } @@ -93,15 +85,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapString() { return mapString; } + + public void setMapString(Map mapString) { this.mapString = mapString; } + public AdditionalPropertiesClass mapNumber(Map mapNumber) { + this.mapNumber = mapNumber; return this; } @@ -120,15 +119,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapNumber() { return mapNumber; } + + public void setMapNumber(Map mapNumber) { this.mapNumber = mapNumber; } + public AdditionalPropertiesClass mapInteger(Map mapInteger) { + this.mapInteger = mapInteger; return this; } @@ -147,15 +153,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapInteger() { return mapInteger; } + + public void setMapInteger(Map mapInteger) { this.mapInteger = mapInteger; } + public AdditionalPropertiesClass mapBoolean(Map mapBoolean) { + this.mapBoolean = mapBoolean; return this; } @@ -174,15 +187,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapBoolean() { return mapBoolean; } + + public void setMapBoolean(Map mapBoolean) { this.mapBoolean = mapBoolean; } + public AdditionalPropertiesClass mapArrayInteger(Map> mapArrayInteger) { + this.mapArrayInteger = mapArrayInteger; return this; } @@ -201,15 +221,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapArrayInteger() { return mapArrayInteger; } + + public void setMapArrayInteger(Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; } + public AdditionalPropertiesClass mapArrayAnytype(Map> mapArrayAnytype) { + this.mapArrayAnytype = mapArrayAnytype; return this; } @@ -228,15 +255,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapArrayAnytype() { return mapArrayAnytype; } + + public void setMapArrayAnytype(Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; } + public AdditionalPropertiesClass mapMapString(Map> mapMapString) { + this.mapMapString = mapMapString; return this; } @@ -255,15 +289,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapMapString() { return mapMapString; } + + public void setMapMapString(Map> mapMapString) { this.mapMapString = mapMapString; } + public AdditionalPropertiesClass mapMapAnytype(Map> mapMapAnytype) { + this.mapMapAnytype = mapMapAnytype; return this; } @@ -282,15 +323,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapMapAnytype() { return mapMapAnytype; } + + public void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } + public AdditionalPropertiesClass anytype1(Object anytype1) { + this.anytype1 = anytype1; return this; } @@ -301,15 +349,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Object getAnytype1() { return anytype1; } + + public void setAnytype1(Object anytype1) { this.anytype1 = anytype1; } + public AdditionalPropertiesClass anytype2(Object anytype2) { + this.anytype2 = anytype2; return this; } @@ -320,15 +375,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ANYTYPE2) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Object getAnytype2() { return anytype2; } + + public void setAnytype2(Object anytype2) { this.anytype2 = anytype2; } + public AdditionalPropertiesClass anytype3(Object anytype3) { + this.anytype3 = anytype3; return this; } @@ -339,10 +401,15 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ANYTYPE3) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Object getAnytype3() { return anytype3; } + + public void setAnytype3(Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 77388b95d86..3d41e99ac8b 100644 --- a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesInteger extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesInteger name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesInteger extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index f0a3318bca1..799674f1e1b 100644 --- a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import java.util.Map; public class AdditionalPropertiesNumber extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesNumber name(String name) { + this.name = name; return this; } @@ -44,10 +46,15 @@ public class AdditionalPropertiesNumber extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index 19d772f4522..3d5a5c25bfa 100644 --- a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesObject extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesObject name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesObject extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 09e6431c916..d0c854414c3 100644 --- a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesString extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesString name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesString extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/Animal.java index a2d34d82f47..1f548074919 100644 --- a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/Animal.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; @@ -35,14 +36,14 @@ import io.swagger.annotations.ApiModelProperty; public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; - @JsonProperty(JSON_PROPERTY_CLASS_NAME) private String className; public static final String JSON_PROPERTY_COLOR = "color"; - @JsonProperty(JSON_PROPERTY_COLOR) private String color = "red"; + public Animal className(String className) { + this.className = className; return this; } @@ -52,15 +53,22 @@ public class Animal { * @return className **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getClassName() { return className; } + + public void setClassName(String className) { this.className = className; } + public Animal color(String color) { + this.color = color; return this; } @@ -71,10 +79,15 @@ public class Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_COLOR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getColor() { return color; } + + public void setColor(String color) { this.color = color; } diff --git a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index e1a5139bd25..40fd3259fc7 100644 --- a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import java.util.List; public class ArrayOfArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) private List> arrayArrayNumber = null; + public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + this.arrayArrayNumber = arrayArrayNumber; return this; } @@ -52,10 +54,15 @@ public class ArrayOfArrayOfNumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List> getArrayArrayNumber() { return arrayArrayNumber; } + + public void setArrayArrayNumber(List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 76fc13b8ce8..1b695be1510 100644 --- a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import java.util.List; public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) private List arrayNumber = null; + public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + this.arrayNumber = arrayNumber; return this; } @@ -52,10 +54,15 @@ public class ArrayOfNumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArrayNumber() { return arrayNumber; } + + public void setArrayNumber(List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/ArrayTest.java index a0082db628c..0effb728488 100644 --- a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,18 +31,17 @@ import org.openapitools.client.model.ReadOnlyFirst; public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) private List arrayOfString = null; public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) private List> arrayArrayOfInteger = null; public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) private List> arrayArrayOfModel = null; + public ArrayTest arrayOfString(List arrayOfString) { + this.arrayOfString = arrayOfString; return this; } @@ -60,15 +60,22 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArrayOfString() { return arrayOfString; } + + public void setArrayOfString(List arrayOfString) { this.arrayOfString = arrayOfString; } + public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + this.arrayArrayOfInteger = arrayArrayOfInteger; return this; } @@ -87,15 +94,22 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List> getArrayArrayOfInteger() { return arrayArrayOfInteger; } + + public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } + public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + this.arrayArrayOfModel = arrayArrayOfModel; return this; } @@ -114,10 +128,15 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List> getArrayArrayOfModel() { return arrayArrayOfModel; } + + public void setArrayArrayOfModel(List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/Capitalization.java index 1d4ebff1533..1db509bc7a9 100644 --- a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/Capitalization.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,30 +28,26 @@ import io.swagger.annotations.ApiModelProperty; public class Capitalization { public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) private String smallCamel; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) private String capitalCamel; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) private String smallSnake; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) private String capitalSnake; public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) private String scAETHFlowPoints; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) private String ATT_NAME; + public Capitalization smallCamel(String smallCamel) { + this.smallCamel = smallCamel; return this; } @@ -61,15 +58,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSmallCamel() { return smallCamel; } + + public void setSmallCamel(String smallCamel) { this.smallCamel = smallCamel; } + public Capitalization capitalCamel(String capitalCamel) { + this.capitalCamel = capitalCamel; return this; } @@ -80,15 +84,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getCapitalCamel() { return capitalCamel; } + + public void setCapitalCamel(String capitalCamel) { this.capitalCamel = capitalCamel; } + public Capitalization smallSnake(String smallSnake) { + this.smallSnake = smallSnake; return this; } @@ -99,15 +110,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSmallSnake() { return smallSnake; } + + public void setSmallSnake(String smallSnake) { this.smallSnake = smallSnake; } + public Capitalization capitalSnake(String capitalSnake) { + this.capitalSnake = capitalSnake; return this; } @@ -118,15 +136,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getCapitalSnake() { return capitalSnake; } + + public void setCapitalSnake(String capitalSnake) { this.capitalSnake = capitalSnake; } + public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -137,15 +162,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getScAETHFlowPoints() { return scAETHFlowPoints; } + + public void setScAETHFlowPoints(String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } + public Capitalization ATT_NAME(String ATT_NAME) { + this.ATT_NAME = ATT_NAME; return this; } @@ -156,10 +188,15 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "Name of the pet ") + @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getATTNAME() { return ATT_NAME; } + + public void setATTNAME(String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/Cat.java index d43f2333bc9..a9ac75e4980 100644 --- a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/Cat.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import org.openapitools.client.model.CatAllOf; public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; - @JsonProperty(JSON_PROPERTY_DECLAWED) private Boolean declawed; + public Cat declawed(Boolean declawed) { + this.declawed = declawed; return this; } @@ -43,10 +45,15 @@ public class Cat extends Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean isDeclawed() { return declawed; } + + public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/CatAllOf.java b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/CatAllOf.java index ba49e716c4e..7064e9380c6 100644 --- a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/CatAllOf.java +++ b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/CatAllOf.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty; public class CatAllOf { public static final String JSON_PROPERTY_DECLAWED = "declawed"; - @JsonProperty(JSON_PROPERTY_DECLAWED) private Boolean declawed; + public CatAllOf declawed(Boolean declawed) { + this.declawed = declawed; return this; } @@ -41,10 +43,15 @@ public class CatAllOf { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean isDeclawed() { return declawed; } + + public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/Category.java index 652d69552d1..3c4385a7132 100644 --- a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/Category.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,14 +28,14 @@ import io.swagger.annotations.ApiModelProperty; public class Category { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name = "default-name"; + public Category id(Long id) { + this.id = id; return this; } @@ -45,15 +46,22 @@ public class Category { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Category name(String name) { + this.name = name; return this; } @@ -63,10 +71,15 @@ public class Category { * @return name **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/ClassModel.java index 16036936e7a..47ad8fce655 100644 --- a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/ClassModel.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,10 +29,11 @@ import io.swagger.annotations.ApiModelProperty; public class ClassModel { public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) private String propertyClass; + public ClassModel propertyClass(String propertyClass) { + this.propertyClass = propertyClass; return this; } @@ -42,10 +44,15 @@ public class ClassModel { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPropertyClass() { return propertyClass; } + + public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/Client.java index a5c065a1dd0..d325f1378cb 100644 --- a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/Client.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty; public class Client { public static final String JSON_PROPERTY_CLIENT = "client"; - @JsonProperty(JSON_PROPERTY_CLIENT) private String client; + public Client client(String client) { + this.client = client; return this; } @@ -41,10 +43,15 @@ public class Client { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getClient() { return client; } + + public void setClient(String client) { this.client = client; } diff --git a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/Dog.java index 7ac3c33202e..cc0acce7049 100644 --- a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/Dog.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import org.openapitools.client.model.DogAllOf; public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; - @JsonProperty(JSON_PROPERTY_BREED) private String breed; + public Dog breed(String breed) { + this.breed = breed; return this; } @@ -43,10 +45,15 @@ public class Dog extends Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBreed() { return breed; } + + public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/DogAllOf.java b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/DogAllOf.java index b79847a96e4..31d4cc3c80e 100644 --- a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/DogAllOf.java +++ b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/DogAllOf.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty; public class DogAllOf { public static final String JSON_PROPERTY_BREED = "breed"; - @JsonProperty(JSON_PROPERTY_BREED) private String breed; + public DogAllOf breed(String breed) { + this.breed = breed; return this; } @@ -41,10 +43,15 @@ public class DogAllOf { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBreed() { return breed; } + + public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/EnumArrays.java index 93e0acd5746..c60e85ce7d6 100644 --- a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -64,7 +65,6 @@ public class EnumArrays { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) private JustSymbolEnum justSymbol; /** @@ -103,10 +103,11 @@ public class EnumArrays { } public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) private List arrayEnum = null; + public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + this.justSymbol = justSymbol; return this; } @@ -117,15 +118,22 @@ public class EnumArrays { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public JustSymbolEnum getJustSymbol() { return justSymbol; } + + public void setJustSymbol(JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } + public EnumArrays arrayEnum(List arrayEnum) { + this.arrayEnum = arrayEnum; return this; } @@ -144,10 +152,15 @@ public class EnumArrays { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArrayEnum() { return arrayEnum; } + + public void setArrayEnum(List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/EnumTest.java index bde85ff2a09..615f4806ebd 100644 --- a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/EnumTest.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -65,7 +66,6 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; - @JsonProperty(JSON_PROPERTY_ENUM_STRING) private EnumStringEnum enumString; /** @@ -106,7 +106,6 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) private EnumStringRequiredEnum enumStringRequired; /** @@ -145,7 +144,6 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) private EnumIntegerEnum enumInteger; /** @@ -184,14 +182,14 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) private OuterEnum outerEnum; + public EnumTest enumString(EnumStringEnum enumString) { + this.enumString = enumString; return this; } @@ -202,15 +200,22 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public EnumStringEnum getEnumString() { return enumString; } + + public void setEnumString(EnumStringEnum enumString) { this.enumString = enumString; } + public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + this.enumStringRequired = enumStringRequired; return this; } @@ -220,15 +225,22 @@ public class EnumTest { * @return enumStringRequired **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; } + + public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } + public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + this.enumInteger = enumInteger; return this; } @@ -239,15 +251,22 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public EnumIntegerEnum getEnumInteger() { return enumInteger; } + + public void setEnumInteger(EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } + public EnumTest enumNumber(EnumNumberEnum enumNumber) { + this.enumNumber = enumNumber; return this; } @@ -258,15 +277,22 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public EnumNumberEnum getEnumNumber() { return enumNumber; } + + public void setEnumNumber(EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } + public EnumTest outerEnum(OuterEnum outerEnum) { + this.outerEnum = outerEnum; return this; } @@ -277,10 +303,15 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OuterEnum getOuterEnum() { return outerEnum; } + + public void setOuterEnum(OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 1c2623fca90..e2dab74c358 100644 --- a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,14 +30,14 @@ import java.util.List; public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; - @JsonProperty(JSON_PROPERTY_FILE) - private java.io.File file = null; + private java.io.File file; public static final String JSON_PROPERTY_FILES = "files"; - @JsonProperty(JSON_PROPERTY_FILES) private List files = null; + public FileSchemaTestClass file(java.io.File file) { + this.file = file; return this; } @@ -47,15 +48,22 @@ public class FileSchemaTestClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FILE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public java.io.File getFile() { return file; } + + public void setFile(java.io.File file) { this.file = file; } + public FileSchemaTestClass files(List files) { + this.files = files; return this; } @@ -74,10 +82,15 @@ public class FileSchemaTestClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FILES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getFiles() { return files; } + + public void setFiles(List files) { this.files = files; } diff --git a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/FormatTest.java index 509048cd5e9..b6dd912d49e 100644 --- a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/FormatTest.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -32,58 +33,47 @@ import org.threeten.bp.OffsetDateTime; public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; - @JsonProperty(JSON_PROPERTY_INTEGER) private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; - @JsonProperty(JSON_PROPERTY_INT32) private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; - @JsonProperty(JSON_PROPERTY_INT64) private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; - @JsonProperty(JSON_PROPERTY_NUMBER) private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; - @JsonProperty(JSON_PROPERTY_FLOAT) private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; - @JsonProperty(JSON_PROPERTY_DOUBLE) private Double _double; public static final String JSON_PROPERTY_STRING = "string"; - @JsonProperty(JSON_PROPERTY_STRING) private String string; public static final String JSON_PROPERTY_BYTE = "byte"; - @JsonProperty(JSON_PROPERTY_BYTE) private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; - @JsonProperty(JSON_PROPERTY_BINARY) private File binary; public static final String JSON_PROPERTY_DATE = "date"; - @JsonProperty(JSON_PROPERTY_DATE) private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @JsonProperty(JSON_PROPERTY_DATE_TIME) private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; - @JsonProperty(JSON_PROPERTY_UUID) private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; - @JsonProperty(JSON_PROPERTY_PASSWORD) private String password; + public FormatTest integer(Integer integer) { + this.integer = integer; return this; } @@ -96,15 +86,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getInteger() { return integer; } + + public void setInteger(Integer integer) { this.integer = integer; } + public FormatTest int32(Integer int32) { + this.int32 = int32; return this; } @@ -117,15 +114,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INT32) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getInt32() { return int32; } + + public void setInt32(Integer int32) { this.int32 = int32; } + public FormatTest int64(Long int64) { + this.int64 = int64; return this; } @@ -136,15 +140,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INT64) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getInt64() { return int64; } + + public void setInt64(Long int64) { this.int64 = int64; } + public FormatTest number(BigDecimal number) { + this.number = number; return this; } @@ -156,15 +167,22 @@ public class FormatTest { * @return number **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getNumber() { return number; } + + public void setNumber(BigDecimal number) { this.number = number; } + public FormatTest _float(Float _float) { + this._float = _float; return this; } @@ -177,15 +195,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Float getFloat() { return _float; } + + public void setFloat(Float _float) { this._float = _float; } + public FormatTest _double(Double _double) { + this._double = _double; return this; } @@ -198,15 +223,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Double getDouble() { return _double; } + + public void setDouble(Double _double) { this._double = _double; } + public FormatTest string(String string) { + this.string = string; return this; } @@ -217,15 +249,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getString() { return string; } + + public void setString(String string) { this.string = string; } + public FormatTest _byte(byte[] _byte) { + this._byte = _byte; return this; } @@ -235,15 +274,22 @@ public class FormatTest { * @return _byte **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_BYTE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public byte[] getByte() { return _byte; } + + public void setByte(byte[] _byte) { this._byte = _byte; } + public FormatTest binary(File binary) { + this.binary = binary; return this; } @@ -254,15 +300,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BINARY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public File getBinary() { return binary; } + + public void setBinary(File binary) { this.binary = binary; } + public FormatTest date(LocalDate date) { + this.date = date; return this; } @@ -272,15 +325,22 @@ public class FormatTest { * @return date **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_DATE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public LocalDate getDate() { return date; } + + public void setDate(LocalDate date) { this.date = date; } + public FormatTest dateTime(OffsetDateTime dateTime) { + this.dateTime = dateTime; return this; } @@ -291,15 +351,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OffsetDateTime getDateTime() { return dateTime; } + + public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } + public FormatTest uuid(UUID uuid) { + this.uuid = uuid; return this; } @@ -310,15 +377,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public UUID getUuid() { return uuid; } + + public void setUuid(UUID uuid) { this.uuid = uuid; } + public FormatTest password(String password) { + this.password = password; return this; } @@ -328,10 +402,15 @@ public class FormatTest { * @return password **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getPassword() { return password; } + + public void setPassword(String password) { this.password = password; } diff --git a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index ad6b28d9d1e..9c25eddaa1b 100644 --- a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,34 +28,44 @@ import io.swagger.annotations.ApiModelProperty; public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; - @JsonProperty(JSON_PROPERTY_BAR) private String bar; public static final String JSON_PROPERTY_FOO = "foo"; - @JsonProperty(JSON_PROPERTY_FOO) private String foo; + /** * Get bar * @return bar **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BAR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBar() { return bar; } + + + /** * Get foo * @return foo **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FOO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getFoo() { return foo; } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/MapTest.java index 66b41268e51..c6193edaf98 100644 --- a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/MapTest.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,7 +31,6 @@ import java.util.Map; public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) private Map> mapMapOfString = null; /** @@ -69,18 +69,17 @@ public class MapTest { } public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) private Map mapOfEnumString = null; public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) private Map directMap = null; public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) private Map indirectMap = null; + public MapTest mapMapOfString(Map> mapMapOfString) { + this.mapMapOfString = mapMapOfString; return this; } @@ -99,15 +98,22 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapMapOfString() { return mapMapOfString; } + + public void setMapMapOfString(Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } + public MapTest mapOfEnumString(Map mapOfEnumString) { + this.mapOfEnumString = mapOfEnumString; return this; } @@ -126,15 +132,22 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapOfEnumString() { return mapOfEnumString; } + + public void setMapOfEnumString(Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } + public MapTest directMap(Map directMap) { + this.directMap = directMap; return this; } @@ -153,15 +166,22 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getDirectMap() { return directMap; } + + public void setDirectMap(Map directMap) { this.directMap = directMap; } + public MapTest indirectMap(Map indirectMap) { + this.indirectMap = indirectMap; return this; } @@ -180,10 +200,15 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getIndirectMap() { return indirectMap; } + + public void setIndirectMap(Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index b66724ea321..df4761bf27b 100644 --- a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -33,18 +34,17 @@ import org.threeten.bp.OffsetDateTime; public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; - @JsonProperty(JSON_PROPERTY_UUID) private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @JsonProperty(JSON_PROPERTY_DATE_TIME) private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; - @JsonProperty(JSON_PROPERTY_MAP) private Map map = null; + public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + this.uuid = uuid; return this; } @@ -55,15 +55,22 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public UUID getUuid() { return uuid; } + + public void setUuid(UUID uuid) { this.uuid = uuid; } + public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + this.dateTime = dateTime; return this; } @@ -74,15 +81,22 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OffsetDateTime getDateTime() { return dateTime; } + + public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } + public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + this.map = map; return this; } @@ -101,10 +115,15 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMap() { return map; } + + public void setMap(Map map) { this.map = map; } diff --git a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/Model200Response.java index d86df5d7eab..0b39d4177e2 100644 --- a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/Model200Response.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,14 +29,14 @@ import io.swagger.annotations.ApiModelProperty; public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) private String propertyClass; + public Model200Response name(Integer name) { + this.name = name; return this; } @@ -46,15 +47,22 @@ public class Model200Response { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getName() { return name; } + + public void setName(Integer name) { this.name = name; } + public Model200Response propertyClass(String propertyClass) { + this.propertyClass = propertyClass; return this; } @@ -65,10 +73,15 @@ public class Model200Response { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPropertyClass() { return propertyClass; } + + public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 4c9a7f87b5a..9ca6e78b233 100644 --- a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,18 +28,17 @@ import io.swagger.annotations.ApiModelProperty; public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; - @JsonProperty(JSON_PROPERTY_CODE) private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; - @JsonProperty(JSON_PROPERTY_TYPE) private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; - @JsonProperty(JSON_PROPERTY_MESSAGE) private String message; + public ModelApiResponse code(Integer code) { + this.code = code; return this; } @@ -49,15 +49,22 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getCode() { return code; } + + public void setCode(Integer code) { this.code = code; } + public ModelApiResponse type(String type) { + this.type = type; return this; } @@ -68,15 +75,22 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getType() { return type; } + + public void setType(String type) { this.type = type; } + public ModelApiResponse message(String message) { + this.message = message; return this; } @@ -87,10 +101,15 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } diff --git a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/ModelReturn.java index 9c9ac21a3fb..300598b5d0b 100644 --- a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,10 +29,11 @@ import io.swagger.annotations.ApiModelProperty; public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; - @JsonProperty(JSON_PROPERTY_RETURN) private Integer _return; + public ModelReturn _return(Integer _return) { + this._return = _return; return this; } @@ -42,10 +44,15 @@ public class ModelReturn { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_RETURN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getReturn() { return _return; } + + public void setReturn(Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/Name.java index 47f89c54361..98a92f76c18 100644 --- a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/Name.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,22 +29,20 @@ import io.swagger.annotations.ApiModelProperty; public class Name { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; - @JsonProperty(JSON_PROPERTY_PROPERTY) private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; - @JsonProperty(JSON_PROPERTY_123NUMBER) private Integer _123number; + public Name name(Integer name) { + this.name = name; return this; } @@ -53,25 +52,38 @@ public class Name { * @return name **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getName() { return name; } + + public void setName(Integer name) { this.name = name; } + /** * Get snakeCase * @return snakeCase **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getSnakeCase() { return snakeCase; } + + + public Name property(String property) { + this.property = property; return this; } @@ -82,25 +94,36 @@ public class Name { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getProperty() { return property; } + + public void setProperty(String property) { this.property = property; } + /** * Get _123number * @return _123number **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_123NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer get123number() { return _123number; } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/NumberOnly.java index f5331da226e..499144e4016 100644 --- a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,10 +29,11 @@ import java.math.BigDecimal; public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) private BigDecimal justNumber; + public NumberOnly justNumber(BigDecimal justNumber) { + this.justNumber = justNumber; return this; } @@ -42,10 +44,15 @@ public class NumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getJustNumber() { return justNumber; } + + public void setJustNumber(BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/Order.java index b0d37534e89..babfa0957e0 100644 --- a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/Order.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,19 +29,15 @@ import org.threeten.bp.OffsetDateTime; public class Order { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; - @JsonProperty(JSON_PROPERTY_PET_ID) private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; - @JsonProperty(JSON_PROPERTY_QUANTITY) private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; - @JsonProperty(JSON_PROPERTY_SHIP_DATE) private OffsetDateTime shipDate; /** @@ -81,14 +78,14 @@ public class Order { } public static final String JSON_PROPERTY_STATUS = "status"; - @JsonProperty(JSON_PROPERTY_STATUS) private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; - @JsonProperty(JSON_PROPERTY_COMPLETE) private Boolean complete = false; + public Order id(Long id) { + this.id = id; return this; } @@ -99,15 +96,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Order petId(Long petId) { + this.petId = petId; return this; } @@ -118,15 +122,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getPetId() { return petId; } + + public void setPetId(Long petId) { this.petId = petId; } + public Order quantity(Integer quantity) { + this.quantity = quantity; return this; } @@ -137,15 +148,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getQuantity() { return quantity; } + + public void setQuantity(Integer quantity) { this.quantity = quantity; } + public Order shipDate(OffsetDateTime shipDate) { + this.shipDate = shipDate; return this; } @@ -156,15 +174,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OffsetDateTime getShipDate() { return shipDate; } + + public void setShipDate(OffsetDateTime shipDate) { this.shipDate = shipDate; } + public Order status(StatusEnum status) { + this.status = status; return this; } @@ -175,15 +200,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "Order Status") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public StatusEnum getStatus() { return status; } + + public void setStatus(StatusEnum status) { this.status = status; } + public Order complete(Boolean complete) { + this.complete = complete; return this; } @@ -194,10 +226,15 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean isComplete() { return complete; } + + public void setComplete(Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/OuterComposite.java index edde668a2ad..68b362b3739 100644 --- a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,18 +29,17 @@ import java.math.BigDecimal; public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; - @JsonProperty(JSON_PROPERTY_MY_NUMBER) private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; - @JsonProperty(JSON_PROPERTY_MY_STRING) private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) private Boolean myBoolean; + public OuterComposite myNumber(BigDecimal myNumber) { + this.myNumber = myNumber; return this; } @@ -50,15 +50,22 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getMyNumber() { return myNumber; } + + public void setMyNumber(BigDecimal myNumber) { this.myNumber = myNumber; } + public OuterComposite myString(String myString) { + this.myString = myString; return this; } @@ -69,15 +76,22 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getMyString() { return myString; } + + public void setMyString(String myString) { this.myString = myString; } + public OuterComposite myBoolean(Boolean myBoolean) { + this.myBoolean = myBoolean; return this; } @@ -88,10 +102,15 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean isMyBoolean() { return myBoolean; } + + public void setMyBoolean(Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/Pet.java index fb59d996bf6..63f1f3771b2 100644 --- a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/Pet.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,23 +32,18 @@ import org.openapitools.client.model.Tag; public class Pet { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; - @JsonProperty(JSON_PROPERTY_CATEGORY) - private Category category = null; + private Category category; public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) private List photoUrls = new ArrayList(); public static final String JSON_PROPERTY_TAGS = "tags"; - @JsonProperty(JSON_PROPERTY_TAGS) private List tags = null; /** @@ -88,10 +84,11 @@ public class Pet { } public static final String JSON_PROPERTY_STATUS = "status"; - @JsonProperty(JSON_PROPERTY_STATUS) private StatusEnum status; + public Pet id(Long id) { + this.id = id; return this; } @@ -102,15 +99,22 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Pet category(Category category) { + this.category = category; return this; } @@ -121,15 +125,22 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Category getCategory() { return category; } + + public void setCategory(Category category) { this.category = category; } + public Pet name(String name) { + this.name = name; return this; } @@ -139,15 +150,22 @@ public class Pet { * @return name **/ @ApiModelProperty(example = "doggie", required = true, value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public Pet photoUrls(List photoUrls) { + this.photoUrls = photoUrls; return this; } @@ -162,15 +180,22 @@ public class Pet { * @return photoUrls **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getPhotoUrls() { return photoUrls; } + + public void setPhotoUrls(List photoUrls) { this.photoUrls = photoUrls; } + public Pet tags(List tags) { + this.tags = tags; return this; } @@ -189,15 +214,22 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getTags() { return tags; } + + public void setTags(List tags) { this.tags = tags; } + public Pet status(StatusEnum status) { + this.status = status; return this; } @@ -208,10 +240,15 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "pet status in the store") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public StatusEnum getStatus() { return status; } + + public void setStatus(StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index b0949b9e2ea..28901097fa4 100644 --- a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,24 +28,30 @@ import io.swagger.annotations.ApiModelProperty; public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; - @JsonProperty(JSON_PROPERTY_BAR) private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; - @JsonProperty(JSON_PROPERTY_BAZ) private String baz; + /** * Get bar * @return bar **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BAR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBar() { return bar; } + + + public ReadOnlyFirst baz(String baz) { + this.baz = baz; return this; } @@ -55,10 +62,15 @@ public class ReadOnlyFirst { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BAZ) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBaz() { return baz; } + + public void setBaz(String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/SpecialModelName.java index a9d03234061..c7820abb0fc 100644 --- a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty; public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) private Long $specialPropertyName; + public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + this.$specialPropertyName = $specialPropertyName; return this; } @@ -41,10 +43,15 @@ public class SpecialModelName { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long get$SpecialPropertyName() { return $specialPropertyName; } + + public void set$SpecialPropertyName(Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/Tag.java index 45f17b22cf3..7e20ebf4a31 100644 --- a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/Tag.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,14 +28,14 @@ import io.swagger.annotations.ApiModelProperty; public class Tag { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public Tag id(Long id) { + this.id = id; return this; } @@ -45,15 +46,22 @@ public class Tag { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Tag name(String name) { + this.name = name; return this; } @@ -64,10 +72,15 @@ public class Tag { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index 75ddd671fa8..5a157e31b4b 100644 --- a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,26 +31,23 @@ import java.util.List; public class TypeHolderDefault { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; - @JsonProperty(JSON_PROPERTY_STRING_ITEM) private String stringItem = "what"; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) private BigDecimal numberItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) private Boolean boolItem = true; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) private List arrayItem = new ArrayList(); + public TypeHolderDefault stringItem(String stringItem) { + this.stringItem = stringItem; return this; } @@ -59,15 +57,22 @@ public class TypeHolderDefault { * @return stringItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getStringItem() { return stringItem; } + + public void setStringItem(String stringItem) { this.stringItem = stringItem; } + public TypeHolderDefault numberItem(BigDecimal numberItem) { + this.numberItem = numberItem; return this; } @@ -77,15 +82,22 @@ public class TypeHolderDefault { * @return numberItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getNumberItem() { return numberItem; } + + public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } + public TypeHolderDefault integerItem(Integer integerItem) { + this.integerItem = integerItem; return this; } @@ -95,15 +107,22 @@ public class TypeHolderDefault { * @return integerItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getIntegerItem() { return integerItem; } + + public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } + public TypeHolderDefault boolItem(Boolean boolItem) { + this.boolItem = boolItem; return this; } @@ -113,15 +132,22 @@ public class TypeHolderDefault { * @return boolItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Boolean isBoolItem() { return boolItem; } + + public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } + public TypeHolderDefault arrayItem(List arrayItem) { + this.arrayItem = arrayItem; return this; } @@ -136,10 +162,15 @@ public class TypeHolderDefault { * @return arrayItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getArrayItem() { return arrayItem; } + + public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/TypeHolderExample.java index 79a56d1ac73..7f00da24259 100644 --- a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,26 +31,23 @@ import java.util.List; public class TypeHolderExample { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; - @JsonProperty(JSON_PROPERTY_STRING_ITEM) private String stringItem; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) private BigDecimal numberItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) private Boolean boolItem; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) private List arrayItem = new ArrayList(); + public TypeHolderExample stringItem(String stringItem) { + this.stringItem = stringItem; return this; } @@ -59,15 +57,22 @@ public class TypeHolderExample { * @return stringItem **/ @ApiModelProperty(example = "what", required = true, value = "") + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getStringItem() { return stringItem; } + + public void setStringItem(String stringItem) { this.stringItem = stringItem; } + public TypeHolderExample numberItem(BigDecimal numberItem) { + this.numberItem = numberItem; return this; } @@ -77,15 +82,22 @@ public class TypeHolderExample { * @return numberItem **/ @ApiModelProperty(example = "1.234", required = true, value = "") + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getNumberItem() { return numberItem; } + + public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } + public TypeHolderExample integerItem(Integer integerItem) { + this.integerItem = integerItem; return this; } @@ -95,15 +107,22 @@ public class TypeHolderExample { * @return integerItem **/ @ApiModelProperty(example = "-2", required = true, value = "") + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getIntegerItem() { return integerItem; } + + public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } + public TypeHolderExample boolItem(Boolean boolItem) { + this.boolItem = boolItem; return this; } @@ -113,15 +132,22 @@ public class TypeHolderExample { * @return boolItem **/ @ApiModelProperty(example = "true", required = true, value = "") + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Boolean isBoolItem() { return boolItem; } + + public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } + public TypeHolderExample arrayItem(List arrayItem) { + this.arrayItem = arrayItem; return this; } @@ -136,10 +162,15 @@ public class TypeHolderExample { * @return arrayItem **/ @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getArrayItem() { return arrayItem; } + + public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/User.java index 9ce7869e755..b181265d97d 100644 --- a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/User.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,38 +28,32 @@ import io.swagger.annotations.ApiModelProperty; public class User { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; - @JsonProperty(JSON_PROPERTY_USERNAME) private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; - @JsonProperty(JSON_PROPERTY_FIRST_NAME) private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; - @JsonProperty(JSON_PROPERTY_LAST_NAME) private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; - @JsonProperty(JSON_PROPERTY_EMAIL) private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; - @JsonProperty(JSON_PROPERTY_PASSWORD) private String password; public static final String JSON_PROPERTY_PHONE = "phone"; - @JsonProperty(JSON_PROPERTY_PHONE) private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; - @JsonProperty(JSON_PROPERTY_USER_STATUS) private Integer userStatus; + public User id(Long id) { + this.id = id; return this; } @@ -69,15 +64,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public User username(String username) { + this.username = username; return this; } @@ -88,15 +90,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getUsername() { return username; } + + public void setUsername(String username) { this.username = username; } + public User firstName(String firstName) { + this.firstName = firstName; return this; } @@ -107,15 +116,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getFirstName() { return firstName; } + + public void setFirstName(String firstName) { this.firstName = firstName; } + public User lastName(String lastName) { + this.lastName = lastName; return this; } @@ -126,15 +142,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getLastName() { return lastName; } + + public void setLastName(String lastName) { this.lastName = lastName; } + public User email(String email) { + this.email = email; return this; } @@ -145,15 +168,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getEmail() { return email; } + + public void setEmail(String email) { this.email = email; } + public User password(String password) { + this.password = password; return this; } @@ -164,15 +194,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPassword() { return password; } + + public void setPassword(String password) { this.password = password; } + public User phone(String phone) { + this.phone = phone; return this; } @@ -183,15 +220,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PHONE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPhone() { return phone; } + + public void setPhone(String phone) { this.phone = phone; } + public User userStatus(Integer userStatus) { + this.userStatus = userStatus; return this; } @@ -202,10 +246,15 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "User Status") + @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getUserStatus() { return userStatus; } + + public void setUserStatus(Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/XmlItem.java index b8c9c4ad726..3e30e7d43f9 100644 --- a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/XmlItem.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,122 +31,95 @@ import java.util.List; public class XmlItem { public static final String JSON_PROPERTY_ATTRIBUTE_STRING = "attribute_string"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) private String attributeString; public static final String JSON_PROPERTY_ATTRIBUTE_NUMBER = "attribute_number"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) private BigDecimal attributeNumber; public static final String JSON_PROPERTY_ATTRIBUTE_INTEGER = "attribute_integer"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) private Integer attributeInteger; public static final String JSON_PROPERTY_ATTRIBUTE_BOOLEAN = "attribute_boolean"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) private Boolean attributeBoolean; public static final String JSON_PROPERTY_WRAPPED_ARRAY = "wrapped_array"; - @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) private List wrappedArray = null; public static final String JSON_PROPERTY_NAME_STRING = "name_string"; - @JsonProperty(JSON_PROPERTY_NAME_STRING) private String nameString; public static final String JSON_PROPERTY_NAME_NUMBER = "name_number"; - @JsonProperty(JSON_PROPERTY_NAME_NUMBER) private BigDecimal nameNumber; public static final String JSON_PROPERTY_NAME_INTEGER = "name_integer"; - @JsonProperty(JSON_PROPERTY_NAME_INTEGER) private Integer nameInteger; public static final String JSON_PROPERTY_NAME_BOOLEAN = "name_boolean"; - @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) private Boolean nameBoolean; public static final String JSON_PROPERTY_NAME_ARRAY = "name_array"; - @JsonProperty(JSON_PROPERTY_NAME_ARRAY) private List nameArray = null; public static final String JSON_PROPERTY_NAME_WRAPPED_ARRAY = "name_wrapped_array"; - @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) private List nameWrappedArray = null; public static final String JSON_PROPERTY_PREFIX_STRING = "prefix_string"; - @JsonProperty(JSON_PROPERTY_PREFIX_STRING) private String prefixString; public static final String JSON_PROPERTY_PREFIX_NUMBER = "prefix_number"; - @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) private BigDecimal prefixNumber; public static final String JSON_PROPERTY_PREFIX_INTEGER = "prefix_integer"; - @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) private Integer prefixInteger; public static final String JSON_PROPERTY_PREFIX_BOOLEAN = "prefix_boolean"; - @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) private Boolean prefixBoolean; public static final String JSON_PROPERTY_PREFIX_ARRAY = "prefix_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) private List prefixArray = null; public static final String JSON_PROPERTY_PREFIX_WRAPPED_ARRAY = "prefix_wrapped_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) private List prefixWrappedArray = null; public static final String JSON_PROPERTY_NAMESPACE_STRING = "namespace_string"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) private String namespaceString; public static final String JSON_PROPERTY_NAMESPACE_NUMBER = "namespace_number"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) private BigDecimal namespaceNumber; public static final String JSON_PROPERTY_NAMESPACE_INTEGER = "namespace_integer"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) private Integer namespaceInteger; public static final String JSON_PROPERTY_NAMESPACE_BOOLEAN = "namespace_boolean"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) private Boolean namespaceBoolean; public static final String JSON_PROPERTY_NAMESPACE_ARRAY = "namespace_array"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) private List namespaceArray = null; public static final String JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY = "namespace_wrapped_array"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) private List namespaceWrappedArray = null; public static final String JSON_PROPERTY_PREFIX_NS_STRING = "prefix_ns_string"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) private String prefixNsString; public static final String JSON_PROPERTY_PREFIX_NS_NUMBER = "prefix_ns_number"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) private BigDecimal prefixNsNumber; public static final String JSON_PROPERTY_PREFIX_NS_INTEGER = "prefix_ns_integer"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) private Integer prefixNsInteger; public static final String JSON_PROPERTY_PREFIX_NS_BOOLEAN = "prefix_ns_boolean"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) private Boolean prefixNsBoolean; public static final String JSON_PROPERTY_PREFIX_NS_ARRAY = "prefix_ns_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) private List prefixNsArray = null; public static final String JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY = "prefix_ns_wrapped_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) private List prefixNsWrappedArray = null; + public XmlItem attributeString(String attributeString) { + this.attributeString = attributeString; return this; } @@ -156,15 +130,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getAttributeString() { return attributeString; } + + public void setAttributeString(String attributeString) { this.attributeString = attributeString; } + public XmlItem attributeNumber(BigDecimal attributeNumber) { + this.attributeNumber = attributeNumber; return this; } @@ -175,15 +156,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getAttributeNumber() { return attributeNumber; } + + public void setAttributeNumber(BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } + public XmlItem attributeInteger(Integer attributeInteger) { + this.attributeInteger = attributeInteger; return this; } @@ -194,15 +182,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getAttributeInteger() { return attributeInteger; } + + public void setAttributeInteger(Integer attributeInteger) { this.attributeInteger = attributeInteger; } + public XmlItem attributeBoolean(Boolean attributeBoolean) { + this.attributeBoolean = attributeBoolean; return this; } @@ -213,15 +208,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean isAttributeBoolean() { return attributeBoolean; } + + public void setAttributeBoolean(Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } + public XmlItem wrappedArray(List wrappedArray) { + this.wrappedArray = wrappedArray; return this; } @@ -240,15 +242,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getWrappedArray() { return wrappedArray; } + + public void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } + public XmlItem nameString(String nameString) { + this.nameString = nameString; return this; } @@ -259,15 +268,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_NAME_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getNameString() { return nameString; } + + public void setNameString(String nameString) { this.nameString = nameString; } + public XmlItem nameNumber(BigDecimal nameNumber) { + this.nameNumber = nameNumber; return this; } @@ -278,15 +294,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_NAME_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getNameNumber() { return nameNumber; } + + public void setNameNumber(BigDecimal nameNumber) { this.nameNumber = nameNumber; } + public XmlItem nameInteger(Integer nameInteger) { + this.nameInteger = nameInteger; return this; } @@ -297,15 +320,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_NAME_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getNameInteger() { return nameInteger; } + + public void setNameInteger(Integer nameInteger) { this.nameInteger = nameInteger; } + public XmlItem nameBoolean(Boolean nameBoolean) { + this.nameBoolean = nameBoolean; return this; } @@ -316,15 +346,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean isNameBoolean() { return nameBoolean; } + + public void setNameBoolean(Boolean nameBoolean) { this.nameBoolean = nameBoolean; } + public XmlItem nameArray(List nameArray) { + this.nameArray = nameArray; return this; } @@ -343,15 +380,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNameArray() { return nameArray; } + + public void setNameArray(List nameArray) { this.nameArray = nameArray; } + public XmlItem nameWrappedArray(List nameWrappedArray) { + this.nameWrappedArray = nameWrappedArray; return this; } @@ -370,15 +414,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNameWrappedArray() { return nameWrappedArray; } + + public void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } + public XmlItem prefixString(String prefixString) { + this.prefixString = prefixString; return this; } @@ -389,15 +440,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPrefixString() { return prefixString; } + + public void setPrefixString(String prefixString) { this.prefixString = prefixString; } + public XmlItem prefixNumber(BigDecimal prefixNumber) { + this.prefixNumber = prefixNumber; return this; } @@ -408,15 +466,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getPrefixNumber() { return prefixNumber; } + + public void setPrefixNumber(BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } + public XmlItem prefixInteger(Integer prefixInteger) { + this.prefixInteger = prefixInteger; return this; } @@ -427,15 +492,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getPrefixInteger() { return prefixInteger; } + + public void setPrefixInteger(Integer prefixInteger) { this.prefixInteger = prefixInteger; } + public XmlItem prefixBoolean(Boolean prefixBoolean) { + this.prefixBoolean = prefixBoolean; return this; } @@ -446,15 +518,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean isPrefixBoolean() { return prefixBoolean; } + + public void setPrefixBoolean(Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } + public XmlItem prefixArray(List prefixArray) { + this.prefixArray = prefixArray; return this; } @@ -473,15 +552,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixArray() { return prefixArray; } + + public void setPrefixArray(List prefixArray) { this.prefixArray = prefixArray; } + public XmlItem prefixWrappedArray(List prefixWrappedArray) { + this.prefixWrappedArray = prefixWrappedArray; return this; } @@ -500,15 +586,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixWrappedArray() { return prefixWrappedArray; } + + public void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } + public XmlItem namespaceString(String namespaceString) { + this.namespaceString = namespaceString; return this; } @@ -519,15 +612,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getNamespaceString() { return namespaceString; } + + public void setNamespaceString(String namespaceString) { this.namespaceString = namespaceString; } + public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + this.namespaceNumber = namespaceNumber; return this; } @@ -538,15 +638,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getNamespaceNumber() { return namespaceNumber; } + + public void setNamespaceNumber(BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } + public XmlItem namespaceInteger(Integer namespaceInteger) { + this.namespaceInteger = namespaceInteger; return this; } @@ -557,15 +664,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getNamespaceInteger() { return namespaceInteger; } + + public void setNamespaceInteger(Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } + public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + this.namespaceBoolean = namespaceBoolean; return this; } @@ -576,15 +690,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean isNamespaceBoolean() { return namespaceBoolean; } + + public void setNamespaceBoolean(Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } + public XmlItem namespaceArray(List namespaceArray) { + this.namespaceArray = namespaceArray; return this; } @@ -603,15 +724,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNamespaceArray() { return namespaceArray; } + + public void setNamespaceArray(List namespaceArray) { this.namespaceArray = namespaceArray; } + public XmlItem namespaceWrappedArray(List namespaceWrappedArray) { + this.namespaceWrappedArray = namespaceWrappedArray; return this; } @@ -630,15 +758,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNamespaceWrappedArray() { return namespaceWrappedArray; } + + public void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } + public XmlItem prefixNsString(String prefixNsString) { + this.prefixNsString = prefixNsString; return this; } @@ -649,15 +784,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPrefixNsString() { return prefixNsString; } + + public void setPrefixNsString(String prefixNsString) { this.prefixNsString = prefixNsString; } + public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + this.prefixNsNumber = prefixNsNumber; return this; } @@ -668,15 +810,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getPrefixNsNumber() { return prefixNsNumber; } + + public void setPrefixNsNumber(BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } + public XmlItem prefixNsInteger(Integer prefixNsInteger) { + this.prefixNsInteger = prefixNsInteger; return this; } @@ -687,15 +836,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getPrefixNsInteger() { return prefixNsInteger; } + + public void setPrefixNsInteger(Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } + public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + this.prefixNsBoolean = prefixNsBoolean; return this; } @@ -706,15 +862,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean isPrefixNsBoolean() { return prefixNsBoolean; } + + public void setPrefixNsBoolean(Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } + public XmlItem prefixNsArray(List prefixNsArray) { + this.prefixNsArray = prefixNsArray; return this; } @@ -733,15 +896,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixNsArray() { return prefixNsArray; } + + public void setPrefixNsArray(List prefixNsArray) { this.prefixNsArray = prefixNsArray; } + public XmlItem prefixNsWrappedArray(List prefixNsWrappedArray) { + this.prefixNsWrappedArray = prefixNsWrappedArray; return this; } @@ -760,10 +930,15 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixNsWrappedArray() { return prefixNsWrappedArray; } + + public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/google-api-client/docs/UserApi.md b/samples/client/petstore/java/google-api-client/docs/UserApi.md index 4154aba4f17..ca9f550c316 100644 --- a/samples/client/petstore/java/google-api-client/docs/UserApi.md +++ b/samples/client/petstore/java/google-api-client/docs/UserApi.md @@ -101,7 +101,7 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); UserApi apiInstance = new UserApi(defaultClient); - List body = Arrays.asList(null); // List | List of user object + List body = Arrays.asList(); // List | List of user object try { apiInstance.createUsersWithArrayInput(body); } catch (ApiException e) { @@ -163,7 +163,7 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); UserApi apiInstance = new UserApi(defaultClient); - List body = Arrays.asList(null); // List | List of user object + List body = Arrays.asList(); // List | List of user object try { apiInstance.createUsersWithListInput(body); } catch (ApiException e) { diff --git a/samples/client/petstore/java/google-api-client/pom.xml b/samples/client/petstore/java/google-api-client/pom.xml index 314ca642337..93b73dd207a 100644 --- a/samples/client/petstore/java/google-api-client/pom.xml +++ b/samples/client/petstore/java/google-api-client/pom.xml @@ -233,6 +233,11 @@ com.fasterxml.jackson.core jackson-databind ${jackson-version} + + + org.openapitools + jackson-databind-nullable + ${jackson-databind-nullable-version} com.github.joschi.jackson @@ -255,6 +260,7 @@ 2.25.1 2.9.9 2.9.9 + 0.2.0 2.6.4 1.0.0 4.12 diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/ApiClient.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/ApiClient.java index 62ead482d51..9dd0fcc8c6c 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/ApiClient.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/ApiClient.java @@ -4,6 +4,7 @@ import org.openapitools.client.api.*; import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.SerializationFeature; +import org.openapitools.jackson.nullable.JsonNullableModule; import com.fasterxml.jackson.datatype.threetenbp.ThreeTenModule; import org.threeten.bp.*; import com.google.api.client.googleapis.util.Utils; @@ -35,6 +36,8 @@ public class ApiClient { module.addDeserializer(OffsetDateTime.class, CustomInstantDeserializer.OFFSET_DATE_TIME); module.addDeserializer(ZonedDateTime.class, CustomInstantDeserializer.ZONED_DATE_TIME); objectMapper.registerModule(module); + JsonNullableModule jnm = new JsonNullableModule(); + objectMapper.registerModule(jnm); return objectMapper; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index 0df18c37e39..80e4d937cb7 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesAnyType extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesAnyType name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesAnyType extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(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 0d9a6b14532..59c845c40ac 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import java.util.Map; public class AdditionalPropertiesArray extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesArray name(String name) { + this.name = name; return this; } @@ -44,10 +46,15 @@ public class AdditionalPropertiesArray extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(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 8e85a1f2246..c6c2919f37d 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesBoolean extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesBoolean name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesBoolean extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(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 0fa49af1afd..29f38bc34c9 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,50 +32,41 @@ import java.util.Map; public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_STRING = "map_string"; - @JsonProperty(JSON_PROPERTY_MAP_STRING) private Map mapString = null; public static final String JSON_PROPERTY_MAP_NUMBER = "map_number"; - @JsonProperty(JSON_PROPERTY_MAP_NUMBER) private Map mapNumber = null; public static final String JSON_PROPERTY_MAP_INTEGER = "map_integer"; - @JsonProperty(JSON_PROPERTY_MAP_INTEGER) private Map mapInteger = null; public static final String JSON_PROPERTY_MAP_BOOLEAN = "map_boolean"; - @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) private Map mapBoolean = null; public static final String JSON_PROPERTY_MAP_ARRAY_INTEGER = "map_array_integer"; - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) private Map> mapArrayInteger = null; public static final String JSON_PROPERTY_MAP_ARRAY_ANYTYPE = "map_array_anytype"; - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) private Map> mapArrayAnytype = null; public static final String JSON_PROPERTY_MAP_MAP_STRING = "map_map_string"; - @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) private Map> mapMapString = null; public static final String JSON_PROPERTY_MAP_MAP_ANYTYPE = "map_map_anytype"; - @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) private Map> mapMapAnytype = null; public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1"; - @JsonProperty(JSON_PROPERTY_ANYTYPE1) - private Object anytype1 = null; + private Object anytype1; public static final String JSON_PROPERTY_ANYTYPE2 = "anytype_2"; - @JsonProperty(JSON_PROPERTY_ANYTYPE2) - private Object anytype2 = null; + private Object anytype2; public static final String JSON_PROPERTY_ANYTYPE3 = "anytype_3"; - @JsonProperty(JSON_PROPERTY_ANYTYPE3) - private Object anytype3 = null; + private Object anytype3; + public AdditionalPropertiesClass mapString(Map mapString) { + this.mapString = mapString; return this; } @@ -93,15 +85,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapString() { return mapString; } + + public void setMapString(Map mapString) { this.mapString = mapString; } + public AdditionalPropertiesClass mapNumber(Map mapNumber) { + this.mapNumber = mapNumber; return this; } @@ -120,15 +119,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapNumber() { return mapNumber; } + + public void setMapNumber(Map mapNumber) { this.mapNumber = mapNumber; } + public AdditionalPropertiesClass mapInteger(Map mapInteger) { + this.mapInteger = mapInteger; return this; } @@ -147,15 +153,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapInteger() { return mapInteger; } + + public void setMapInteger(Map mapInteger) { this.mapInteger = mapInteger; } + public AdditionalPropertiesClass mapBoolean(Map mapBoolean) { + this.mapBoolean = mapBoolean; return this; } @@ -174,15 +187,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapBoolean() { return mapBoolean; } + + public void setMapBoolean(Map mapBoolean) { this.mapBoolean = mapBoolean; } + public AdditionalPropertiesClass mapArrayInteger(Map> mapArrayInteger) { + this.mapArrayInteger = mapArrayInteger; return this; } @@ -201,15 +221,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapArrayInteger() { return mapArrayInteger; } + + public void setMapArrayInteger(Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; } + public AdditionalPropertiesClass mapArrayAnytype(Map> mapArrayAnytype) { + this.mapArrayAnytype = mapArrayAnytype; return this; } @@ -228,15 +255,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapArrayAnytype() { return mapArrayAnytype; } + + public void setMapArrayAnytype(Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; } + public AdditionalPropertiesClass mapMapString(Map> mapMapString) { + this.mapMapString = mapMapString; return this; } @@ -255,15 +289,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapMapString() { return mapMapString; } + + public void setMapMapString(Map> mapMapString) { this.mapMapString = mapMapString; } + public AdditionalPropertiesClass mapMapAnytype(Map> mapMapAnytype) { + this.mapMapAnytype = mapMapAnytype; return this; } @@ -282,15 +323,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapMapAnytype() { return mapMapAnytype; } + + public void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } + public AdditionalPropertiesClass anytype1(Object anytype1) { + this.anytype1 = anytype1; return this; } @@ -301,15 +349,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Object getAnytype1() { return anytype1; } + + public void setAnytype1(Object anytype1) { this.anytype1 = anytype1; } + public AdditionalPropertiesClass anytype2(Object anytype2) { + this.anytype2 = anytype2; return this; } @@ -320,15 +375,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ANYTYPE2) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Object getAnytype2() { return anytype2; } + + public void setAnytype2(Object anytype2) { this.anytype2 = anytype2; } + public AdditionalPropertiesClass anytype3(Object anytype3) { + this.anytype3 = anytype3; return this; } @@ -339,10 +401,15 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ANYTYPE3) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Object getAnytype3() { return anytype3; } + + public void setAnytype3(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 77388b95d86..3d41e99ac8b 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesInteger extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesInteger name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesInteger extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(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 f0a3318bca1..799674f1e1b 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import java.util.Map; public class AdditionalPropertiesNumber extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesNumber name(String name) { + this.name = name; return this; } @@ -44,10 +46,15 @@ public class AdditionalPropertiesNumber extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(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 19d772f4522..3d5a5c25bfa 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesObject extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesObject name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesObject extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(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 09e6431c916..d0c854414c3 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesString extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesString name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesString extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(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 a2d34d82f47..1f548074919 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; @@ -35,14 +36,14 @@ import io.swagger.annotations.ApiModelProperty; public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; - @JsonProperty(JSON_PROPERTY_CLASS_NAME) private String className; public static final String JSON_PROPERTY_COLOR = "color"; - @JsonProperty(JSON_PROPERTY_COLOR) private String color = "red"; + public Animal className(String className) { + this.className = className; return this; } @@ -52,15 +53,22 @@ public class Animal { * @return className **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getClassName() { return className; } + + public void setClassName(String className) { this.className = className; } + public Animal color(String color) { + this.color = color; return this; } @@ -71,10 +79,15 @@ public class Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_COLOR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getColor() { return color; } + + public void setColor(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 e1a5139bd25..40fd3259fc7 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import java.util.List; public class ArrayOfArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) private List> arrayArrayNumber = null; + public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + this.arrayArrayNumber = arrayArrayNumber; return this; } @@ -52,10 +54,15 @@ public class ArrayOfArrayOfNumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List> getArrayArrayNumber() { return arrayArrayNumber; } + + public void setArrayArrayNumber(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 76fc13b8ce8..1b695be1510 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import java.util.List; public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) private List arrayNumber = null; + public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + this.arrayNumber = arrayNumber; return this; } @@ -52,10 +54,15 @@ public class ArrayOfNumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArrayNumber() { return arrayNumber; } + + public void setArrayNumber(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 a0082db628c..0effb728488 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,18 +31,17 @@ import org.openapitools.client.model.ReadOnlyFirst; public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) private List arrayOfString = null; public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) private List> arrayArrayOfInteger = null; public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) private List> arrayArrayOfModel = null; + public ArrayTest arrayOfString(List arrayOfString) { + this.arrayOfString = arrayOfString; return this; } @@ -60,15 +60,22 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArrayOfString() { return arrayOfString; } + + public void setArrayOfString(List arrayOfString) { this.arrayOfString = arrayOfString; } + public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + this.arrayArrayOfInteger = arrayArrayOfInteger; return this; } @@ -87,15 +94,22 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List> getArrayArrayOfInteger() { return arrayArrayOfInteger; } + + public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } + public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + this.arrayArrayOfModel = arrayArrayOfModel; return this; } @@ -114,10 +128,15 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List> getArrayArrayOfModel() { return arrayArrayOfModel; } + + public void setArrayArrayOfModel(List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } 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 1d4ebff1533..1db509bc7a9 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,30 +28,26 @@ import io.swagger.annotations.ApiModelProperty; public class Capitalization { public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) private String smallCamel; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) private String capitalCamel; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) private String smallSnake; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) private String capitalSnake; public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) private String scAETHFlowPoints; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) private String ATT_NAME; + public Capitalization smallCamel(String smallCamel) { + this.smallCamel = smallCamel; return this; } @@ -61,15 +58,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSmallCamel() { return smallCamel; } + + public void setSmallCamel(String smallCamel) { this.smallCamel = smallCamel; } + public Capitalization capitalCamel(String capitalCamel) { + this.capitalCamel = capitalCamel; return this; } @@ -80,15 +84,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getCapitalCamel() { return capitalCamel; } + + public void setCapitalCamel(String capitalCamel) { this.capitalCamel = capitalCamel; } + public Capitalization smallSnake(String smallSnake) { + this.smallSnake = smallSnake; return this; } @@ -99,15 +110,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSmallSnake() { return smallSnake; } + + public void setSmallSnake(String smallSnake) { this.smallSnake = smallSnake; } + public Capitalization capitalSnake(String capitalSnake) { + this.capitalSnake = capitalSnake; return this; } @@ -118,15 +136,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getCapitalSnake() { return capitalSnake; } + + public void setCapitalSnake(String capitalSnake) { this.capitalSnake = capitalSnake; } + public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -137,15 +162,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getScAETHFlowPoints() { return scAETHFlowPoints; } + + public void setScAETHFlowPoints(String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } + public Capitalization ATT_NAME(String ATT_NAME) { + this.ATT_NAME = ATT_NAME; return this; } @@ -156,10 +188,15 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "Name of the pet ") + @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getATTNAME() { return ATT_NAME; } + + public void setATTNAME(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 11ffa39d982..35f36932606 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import org.openapitools.client.model.CatAllOf; public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; - @JsonProperty(JSON_PROPERTY_DECLAWED) private Boolean declawed; + public Cat declawed(Boolean declawed) { + this.declawed = declawed; return this; } @@ -43,10 +45,15 @@ public class Cat extends Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getDeclawed() { return declawed; } + + public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/CatAllOf.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/CatAllOf.java index 1c12b1972cf..f498096d0bc 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/CatAllOf.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/CatAllOf.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty; public class CatAllOf { public static final String JSON_PROPERTY_DECLAWED = "declawed"; - @JsonProperty(JSON_PROPERTY_DECLAWED) private Boolean declawed; + public CatAllOf declawed(Boolean declawed) { + this.declawed = declawed; return this; } @@ -41,10 +43,15 @@ public class CatAllOf { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getDeclawed() { return declawed; } + + public void setDeclawed(Boolean declawed) { this.declawed = declawed; } 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 652d69552d1..3c4385a7132 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,14 +28,14 @@ import io.swagger.annotations.ApiModelProperty; public class Category { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name = "default-name"; + public Category id(Long id) { + this.id = id; return this; } @@ -45,15 +46,22 @@ public class Category { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Category name(String name) { + this.name = name; return this; } @@ -63,10 +71,15 @@ public class Category { * @return name **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getName() { return name; } + + public void setName(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 16036936e7a..47ad8fce655 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,10 +29,11 @@ import io.swagger.annotations.ApiModelProperty; public class ClassModel { public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) private String propertyClass; + public ClassModel propertyClass(String propertyClass) { + this.propertyClass = propertyClass; return this; } @@ -42,10 +44,15 @@ public class ClassModel { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPropertyClass() { return propertyClass; } + + public void setPropertyClass(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 a5c065a1dd0..d325f1378cb 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty; public class Client { public static final String JSON_PROPERTY_CLIENT = "client"; - @JsonProperty(JSON_PROPERTY_CLIENT) private String client; + public Client client(String client) { + this.client = client; return this; } @@ -41,10 +43,15 @@ public class Client { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getClient() { return client; } + + public void setClient(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 7ac3c33202e..cc0acce7049 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import org.openapitools.client.model.DogAllOf; public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; - @JsonProperty(JSON_PROPERTY_BREED) private String breed; + public Dog breed(String breed) { + this.breed = breed; return this; } @@ -43,10 +45,15 @@ public class Dog extends Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBreed() { return breed; } + + public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/DogAllOf.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/DogAllOf.java index b79847a96e4..31d4cc3c80e 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/DogAllOf.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/DogAllOf.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty; public class DogAllOf { public static final String JSON_PROPERTY_BREED = "breed"; - @JsonProperty(JSON_PROPERTY_BREED) private String breed; + public DogAllOf breed(String breed) { + this.breed = breed; return this; } @@ -41,10 +43,15 @@ public class DogAllOf { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBreed() { return breed; } + + public void setBreed(String breed) { this.breed = breed; } 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 93e0acd5746..c60e85ce7d6 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -64,7 +65,6 @@ public class EnumArrays { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) private JustSymbolEnum justSymbol; /** @@ -103,10 +103,11 @@ public class EnumArrays { } public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) private List arrayEnum = null; + public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + this.justSymbol = justSymbol; return this; } @@ -117,15 +118,22 @@ public class EnumArrays { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public JustSymbolEnum getJustSymbol() { return justSymbol; } + + public void setJustSymbol(JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } + public EnumArrays arrayEnum(List arrayEnum) { + this.arrayEnum = arrayEnum; return this; } @@ -144,10 +152,15 @@ public class EnumArrays { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArrayEnum() { return arrayEnum; } + + public void setArrayEnum(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 bde85ff2a09..615f4806ebd 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -65,7 +66,6 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; - @JsonProperty(JSON_PROPERTY_ENUM_STRING) private EnumStringEnum enumString; /** @@ -106,7 +106,6 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) private EnumStringRequiredEnum enumStringRequired; /** @@ -145,7 +144,6 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) private EnumIntegerEnum enumInteger; /** @@ -184,14 +182,14 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) private OuterEnum outerEnum; + public EnumTest enumString(EnumStringEnum enumString) { + this.enumString = enumString; return this; } @@ -202,15 +200,22 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public EnumStringEnum getEnumString() { return enumString; } + + public void setEnumString(EnumStringEnum enumString) { this.enumString = enumString; } + public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + this.enumStringRequired = enumStringRequired; return this; } @@ -220,15 +225,22 @@ public class EnumTest { * @return enumStringRequired **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; } + + public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } + public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + this.enumInteger = enumInteger; return this; } @@ -239,15 +251,22 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public EnumIntegerEnum getEnumInteger() { return enumInteger; } + + public void setEnumInteger(EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } + public EnumTest enumNumber(EnumNumberEnum enumNumber) { + this.enumNumber = enumNumber; return this; } @@ -258,15 +277,22 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public EnumNumberEnum getEnumNumber() { return enumNumber; } + + public void setEnumNumber(EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } + public EnumTest outerEnum(OuterEnum outerEnum) { + this.outerEnum = outerEnum; return this; } @@ -277,10 +303,15 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OuterEnum getOuterEnum() { return outerEnum; } + + public void setOuterEnum(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 1c2623fca90..e2dab74c358 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,14 +30,14 @@ import java.util.List; public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; - @JsonProperty(JSON_PROPERTY_FILE) - private java.io.File file = null; + private java.io.File file; public static final String JSON_PROPERTY_FILES = "files"; - @JsonProperty(JSON_PROPERTY_FILES) private List files = null; + public FileSchemaTestClass file(java.io.File file) { + this.file = file; return this; } @@ -47,15 +48,22 @@ public class FileSchemaTestClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FILE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public java.io.File getFile() { return file; } + + public void setFile(java.io.File file) { this.file = file; } + public FileSchemaTestClass files(List files) { + this.files = files; return this; } @@ -74,10 +82,15 @@ public class FileSchemaTestClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FILES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getFiles() { return files; } + + public void setFiles(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 509048cd5e9..b6dd912d49e 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -32,58 +33,47 @@ import org.threeten.bp.OffsetDateTime; public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; - @JsonProperty(JSON_PROPERTY_INTEGER) private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; - @JsonProperty(JSON_PROPERTY_INT32) private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; - @JsonProperty(JSON_PROPERTY_INT64) private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; - @JsonProperty(JSON_PROPERTY_NUMBER) private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; - @JsonProperty(JSON_PROPERTY_FLOAT) private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; - @JsonProperty(JSON_PROPERTY_DOUBLE) private Double _double; public static final String JSON_PROPERTY_STRING = "string"; - @JsonProperty(JSON_PROPERTY_STRING) private String string; public static final String JSON_PROPERTY_BYTE = "byte"; - @JsonProperty(JSON_PROPERTY_BYTE) private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; - @JsonProperty(JSON_PROPERTY_BINARY) private File binary; public static final String JSON_PROPERTY_DATE = "date"; - @JsonProperty(JSON_PROPERTY_DATE) private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @JsonProperty(JSON_PROPERTY_DATE_TIME) private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; - @JsonProperty(JSON_PROPERTY_UUID) private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; - @JsonProperty(JSON_PROPERTY_PASSWORD) private String password; + public FormatTest integer(Integer integer) { + this.integer = integer; return this; } @@ -96,15 +86,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getInteger() { return integer; } + + public void setInteger(Integer integer) { this.integer = integer; } + public FormatTest int32(Integer int32) { + this.int32 = int32; return this; } @@ -117,15 +114,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INT32) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getInt32() { return int32; } + + public void setInt32(Integer int32) { this.int32 = int32; } + public FormatTest int64(Long int64) { + this.int64 = int64; return this; } @@ -136,15 +140,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INT64) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getInt64() { return int64; } + + public void setInt64(Long int64) { this.int64 = int64; } + public FormatTest number(BigDecimal number) { + this.number = number; return this; } @@ -156,15 +167,22 @@ public class FormatTest { * @return number **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getNumber() { return number; } + + public void setNumber(BigDecimal number) { this.number = number; } + public FormatTest _float(Float _float) { + this._float = _float; return this; } @@ -177,15 +195,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Float getFloat() { return _float; } + + public void setFloat(Float _float) { this._float = _float; } + public FormatTest _double(Double _double) { + this._double = _double; return this; } @@ -198,15 +223,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Double getDouble() { return _double; } + + public void setDouble(Double _double) { this._double = _double; } + public FormatTest string(String string) { + this.string = string; return this; } @@ -217,15 +249,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getString() { return string; } + + public void setString(String string) { this.string = string; } + public FormatTest _byte(byte[] _byte) { + this._byte = _byte; return this; } @@ -235,15 +274,22 @@ public class FormatTest { * @return _byte **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_BYTE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public byte[] getByte() { return _byte; } + + public void setByte(byte[] _byte) { this._byte = _byte; } + public FormatTest binary(File binary) { + this.binary = binary; return this; } @@ -254,15 +300,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BINARY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public File getBinary() { return binary; } + + public void setBinary(File binary) { this.binary = binary; } + public FormatTest date(LocalDate date) { + this.date = date; return this; } @@ -272,15 +325,22 @@ public class FormatTest { * @return date **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_DATE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public LocalDate getDate() { return date; } + + public void setDate(LocalDate date) { this.date = date; } + public FormatTest dateTime(OffsetDateTime dateTime) { + this.dateTime = dateTime; return this; } @@ -291,15 +351,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OffsetDateTime getDateTime() { return dateTime; } + + public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } + public FormatTest uuid(UUID uuid) { + this.uuid = uuid; return this; } @@ -310,15 +377,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public UUID getUuid() { return uuid; } + + public void setUuid(UUID uuid) { this.uuid = uuid; } + public FormatTest password(String password) { + this.password = password; return this; } @@ -328,10 +402,15 @@ public class FormatTest { * @return password **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getPassword() { return password; } + + public void setPassword(String password) { this.password = password; } 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 ad6b28d9d1e..9c25eddaa1b 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,34 +28,44 @@ import io.swagger.annotations.ApiModelProperty; public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; - @JsonProperty(JSON_PROPERTY_BAR) private String bar; public static final String JSON_PROPERTY_FOO = "foo"; - @JsonProperty(JSON_PROPERTY_FOO) private String foo; + /** * Get bar * @return bar **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BAR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBar() { return bar; } + + + /** * Get foo * @return foo **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FOO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getFoo() { return foo; } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { 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 66b41268e51..c6193edaf98 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,7 +31,6 @@ import java.util.Map; public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) private Map> mapMapOfString = null; /** @@ -69,18 +69,17 @@ public class MapTest { } public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) private Map mapOfEnumString = null; public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) private Map directMap = null; public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) private Map indirectMap = null; + public MapTest mapMapOfString(Map> mapMapOfString) { + this.mapMapOfString = mapMapOfString; return this; } @@ -99,15 +98,22 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapMapOfString() { return mapMapOfString; } + + public void setMapMapOfString(Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } + public MapTest mapOfEnumString(Map mapOfEnumString) { + this.mapOfEnumString = mapOfEnumString; return this; } @@ -126,15 +132,22 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapOfEnumString() { return mapOfEnumString; } + + public void setMapOfEnumString(Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } + public MapTest directMap(Map directMap) { + this.directMap = directMap; return this; } @@ -153,15 +166,22 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getDirectMap() { return directMap; } + + public void setDirectMap(Map directMap) { this.directMap = directMap; } + public MapTest indirectMap(Map indirectMap) { + this.indirectMap = indirectMap; return this; } @@ -180,10 +200,15 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getIndirectMap() { return indirectMap; } + + public void setIndirectMap(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 b66724ea321..df4761bf27b 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -33,18 +34,17 @@ import org.threeten.bp.OffsetDateTime; public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; - @JsonProperty(JSON_PROPERTY_UUID) private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @JsonProperty(JSON_PROPERTY_DATE_TIME) private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; - @JsonProperty(JSON_PROPERTY_MAP) private Map map = null; + public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + this.uuid = uuid; return this; } @@ -55,15 +55,22 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public UUID getUuid() { return uuid; } + + public void setUuid(UUID uuid) { this.uuid = uuid; } + public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + this.dateTime = dateTime; return this; } @@ -74,15 +81,22 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OffsetDateTime getDateTime() { return dateTime; } + + public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } + public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + this.map = map; return this; } @@ -101,10 +115,15 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMap() { return map; } + + public void setMap(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 d86df5d7eab..0b39d4177e2 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,14 +29,14 @@ import io.swagger.annotations.ApiModelProperty; public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) private String propertyClass; + public Model200Response name(Integer name) { + this.name = name; return this; } @@ -46,15 +47,22 @@ public class Model200Response { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getName() { return name; } + + public void setName(Integer name) { this.name = name; } + public Model200Response propertyClass(String propertyClass) { + this.propertyClass = propertyClass; return this; } @@ -65,10 +73,15 @@ public class Model200Response { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPropertyClass() { return propertyClass; } + + public void setPropertyClass(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 4c9a7f87b5a..9ca6e78b233 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,18 +28,17 @@ import io.swagger.annotations.ApiModelProperty; public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; - @JsonProperty(JSON_PROPERTY_CODE) private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; - @JsonProperty(JSON_PROPERTY_TYPE) private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; - @JsonProperty(JSON_PROPERTY_MESSAGE) private String message; + public ModelApiResponse code(Integer code) { + this.code = code; return this; } @@ -49,15 +49,22 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getCode() { return code; } + + public void setCode(Integer code) { this.code = code; } + public ModelApiResponse type(String type) { + this.type = type; return this; } @@ -68,15 +75,22 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getType() { return type; } + + public void setType(String type) { this.type = type; } + public ModelApiResponse message(String message) { + this.message = message; return this; } @@ -87,10 +101,15 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } 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 9c9ac21a3fb..300598b5d0b 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,10 +29,11 @@ import io.swagger.annotations.ApiModelProperty; public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; - @JsonProperty(JSON_PROPERTY_RETURN) private Integer _return; + public ModelReturn _return(Integer _return) { + this._return = _return; return this; } @@ -42,10 +44,15 @@ public class ModelReturn { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_RETURN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getReturn() { return _return; } + + public void setReturn(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 47f89c54361..98a92f76c18 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,22 +29,20 @@ import io.swagger.annotations.ApiModelProperty; public class Name { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; - @JsonProperty(JSON_PROPERTY_PROPERTY) private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; - @JsonProperty(JSON_PROPERTY_123NUMBER) private Integer _123number; + public Name name(Integer name) { + this.name = name; return this; } @@ -53,25 +52,38 @@ public class Name { * @return name **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getName() { return name; } + + public void setName(Integer name) { this.name = name; } + /** * Get snakeCase * @return snakeCase **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getSnakeCase() { return snakeCase; } + + + public Name property(String property) { + this.property = property; return this; } @@ -82,25 +94,36 @@ public class Name { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getProperty() { return property; } + + public void setProperty(String property) { this.property = property; } + /** * Get _123number * @return _123number **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_123NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer get123number() { return _123number; } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { 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 f5331da226e..499144e4016 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,10 +29,11 @@ import java.math.BigDecimal; public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) private BigDecimal justNumber; + public NumberOnly justNumber(BigDecimal justNumber) { + this.justNumber = justNumber; return this; } @@ -42,10 +44,15 @@ public class NumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getJustNumber() { return justNumber; } + + public void setJustNumber(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 0d6bc154e46..fadc836b44a 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,19 +29,15 @@ import org.threeten.bp.OffsetDateTime; public class Order { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; - @JsonProperty(JSON_PROPERTY_PET_ID) private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; - @JsonProperty(JSON_PROPERTY_QUANTITY) private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; - @JsonProperty(JSON_PROPERTY_SHIP_DATE) private OffsetDateTime shipDate; /** @@ -81,14 +78,14 @@ public class Order { } public static final String JSON_PROPERTY_STATUS = "status"; - @JsonProperty(JSON_PROPERTY_STATUS) private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; - @JsonProperty(JSON_PROPERTY_COMPLETE) private Boolean complete = false; + public Order id(Long id) { + this.id = id; return this; } @@ -99,15 +96,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Order petId(Long petId) { + this.petId = petId; return this; } @@ -118,15 +122,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getPetId() { return petId; } + + public void setPetId(Long petId) { this.petId = petId; } + public Order quantity(Integer quantity) { + this.quantity = quantity; return this; } @@ -137,15 +148,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getQuantity() { return quantity; } + + public void setQuantity(Integer quantity) { this.quantity = quantity; } + public Order shipDate(OffsetDateTime shipDate) { + this.shipDate = shipDate; return this; } @@ -156,15 +174,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OffsetDateTime getShipDate() { return shipDate; } + + public void setShipDate(OffsetDateTime shipDate) { this.shipDate = shipDate; } + public Order status(StatusEnum status) { + this.status = status; return this; } @@ -175,15 +200,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "Order Status") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public StatusEnum getStatus() { return status; } + + public void setStatus(StatusEnum status) { this.status = status; } + public Order complete(Boolean complete) { + this.complete = complete; return this; } @@ -194,10 +226,15 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getComplete() { return complete; } + + public void setComplete(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 7193ba2a0c9..dab9d1be3a8 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,18 +29,17 @@ import java.math.BigDecimal; public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; - @JsonProperty(JSON_PROPERTY_MY_NUMBER) private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; - @JsonProperty(JSON_PROPERTY_MY_STRING) private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) private Boolean myBoolean; + public OuterComposite myNumber(BigDecimal myNumber) { + this.myNumber = myNumber; return this; } @@ -50,15 +50,22 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getMyNumber() { return myNumber; } + + public void setMyNumber(BigDecimal myNumber) { this.myNumber = myNumber; } + public OuterComposite myString(String myString) { + this.myString = myString; return this; } @@ -69,15 +76,22 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getMyString() { return myString; } + + public void setMyString(String myString) { this.myString = myString; } + public OuterComposite myBoolean(Boolean myBoolean) { + this.myBoolean = myBoolean; return this; } @@ -88,10 +102,15 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getMyBoolean() { return myBoolean; } + + public void setMyBoolean(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 fb59d996bf6..63f1f3771b2 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,23 +32,18 @@ import org.openapitools.client.model.Tag; public class Pet { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; - @JsonProperty(JSON_PROPERTY_CATEGORY) - private Category category = null; + private Category category; public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) private List photoUrls = new ArrayList(); public static final String JSON_PROPERTY_TAGS = "tags"; - @JsonProperty(JSON_PROPERTY_TAGS) private List tags = null; /** @@ -88,10 +84,11 @@ public class Pet { } public static final String JSON_PROPERTY_STATUS = "status"; - @JsonProperty(JSON_PROPERTY_STATUS) private StatusEnum status; + public Pet id(Long id) { + this.id = id; return this; } @@ -102,15 +99,22 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Pet category(Category category) { + this.category = category; return this; } @@ -121,15 +125,22 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Category getCategory() { return category; } + + public void setCategory(Category category) { this.category = category; } + public Pet name(String name) { + this.name = name; return this; } @@ -139,15 +150,22 @@ public class Pet { * @return name **/ @ApiModelProperty(example = "doggie", required = true, value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public Pet photoUrls(List photoUrls) { + this.photoUrls = photoUrls; return this; } @@ -162,15 +180,22 @@ public class Pet { * @return photoUrls **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getPhotoUrls() { return photoUrls; } + + public void setPhotoUrls(List photoUrls) { this.photoUrls = photoUrls; } + public Pet tags(List tags) { + this.tags = tags; return this; } @@ -189,15 +214,22 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getTags() { return tags; } + + public void setTags(List tags) { this.tags = tags; } + public Pet status(StatusEnum status) { + this.status = status; return this; } @@ -208,10 +240,15 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "pet status in the store") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public StatusEnum getStatus() { return status; } + + public void setStatus(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 b0949b9e2ea..28901097fa4 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,24 +28,30 @@ import io.swagger.annotations.ApiModelProperty; public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; - @JsonProperty(JSON_PROPERTY_BAR) private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; - @JsonProperty(JSON_PROPERTY_BAZ) private String baz; + /** * Get bar * @return bar **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BAR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBar() { return bar; } + + + public ReadOnlyFirst baz(String baz) { + this.baz = baz; return this; } @@ -55,10 +62,15 @@ public class ReadOnlyFirst { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BAZ) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBaz() { return baz; } + + public void setBaz(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 a9d03234061..c7820abb0fc 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty; public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) private Long $specialPropertyName; + public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + this.$specialPropertyName = $specialPropertyName; return this; } @@ -41,10 +43,15 @@ public class SpecialModelName { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long get$SpecialPropertyName() { return $specialPropertyName; } + + public void set$SpecialPropertyName(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 45f17b22cf3..7e20ebf4a31 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,14 +28,14 @@ import io.swagger.annotations.ApiModelProperty; public class Tag { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public Tag id(Long id) { + this.id = id; return this; } @@ -45,15 +46,22 @@ public class Tag { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Tag name(String name) { + this.name = name; return this; } @@ -64,10 +72,15 @@ public class Tag { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(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 0961f776fb0..37fbaac7e13 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,26 +31,23 @@ import java.util.List; public class TypeHolderDefault { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; - @JsonProperty(JSON_PROPERTY_STRING_ITEM) private String stringItem = "what"; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) private BigDecimal numberItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) private Boolean boolItem = true; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) private List arrayItem = new ArrayList(); + public TypeHolderDefault stringItem(String stringItem) { + this.stringItem = stringItem; return this; } @@ -59,15 +57,22 @@ public class TypeHolderDefault { * @return stringItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getStringItem() { return stringItem; } + + public void setStringItem(String stringItem) { this.stringItem = stringItem; } + public TypeHolderDefault numberItem(BigDecimal numberItem) { + this.numberItem = numberItem; return this; } @@ -77,15 +82,22 @@ public class TypeHolderDefault { * @return numberItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getNumberItem() { return numberItem; } + + public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } + public TypeHolderDefault integerItem(Integer integerItem) { + this.integerItem = integerItem; return this; } @@ -95,15 +107,22 @@ public class TypeHolderDefault { * @return integerItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getIntegerItem() { return integerItem; } + + public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } + public TypeHolderDefault boolItem(Boolean boolItem) { + this.boolItem = boolItem; return this; } @@ -113,15 +132,22 @@ public class TypeHolderDefault { * @return boolItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Boolean getBoolItem() { return boolItem; } + + public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } + public TypeHolderDefault arrayItem(List arrayItem) { + this.arrayItem = arrayItem; return this; } @@ -136,10 +162,15 @@ public class TypeHolderDefault { * @return arrayItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getArrayItem() { return arrayItem; } + + public void setArrayItem(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 3617c5c16b2..25ef3e65cee 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,26 +31,23 @@ import java.util.List; public class TypeHolderExample { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; - @JsonProperty(JSON_PROPERTY_STRING_ITEM) private String stringItem; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) private BigDecimal numberItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) private Boolean boolItem; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) private List arrayItem = new ArrayList(); + public TypeHolderExample stringItem(String stringItem) { + this.stringItem = stringItem; return this; } @@ -59,15 +57,22 @@ public class TypeHolderExample { * @return stringItem **/ @ApiModelProperty(example = "what", required = true, value = "") + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getStringItem() { return stringItem; } + + public void setStringItem(String stringItem) { this.stringItem = stringItem; } + public TypeHolderExample numberItem(BigDecimal numberItem) { + this.numberItem = numberItem; return this; } @@ -77,15 +82,22 @@ public class TypeHolderExample { * @return numberItem **/ @ApiModelProperty(example = "1.234", required = true, value = "") + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getNumberItem() { return numberItem; } + + public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } + public TypeHolderExample integerItem(Integer integerItem) { + this.integerItem = integerItem; return this; } @@ -95,15 +107,22 @@ public class TypeHolderExample { * @return integerItem **/ @ApiModelProperty(example = "-2", required = true, value = "") + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getIntegerItem() { return integerItem; } + + public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } + public TypeHolderExample boolItem(Boolean boolItem) { + this.boolItem = boolItem; return this; } @@ -113,15 +132,22 @@ public class TypeHolderExample { * @return boolItem **/ @ApiModelProperty(example = "true", required = true, value = "") + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Boolean getBoolItem() { return boolItem; } + + public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } + public TypeHolderExample arrayItem(List arrayItem) { + this.arrayItem = arrayItem; return this; } @@ -136,10 +162,15 @@ public class TypeHolderExample { * @return arrayItem **/ @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getArrayItem() { return arrayItem; } + + public void setArrayItem(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 9ce7869e755..b181265d97d 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,38 +28,32 @@ import io.swagger.annotations.ApiModelProperty; public class User { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; - @JsonProperty(JSON_PROPERTY_USERNAME) private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; - @JsonProperty(JSON_PROPERTY_FIRST_NAME) private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; - @JsonProperty(JSON_PROPERTY_LAST_NAME) private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; - @JsonProperty(JSON_PROPERTY_EMAIL) private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; - @JsonProperty(JSON_PROPERTY_PASSWORD) private String password; public static final String JSON_PROPERTY_PHONE = "phone"; - @JsonProperty(JSON_PROPERTY_PHONE) private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; - @JsonProperty(JSON_PROPERTY_USER_STATUS) private Integer userStatus; + public User id(Long id) { + this.id = id; return this; } @@ -69,15 +64,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public User username(String username) { + this.username = username; return this; } @@ -88,15 +90,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getUsername() { return username; } + + public void setUsername(String username) { this.username = username; } + public User firstName(String firstName) { + this.firstName = firstName; return this; } @@ -107,15 +116,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getFirstName() { return firstName; } + + public void setFirstName(String firstName) { this.firstName = firstName; } + public User lastName(String lastName) { + this.lastName = lastName; return this; } @@ -126,15 +142,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getLastName() { return lastName; } + + public void setLastName(String lastName) { this.lastName = lastName; } + public User email(String email) { + this.email = email; return this; } @@ -145,15 +168,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getEmail() { return email; } + + public void setEmail(String email) { this.email = email; } + public User password(String password) { + this.password = password; return this; } @@ -164,15 +194,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPassword() { return password; } + + public void setPassword(String password) { this.password = password; } + public User phone(String phone) { + this.phone = phone; return this; } @@ -183,15 +220,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PHONE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPhone() { return phone; } + + public void setPhone(String phone) { this.phone = phone; } + public User userStatus(Integer userStatus) { + this.userStatus = userStatus; return this; } @@ -202,10 +246,15 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "User Status") + @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getUserStatus() { return userStatus; } + + public void setUserStatus(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 8be5213ca84..69467145249 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,122 +31,95 @@ import java.util.List; public class XmlItem { public static final String JSON_PROPERTY_ATTRIBUTE_STRING = "attribute_string"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) private String attributeString; public static final String JSON_PROPERTY_ATTRIBUTE_NUMBER = "attribute_number"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) private BigDecimal attributeNumber; public static final String JSON_PROPERTY_ATTRIBUTE_INTEGER = "attribute_integer"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) private Integer attributeInteger; public static final String JSON_PROPERTY_ATTRIBUTE_BOOLEAN = "attribute_boolean"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) private Boolean attributeBoolean; public static final String JSON_PROPERTY_WRAPPED_ARRAY = "wrapped_array"; - @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) private List wrappedArray = null; public static final String JSON_PROPERTY_NAME_STRING = "name_string"; - @JsonProperty(JSON_PROPERTY_NAME_STRING) private String nameString; public static final String JSON_PROPERTY_NAME_NUMBER = "name_number"; - @JsonProperty(JSON_PROPERTY_NAME_NUMBER) private BigDecimal nameNumber; public static final String JSON_PROPERTY_NAME_INTEGER = "name_integer"; - @JsonProperty(JSON_PROPERTY_NAME_INTEGER) private Integer nameInteger; public static final String JSON_PROPERTY_NAME_BOOLEAN = "name_boolean"; - @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) private Boolean nameBoolean; public static final String JSON_PROPERTY_NAME_ARRAY = "name_array"; - @JsonProperty(JSON_PROPERTY_NAME_ARRAY) private List nameArray = null; public static final String JSON_PROPERTY_NAME_WRAPPED_ARRAY = "name_wrapped_array"; - @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) private List nameWrappedArray = null; public static final String JSON_PROPERTY_PREFIX_STRING = "prefix_string"; - @JsonProperty(JSON_PROPERTY_PREFIX_STRING) private String prefixString; public static final String JSON_PROPERTY_PREFIX_NUMBER = "prefix_number"; - @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) private BigDecimal prefixNumber; public static final String JSON_PROPERTY_PREFIX_INTEGER = "prefix_integer"; - @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) private Integer prefixInteger; public static final String JSON_PROPERTY_PREFIX_BOOLEAN = "prefix_boolean"; - @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) private Boolean prefixBoolean; public static final String JSON_PROPERTY_PREFIX_ARRAY = "prefix_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) private List prefixArray = null; public static final String JSON_PROPERTY_PREFIX_WRAPPED_ARRAY = "prefix_wrapped_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) private List prefixWrappedArray = null; public static final String JSON_PROPERTY_NAMESPACE_STRING = "namespace_string"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) private String namespaceString; public static final String JSON_PROPERTY_NAMESPACE_NUMBER = "namespace_number"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) private BigDecimal namespaceNumber; public static final String JSON_PROPERTY_NAMESPACE_INTEGER = "namespace_integer"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) private Integer namespaceInteger; public static final String JSON_PROPERTY_NAMESPACE_BOOLEAN = "namespace_boolean"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) private Boolean namespaceBoolean; public static final String JSON_PROPERTY_NAMESPACE_ARRAY = "namespace_array"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) private List namespaceArray = null; public static final String JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY = "namespace_wrapped_array"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) private List namespaceWrappedArray = null; public static final String JSON_PROPERTY_PREFIX_NS_STRING = "prefix_ns_string"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) private String prefixNsString; public static final String JSON_PROPERTY_PREFIX_NS_NUMBER = "prefix_ns_number"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) private BigDecimal prefixNsNumber; public static final String JSON_PROPERTY_PREFIX_NS_INTEGER = "prefix_ns_integer"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) private Integer prefixNsInteger; public static final String JSON_PROPERTY_PREFIX_NS_BOOLEAN = "prefix_ns_boolean"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) private Boolean prefixNsBoolean; public static final String JSON_PROPERTY_PREFIX_NS_ARRAY = "prefix_ns_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) private List prefixNsArray = null; public static final String JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY = "prefix_ns_wrapped_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) private List prefixNsWrappedArray = null; + public XmlItem attributeString(String attributeString) { + this.attributeString = attributeString; return this; } @@ -156,15 +130,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getAttributeString() { return attributeString; } + + public void setAttributeString(String attributeString) { this.attributeString = attributeString; } + public XmlItem attributeNumber(BigDecimal attributeNumber) { + this.attributeNumber = attributeNumber; return this; } @@ -175,15 +156,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getAttributeNumber() { return attributeNumber; } + + public void setAttributeNumber(BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } + public XmlItem attributeInteger(Integer attributeInteger) { + this.attributeInteger = attributeInteger; return this; } @@ -194,15 +182,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getAttributeInteger() { return attributeInteger; } + + public void setAttributeInteger(Integer attributeInteger) { this.attributeInteger = attributeInteger; } + public XmlItem attributeBoolean(Boolean attributeBoolean) { + this.attributeBoolean = attributeBoolean; return this; } @@ -213,15 +208,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getAttributeBoolean() { return attributeBoolean; } + + public void setAttributeBoolean(Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } + public XmlItem wrappedArray(List wrappedArray) { + this.wrappedArray = wrappedArray; return this; } @@ -240,15 +242,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getWrappedArray() { return wrappedArray; } + + public void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } + public XmlItem nameString(String nameString) { + this.nameString = nameString; return this; } @@ -259,15 +268,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_NAME_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getNameString() { return nameString; } + + public void setNameString(String nameString) { this.nameString = nameString; } + public XmlItem nameNumber(BigDecimal nameNumber) { + this.nameNumber = nameNumber; return this; } @@ -278,15 +294,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_NAME_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getNameNumber() { return nameNumber; } + + public void setNameNumber(BigDecimal nameNumber) { this.nameNumber = nameNumber; } + public XmlItem nameInteger(Integer nameInteger) { + this.nameInteger = nameInteger; return this; } @@ -297,15 +320,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_NAME_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getNameInteger() { return nameInteger; } + + public void setNameInteger(Integer nameInteger) { this.nameInteger = nameInteger; } + public XmlItem nameBoolean(Boolean nameBoolean) { + this.nameBoolean = nameBoolean; return this; } @@ -316,15 +346,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getNameBoolean() { return nameBoolean; } + + public void setNameBoolean(Boolean nameBoolean) { this.nameBoolean = nameBoolean; } + public XmlItem nameArray(List nameArray) { + this.nameArray = nameArray; return this; } @@ -343,15 +380,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNameArray() { return nameArray; } + + public void setNameArray(List nameArray) { this.nameArray = nameArray; } + public XmlItem nameWrappedArray(List nameWrappedArray) { + this.nameWrappedArray = nameWrappedArray; return this; } @@ -370,15 +414,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNameWrappedArray() { return nameWrappedArray; } + + public void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } + public XmlItem prefixString(String prefixString) { + this.prefixString = prefixString; return this; } @@ -389,15 +440,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPrefixString() { return prefixString; } + + public void setPrefixString(String prefixString) { this.prefixString = prefixString; } + public XmlItem prefixNumber(BigDecimal prefixNumber) { + this.prefixNumber = prefixNumber; return this; } @@ -408,15 +466,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getPrefixNumber() { return prefixNumber; } + + public void setPrefixNumber(BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } + public XmlItem prefixInteger(Integer prefixInteger) { + this.prefixInteger = prefixInteger; return this; } @@ -427,15 +492,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getPrefixInteger() { return prefixInteger; } + + public void setPrefixInteger(Integer prefixInteger) { this.prefixInteger = prefixInteger; } + public XmlItem prefixBoolean(Boolean prefixBoolean) { + this.prefixBoolean = prefixBoolean; return this; } @@ -446,15 +518,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getPrefixBoolean() { return prefixBoolean; } + + public void setPrefixBoolean(Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } + public XmlItem prefixArray(List prefixArray) { + this.prefixArray = prefixArray; return this; } @@ -473,15 +552,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixArray() { return prefixArray; } + + public void setPrefixArray(List prefixArray) { this.prefixArray = prefixArray; } + public XmlItem prefixWrappedArray(List prefixWrappedArray) { + this.prefixWrappedArray = prefixWrappedArray; return this; } @@ -500,15 +586,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixWrappedArray() { return prefixWrappedArray; } + + public void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } + public XmlItem namespaceString(String namespaceString) { + this.namespaceString = namespaceString; return this; } @@ -519,15 +612,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getNamespaceString() { return namespaceString; } + + public void setNamespaceString(String namespaceString) { this.namespaceString = namespaceString; } + public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + this.namespaceNumber = namespaceNumber; return this; } @@ -538,15 +638,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getNamespaceNumber() { return namespaceNumber; } + + public void setNamespaceNumber(BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } + public XmlItem namespaceInteger(Integer namespaceInteger) { + this.namespaceInteger = namespaceInteger; return this; } @@ -557,15 +664,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getNamespaceInteger() { return namespaceInteger; } + + public void setNamespaceInteger(Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } + public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + this.namespaceBoolean = namespaceBoolean; return this; } @@ -576,15 +690,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getNamespaceBoolean() { return namespaceBoolean; } + + public void setNamespaceBoolean(Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } + public XmlItem namespaceArray(List namespaceArray) { + this.namespaceArray = namespaceArray; return this; } @@ -603,15 +724,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNamespaceArray() { return namespaceArray; } + + public void setNamespaceArray(List namespaceArray) { this.namespaceArray = namespaceArray; } + public XmlItem namespaceWrappedArray(List namespaceWrappedArray) { + this.namespaceWrappedArray = namespaceWrappedArray; return this; } @@ -630,15 +758,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNamespaceWrappedArray() { return namespaceWrappedArray; } + + public void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } + public XmlItem prefixNsString(String prefixNsString) { + this.prefixNsString = prefixNsString; return this; } @@ -649,15 +784,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPrefixNsString() { return prefixNsString; } + + public void setPrefixNsString(String prefixNsString) { this.prefixNsString = prefixNsString; } + public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + this.prefixNsNumber = prefixNsNumber; return this; } @@ -668,15 +810,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getPrefixNsNumber() { return prefixNsNumber; } + + public void setPrefixNsNumber(BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } + public XmlItem prefixNsInteger(Integer prefixNsInteger) { + this.prefixNsInteger = prefixNsInteger; return this; } @@ -687,15 +836,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getPrefixNsInteger() { return prefixNsInteger; } + + public void setPrefixNsInteger(Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } + public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + this.prefixNsBoolean = prefixNsBoolean; return this; } @@ -706,15 +862,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getPrefixNsBoolean() { return prefixNsBoolean; } + + public void setPrefixNsBoolean(Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } + public XmlItem prefixNsArray(List prefixNsArray) { + this.prefixNsArray = prefixNsArray; return this; } @@ -733,15 +896,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixNsArray() { return prefixNsArray; } + + public void setPrefixNsArray(List prefixNsArray) { this.prefixNsArray = prefixNsArray; } + public XmlItem prefixNsWrappedArray(List prefixNsWrappedArray) { + this.prefixNsWrappedArray = prefixNsWrappedArray; return this; } @@ -760,10 +930,15 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixNsWrappedArray() { return prefixNsWrappedArray; } + + public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/jersey1/docs/UserApi.md b/samples/client/petstore/java/jersey1/docs/UserApi.md index 4154aba4f17..ca9f550c316 100644 --- a/samples/client/petstore/java/jersey1/docs/UserApi.md +++ b/samples/client/petstore/java/jersey1/docs/UserApi.md @@ -101,7 +101,7 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); UserApi apiInstance = new UserApi(defaultClient); - List body = Arrays.asList(null); // List | List of user object + List body = Arrays.asList(); // List | List of user object try { apiInstance.createUsersWithArrayInput(body); } catch (ApiException e) { @@ -163,7 +163,7 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); UserApi apiInstance = new UserApi(defaultClient); - List body = Arrays.asList(null); // List | List of user object + List body = Arrays.asList(); // List | List of user object try { apiInstance.createUsersWithListInput(body); } catch (ApiException e) { diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index 0df18c37e39..80e4d937cb7 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesAnyType extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesAnyType name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesAnyType extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 0d9a6b14532..59c845c40ac 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import java.util.Map; public class AdditionalPropertiesArray extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesArray name(String name) { + this.name = name; return this; } @@ -44,10 +46,15 @@ public class AdditionalPropertiesArray extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 8e85a1f2246..c6c2919f37d 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesBoolean extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesBoolean name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesBoolean extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 0fa49af1afd..29f38bc34c9 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,50 +32,41 @@ import java.util.Map; public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_STRING = "map_string"; - @JsonProperty(JSON_PROPERTY_MAP_STRING) private Map mapString = null; public static final String JSON_PROPERTY_MAP_NUMBER = "map_number"; - @JsonProperty(JSON_PROPERTY_MAP_NUMBER) private Map mapNumber = null; public static final String JSON_PROPERTY_MAP_INTEGER = "map_integer"; - @JsonProperty(JSON_PROPERTY_MAP_INTEGER) private Map mapInteger = null; public static final String JSON_PROPERTY_MAP_BOOLEAN = "map_boolean"; - @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) private Map mapBoolean = null; public static final String JSON_PROPERTY_MAP_ARRAY_INTEGER = "map_array_integer"; - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) private Map> mapArrayInteger = null; public static final String JSON_PROPERTY_MAP_ARRAY_ANYTYPE = "map_array_anytype"; - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) private Map> mapArrayAnytype = null; public static final String JSON_PROPERTY_MAP_MAP_STRING = "map_map_string"; - @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) private Map> mapMapString = null; public static final String JSON_PROPERTY_MAP_MAP_ANYTYPE = "map_map_anytype"; - @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) private Map> mapMapAnytype = null; public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1"; - @JsonProperty(JSON_PROPERTY_ANYTYPE1) - private Object anytype1 = null; + private Object anytype1; public static final String JSON_PROPERTY_ANYTYPE2 = "anytype_2"; - @JsonProperty(JSON_PROPERTY_ANYTYPE2) - private Object anytype2 = null; + private Object anytype2; public static final String JSON_PROPERTY_ANYTYPE3 = "anytype_3"; - @JsonProperty(JSON_PROPERTY_ANYTYPE3) - private Object anytype3 = null; + private Object anytype3; + public AdditionalPropertiesClass mapString(Map mapString) { + this.mapString = mapString; return this; } @@ -93,15 +85,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapString() { return mapString; } + + public void setMapString(Map mapString) { this.mapString = mapString; } + public AdditionalPropertiesClass mapNumber(Map mapNumber) { + this.mapNumber = mapNumber; return this; } @@ -120,15 +119,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapNumber() { return mapNumber; } + + public void setMapNumber(Map mapNumber) { this.mapNumber = mapNumber; } + public AdditionalPropertiesClass mapInteger(Map mapInteger) { + this.mapInteger = mapInteger; return this; } @@ -147,15 +153,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapInteger() { return mapInteger; } + + public void setMapInteger(Map mapInteger) { this.mapInteger = mapInteger; } + public AdditionalPropertiesClass mapBoolean(Map mapBoolean) { + this.mapBoolean = mapBoolean; return this; } @@ -174,15 +187,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapBoolean() { return mapBoolean; } + + public void setMapBoolean(Map mapBoolean) { this.mapBoolean = mapBoolean; } + public AdditionalPropertiesClass mapArrayInteger(Map> mapArrayInteger) { + this.mapArrayInteger = mapArrayInteger; return this; } @@ -201,15 +221,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapArrayInteger() { return mapArrayInteger; } + + public void setMapArrayInteger(Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; } + public AdditionalPropertiesClass mapArrayAnytype(Map> mapArrayAnytype) { + this.mapArrayAnytype = mapArrayAnytype; return this; } @@ -228,15 +255,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapArrayAnytype() { return mapArrayAnytype; } + + public void setMapArrayAnytype(Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; } + public AdditionalPropertiesClass mapMapString(Map> mapMapString) { + this.mapMapString = mapMapString; return this; } @@ -255,15 +289,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapMapString() { return mapMapString; } + + public void setMapMapString(Map> mapMapString) { this.mapMapString = mapMapString; } + public AdditionalPropertiesClass mapMapAnytype(Map> mapMapAnytype) { + this.mapMapAnytype = mapMapAnytype; return this; } @@ -282,15 +323,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapMapAnytype() { return mapMapAnytype; } + + public void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } + public AdditionalPropertiesClass anytype1(Object anytype1) { + this.anytype1 = anytype1; return this; } @@ -301,15 +349,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Object getAnytype1() { return anytype1; } + + public void setAnytype1(Object anytype1) { this.anytype1 = anytype1; } + public AdditionalPropertiesClass anytype2(Object anytype2) { + this.anytype2 = anytype2; return this; } @@ -320,15 +375,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ANYTYPE2) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Object getAnytype2() { return anytype2; } + + public void setAnytype2(Object anytype2) { this.anytype2 = anytype2; } + public AdditionalPropertiesClass anytype3(Object anytype3) { + this.anytype3 = anytype3; return this; } @@ -339,10 +401,15 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ANYTYPE3) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Object getAnytype3() { return anytype3; } + + public void setAnytype3(Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 77388b95d86..3d41e99ac8b 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesInteger extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesInteger name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesInteger extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index f0a3318bca1..799674f1e1b 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import java.util.Map; public class AdditionalPropertiesNumber extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesNumber name(String name) { + this.name = name; return this; } @@ -44,10 +46,15 @@ public class AdditionalPropertiesNumber extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index 19d772f4522..3d5a5c25bfa 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesObject extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesObject name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesObject extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 09e6431c916..d0c854414c3 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesString extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesString name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesString extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Animal.java index a2d34d82f47..1f548074919 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Animal.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; @@ -35,14 +36,14 @@ import io.swagger.annotations.ApiModelProperty; public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; - @JsonProperty(JSON_PROPERTY_CLASS_NAME) private String className; public static final String JSON_PROPERTY_COLOR = "color"; - @JsonProperty(JSON_PROPERTY_COLOR) private String color = "red"; + public Animal className(String className) { + this.className = className; return this; } @@ -52,15 +53,22 @@ public class Animal { * @return className **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getClassName() { return className; } + + public void setClassName(String className) { this.className = className; } + public Animal color(String color) { + this.color = color; return this; } @@ -71,10 +79,15 @@ public class Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_COLOR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getColor() { return color; } + + public void setColor(String color) { this.color = color; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index e1a5139bd25..40fd3259fc7 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import java.util.List; public class ArrayOfArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) private List> arrayArrayNumber = null; + public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + this.arrayArrayNumber = arrayArrayNumber; return this; } @@ -52,10 +54,15 @@ public class ArrayOfArrayOfNumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List> getArrayArrayNumber() { return arrayArrayNumber; } + + public void setArrayArrayNumber(List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 76fc13b8ce8..1b695be1510 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import java.util.List; public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) private List arrayNumber = null; + public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + this.arrayNumber = arrayNumber; return this; } @@ -52,10 +54,15 @@ public class ArrayOfNumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArrayNumber() { return arrayNumber; } + + public void setArrayNumber(List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ArrayTest.java index a0082db628c..0effb728488 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,18 +31,17 @@ import org.openapitools.client.model.ReadOnlyFirst; public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) private List arrayOfString = null; public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) private List> arrayArrayOfInteger = null; public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) private List> arrayArrayOfModel = null; + public ArrayTest arrayOfString(List arrayOfString) { + this.arrayOfString = arrayOfString; return this; } @@ -60,15 +60,22 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArrayOfString() { return arrayOfString; } + + public void setArrayOfString(List arrayOfString) { this.arrayOfString = arrayOfString; } + public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + this.arrayArrayOfInteger = arrayArrayOfInteger; return this; } @@ -87,15 +94,22 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List> getArrayArrayOfInteger() { return arrayArrayOfInteger; } + + public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } + public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + this.arrayArrayOfModel = arrayArrayOfModel; return this; } @@ -114,10 +128,15 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List> getArrayArrayOfModel() { return arrayArrayOfModel; } + + public void setArrayArrayOfModel(List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Capitalization.java index 1d4ebff1533..1db509bc7a9 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Capitalization.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,30 +28,26 @@ import io.swagger.annotations.ApiModelProperty; public class Capitalization { public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) private String smallCamel; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) private String capitalCamel; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) private String smallSnake; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) private String capitalSnake; public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) private String scAETHFlowPoints; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) private String ATT_NAME; + public Capitalization smallCamel(String smallCamel) { + this.smallCamel = smallCamel; return this; } @@ -61,15 +58,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSmallCamel() { return smallCamel; } + + public void setSmallCamel(String smallCamel) { this.smallCamel = smallCamel; } + public Capitalization capitalCamel(String capitalCamel) { + this.capitalCamel = capitalCamel; return this; } @@ -80,15 +84,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getCapitalCamel() { return capitalCamel; } + + public void setCapitalCamel(String capitalCamel) { this.capitalCamel = capitalCamel; } + public Capitalization smallSnake(String smallSnake) { + this.smallSnake = smallSnake; return this; } @@ -99,15 +110,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSmallSnake() { return smallSnake; } + + public void setSmallSnake(String smallSnake) { this.smallSnake = smallSnake; } + public Capitalization capitalSnake(String capitalSnake) { + this.capitalSnake = capitalSnake; return this; } @@ -118,15 +136,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getCapitalSnake() { return capitalSnake; } + + public void setCapitalSnake(String capitalSnake) { this.capitalSnake = capitalSnake; } + public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -137,15 +162,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getScAETHFlowPoints() { return scAETHFlowPoints; } + + public void setScAETHFlowPoints(String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } + public Capitalization ATT_NAME(String ATT_NAME) { + this.ATT_NAME = ATT_NAME; return this; } @@ -156,10 +188,15 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "Name of the pet ") + @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getATTNAME() { return ATT_NAME; } + + public void setATTNAME(String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Cat.java index 11ffa39d982..35f36932606 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Cat.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import org.openapitools.client.model.CatAllOf; public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; - @JsonProperty(JSON_PROPERTY_DECLAWED) private Boolean declawed; + public Cat declawed(Boolean declawed) { + this.declawed = declawed; return this; } @@ -43,10 +45,15 @@ public class Cat extends Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getDeclawed() { return declawed; } + + public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/CatAllOf.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/CatAllOf.java index 1c12b1972cf..f498096d0bc 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/CatAllOf.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/CatAllOf.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty; public class CatAllOf { public static final String JSON_PROPERTY_DECLAWED = "declawed"; - @JsonProperty(JSON_PROPERTY_DECLAWED) private Boolean declawed; + public CatAllOf declawed(Boolean declawed) { + this.declawed = declawed; return this; } @@ -41,10 +43,15 @@ public class CatAllOf { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getDeclawed() { return declawed; } + + public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Category.java index 652d69552d1..3c4385a7132 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Category.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,14 +28,14 @@ import io.swagger.annotations.ApiModelProperty; public class Category { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name = "default-name"; + public Category id(Long id) { + this.id = id; return this; } @@ -45,15 +46,22 @@ public class Category { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Category name(String name) { + this.name = name; return this; } @@ -63,10 +71,15 @@ public class Category { * @return name **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ClassModel.java index 16036936e7a..47ad8fce655 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ClassModel.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,10 +29,11 @@ import io.swagger.annotations.ApiModelProperty; public class ClassModel { public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) private String propertyClass; + public ClassModel propertyClass(String propertyClass) { + this.propertyClass = propertyClass; return this; } @@ -42,10 +44,15 @@ public class ClassModel { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPropertyClass() { return propertyClass; } + + public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Client.java index a5c065a1dd0..d325f1378cb 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Client.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty; public class Client { public static final String JSON_PROPERTY_CLIENT = "client"; - @JsonProperty(JSON_PROPERTY_CLIENT) private String client; + public Client client(String client) { + this.client = client; return this; } @@ -41,10 +43,15 @@ public class Client { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getClient() { return client; } + + public void setClient(String client) { this.client = client; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Dog.java index 7ac3c33202e..cc0acce7049 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Dog.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import org.openapitools.client.model.DogAllOf; public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; - @JsonProperty(JSON_PROPERTY_BREED) private String breed; + public Dog breed(String breed) { + this.breed = breed; return this; } @@ -43,10 +45,15 @@ public class Dog extends Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBreed() { return breed; } + + public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/DogAllOf.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/DogAllOf.java index b79847a96e4..31d4cc3c80e 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/DogAllOf.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/DogAllOf.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty; public class DogAllOf { public static final String JSON_PROPERTY_BREED = "breed"; - @JsonProperty(JSON_PROPERTY_BREED) private String breed; + public DogAllOf breed(String breed) { + this.breed = breed; return this; } @@ -41,10 +43,15 @@ public class DogAllOf { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBreed() { return breed; } + + public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/EnumArrays.java index 93e0acd5746..c60e85ce7d6 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -64,7 +65,6 @@ public class EnumArrays { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) private JustSymbolEnum justSymbol; /** @@ -103,10 +103,11 @@ public class EnumArrays { } public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) private List arrayEnum = null; + public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + this.justSymbol = justSymbol; return this; } @@ -117,15 +118,22 @@ public class EnumArrays { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public JustSymbolEnum getJustSymbol() { return justSymbol; } + + public void setJustSymbol(JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } + public EnumArrays arrayEnum(List arrayEnum) { + this.arrayEnum = arrayEnum; return this; } @@ -144,10 +152,15 @@ public class EnumArrays { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArrayEnum() { return arrayEnum; } + + public void setArrayEnum(List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/EnumTest.java index bde85ff2a09..615f4806ebd 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/EnumTest.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -65,7 +66,6 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; - @JsonProperty(JSON_PROPERTY_ENUM_STRING) private EnumStringEnum enumString; /** @@ -106,7 +106,6 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) private EnumStringRequiredEnum enumStringRequired; /** @@ -145,7 +144,6 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) private EnumIntegerEnum enumInteger; /** @@ -184,14 +182,14 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) private OuterEnum outerEnum; + public EnumTest enumString(EnumStringEnum enumString) { + this.enumString = enumString; return this; } @@ -202,15 +200,22 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public EnumStringEnum getEnumString() { return enumString; } + + public void setEnumString(EnumStringEnum enumString) { this.enumString = enumString; } + public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + this.enumStringRequired = enumStringRequired; return this; } @@ -220,15 +225,22 @@ public class EnumTest { * @return enumStringRequired **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; } + + public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } + public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + this.enumInteger = enumInteger; return this; } @@ -239,15 +251,22 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public EnumIntegerEnum getEnumInteger() { return enumInteger; } + + public void setEnumInteger(EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } + public EnumTest enumNumber(EnumNumberEnum enumNumber) { + this.enumNumber = enumNumber; return this; } @@ -258,15 +277,22 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public EnumNumberEnum getEnumNumber() { return enumNumber; } + + public void setEnumNumber(EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } + public EnumTest outerEnum(OuterEnum outerEnum) { + this.outerEnum = outerEnum; return this; } @@ -277,10 +303,15 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OuterEnum getOuterEnum() { return outerEnum; } + + public void setOuterEnum(OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 1c2623fca90..e2dab74c358 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,14 +30,14 @@ import java.util.List; public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; - @JsonProperty(JSON_PROPERTY_FILE) - private java.io.File file = null; + private java.io.File file; public static final String JSON_PROPERTY_FILES = "files"; - @JsonProperty(JSON_PROPERTY_FILES) private List files = null; + public FileSchemaTestClass file(java.io.File file) { + this.file = file; return this; } @@ -47,15 +48,22 @@ public class FileSchemaTestClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FILE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public java.io.File getFile() { return file; } + + public void setFile(java.io.File file) { this.file = file; } + public FileSchemaTestClass files(List files) { + this.files = files; return this; } @@ -74,10 +82,15 @@ public class FileSchemaTestClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FILES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getFiles() { return files; } + + public void setFiles(List files) { this.files = files; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/FormatTest.java index 509048cd5e9..b6dd912d49e 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/FormatTest.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -32,58 +33,47 @@ import org.threeten.bp.OffsetDateTime; public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; - @JsonProperty(JSON_PROPERTY_INTEGER) private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; - @JsonProperty(JSON_PROPERTY_INT32) private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; - @JsonProperty(JSON_PROPERTY_INT64) private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; - @JsonProperty(JSON_PROPERTY_NUMBER) private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; - @JsonProperty(JSON_PROPERTY_FLOAT) private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; - @JsonProperty(JSON_PROPERTY_DOUBLE) private Double _double; public static final String JSON_PROPERTY_STRING = "string"; - @JsonProperty(JSON_PROPERTY_STRING) private String string; public static final String JSON_PROPERTY_BYTE = "byte"; - @JsonProperty(JSON_PROPERTY_BYTE) private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; - @JsonProperty(JSON_PROPERTY_BINARY) private File binary; public static final String JSON_PROPERTY_DATE = "date"; - @JsonProperty(JSON_PROPERTY_DATE) private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @JsonProperty(JSON_PROPERTY_DATE_TIME) private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; - @JsonProperty(JSON_PROPERTY_UUID) private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; - @JsonProperty(JSON_PROPERTY_PASSWORD) private String password; + public FormatTest integer(Integer integer) { + this.integer = integer; return this; } @@ -96,15 +86,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getInteger() { return integer; } + + public void setInteger(Integer integer) { this.integer = integer; } + public FormatTest int32(Integer int32) { + this.int32 = int32; return this; } @@ -117,15 +114,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INT32) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getInt32() { return int32; } + + public void setInt32(Integer int32) { this.int32 = int32; } + public FormatTest int64(Long int64) { + this.int64 = int64; return this; } @@ -136,15 +140,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INT64) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getInt64() { return int64; } + + public void setInt64(Long int64) { this.int64 = int64; } + public FormatTest number(BigDecimal number) { + this.number = number; return this; } @@ -156,15 +167,22 @@ public class FormatTest { * @return number **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getNumber() { return number; } + + public void setNumber(BigDecimal number) { this.number = number; } + public FormatTest _float(Float _float) { + this._float = _float; return this; } @@ -177,15 +195,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Float getFloat() { return _float; } + + public void setFloat(Float _float) { this._float = _float; } + public FormatTest _double(Double _double) { + this._double = _double; return this; } @@ -198,15 +223,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Double getDouble() { return _double; } + + public void setDouble(Double _double) { this._double = _double; } + public FormatTest string(String string) { + this.string = string; return this; } @@ -217,15 +249,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getString() { return string; } + + public void setString(String string) { this.string = string; } + public FormatTest _byte(byte[] _byte) { + this._byte = _byte; return this; } @@ -235,15 +274,22 @@ public class FormatTest { * @return _byte **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_BYTE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public byte[] getByte() { return _byte; } + + public void setByte(byte[] _byte) { this._byte = _byte; } + public FormatTest binary(File binary) { + this.binary = binary; return this; } @@ -254,15 +300,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BINARY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public File getBinary() { return binary; } + + public void setBinary(File binary) { this.binary = binary; } + public FormatTest date(LocalDate date) { + this.date = date; return this; } @@ -272,15 +325,22 @@ public class FormatTest { * @return date **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_DATE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public LocalDate getDate() { return date; } + + public void setDate(LocalDate date) { this.date = date; } + public FormatTest dateTime(OffsetDateTime dateTime) { + this.dateTime = dateTime; return this; } @@ -291,15 +351,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OffsetDateTime getDateTime() { return dateTime; } + + public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } + public FormatTest uuid(UUID uuid) { + this.uuid = uuid; return this; } @@ -310,15 +377,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public UUID getUuid() { return uuid; } + + public void setUuid(UUID uuid) { this.uuid = uuid; } + public FormatTest password(String password) { + this.password = password; return this; } @@ -328,10 +402,15 @@ public class FormatTest { * @return password **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getPassword() { return password; } + + public void setPassword(String password) { this.password = password; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index ad6b28d9d1e..9c25eddaa1b 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,34 +28,44 @@ import io.swagger.annotations.ApiModelProperty; public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; - @JsonProperty(JSON_PROPERTY_BAR) private String bar; public static final String JSON_PROPERTY_FOO = "foo"; - @JsonProperty(JSON_PROPERTY_FOO) private String foo; + /** * Get bar * @return bar **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BAR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBar() { return bar; } + + + /** * Get foo * @return foo **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FOO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getFoo() { return foo; } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/MapTest.java index 66b41268e51..c6193edaf98 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/MapTest.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,7 +31,6 @@ import java.util.Map; public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) private Map> mapMapOfString = null; /** @@ -69,18 +69,17 @@ public class MapTest { } public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) private Map mapOfEnumString = null; public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) private Map directMap = null; public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) private Map indirectMap = null; + public MapTest mapMapOfString(Map> mapMapOfString) { + this.mapMapOfString = mapMapOfString; return this; } @@ -99,15 +98,22 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapMapOfString() { return mapMapOfString; } + + public void setMapMapOfString(Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } + public MapTest mapOfEnumString(Map mapOfEnumString) { + this.mapOfEnumString = mapOfEnumString; return this; } @@ -126,15 +132,22 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapOfEnumString() { return mapOfEnumString; } + + public void setMapOfEnumString(Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } + public MapTest directMap(Map directMap) { + this.directMap = directMap; return this; } @@ -153,15 +166,22 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getDirectMap() { return directMap; } + + public void setDirectMap(Map directMap) { this.directMap = directMap; } + public MapTest indirectMap(Map indirectMap) { + this.indirectMap = indirectMap; return this; } @@ -180,10 +200,15 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getIndirectMap() { return indirectMap; } + + public void setIndirectMap(Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index b66724ea321..df4761bf27b 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -33,18 +34,17 @@ import org.threeten.bp.OffsetDateTime; public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; - @JsonProperty(JSON_PROPERTY_UUID) private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @JsonProperty(JSON_PROPERTY_DATE_TIME) private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; - @JsonProperty(JSON_PROPERTY_MAP) private Map map = null; + public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + this.uuid = uuid; return this; } @@ -55,15 +55,22 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public UUID getUuid() { return uuid; } + + public void setUuid(UUID uuid) { this.uuid = uuid; } + public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + this.dateTime = dateTime; return this; } @@ -74,15 +81,22 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OffsetDateTime getDateTime() { return dateTime; } + + public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } + public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + this.map = map; return this; } @@ -101,10 +115,15 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMap() { return map; } + + public void setMap(Map map) { this.map = map; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Model200Response.java index d86df5d7eab..0b39d4177e2 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Model200Response.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,14 +29,14 @@ import io.swagger.annotations.ApiModelProperty; public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) private String propertyClass; + public Model200Response name(Integer name) { + this.name = name; return this; } @@ -46,15 +47,22 @@ public class Model200Response { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getName() { return name; } + + public void setName(Integer name) { this.name = name; } + public Model200Response propertyClass(String propertyClass) { + this.propertyClass = propertyClass; return this; } @@ -65,10 +73,15 @@ public class Model200Response { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPropertyClass() { return propertyClass; } + + public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 4c9a7f87b5a..9ca6e78b233 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,18 +28,17 @@ import io.swagger.annotations.ApiModelProperty; public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; - @JsonProperty(JSON_PROPERTY_CODE) private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; - @JsonProperty(JSON_PROPERTY_TYPE) private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; - @JsonProperty(JSON_PROPERTY_MESSAGE) private String message; + public ModelApiResponse code(Integer code) { + this.code = code; return this; } @@ -49,15 +49,22 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getCode() { return code; } + + public void setCode(Integer code) { this.code = code; } + public ModelApiResponse type(String type) { + this.type = type; return this; } @@ -68,15 +75,22 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getType() { return type; } + + public void setType(String type) { this.type = type; } + public ModelApiResponse message(String message) { + this.message = message; return this; } @@ -87,10 +101,15 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ModelReturn.java index 9c9ac21a3fb..300598b5d0b 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,10 +29,11 @@ import io.swagger.annotations.ApiModelProperty; public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; - @JsonProperty(JSON_PROPERTY_RETURN) private Integer _return; + public ModelReturn _return(Integer _return) { + this._return = _return; return this; } @@ -42,10 +44,15 @@ public class ModelReturn { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_RETURN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getReturn() { return _return; } + + public void setReturn(Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Name.java index 47f89c54361..98a92f76c18 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Name.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,22 +29,20 @@ import io.swagger.annotations.ApiModelProperty; public class Name { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; - @JsonProperty(JSON_PROPERTY_PROPERTY) private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; - @JsonProperty(JSON_PROPERTY_123NUMBER) private Integer _123number; + public Name name(Integer name) { + this.name = name; return this; } @@ -53,25 +52,38 @@ public class Name { * @return name **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getName() { return name; } + + public void setName(Integer name) { this.name = name; } + /** * Get snakeCase * @return snakeCase **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getSnakeCase() { return snakeCase; } + + + public Name property(String property) { + this.property = property; return this; } @@ -82,25 +94,36 @@ public class Name { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getProperty() { return property; } + + public void setProperty(String property) { this.property = property; } + /** * Get _123number * @return _123number **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_123NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer get123number() { return _123number; } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/NumberOnly.java index f5331da226e..499144e4016 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,10 +29,11 @@ import java.math.BigDecimal; public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) private BigDecimal justNumber; + public NumberOnly justNumber(BigDecimal justNumber) { + this.justNumber = justNumber; return this; } @@ -42,10 +44,15 @@ public class NumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getJustNumber() { return justNumber; } + + public void setJustNumber(BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Order.java index 0d6bc154e46..fadc836b44a 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Order.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,19 +29,15 @@ import org.threeten.bp.OffsetDateTime; public class Order { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; - @JsonProperty(JSON_PROPERTY_PET_ID) private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; - @JsonProperty(JSON_PROPERTY_QUANTITY) private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; - @JsonProperty(JSON_PROPERTY_SHIP_DATE) private OffsetDateTime shipDate; /** @@ -81,14 +78,14 @@ public class Order { } public static final String JSON_PROPERTY_STATUS = "status"; - @JsonProperty(JSON_PROPERTY_STATUS) private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; - @JsonProperty(JSON_PROPERTY_COMPLETE) private Boolean complete = false; + public Order id(Long id) { + this.id = id; return this; } @@ -99,15 +96,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Order petId(Long petId) { + this.petId = petId; return this; } @@ -118,15 +122,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getPetId() { return petId; } + + public void setPetId(Long petId) { this.petId = petId; } + public Order quantity(Integer quantity) { + this.quantity = quantity; return this; } @@ -137,15 +148,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getQuantity() { return quantity; } + + public void setQuantity(Integer quantity) { this.quantity = quantity; } + public Order shipDate(OffsetDateTime shipDate) { + this.shipDate = shipDate; return this; } @@ -156,15 +174,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OffsetDateTime getShipDate() { return shipDate; } + + public void setShipDate(OffsetDateTime shipDate) { this.shipDate = shipDate; } + public Order status(StatusEnum status) { + this.status = status; return this; } @@ -175,15 +200,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "Order Status") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public StatusEnum getStatus() { return status; } + + public void setStatus(StatusEnum status) { this.status = status; } + public Order complete(Boolean complete) { + this.complete = complete; return this; } @@ -194,10 +226,15 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getComplete() { return complete; } + + public void setComplete(Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/OuterComposite.java index 7193ba2a0c9..dab9d1be3a8 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,18 +29,17 @@ import java.math.BigDecimal; public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; - @JsonProperty(JSON_PROPERTY_MY_NUMBER) private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; - @JsonProperty(JSON_PROPERTY_MY_STRING) private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) private Boolean myBoolean; + public OuterComposite myNumber(BigDecimal myNumber) { + this.myNumber = myNumber; return this; } @@ -50,15 +50,22 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getMyNumber() { return myNumber; } + + public void setMyNumber(BigDecimal myNumber) { this.myNumber = myNumber; } + public OuterComposite myString(String myString) { + this.myString = myString; return this; } @@ -69,15 +76,22 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getMyString() { return myString; } + + public void setMyString(String myString) { this.myString = myString; } + public OuterComposite myBoolean(Boolean myBoolean) { + this.myBoolean = myBoolean; return this; } @@ -88,10 +102,15 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getMyBoolean() { return myBoolean; } + + public void setMyBoolean(Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Pet.java index fb59d996bf6..63f1f3771b2 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Pet.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,23 +32,18 @@ import org.openapitools.client.model.Tag; public class Pet { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; - @JsonProperty(JSON_PROPERTY_CATEGORY) - private Category category = null; + private Category category; public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) private List photoUrls = new ArrayList(); public static final String JSON_PROPERTY_TAGS = "tags"; - @JsonProperty(JSON_PROPERTY_TAGS) private List tags = null; /** @@ -88,10 +84,11 @@ public class Pet { } public static final String JSON_PROPERTY_STATUS = "status"; - @JsonProperty(JSON_PROPERTY_STATUS) private StatusEnum status; + public Pet id(Long id) { + this.id = id; return this; } @@ -102,15 +99,22 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Pet category(Category category) { + this.category = category; return this; } @@ -121,15 +125,22 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Category getCategory() { return category; } + + public void setCategory(Category category) { this.category = category; } + public Pet name(String name) { + this.name = name; return this; } @@ -139,15 +150,22 @@ public class Pet { * @return name **/ @ApiModelProperty(example = "doggie", required = true, value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public Pet photoUrls(List photoUrls) { + this.photoUrls = photoUrls; return this; } @@ -162,15 +180,22 @@ public class Pet { * @return photoUrls **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getPhotoUrls() { return photoUrls; } + + public void setPhotoUrls(List photoUrls) { this.photoUrls = photoUrls; } + public Pet tags(List tags) { + this.tags = tags; return this; } @@ -189,15 +214,22 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getTags() { return tags; } + + public void setTags(List tags) { this.tags = tags; } + public Pet status(StatusEnum status) { + this.status = status; return this; } @@ -208,10 +240,15 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "pet status in the store") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public StatusEnum getStatus() { return status; } + + public void setStatus(StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index b0949b9e2ea..28901097fa4 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,24 +28,30 @@ import io.swagger.annotations.ApiModelProperty; public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; - @JsonProperty(JSON_PROPERTY_BAR) private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; - @JsonProperty(JSON_PROPERTY_BAZ) private String baz; + /** * Get bar * @return bar **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BAR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBar() { return bar; } + + + public ReadOnlyFirst baz(String baz) { + this.baz = baz; return this; } @@ -55,10 +62,15 @@ public class ReadOnlyFirst { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BAZ) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBaz() { return baz; } + + public void setBaz(String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/SpecialModelName.java index a9d03234061..c7820abb0fc 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty; public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) private Long $specialPropertyName; + public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + this.$specialPropertyName = $specialPropertyName; return this; } @@ -41,10 +43,15 @@ public class SpecialModelName { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long get$SpecialPropertyName() { return $specialPropertyName; } + + public void set$SpecialPropertyName(Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Tag.java index 45f17b22cf3..7e20ebf4a31 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Tag.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,14 +28,14 @@ import io.swagger.annotations.ApiModelProperty; public class Tag { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public Tag id(Long id) { + this.id = id; return this; } @@ -45,15 +46,22 @@ public class Tag { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Tag name(String name) { + this.name = name; return this; } @@ -64,10 +72,15 @@ public class Tag { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index 0961f776fb0..37fbaac7e13 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,26 +31,23 @@ import java.util.List; public class TypeHolderDefault { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; - @JsonProperty(JSON_PROPERTY_STRING_ITEM) private String stringItem = "what"; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) private BigDecimal numberItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) private Boolean boolItem = true; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) private List arrayItem = new ArrayList(); + public TypeHolderDefault stringItem(String stringItem) { + this.stringItem = stringItem; return this; } @@ -59,15 +57,22 @@ public class TypeHolderDefault { * @return stringItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getStringItem() { return stringItem; } + + public void setStringItem(String stringItem) { this.stringItem = stringItem; } + public TypeHolderDefault numberItem(BigDecimal numberItem) { + this.numberItem = numberItem; return this; } @@ -77,15 +82,22 @@ public class TypeHolderDefault { * @return numberItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getNumberItem() { return numberItem; } + + public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } + public TypeHolderDefault integerItem(Integer integerItem) { + this.integerItem = integerItem; return this; } @@ -95,15 +107,22 @@ public class TypeHolderDefault { * @return integerItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getIntegerItem() { return integerItem; } + + public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } + public TypeHolderDefault boolItem(Boolean boolItem) { + this.boolItem = boolItem; return this; } @@ -113,15 +132,22 @@ public class TypeHolderDefault { * @return boolItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Boolean getBoolItem() { return boolItem; } + + public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } + public TypeHolderDefault arrayItem(List arrayItem) { + this.arrayItem = arrayItem; return this; } @@ -136,10 +162,15 @@ public class TypeHolderDefault { * @return arrayItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getArrayItem() { return arrayItem; } + + public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/TypeHolderExample.java index 3617c5c16b2..25ef3e65cee 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,26 +31,23 @@ import java.util.List; public class TypeHolderExample { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; - @JsonProperty(JSON_PROPERTY_STRING_ITEM) private String stringItem; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) private BigDecimal numberItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) private Boolean boolItem; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) private List arrayItem = new ArrayList(); + public TypeHolderExample stringItem(String stringItem) { + this.stringItem = stringItem; return this; } @@ -59,15 +57,22 @@ public class TypeHolderExample { * @return stringItem **/ @ApiModelProperty(example = "what", required = true, value = "") + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getStringItem() { return stringItem; } + + public void setStringItem(String stringItem) { this.stringItem = stringItem; } + public TypeHolderExample numberItem(BigDecimal numberItem) { + this.numberItem = numberItem; return this; } @@ -77,15 +82,22 @@ public class TypeHolderExample { * @return numberItem **/ @ApiModelProperty(example = "1.234", required = true, value = "") + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getNumberItem() { return numberItem; } + + public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } + public TypeHolderExample integerItem(Integer integerItem) { + this.integerItem = integerItem; return this; } @@ -95,15 +107,22 @@ public class TypeHolderExample { * @return integerItem **/ @ApiModelProperty(example = "-2", required = true, value = "") + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getIntegerItem() { return integerItem; } + + public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } + public TypeHolderExample boolItem(Boolean boolItem) { + this.boolItem = boolItem; return this; } @@ -113,15 +132,22 @@ public class TypeHolderExample { * @return boolItem **/ @ApiModelProperty(example = "true", required = true, value = "") + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Boolean getBoolItem() { return boolItem; } + + public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } + public TypeHolderExample arrayItem(List arrayItem) { + this.arrayItem = arrayItem; return this; } @@ -136,10 +162,15 @@ public class TypeHolderExample { * @return arrayItem **/ @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getArrayItem() { return arrayItem; } + + public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/User.java index 9ce7869e755..b181265d97d 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/User.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,38 +28,32 @@ import io.swagger.annotations.ApiModelProperty; public class User { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; - @JsonProperty(JSON_PROPERTY_USERNAME) private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; - @JsonProperty(JSON_PROPERTY_FIRST_NAME) private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; - @JsonProperty(JSON_PROPERTY_LAST_NAME) private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; - @JsonProperty(JSON_PROPERTY_EMAIL) private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; - @JsonProperty(JSON_PROPERTY_PASSWORD) private String password; public static final String JSON_PROPERTY_PHONE = "phone"; - @JsonProperty(JSON_PROPERTY_PHONE) private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; - @JsonProperty(JSON_PROPERTY_USER_STATUS) private Integer userStatus; + public User id(Long id) { + this.id = id; return this; } @@ -69,15 +64,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public User username(String username) { + this.username = username; return this; } @@ -88,15 +90,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getUsername() { return username; } + + public void setUsername(String username) { this.username = username; } + public User firstName(String firstName) { + this.firstName = firstName; return this; } @@ -107,15 +116,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getFirstName() { return firstName; } + + public void setFirstName(String firstName) { this.firstName = firstName; } + public User lastName(String lastName) { + this.lastName = lastName; return this; } @@ -126,15 +142,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getLastName() { return lastName; } + + public void setLastName(String lastName) { this.lastName = lastName; } + public User email(String email) { + this.email = email; return this; } @@ -145,15 +168,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getEmail() { return email; } + + public void setEmail(String email) { this.email = email; } + public User password(String password) { + this.password = password; return this; } @@ -164,15 +194,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPassword() { return password; } + + public void setPassword(String password) { this.password = password; } + public User phone(String phone) { + this.phone = phone; return this; } @@ -183,15 +220,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PHONE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPhone() { return phone; } + + public void setPhone(String phone) { this.phone = phone; } + public User userStatus(Integer userStatus) { + this.userStatus = userStatus; return this; } @@ -202,10 +246,15 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "User Status") + @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getUserStatus() { return userStatus; } + + public void setUserStatus(Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/XmlItem.java index 8be5213ca84..69467145249 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/XmlItem.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,122 +31,95 @@ import java.util.List; public class XmlItem { public static final String JSON_PROPERTY_ATTRIBUTE_STRING = "attribute_string"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) private String attributeString; public static final String JSON_PROPERTY_ATTRIBUTE_NUMBER = "attribute_number"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) private BigDecimal attributeNumber; public static final String JSON_PROPERTY_ATTRIBUTE_INTEGER = "attribute_integer"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) private Integer attributeInteger; public static final String JSON_PROPERTY_ATTRIBUTE_BOOLEAN = "attribute_boolean"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) private Boolean attributeBoolean; public static final String JSON_PROPERTY_WRAPPED_ARRAY = "wrapped_array"; - @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) private List wrappedArray = null; public static final String JSON_PROPERTY_NAME_STRING = "name_string"; - @JsonProperty(JSON_PROPERTY_NAME_STRING) private String nameString; public static final String JSON_PROPERTY_NAME_NUMBER = "name_number"; - @JsonProperty(JSON_PROPERTY_NAME_NUMBER) private BigDecimal nameNumber; public static final String JSON_PROPERTY_NAME_INTEGER = "name_integer"; - @JsonProperty(JSON_PROPERTY_NAME_INTEGER) private Integer nameInteger; public static final String JSON_PROPERTY_NAME_BOOLEAN = "name_boolean"; - @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) private Boolean nameBoolean; public static final String JSON_PROPERTY_NAME_ARRAY = "name_array"; - @JsonProperty(JSON_PROPERTY_NAME_ARRAY) private List nameArray = null; public static final String JSON_PROPERTY_NAME_WRAPPED_ARRAY = "name_wrapped_array"; - @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) private List nameWrappedArray = null; public static final String JSON_PROPERTY_PREFIX_STRING = "prefix_string"; - @JsonProperty(JSON_PROPERTY_PREFIX_STRING) private String prefixString; public static final String JSON_PROPERTY_PREFIX_NUMBER = "prefix_number"; - @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) private BigDecimal prefixNumber; public static final String JSON_PROPERTY_PREFIX_INTEGER = "prefix_integer"; - @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) private Integer prefixInteger; public static final String JSON_PROPERTY_PREFIX_BOOLEAN = "prefix_boolean"; - @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) private Boolean prefixBoolean; public static final String JSON_PROPERTY_PREFIX_ARRAY = "prefix_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) private List prefixArray = null; public static final String JSON_PROPERTY_PREFIX_WRAPPED_ARRAY = "prefix_wrapped_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) private List prefixWrappedArray = null; public static final String JSON_PROPERTY_NAMESPACE_STRING = "namespace_string"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) private String namespaceString; public static final String JSON_PROPERTY_NAMESPACE_NUMBER = "namespace_number"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) private BigDecimal namespaceNumber; public static final String JSON_PROPERTY_NAMESPACE_INTEGER = "namespace_integer"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) private Integer namespaceInteger; public static final String JSON_PROPERTY_NAMESPACE_BOOLEAN = "namespace_boolean"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) private Boolean namespaceBoolean; public static final String JSON_PROPERTY_NAMESPACE_ARRAY = "namespace_array"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) private List namespaceArray = null; public static final String JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY = "namespace_wrapped_array"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) private List namespaceWrappedArray = null; public static final String JSON_PROPERTY_PREFIX_NS_STRING = "prefix_ns_string"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) private String prefixNsString; public static final String JSON_PROPERTY_PREFIX_NS_NUMBER = "prefix_ns_number"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) private BigDecimal prefixNsNumber; public static final String JSON_PROPERTY_PREFIX_NS_INTEGER = "prefix_ns_integer"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) private Integer prefixNsInteger; public static final String JSON_PROPERTY_PREFIX_NS_BOOLEAN = "prefix_ns_boolean"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) private Boolean prefixNsBoolean; public static final String JSON_PROPERTY_PREFIX_NS_ARRAY = "prefix_ns_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) private List prefixNsArray = null; public static final String JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY = "prefix_ns_wrapped_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) private List prefixNsWrappedArray = null; + public XmlItem attributeString(String attributeString) { + this.attributeString = attributeString; return this; } @@ -156,15 +130,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getAttributeString() { return attributeString; } + + public void setAttributeString(String attributeString) { this.attributeString = attributeString; } + public XmlItem attributeNumber(BigDecimal attributeNumber) { + this.attributeNumber = attributeNumber; return this; } @@ -175,15 +156,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getAttributeNumber() { return attributeNumber; } + + public void setAttributeNumber(BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } + public XmlItem attributeInteger(Integer attributeInteger) { + this.attributeInteger = attributeInteger; return this; } @@ -194,15 +182,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getAttributeInteger() { return attributeInteger; } + + public void setAttributeInteger(Integer attributeInteger) { this.attributeInteger = attributeInteger; } + public XmlItem attributeBoolean(Boolean attributeBoolean) { + this.attributeBoolean = attributeBoolean; return this; } @@ -213,15 +208,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getAttributeBoolean() { return attributeBoolean; } + + public void setAttributeBoolean(Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } + public XmlItem wrappedArray(List wrappedArray) { + this.wrappedArray = wrappedArray; return this; } @@ -240,15 +242,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getWrappedArray() { return wrappedArray; } + + public void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } + public XmlItem nameString(String nameString) { + this.nameString = nameString; return this; } @@ -259,15 +268,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_NAME_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getNameString() { return nameString; } + + public void setNameString(String nameString) { this.nameString = nameString; } + public XmlItem nameNumber(BigDecimal nameNumber) { + this.nameNumber = nameNumber; return this; } @@ -278,15 +294,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_NAME_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getNameNumber() { return nameNumber; } + + public void setNameNumber(BigDecimal nameNumber) { this.nameNumber = nameNumber; } + public XmlItem nameInteger(Integer nameInteger) { + this.nameInteger = nameInteger; return this; } @@ -297,15 +320,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_NAME_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getNameInteger() { return nameInteger; } + + public void setNameInteger(Integer nameInteger) { this.nameInteger = nameInteger; } + public XmlItem nameBoolean(Boolean nameBoolean) { + this.nameBoolean = nameBoolean; return this; } @@ -316,15 +346,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getNameBoolean() { return nameBoolean; } + + public void setNameBoolean(Boolean nameBoolean) { this.nameBoolean = nameBoolean; } + public XmlItem nameArray(List nameArray) { + this.nameArray = nameArray; return this; } @@ -343,15 +380,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNameArray() { return nameArray; } + + public void setNameArray(List nameArray) { this.nameArray = nameArray; } + public XmlItem nameWrappedArray(List nameWrappedArray) { + this.nameWrappedArray = nameWrappedArray; return this; } @@ -370,15 +414,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNameWrappedArray() { return nameWrappedArray; } + + public void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } + public XmlItem prefixString(String prefixString) { + this.prefixString = prefixString; return this; } @@ -389,15 +440,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPrefixString() { return prefixString; } + + public void setPrefixString(String prefixString) { this.prefixString = prefixString; } + public XmlItem prefixNumber(BigDecimal prefixNumber) { + this.prefixNumber = prefixNumber; return this; } @@ -408,15 +466,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getPrefixNumber() { return prefixNumber; } + + public void setPrefixNumber(BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } + public XmlItem prefixInteger(Integer prefixInteger) { + this.prefixInteger = prefixInteger; return this; } @@ -427,15 +492,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getPrefixInteger() { return prefixInteger; } + + public void setPrefixInteger(Integer prefixInteger) { this.prefixInteger = prefixInteger; } + public XmlItem prefixBoolean(Boolean prefixBoolean) { + this.prefixBoolean = prefixBoolean; return this; } @@ -446,15 +518,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getPrefixBoolean() { return prefixBoolean; } + + public void setPrefixBoolean(Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } + public XmlItem prefixArray(List prefixArray) { + this.prefixArray = prefixArray; return this; } @@ -473,15 +552,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixArray() { return prefixArray; } + + public void setPrefixArray(List prefixArray) { this.prefixArray = prefixArray; } + public XmlItem prefixWrappedArray(List prefixWrappedArray) { + this.prefixWrappedArray = prefixWrappedArray; return this; } @@ -500,15 +586,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixWrappedArray() { return prefixWrappedArray; } + + public void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } + public XmlItem namespaceString(String namespaceString) { + this.namespaceString = namespaceString; return this; } @@ -519,15 +612,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getNamespaceString() { return namespaceString; } + + public void setNamespaceString(String namespaceString) { this.namespaceString = namespaceString; } + public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + this.namespaceNumber = namespaceNumber; return this; } @@ -538,15 +638,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getNamespaceNumber() { return namespaceNumber; } + + public void setNamespaceNumber(BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } + public XmlItem namespaceInteger(Integer namespaceInteger) { + this.namespaceInteger = namespaceInteger; return this; } @@ -557,15 +664,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getNamespaceInteger() { return namespaceInteger; } + + public void setNamespaceInteger(Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } + public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + this.namespaceBoolean = namespaceBoolean; return this; } @@ -576,15 +690,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getNamespaceBoolean() { return namespaceBoolean; } + + public void setNamespaceBoolean(Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } + public XmlItem namespaceArray(List namespaceArray) { + this.namespaceArray = namespaceArray; return this; } @@ -603,15 +724,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNamespaceArray() { return namespaceArray; } + + public void setNamespaceArray(List namespaceArray) { this.namespaceArray = namespaceArray; } + public XmlItem namespaceWrappedArray(List namespaceWrappedArray) { + this.namespaceWrappedArray = namespaceWrappedArray; return this; } @@ -630,15 +758,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNamespaceWrappedArray() { return namespaceWrappedArray; } + + public void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } + public XmlItem prefixNsString(String prefixNsString) { + this.prefixNsString = prefixNsString; return this; } @@ -649,15 +784,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPrefixNsString() { return prefixNsString; } + + public void setPrefixNsString(String prefixNsString) { this.prefixNsString = prefixNsString; } + public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + this.prefixNsNumber = prefixNsNumber; return this; } @@ -668,15 +810,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getPrefixNsNumber() { return prefixNsNumber; } + + public void setPrefixNsNumber(BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } + public XmlItem prefixNsInteger(Integer prefixNsInteger) { + this.prefixNsInteger = prefixNsInteger; return this; } @@ -687,15 +836,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getPrefixNsInteger() { return prefixNsInteger; } + + public void setPrefixNsInteger(Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } + public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + this.prefixNsBoolean = prefixNsBoolean; return this; } @@ -706,15 +862,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getPrefixNsBoolean() { return prefixNsBoolean; } + + public void setPrefixNsBoolean(Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } + public XmlItem prefixNsArray(List prefixNsArray) { + this.prefixNsArray = prefixNsArray; return this; } @@ -733,15 +896,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixNsArray() { return prefixNsArray; } + + public void setPrefixNsArray(List prefixNsArray) { this.prefixNsArray = prefixNsArray; } + public XmlItem prefixNsWrappedArray(List prefixNsWrappedArray) { + this.prefixNsWrappedArray = prefixNsWrappedArray; return this; } @@ -760,10 +930,15 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixNsWrappedArray() { return prefixNsWrappedArray; } + + public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/jersey2-java6/docs/UserApi.md b/samples/client/petstore/java/jersey2-java6/docs/UserApi.md index 4154aba4f17..ca9f550c316 100644 --- a/samples/client/petstore/java/jersey2-java6/docs/UserApi.md +++ b/samples/client/petstore/java/jersey2-java6/docs/UserApi.md @@ -101,7 +101,7 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); UserApi apiInstance = new UserApi(defaultClient); - List body = Arrays.asList(null); // List | List of user object + List body = Arrays.asList(); // List | List of user object try { apiInstance.createUsersWithArrayInput(body); } catch (ApiException e) { @@ -163,7 +163,7 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); UserApi apiInstance = new UserApi(defaultClient); - List body = Arrays.asList(null); // List | List of user object + List body = Arrays.asList(); // List | List of user object try { apiInstance.createUsersWithListInput(body); } catch (ApiException e) { diff --git a/samples/client/petstore/java/jersey2-java6/pom.xml b/samples/client/petstore/java/jersey2-java6/pom.xml index 7f29de9bf66..aca1ee54756 100644 --- a/samples/client/petstore/java/jersey2-java6/pom.xml +++ b/samples/client/petstore/java/jersey2-java6/pom.xml @@ -249,6 +249,11 @@ com.fasterxml.jackson.core jackson-databind ${jackson-databind-version} + + + org.openapitools + jackson-databind-nullable + ${jackson-databind-nullable-version} com.github.joschi.jackson @@ -287,6 +292,7 @@ 3.6 2.9.9 2.9.9 + 0.2.0 2.6.4 1.0.0 4.12 diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/JSON.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/JSON.java index 2df3c2868c4..4e267b9a361 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/JSON.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/JSON.java @@ -3,6 +3,7 @@ package org.openapitools.client; import org.threeten.bp.*; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; +import org.openapitools.jackson.nullable.JsonNullableModule; import com.fasterxml.jackson.datatype.threetenbp.ThreeTenModule; import java.text.DateFormat; @@ -27,6 +28,8 @@ public class JSON implements ContextResolver { module.addDeserializer(OffsetDateTime.class, CustomInstantDeserializer.OFFSET_DATE_TIME); module.addDeserializer(ZonedDateTime.class, CustomInstantDeserializer.ZONED_DATE_TIME); mapper.registerModule(module); + JsonNullableModule jnm = new JsonNullableModule(); + mapper.registerModule(jnm); } /** diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index 0bfee143bd0..e4678e4d476 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -14,6 +14,7 @@ package org.openapitools.client.model; import org.apache.commons.lang3.ObjectUtils; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,10 +29,11 @@ import java.util.Map; public class AdditionalPropertiesAnyType extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesAnyType name(String name) { + this.name = name; return this; } @@ -42,10 +44,15 @@ public class AdditionalPropertiesAnyType extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index f51b8f38d8c..65ca88a1d67 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -14,6 +14,7 @@ package org.openapitools.client.model; import org.apache.commons.lang3.ObjectUtils; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesArray extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesArray name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesArray extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 53ebe2970a8..97edda8cca6 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -14,6 +14,7 @@ package org.openapitools.client.model; import org.apache.commons.lang3.ObjectUtils; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,10 +29,11 @@ import java.util.Map; public class AdditionalPropertiesBoolean extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesBoolean name(String name) { + this.name = name; return this; } @@ -42,10 +44,15 @@ public class AdditionalPropertiesBoolean extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 8edb5612b96..a98234dc2f5 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -14,6 +14,7 @@ package org.openapitools.client.model; import org.apache.commons.lang3.ObjectUtils; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,50 +31,41 @@ import java.util.Map; public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_STRING = "map_string"; - @JsonProperty(JSON_PROPERTY_MAP_STRING) private Map mapString = null; public static final String JSON_PROPERTY_MAP_NUMBER = "map_number"; - @JsonProperty(JSON_PROPERTY_MAP_NUMBER) private Map mapNumber = null; public static final String JSON_PROPERTY_MAP_INTEGER = "map_integer"; - @JsonProperty(JSON_PROPERTY_MAP_INTEGER) private Map mapInteger = null; public static final String JSON_PROPERTY_MAP_BOOLEAN = "map_boolean"; - @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) private Map mapBoolean = null; public static final String JSON_PROPERTY_MAP_ARRAY_INTEGER = "map_array_integer"; - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) private Map> mapArrayInteger = null; public static final String JSON_PROPERTY_MAP_ARRAY_ANYTYPE = "map_array_anytype"; - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) private Map> mapArrayAnytype = null; public static final String JSON_PROPERTY_MAP_MAP_STRING = "map_map_string"; - @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) private Map> mapMapString = null; public static final String JSON_PROPERTY_MAP_MAP_ANYTYPE = "map_map_anytype"; - @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) private Map> mapMapAnytype = null; public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1"; - @JsonProperty(JSON_PROPERTY_ANYTYPE1) - private Object anytype1 = null; + private Object anytype1; public static final String JSON_PROPERTY_ANYTYPE2 = "anytype_2"; - @JsonProperty(JSON_PROPERTY_ANYTYPE2) - private Object anytype2 = null; + private Object anytype2; public static final String JSON_PROPERTY_ANYTYPE3 = "anytype_3"; - @JsonProperty(JSON_PROPERTY_ANYTYPE3) - private Object anytype3 = null; + private Object anytype3; + public AdditionalPropertiesClass mapString(Map mapString) { + this.mapString = mapString; return this; } @@ -92,15 +84,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapString() { return mapString; } + + public void setMapString(Map mapString) { this.mapString = mapString; } + public AdditionalPropertiesClass mapNumber(Map mapNumber) { + this.mapNumber = mapNumber; return this; } @@ -119,15 +118,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapNumber() { return mapNumber; } + + public void setMapNumber(Map mapNumber) { this.mapNumber = mapNumber; } + public AdditionalPropertiesClass mapInteger(Map mapInteger) { + this.mapInteger = mapInteger; return this; } @@ -146,15 +152,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapInteger() { return mapInteger; } + + public void setMapInteger(Map mapInteger) { this.mapInteger = mapInteger; } + public AdditionalPropertiesClass mapBoolean(Map mapBoolean) { + this.mapBoolean = mapBoolean; return this; } @@ -173,15 +186,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapBoolean() { return mapBoolean; } + + public void setMapBoolean(Map mapBoolean) { this.mapBoolean = mapBoolean; } + public AdditionalPropertiesClass mapArrayInteger(Map> mapArrayInteger) { + this.mapArrayInteger = mapArrayInteger; return this; } @@ -200,15 +220,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapArrayInteger() { return mapArrayInteger; } + + public void setMapArrayInteger(Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; } + public AdditionalPropertiesClass mapArrayAnytype(Map> mapArrayAnytype) { + this.mapArrayAnytype = mapArrayAnytype; return this; } @@ -227,15 +254,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapArrayAnytype() { return mapArrayAnytype; } + + public void setMapArrayAnytype(Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; } + public AdditionalPropertiesClass mapMapString(Map> mapMapString) { + this.mapMapString = mapMapString; return this; } @@ -254,15 +288,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapMapString() { return mapMapString; } + + public void setMapMapString(Map> mapMapString) { this.mapMapString = mapMapString; } + public AdditionalPropertiesClass mapMapAnytype(Map> mapMapAnytype) { + this.mapMapAnytype = mapMapAnytype; return this; } @@ -281,15 +322,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapMapAnytype() { return mapMapAnytype; } + + public void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } + public AdditionalPropertiesClass anytype1(Object anytype1) { + this.anytype1 = anytype1; return this; } @@ -300,15 +348,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Object getAnytype1() { return anytype1; } + + public void setAnytype1(Object anytype1) { this.anytype1 = anytype1; } + public AdditionalPropertiesClass anytype2(Object anytype2) { + this.anytype2 = anytype2; return this; } @@ -319,15 +374,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ANYTYPE2) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Object getAnytype2() { return anytype2; } + + public void setAnytype2(Object anytype2) { this.anytype2 = anytype2; } + public AdditionalPropertiesClass anytype3(Object anytype3) { + this.anytype3 = anytype3; return this; } @@ -338,10 +400,15 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ANYTYPE3) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Object getAnytype3() { return anytype3; } + + public void setAnytype3(Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index ccac73ddc49..1ac6b3aabe9 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -14,6 +14,7 @@ package org.openapitools.client.model; import org.apache.commons.lang3.ObjectUtils; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,10 +29,11 @@ import java.util.Map; public class AdditionalPropertiesInteger extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesInteger name(String name) { + this.name = name; return this; } @@ -42,10 +44,15 @@ public class AdditionalPropertiesInteger extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index 4dd532b0cbe..3b0f9f58768 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -14,6 +14,7 @@ package org.openapitools.client.model; import org.apache.commons.lang3.ObjectUtils; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesNumber extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesNumber name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesNumber extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index d195a95e58a..8eed8fc66b6 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -14,6 +14,7 @@ package org.openapitools.client.model; import org.apache.commons.lang3.ObjectUtils; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,10 +29,11 @@ import java.util.Map; public class AdditionalPropertiesObject extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesObject name(String name) { + this.name = name; return this; } @@ -42,10 +44,15 @@ public class AdditionalPropertiesObject extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 018ad67c0c0..49aa1dc5cca 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -14,6 +14,7 @@ package org.openapitools.client.model; import org.apache.commons.lang3.ObjectUtils; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,10 +29,11 @@ import java.util.Map; public class AdditionalPropertiesString extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesString name(String name) { + this.name = name; return this; } @@ -42,10 +44,15 @@ public class AdditionalPropertiesString extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/Animal.java index 71f7e8f78b7..0760407b9af 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/Animal.java @@ -14,6 +14,7 @@ package org.openapitools.client.model; import org.apache.commons.lang3.ObjectUtils; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; @@ -34,14 +35,14 @@ import io.swagger.annotations.ApiModelProperty; public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; - @JsonProperty(JSON_PROPERTY_CLASS_NAME) private String className; public static final String JSON_PROPERTY_COLOR = "color"; - @JsonProperty(JSON_PROPERTY_COLOR) private String color = "red"; + public Animal className(String className) { + this.className = className; return this; } @@ -51,15 +52,22 @@ public class Animal { * @return className **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getClassName() { return className; } + + public void setClassName(String className) { this.className = className; } + public Animal color(String color) { + this.color = color; return this; } @@ -70,10 +78,15 @@ public class Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_COLOR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getColor() { return color; } + + public void setColor(String color) { this.color = color; } diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index e98c5579cb2..f711537386c 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -14,6 +14,7 @@ package org.openapitools.client.model; import org.apache.commons.lang3.ObjectUtils; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.List; public class ArrayOfArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) private List> arrayArrayNumber = null; + public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + this.arrayArrayNumber = arrayArrayNumber; return this; } @@ -51,10 +53,15 @@ public class ArrayOfArrayOfNumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List> getArrayArrayNumber() { return arrayArrayNumber; } + + public void setArrayArrayNumber(List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 16f530b62dc..b61e6c920c7 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -14,6 +14,7 @@ package org.openapitools.client.model; import org.apache.commons.lang3.ObjectUtils; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.List; public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) private List arrayNumber = null; + public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + this.arrayNumber = arrayNumber; return this; } @@ -51,10 +53,15 @@ public class ArrayOfNumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArrayNumber() { return arrayNumber; } + + public void setArrayNumber(List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/ArrayTest.java index 97e080c0e48..f7672a35d7f 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -14,6 +14,7 @@ package org.openapitools.client.model; import org.apache.commons.lang3.ObjectUtils; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,18 +30,17 @@ import org.openapitools.client.model.ReadOnlyFirst; public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) private List arrayOfString = null; public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) private List> arrayArrayOfInteger = null; public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) private List> arrayArrayOfModel = null; + public ArrayTest arrayOfString(List arrayOfString) { + this.arrayOfString = arrayOfString; return this; } @@ -59,15 +59,22 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArrayOfString() { return arrayOfString; } + + public void setArrayOfString(List arrayOfString) { this.arrayOfString = arrayOfString; } + public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + this.arrayArrayOfInteger = arrayArrayOfInteger; return this; } @@ -86,15 +93,22 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List> getArrayArrayOfInteger() { return arrayArrayOfInteger; } + + public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } + public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + this.arrayArrayOfModel = arrayArrayOfModel; return this; } @@ -113,10 +127,15 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List> getArrayArrayOfModel() { return arrayArrayOfModel; } + + public void setArrayArrayOfModel(List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/Capitalization.java index 6aa53f91bd3..58d6e17b2ee 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/Capitalization.java @@ -14,6 +14,7 @@ package org.openapitools.client.model; import org.apache.commons.lang3.ObjectUtils; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -26,30 +27,26 @@ import io.swagger.annotations.ApiModelProperty; public class Capitalization { public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) private String smallCamel; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) private String capitalCamel; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) private String smallSnake; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) private String capitalSnake; public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) private String scAETHFlowPoints; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) private String ATT_NAME; + public Capitalization smallCamel(String smallCamel) { + this.smallCamel = smallCamel; return this; } @@ -60,15 +57,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSmallCamel() { return smallCamel; } + + public void setSmallCamel(String smallCamel) { this.smallCamel = smallCamel; } + public Capitalization capitalCamel(String capitalCamel) { + this.capitalCamel = capitalCamel; return this; } @@ -79,15 +83,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getCapitalCamel() { return capitalCamel; } + + public void setCapitalCamel(String capitalCamel) { this.capitalCamel = capitalCamel; } + public Capitalization smallSnake(String smallSnake) { + this.smallSnake = smallSnake; return this; } @@ -98,15 +109,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSmallSnake() { return smallSnake; } + + public void setSmallSnake(String smallSnake) { this.smallSnake = smallSnake; } + public Capitalization capitalSnake(String capitalSnake) { + this.capitalSnake = capitalSnake; return this; } @@ -117,15 +135,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getCapitalSnake() { return capitalSnake; } + + public void setCapitalSnake(String capitalSnake) { this.capitalSnake = capitalSnake; } + public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -136,15 +161,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getScAETHFlowPoints() { return scAETHFlowPoints; } + + public void setScAETHFlowPoints(String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } + public Capitalization ATT_NAME(String ATT_NAME) { + this.ATT_NAME = ATT_NAME; return this; } @@ -155,10 +187,15 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "Name of the pet ") + @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getATTNAME() { return ATT_NAME; } + + public void setATTNAME(String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/Cat.java index 2569c2291e7..24152b4c6cd 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/Cat.java @@ -14,6 +14,7 @@ package org.openapitools.client.model; import org.apache.commons.lang3.ObjectUtils; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,10 +29,11 @@ import org.openapitools.client.model.CatAllOf; public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; - @JsonProperty(JSON_PROPERTY_DECLAWED) private Boolean declawed; + public Cat declawed(Boolean declawed) { + this.declawed = declawed; return this; } @@ -42,10 +44,15 @@ public class Cat extends Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean isDeclawed() { return declawed; } + + public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/CatAllOf.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/CatAllOf.java index 756bf15de7a..56492767afb 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/CatAllOf.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/CatAllOf.java @@ -14,6 +14,7 @@ package org.openapitools.client.model; import org.apache.commons.lang3.ObjectUtils; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -26,10 +27,11 @@ import io.swagger.annotations.ApiModelProperty; public class CatAllOf { public static final String JSON_PROPERTY_DECLAWED = "declawed"; - @JsonProperty(JSON_PROPERTY_DECLAWED) private Boolean declawed; + public CatAllOf declawed(Boolean declawed) { + this.declawed = declawed; return this; } @@ -40,10 +42,15 @@ public class CatAllOf { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean isDeclawed() { return declawed; } + + public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/Category.java index f03394e6706..74f9e708108 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/Category.java @@ -14,6 +14,7 @@ package org.openapitools.client.model; import org.apache.commons.lang3.ObjectUtils; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -26,14 +27,14 @@ import io.swagger.annotations.ApiModelProperty; public class Category { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name = "default-name"; + public Category id(Long id) { + this.id = id; return this; } @@ -44,15 +45,22 @@ public class Category { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Category name(String name) { + this.name = name; return this; } @@ -62,10 +70,15 @@ public class Category { * @return name **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/ClassModel.java index 44306019f16..b78609f22b4 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/ClassModel.java @@ -14,6 +14,7 @@ package org.openapitools.client.model; import org.apache.commons.lang3.ObjectUtils; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty; public class ClassModel { public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) private String propertyClass; + public ClassModel propertyClass(String propertyClass) { + this.propertyClass = propertyClass; return this; } @@ -41,10 +43,15 @@ public class ClassModel { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPropertyClass() { return propertyClass; } + + public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/Client.java index 7458e3c2e09..82cddbdb837 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/Client.java @@ -14,6 +14,7 @@ package org.openapitools.client.model; import org.apache.commons.lang3.ObjectUtils; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -26,10 +27,11 @@ import io.swagger.annotations.ApiModelProperty; public class Client { public static final String JSON_PROPERTY_CLIENT = "client"; - @JsonProperty(JSON_PROPERTY_CLIENT) private String client; + public Client client(String client) { + this.client = client; return this; } @@ -40,10 +42,15 @@ public class Client { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getClient() { return client; } + + public void setClient(String client) { this.client = client; } diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/Dog.java index 4c285963ab5..08b3ca6ed28 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/Dog.java @@ -14,6 +14,7 @@ package org.openapitools.client.model; import org.apache.commons.lang3.ObjectUtils; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,10 +29,11 @@ import org.openapitools.client.model.DogAllOf; public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; - @JsonProperty(JSON_PROPERTY_BREED) private String breed; + public Dog breed(String breed) { + this.breed = breed; return this; } @@ -42,10 +44,15 @@ public class Dog extends Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBreed() { return breed; } + + public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/DogAllOf.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/DogAllOf.java index 455ed741f88..d96fc475f01 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/DogAllOf.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/DogAllOf.java @@ -14,6 +14,7 @@ package org.openapitools.client.model; import org.apache.commons.lang3.ObjectUtils; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -26,10 +27,11 @@ import io.swagger.annotations.ApiModelProperty; public class DogAllOf { public static final String JSON_PROPERTY_BREED = "breed"; - @JsonProperty(JSON_PROPERTY_BREED) private String breed; + public DogAllOf breed(String breed) { + this.breed = breed; return this; } @@ -40,10 +42,15 @@ public class DogAllOf { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBreed() { return breed; } + + public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/EnumArrays.java index 0cebb61969a..f4ca5c1acc9 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -14,6 +14,7 @@ package org.openapitools.client.model; import org.apache.commons.lang3.ObjectUtils; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -63,7 +64,6 @@ public class EnumArrays { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) private JustSymbolEnum justSymbol; /** @@ -102,10 +102,11 @@ public class EnumArrays { } public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) private List arrayEnum = null; + public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + this.justSymbol = justSymbol; return this; } @@ -116,15 +117,22 @@ public class EnumArrays { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public JustSymbolEnum getJustSymbol() { return justSymbol; } + + public void setJustSymbol(JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } + public EnumArrays arrayEnum(List arrayEnum) { + this.arrayEnum = arrayEnum; return this; } @@ -143,10 +151,15 @@ public class EnumArrays { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArrayEnum() { return arrayEnum; } + + public void setArrayEnum(List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/EnumTest.java index 5269ae8dc17..adf39cbfbf1 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/EnumTest.java @@ -14,6 +14,7 @@ package org.openapitools.client.model; import org.apache.commons.lang3.ObjectUtils; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -64,7 +65,6 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; - @JsonProperty(JSON_PROPERTY_ENUM_STRING) private EnumStringEnum enumString; /** @@ -105,7 +105,6 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) private EnumStringRequiredEnum enumStringRequired; /** @@ -144,7 +143,6 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) private EnumIntegerEnum enumInteger; /** @@ -183,14 +181,14 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) private OuterEnum outerEnum; + public EnumTest enumString(EnumStringEnum enumString) { + this.enumString = enumString; return this; } @@ -201,15 +199,22 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public EnumStringEnum getEnumString() { return enumString; } + + public void setEnumString(EnumStringEnum enumString) { this.enumString = enumString; } + public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + this.enumStringRequired = enumStringRequired; return this; } @@ -219,15 +224,22 @@ public class EnumTest { * @return enumStringRequired **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; } + + public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } + public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + this.enumInteger = enumInteger; return this; } @@ -238,15 +250,22 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public EnumIntegerEnum getEnumInteger() { return enumInteger; } + + public void setEnumInteger(EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } + public EnumTest enumNumber(EnumNumberEnum enumNumber) { + this.enumNumber = enumNumber; return this; } @@ -257,15 +276,22 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public EnumNumberEnum getEnumNumber() { return enumNumber; } + + public void setEnumNumber(EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } + public EnumTest outerEnum(OuterEnum outerEnum) { + this.outerEnum = outerEnum; return this; } @@ -276,10 +302,15 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OuterEnum getOuterEnum() { return outerEnum; } + + public void setOuterEnum(OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 60e77ed22cd..c3b162451d6 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -14,6 +14,7 @@ package org.openapitools.client.model; import org.apache.commons.lang3.ObjectUtils; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,14 +29,14 @@ import java.util.List; public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; - @JsonProperty(JSON_PROPERTY_FILE) - private java.io.File file = null; + private java.io.File file; public static final String JSON_PROPERTY_FILES = "files"; - @JsonProperty(JSON_PROPERTY_FILES) private List files = null; + public FileSchemaTestClass file(java.io.File file) { + this.file = file; return this; } @@ -46,15 +47,22 @@ public class FileSchemaTestClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FILE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public java.io.File getFile() { return file; } + + public void setFile(java.io.File file) { this.file = file; } + public FileSchemaTestClass files(List files) { + this.files = files; return this; } @@ -73,10 +81,15 @@ public class FileSchemaTestClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FILES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getFiles() { return files; } + + public void setFiles(List files) { this.files = files; } diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/FormatTest.java index d8de4d3ee26..d91035f9a67 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/FormatTest.java @@ -14,6 +14,7 @@ package org.openapitools.client.model; import org.apache.commons.lang3.ObjectUtils; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,58 +32,47 @@ import org.threeten.bp.OffsetDateTime; public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; - @JsonProperty(JSON_PROPERTY_INTEGER) private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; - @JsonProperty(JSON_PROPERTY_INT32) private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; - @JsonProperty(JSON_PROPERTY_INT64) private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; - @JsonProperty(JSON_PROPERTY_NUMBER) private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; - @JsonProperty(JSON_PROPERTY_FLOAT) private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; - @JsonProperty(JSON_PROPERTY_DOUBLE) private Double _double; public static final String JSON_PROPERTY_STRING = "string"; - @JsonProperty(JSON_PROPERTY_STRING) private String string; public static final String JSON_PROPERTY_BYTE = "byte"; - @JsonProperty(JSON_PROPERTY_BYTE) private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; - @JsonProperty(JSON_PROPERTY_BINARY) private File binary; public static final String JSON_PROPERTY_DATE = "date"; - @JsonProperty(JSON_PROPERTY_DATE) private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @JsonProperty(JSON_PROPERTY_DATE_TIME) private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; - @JsonProperty(JSON_PROPERTY_UUID) private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; - @JsonProperty(JSON_PROPERTY_PASSWORD) private String password; + public FormatTest integer(Integer integer) { + this.integer = integer; return this; } @@ -95,15 +85,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getInteger() { return integer; } + + public void setInteger(Integer integer) { this.integer = integer; } + public FormatTest int32(Integer int32) { + this.int32 = int32; return this; } @@ -116,15 +113,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INT32) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getInt32() { return int32; } + + public void setInt32(Integer int32) { this.int32 = int32; } + public FormatTest int64(Long int64) { + this.int64 = int64; return this; } @@ -135,15 +139,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INT64) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getInt64() { return int64; } + + public void setInt64(Long int64) { this.int64 = int64; } + public FormatTest number(BigDecimal number) { + this.number = number; return this; } @@ -155,15 +166,22 @@ public class FormatTest { * @return number **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getNumber() { return number; } + + public void setNumber(BigDecimal number) { this.number = number; } + public FormatTest _float(Float _float) { + this._float = _float; return this; } @@ -176,15 +194,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Float getFloat() { return _float; } + + public void setFloat(Float _float) { this._float = _float; } + public FormatTest _double(Double _double) { + this._double = _double; return this; } @@ -197,15 +222,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Double getDouble() { return _double; } + + public void setDouble(Double _double) { this._double = _double; } + public FormatTest string(String string) { + this.string = string; return this; } @@ -216,15 +248,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getString() { return string; } + + public void setString(String string) { this.string = string; } + public FormatTest _byte(byte[] _byte) { + this._byte = _byte; return this; } @@ -234,15 +273,22 @@ public class FormatTest { * @return _byte **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_BYTE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public byte[] getByte() { return _byte; } + + public void setByte(byte[] _byte) { this._byte = _byte; } + public FormatTest binary(File binary) { + this.binary = binary; return this; } @@ -253,15 +299,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BINARY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public File getBinary() { return binary; } + + public void setBinary(File binary) { this.binary = binary; } + public FormatTest date(LocalDate date) { + this.date = date; return this; } @@ -271,15 +324,22 @@ public class FormatTest { * @return date **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_DATE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public LocalDate getDate() { return date; } + + public void setDate(LocalDate date) { this.date = date; } + public FormatTest dateTime(OffsetDateTime dateTime) { + this.dateTime = dateTime; return this; } @@ -290,15 +350,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OffsetDateTime getDateTime() { return dateTime; } + + public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } + public FormatTest uuid(UUID uuid) { + this.uuid = uuid; return this; } @@ -309,15 +376,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public UUID getUuid() { return uuid; } + + public void setUuid(UUID uuid) { this.uuid = uuid; } + public FormatTest password(String password) { + this.password = password; return this; } @@ -327,10 +401,15 @@ public class FormatTest { * @return password **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getPassword() { return password; } + + public void setPassword(String password) { this.password = password; } diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index fb81f00f744..2348ee958fa 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -14,6 +14,7 @@ package org.openapitools.client.model; import org.apache.commons.lang3.ObjectUtils; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -26,34 +27,44 @@ import io.swagger.annotations.ApiModelProperty; public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; - @JsonProperty(JSON_PROPERTY_BAR) private String bar; public static final String JSON_PROPERTY_FOO = "foo"; - @JsonProperty(JSON_PROPERTY_FOO) private String foo; + /** * Get bar * @return bar **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BAR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBar() { return bar; } + + + /** * Get foo * @return foo **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FOO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getFoo() { return foo; } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/MapTest.java index 88b5e348ba3..6da0abd319f 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/MapTest.java @@ -14,6 +14,7 @@ package org.openapitools.client.model; import org.apache.commons.lang3.ObjectUtils; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,7 +30,6 @@ import java.util.Map; public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) private Map> mapMapOfString = null; /** @@ -68,18 +68,17 @@ public class MapTest { } public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) private Map mapOfEnumString = null; public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) private Map directMap = null; public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) private Map indirectMap = null; + public MapTest mapMapOfString(Map> mapMapOfString) { + this.mapMapOfString = mapMapOfString; return this; } @@ -98,15 +97,22 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapMapOfString() { return mapMapOfString; } + + public void setMapMapOfString(Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } + public MapTest mapOfEnumString(Map mapOfEnumString) { + this.mapOfEnumString = mapOfEnumString; return this; } @@ -125,15 +131,22 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapOfEnumString() { return mapOfEnumString; } + + public void setMapOfEnumString(Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } + public MapTest directMap(Map directMap) { + this.directMap = directMap; return this; } @@ -152,15 +165,22 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getDirectMap() { return directMap; } + + public void setDirectMap(Map directMap) { this.directMap = directMap; } + public MapTest indirectMap(Map indirectMap) { + this.indirectMap = indirectMap; return this; } @@ -179,10 +199,15 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getIndirectMap() { return indirectMap; } + + public void setIndirectMap(Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 453de4a4da1..ec7ff8c137a 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -14,6 +14,7 @@ package org.openapitools.client.model; import org.apache.commons.lang3.ObjectUtils; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -32,18 +33,17 @@ import org.threeten.bp.OffsetDateTime; public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; - @JsonProperty(JSON_PROPERTY_UUID) private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @JsonProperty(JSON_PROPERTY_DATE_TIME) private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; - @JsonProperty(JSON_PROPERTY_MAP) private Map map = null; + public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + this.uuid = uuid; return this; } @@ -54,15 +54,22 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public UUID getUuid() { return uuid; } + + public void setUuid(UUID uuid) { this.uuid = uuid; } + public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + this.dateTime = dateTime; return this; } @@ -73,15 +80,22 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OffsetDateTime getDateTime() { return dateTime; } + + public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } + public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + this.map = map; return this; } @@ -100,10 +114,15 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMap() { return map; } + + public void setMap(Map map) { this.map = map; } diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/Model200Response.java index 7164ae194c2..079bb4776f8 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/Model200Response.java @@ -14,6 +14,7 @@ package org.openapitools.client.model; import org.apache.commons.lang3.ObjectUtils; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,14 +28,14 @@ import io.swagger.annotations.ApiModelProperty; public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) private String propertyClass; + public Model200Response name(Integer name) { + this.name = name; return this; } @@ -45,15 +46,22 @@ public class Model200Response { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getName() { return name; } + + public void setName(Integer name) { this.name = name; } + public Model200Response propertyClass(String propertyClass) { + this.propertyClass = propertyClass; return this; } @@ -64,10 +72,15 @@ public class Model200Response { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPropertyClass() { return propertyClass; } + + public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 470ca0c2017..ae42b268f49 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -14,6 +14,7 @@ package org.openapitools.client.model; import org.apache.commons.lang3.ObjectUtils; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -26,18 +27,17 @@ import io.swagger.annotations.ApiModelProperty; public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; - @JsonProperty(JSON_PROPERTY_CODE) private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; - @JsonProperty(JSON_PROPERTY_TYPE) private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; - @JsonProperty(JSON_PROPERTY_MESSAGE) private String message; + public ModelApiResponse code(Integer code) { + this.code = code; return this; } @@ -48,15 +48,22 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getCode() { return code; } + + public void setCode(Integer code) { this.code = code; } + public ModelApiResponse type(String type) { + this.type = type; return this; } @@ -67,15 +74,22 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getType() { return type; } + + public void setType(String type) { this.type = type; } + public ModelApiResponse message(String message) { + this.message = message; return this; } @@ -86,10 +100,15 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/ModelReturn.java index fe8184f4b8e..fd4fdd7b815 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -14,6 +14,7 @@ package org.openapitools.client.model; import org.apache.commons.lang3.ObjectUtils; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty; public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; - @JsonProperty(JSON_PROPERTY_RETURN) private Integer _return; + public ModelReturn _return(Integer _return) { + this._return = _return; return this; } @@ -41,10 +43,15 @@ public class ModelReturn { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_RETURN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getReturn() { return _return; } + + public void setReturn(Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/Name.java index 1eeadbba273..af3f1c9f2a9 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/Name.java @@ -14,6 +14,7 @@ package org.openapitools.client.model; import org.apache.commons.lang3.ObjectUtils; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,22 +28,20 @@ import io.swagger.annotations.ApiModelProperty; public class Name { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; - @JsonProperty(JSON_PROPERTY_PROPERTY) private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; - @JsonProperty(JSON_PROPERTY_123NUMBER) private Integer _123number; + public Name name(Integer name) { + this.name = name; return this; } @@ -52,25 +51,38 @@ public class Name { * @return name **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getName() { return name; } + + public void setName(Integer name) { this.name = name; } + /** * Get snakeCase * @return snakeCase **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getSnakeCase() { return snakeCase; } + + + public Name property(String property) { + this.property = property; return this; } @@ -81,25 +93,36 @@ public class Name { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getProperty() { return property; } + + public void setProperty(String property) { this.property = property; } + /** * Get _123number * @return _123number **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_123NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer get123number() { return _123number; } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/NumberOnly.java index c6540f9f4db..5dc76e0e994 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -14,6 +14,7 @@ package org.openapitools.client.model; import org.apache.commons.lang3.ObjectUtils; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,10 +28,11 @@ import java.math.BigDecimal; public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) private BigDecimal justNumber; + public NumberOnly justNumber(BigDecimal justNumber) { + this.justNumber = justNumber; return this; } @@ -41,10 +43,15 @@ public class NumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getJustNumber() { return justNumber; } + + public void setJustNumber(BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/Order.java index d8976f540b1..e843b3b0a35 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/Order.java @@ -14,6 +14,7 @@ package org.openapitools.client.model; import org.apache.commons.lang3.ObjectUtils; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,19 +28,15 @@ import org.threeten.bp.OffsetDateTime; public class Order { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; - @JsonProperty(JSON_PROPERTY_PET_ID) private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; - @JsonProperty(JSON_PROPERTY_QUANTITY) private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; - @JsonProperty(JSON_PROPERTY_SHIP_DATE) private OffsetDateTime shipDate; /** @@ -80,14 +77,14 @@ public class Order { } public static final String JSON_PROPERTY_STATUS = "status"; - @JsonProperty(JSON_PROPERTY_STATUS) private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; - @JsonProperty(JSON_PROPERTY_COMPLETE) private Boolean complete = false; + public Order id(Long id) { + this.id = id; return this; } @@ -98,15 +95,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Order petId(Long petId) { + this.petId = petId; return this; } @@ -117,15 +121,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getPetId() { return petId; } + + public void setPetId(Long petId) { this.petId = petId; } + public Order quantity(Integer quantity) { + this.quantity = quantity; return this; } @@ -136,15 +147,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getQuantity() { return quantity; } + + public void setQuantity(Integer quantity) { this.quantity = quantity; } + public Order shipDate(OffsetDateTime shipDate) { + this.shipDate = shipDate; return this; } @@ -155,15 +173,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OffsetDateTime getShipDate() { return shipDate; } + + public void setShipDate(OffsetDateTime shipDate) { this.shipDate = shipDate; } + public Order status(StatusEnum status) { + this.status = status; return this; } @@ -174,15 +199,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "Order Status") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public StatusEnum getStatus() { return status; } + + public void setStatus(StatusEnum status) { this.status = status; } + public Order complete(Boolean complete) { + this.complete = complete; return this; } @@ -193,10 +225,15 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean isComplete() { return complete; } + + public void setComplete(Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/OuterComposite.java index 34bb1dd5d25..3ac9baeb792 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -14,6 +14,7 @@ package org.openapitools.client.model; import org.apache.commons.lang3.ObjectUtils; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,18 +28,17 @@ import java.math.BigDecimal; public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; - @JsonProperty(JSON_PROPERTY_MY_NUMBER) private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; - @JsonProperty(JSON_PROPERTY_MY_STRING) private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) private Boolean myBoolean; + public OuterComposite myNumber(BigDecimal myNumber) { + this.myNumber = myNumber; return this; } @@ -49,15 +49,22 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getMyNumber() { return myNumber; } + + public void setMyNumber(BigDecimal myNumber) { this.myNumber = myNumber; } + public OuterComposite myString(String myString) { + this.myString = myString; return this; } @@ -68,15 +75,22 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getMyString() { return myString; } + + public void setMyString(String myString) { this.myString = myString; } + public OuterComposite myBoolean(Boolean myBoolean) { + this.myBoolean = myBoolean; return this; } @@ -87,10 +101,15 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean isMyBoolean() { return myBoolean; } + + public void setMyBoolean(Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/Pet.java index a2c708228e0..be2ce259841 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/Pet.java @@ -14,6 +14,7 @@ package org.openapitools.client.model; import org.apache.commons.lang3.ObjectUtils; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,23 +31,18 @@ import org.openapitools.client.model.Tag; public class Pet { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; - @JsonProperty(JSON_PROPERTY_CATEGORY) - private Category category = null; + private Category category; public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) private List photoUrls = new ArrayList(); public static final String JSON_PROPERTY_TAGS = "tags"; - @JsonProperty(JSON_PROPERTY_TAGS) private List tags = null; /** @@ -87,10 +83,11 @@ public class Pet { } public static final String JSON_PROPERTY_STATUS = "status"; - @JsonProperty(JSON_PROPERTY_STATUS) private StatusEnum status; + public Pet id(Long id) { + this.id = id; return this; } @@ -101,15 +98,22 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Pet category(Category category) { + this.category = category; return this; } @@ -120,15 +124,22 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Category getCategory() { return category; } + + public void setCategory(Category category) { this.category = category; } + public Pet name(String name) { + this.name = name; return this; } @@ -138,15 +149,22 @@ public class Pet { * @return name **/ @ApiModelProperty(example = "doggie", required = true, value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public Pet photoUrls(List photoUrls) { + this.photoUrls = photoUrls; return this; } @@ -161,15 +179,22 @@ public class Pet { * @return photoUrls **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getPhotoUrls() { return photoUrls; } + + public void setPhotoUrls(List photoUrls) { this.photoUrls = photoUrls; } + public Pet tags(List tags) { + this.tags = tags; return this; } @@ -188,15 +213,22 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getTags() { return tags; } + + public void setTags(List tags) { this.tags = tags; } + public Pet status(StatusEnum status) { + this.status = status; return this; } @@ -207,10 +239,15 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "pet status in the store") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public StatusEnum getStatus() { return status; } + + public void setStatus(StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 24177a70be5..cb042db6f11 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -14,6 +14,7 @@ package org.openapitools.client.model; import org.apache.commons.lang3.ObjectUtils; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -26,24 +27,30 @@ import io.swagger.annotations.ApiModelProperty; public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; - @JsonProperty(JSON_PROPERTY_BAR) private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; - @JsonProperty(JSON_PROPERTY_BAZ) private String baz; + /** * Get bar * @return bar **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BAR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBar() { return bar; } + + + public ReadOnlyFirst baz(String baz) { + this.baz = baz; return this; } @@ -54,10 +61,15 @@ public class ReadOnlyFirst { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BAZ) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBaz() { return baz; } + + public void setBaz(String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/SpecialModelName.java index 30d01ba0b89..d4fec23f930 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -14,6 +14,7 @@ package org.openapitools.client.model; import org.apache.commons.lang3.ObjectUtils; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -26,10 +27,11 @@ import io.swagger.annotations.ApiModelProperty; public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) private Long $specialPropertyName; + public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + this.$specialPropertyName = $specialPropertyName; return this; } @@ -40,10 +42,15 @@ public class SpecialModelName { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long get$SpecialPropertyName() { return $specialPropertyName; } + + public void set$SpecialPropertyName(Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/Tag.java index 2fe5dce3585..837d121427f 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/Tag.java @@ -14,6 +14,7 @@ package org.openapitools.client.model; import org.apache.commons.lang3.ObjectUtils; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -26,14 +27,14 @@ import io.swagger.annotations.ApiModelProperty; public class Tag { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public Tag id(Long id) { + this.id = id; return this; } @@ -44,15 +45,22 @@ public class Tag { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Tag name(String name) { + this.name = name; return this; } @@ -63,10 +71,15 @@ public class Tag { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index 4160934f735..be639a1d839 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -14,6 +14,7 @@ package org.openapitools.client.model; import org.apache.commons.lang3.ObjectUtils; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,26 +30,23 @@ import java.util.List; public class TypeHolderDefault { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; - @JsonProperty(JSON_PROPERTY_STRING_ITEM) private String stringItem = "what"; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) private BigDecimal numberItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) private Boolean boolItem = true; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) private List arrayItem = new ArrayList(); + public TypeHolderDefault stringItem(String stringItem) { + this.stringItem = stringItem; return this; } @@ -58,15 +56,22 @@ public class TypeHolderDefault { * @return stringItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getStringItem() { return stringItem; } + + public void setStringItem(String stringItem) { this.stringItem = stringItem; } + public TypeHolderDefault numberItem(BigDecimal numberItem) { + this.numberItem = numberItem; return this; } @@ -76,15 +81,22 @@ public class TypeHolderDefault { * @return numberItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getNumberItem() { return numberItem; } + + public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } + public TypeHolderDefault integerItem(Integer integerItem) { + this.integerItem = integerItem; return this; } @@ -94,15 +106,22 @@ public class TypeHolderDefault { * @return integerItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getIntegerItem() { return integerItem; } + + public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } + public TypeHolderDefault boolItem(Boolean boolItem) { + this.boolItem = boolItem; return this; } @@ -112,15 +131,22 @@ public class TypeHolderDefault { * @return boolItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Boolean isBoolItem() { return boolItem; } + + public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } + public TypeHolderDefault arrayItem(List arrayItem) { + this.arrayItem = arrayItem; return this; } @@ -135,10 +161,15 @@ public class TypeHolderDefault { * @return arrayItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getArrayItem() { return arrayItem; } + + public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/TypeHolderExample.java index 4b517c141b0..1bb12d77a04 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -14,6 +14,7 @@ package org.openapitools.client.model; import org.apache.commons.lang3.ObjectUtils; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,26 +30,23 @@ import java.util.List; public class TypeHolderExample { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; - @JsonProperty(JSON_PROPERTY_STRING_ITEM) private String stringItem; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) private BigDecimal numberItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) private Boolean boolItem; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) private List arrayItem = new ArrayList(); + public TypeHolderExample stringItem(String stringItem) { + this.stringItem = stringItem; return this; } @@ -58,15 +56,22 @@ public class TypeHolderExample { * @return stringItem **/ @ApiModelProperty(example = "what", required = true, value = "") + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getStringItem() { return stringItem; } + + public void setStringItem(String stringItem) { this.stringItem = stringItem; } + public TypeHolderExample numberItem(BigDecimal numberItem) { + this.numberItem = numberItem; return this; } @@ -76,15 +81,22 @@ public class TypeHolderExample { * @return numberItem **/ @ApiModelProperty(example = "1.234", required = true, value = "") + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getNumberItem() { return numberItem; } + + public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } + public TypeHolderExample integerItem(Integer integerItem) { + this.integerItem = integerItem; return this; } @@ -94,15 +106,22 @@ public class TypeHolderExample { * @return integerItem **/ @ApiModelProperty(example = "-2", required = true, value = "") + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getIntegerItem() { return integerItem; } + + public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } + public TypeHolderExample boolItem(Boolean boolItem) { + this.boolItem = boolItem; return this; } @@ -112,15 +131,22 @@ public class TypeHolderExample { * @return boolItem **/ @ApiModelProperty(example = "true", required = true, value = "") + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Boolean isBoolItem() { return boolItem; } + + public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } + public TypeHolderExample arrayItem(List arrayItem) { + this.arrayItem = arrayItem; return this; } @@ -135,10 +161,15 @@ public class TypeHolderExample { * @return arrayItem **/ @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getArrayItem() { return arrayItem; } + + public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/User.java index e97f002a2ff..ef67eedc44e 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/User.java @@ -14,6 +14,7 @@ package org.openapitools.client.model; import org.apache.commons.lang3.ObjectUtils; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -26,38 +27,32 @@ import io.swagger.annotations.ApiModelProperty; public class User { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; - @JsonProperty(JSON_PROPERTY_USERNAME) private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; - @JsonProperty(JSON_PROPERTY_FIRST_NAME) private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; - @JsonProperty(JSON_PROPERTY_LAST_NAME) private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; - @JsonProperty(JSON_PROPERTY_EMAIL) private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; - @JsonProperty(JSON_PROPERTY_PASSWORD) private String password; public static final String JSON_PROPERTY_PHONE = "phone"; - @JsonProperty(JSON_PROPERTY_PHONE) private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; - @JsonProperty(JSON_PROPERTY_USER_STATUS) private Integer userStatus; + public User id(Long id) { + this.id = id; return this; } @@ -68,15 +63,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public User username(String username) { + this.username = username; return this; } @@ -87,15 +89,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getUsername() { return username; } + + public void setUsername(String username) { this.username = username; } + public User firstName(String firstName) { + this.firstName = firstName; return this; } @@ -106,15 +115,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getFirstName() { return firstName; } + + public void setFirstName(String firstName) { this.firstName = firstName; } + public User lastName(String lastName) { + this.lastName = lastName; return this; } @@ -125,15 +141,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getLastName() { return lastName; } + + public void setLastName(String lastName) { this.lastName = lastName; } + public User email(String email) { + this.email = email; return this; } @@ -144,15 +167,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getEmail() { return email; } + + public void setEmail(String email) { this.email = email; } + public User password(String password) { + this.password = password; return this; } @@ -163,15 +193,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPassword() { return password; } + + public void setPassword(String password) { this.password = password; } + public User phone(String phone) { + this.phone = phone; return this; } @@ -182,15 +219,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PHONE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPhone() { return phone; } + + public void setPhone(String phone) { this.phone = phone; } + public User userStatus(Integer userStatus) { + this.userStatus = userStatus; return this; } @@ -201,10 +245,15 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "User Status") + @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getUserStatus() { return userStatus; } + + public void setUserStatus(Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/XmlItem.java index 69ed0637b7f..8a4953d45e5 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/XmlItem.java @@ -14,6 +14,7 @@ package org.openapitools.client.model; import org.apache.commons.lang3.ObjectUtils; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,122 +30,95 @@ import java.util.List; public class XmlItem { public static final String JSON_PROPERTY_ATTRIBUTE_STRING = "attribute_string"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) private String attributeString; public static final String JSON_PROPERTY_ATTRIBUTE_NUMBER = "attribute_number"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) private BigDecimal attributeNumber; public static final String JSON_PROPERTY_ATTRIBUTE_INTEGER = "attribute_integer"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) private Integer attributeInteger; public static final String JSON_PROPERTY_ATTRIBUTE_BOOLEAN = "attribute_boolean"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) private Boolean attributeBoolean; public static final String JSON_PROPERTY_WRAPPED_ARRAY = "wrapped_array"; - @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) private List wrappedArray = null; public static final String JSON_PROPERTY_NAME_STRING = "name_string"; - @JsonProperty(JSON_PROPERTY_NAME_STRING) private String nameString; public static final String JSON_PROPERTY_NAME_NUMBER = "name_number"; - @JsonProperty(JSON_PROPERTY_NAME_NUMBER) private BigDecimal nameNumber; public static final String JSON_PROPERTY_NAME_INTEGER = "name_integer"; - @JsonProperty(JSON_PROPERTY_NAME_INTEGER) private Integer nameInteger; public static final String JSON_PROPERTY_NAME_BOOLEAN = "name_boolean"; - @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) private Boolean nameBoolean; public static final String JSON_PROPERTY_NAME_ARRAY = "name_array"; - @JsonProperty(JSON_PROPERTY_NAME_ARRAY) private List nameArray = null; public static final String JSON_PROPERTY_NAME_WRAPPED_ARRAY = "name_wrapped_array"; - @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) private List nameWrappedArray = null; public static final String JSON_PROPERTY_PREFIX_STRING = "prefix_string"; - @JsonProperty(JSON_PROPERTY_PREFIX_STRING) private String prefixString; public static final String JSON_PROPERTY_PREFIX_NUMBER = "prefix_number"; - @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) private BigDecimal prefixNumber; public static final String JSON_PROPERTY_PREFIX_INTEGER = "prefix_integer"; - @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) private Integer prefixInteger; public static final String JSON_PROPERTY_PREFIX_BOOLEAN = "prefix_boolean"; - @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) private Boolean prefixBoolean; public static final String JSON_PROPERTY_PREFIX_ARRAY = "prefix_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) private List prefixArray = null; public static final String JSON_PROPERTY_PREFIX_WRAPPED_ARRAY = "prefix_wrapped_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) private List prefixWrappedArray = null; public static final String JSON_PROPERTY_NAMESPACE_STRING = "namespace_string"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) private String namespaceString; public static final String JSON_PROPERTY_NAMESPACE_NUMBER = "namespace_number"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) private BigDecimal namespaceNumber; public static final String JSON_PROPERTY_NAMESPACE_INTEGER = "namespace_integer"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) private Integer namespaceInteger; public static final String JSON_PROPERTY_NAMESPACE_BOOLEAN = "namespace_boolean"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) private Boolean namespaceBoolean; public static final String JSON_PROPERTY_NAMESPACE_ARRAY = "namespace_array"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) private List namespaceArray = null; public static final String JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY = "namespace_wrapped_array"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) private List namespaceWrappedArray = null; public static final String JSON_PROPERTY_PREFIX_NS_STRING = "prefix_ns_string"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) private String prefixNsString; public static final String JSON_PROPERTY_PREFIX_NS_NUMBER = "prefix_ns_number"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) private BigDecimal prefixNsNumber; public static final String JSON_PROPERTY_PREFIX_NS_INTEGER = "prefix_ns_integer"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) private Integer prefixNsInteger; public static final String JSON_PROPERTY_PREFIX_NS_BOOLEAN = "prefix_ns_boolean"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) private Boolean prefixNsBoolean; public static final String JSON_PROPERTY_PREFIX_NS_ARRAY = "prefix_ns_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) private List prefixNsArray = null; public static final String JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY = "prefix_ns_wrapped_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) private List prefixNsWrappedArray = null; + public XmlItem attributeString(String attributeString) { + this.attributeString = attributeString; return this; } @@ -155,15 +129,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getAttributeString() { return attributeString; } + + public void setAttributeString(String attributeString) { this.attributeString = attributeString; } + public XmlItem attributeNumber(BigDecimal attributeNumber) { + this.attributeNumber = attributeNumber; return this; } @@ -174,15 +155,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getAttributeNumber() { return attributeNumber; } + + public void setAttributeNumber(BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } + public XmlItem attributeInteger(Integer attributeInteger) { + this.attributeInteger = attributeInteger; return this; } @@ -193,15 +181,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getAttributeInteger() { return attributeInteger; } + + public void setAttributeInteger(Integer attributeInteger) { this.attributeInteger = attributeInteger; } + public XmlItem attributeBoolean(Boolean attributeBoolean) { + this.attributeBoolean = attributeBoolean; return this; } @@ -212,15 +207,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean isAttributeBoolean() { return attributeBoolean; } + + public void setAttributeBoolean(Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } + public XmlItem wrappedArray(List wrappedArray) { + this.wrappedArray = wrappedArray; return this; } @@ -239,15 +241,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getWrappedArray() { return wrappedArray; } + + public void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } + public XmlItem nameString(String nameString) { + this.nameString = nameString; return this; } @@ -258,15 +267,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_NAME_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getNameString() { return nameString; } + + public void setNameString(String nameString) { this.nameString = nameString; } + public XmlItem nameNumber(BigDecimal nameNumber) { + this.nameNumber = nameNumber; return this; } @@ -277,15 +293,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_NAME_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getNameNumber() { return nameNumber; } + + public void setNameNumber(BigDecimal nameNumber) { this.nameNumber = nameNumber; } + public XmlItem nameInteger(Integer nameInteger) { + this.nameInteger = nameInteger; return this; } @@ -296,15 +319,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_NAME_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getNameInteger() { return nameInteger; } + + public void setNameInteger(Integer nameInteger) { this.nameInteger = nameInteger; } + public XmlItem nameBoolean(Boolean nameBoolean) { + this.nameBoolean = nameBoolean; return this; } @@ -315,15 +345,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean isNameBoolean() { return nameBoolean; } + + public void setNameBoolean(Boolean nameBoolean) { this.nameBoolean = nameBoolean; } + public XmlItem nameArray(List nameArray) { + this.nameArray = nameArray; return this; } @@ -342,15 +379,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNameArray() { return nameArray; } + + public void setNameArray(List nameArray) { this.nameArray = nameArray; } + public XmlItem nameWrappedArray(List nameWrappedArray) { + this.nameWrappedArray = nameWrappedArray; return this; } @@ -369,15 +413,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNameWrappedArray() { return nameWrappedArray; } + + public void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } + public XmlItem prefixString(String prefixString) { + this.prefixString = prefixString; return this; } @@ -388,15 +439,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPrefixString() { return prefixString; } + + public void setPrefixString(String prefixString) { this.prefixString = prefixString; } + public XmlItem prefixNumber(BigDecimal prefixNumber) { + this.prefixNumber = prefixNumber; return this; } @@ -407,15 +465,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getPrefixNumber() { return prefixNumber; } + + public void setPrefixNumber(BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } + public XmlItem prefixInteger(Integer prefixInteger) { + this.prefixInteger = prefixInteger; return this; } @@ -426,15 +491,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getPrefixInteger() { return prefixInteger; } + + public void setPrefixInteger(Integer prefixInteger) { this.prefixInteger = prefixInteger; } + public XmlItem prefixBoolean(Boolean prefixBoolean) { + this.prefixBoolean = prefixBoolean; return this; } @@ -445,15 +517,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean isPrefixBoolean() { return prefixBoolean; } + + public void setPrefixBoolean(Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } + public XmlItem prefixArray(List prefixArray) { + this.prefixArray = prefixArray; return this; } @@ -472,15 +551,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixArray() { return prefixArray; } + + public void setPrefixArray(List prefixArray) { this.prefixArray = prefixArray; } + public XmlItem prefixWrappedArray(List prefixWrappedArray) { + this.prefixWrappedArray = prefixWrappedArray; return this; } @@ -499,15 +585,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixWrappedArray() { return prefixWrappedArray; } + + public void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } + public XmlItem namespaceString(String namespaceString) { + this.namespaceString = namespaceString; return this; } @@ -518,15 +611,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getNamespaceString() { return namespaceString; } + + public void setNamespaceString(String namespaceString) { this.namespaceString = namespaceString; } + public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + this.namespaceNumber = namespaceNumber; return this; } @@ -537,15 +637,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getNamespaceNumber() { return namespaceNumber; } + + public void setNamespaceNumber(BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } + public XmlItem namespaceInteger(Integer namespaceInteger) { + this.namespaceInteger = namespaceInteger; return this; } @@ -556,15 +663,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getNamespaceInteger() { return namespaceInteger; } + + public void setNamespaceInteger(Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } + public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + this.namespaceBoolean = namespaceBoolean; return this; } @@ -575,15 +689,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean isNamespaceBoolean() { return namespaceBoolean; } + + public void setNamespaceBoolean(Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } + public XmlItem namespaceArray(List namespaceArray) { + this.namespaceArray = namespaceArray; return this; } @@ -602,15 +723,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNamespaceArray() { return namespaceArray; } + + public void setNamespaceArray(List namespaceArray) { this.namespaceArray = namespaceArray; } + public XmlItem namespaceWrappedArray(List namespaceWrappedArray) { + this.namespaceWrappedArray = namespaceWrappedArray; return this; } @@ -629,15 +757,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNamespaceWrappedArray() { return namespaceWrappedArray; } + + public void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } + public XmlItem prefixNsString(String prefixNsString) { + this.prefixNsString = prefixNsString; return this; } @@ -648,15 +783,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPrefixNsString() { return prefixNsString; } + + public void setPrefixNsString(String prefixNsString) { this.prefixNsString = prefixNsString; } + public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + this.prefixNsNumber = prefixNsNumber; return this; } @@ -667,15 +809,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getPrefixNsNumber() { return prefixNsNumber; } + + public void setPrefixNsNumber(BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } + public XmlItem prefixNsInteger(Integer prefixNsInteger) { + this.prefixNsInteger = prefixNsInteger; return this; } @@ -686,15 +835,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getPrefixNsInteger() { return prefixNsInteger; } + + public void setPrefixNsInteger(Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } + public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + this.prefixNsBoolean = prefixNsBoolean; return this; } @@ -705,15 +861,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean isPrefixNsBoolean() { return prefixNsBoolean; } + + public void setPrefixNsBoolean(Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } + public XmlItem prefixNsArray(List prefixNsArray) { + this.prefixNsArray = prefixNsArray; return this; } @@ -732,15 +895,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixNsArray() { return prefixNsArray; } + + public void setPrefixNsArray(List prefixNsArray) { this.prefixNsArray = prefixNsArray; } + public XmlItem prefixNsWrappedArray(List prefixNsWrappedArray) { + this.prefixNsWrappedArray = prefixNsWrappedArray; return this; } @@ -759,10 +929,15 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixNsWrappedArray() { return prefixNsWrappedArray; } + + public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/jersey2-java8/docs/UserApi.md b/samples/client/petstore/java/jersey2-java8/docs/UserApi.md index 4154aba4f17..ca9f550c316 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/UserApi.md +++ b/samples/client/petstore/java/jersey2-java8/docs/UserApi.md @@ -101,7 +101,7 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); UserApi apiInstance = new UserApi(defaultClient); - List body = Arrays.asList(null); // List | List of user object + List body = Arrays.asList(); // List | List of user object try { apiInstance.createUsersWithArrayInput(body); } catch (ApiException e) { @@ -163,7 +163,7 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); UserApi apiInstance = new UserApi(defaultClient); - List body = Arrays.asList(null); // List | List of user object + List body = Arrays.asList(); // List | List of user object try { apiInstance.createUsersWithListInput(body); } catch (ApiException e) { diff --git a/samples/client/petstore/java/jersey2-java8/pom.xml b/samples/client/petstore/java/jersey2-java8/pom.xml index 5d62f179fe7..7efb89bdfe0 100644 --- a/samples/client/petstore/java/jersey2-java8/pom.xml +++ b/samples/client/petstore/java/jersey2-java8/pom.xml @@ -254,6 +254,11 @@ com.fasterxml.jackson.core jackson-databind ${jackson-databind-version} + + + org.openapitools + jackson-databind-nullable + ${jackson-databind-nullable-version} com.fasterxml.jackson.datatype @@ -274,6 +279,7 @@ 2.27 2.9.9 2.9.9 + 0.2.0 1.0.0 4.12 diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/JSON.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/JSON.java index f897160320c..e2d3f17b20a 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/JSON.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/JSON.java @@ -2,6 +2,7 @@ package org.openapitools.client; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; +import org.openapitools.jackson.nullable.JsonNullableModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import java.text.DateFormat; @@ -22,6 +23,8 @@ public class JSON implements ContextResolver { mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); mapper.setDateFormat(new RFC3339DateFormat()); mapper.registerModule(new JavaTimeModule()); + JsonNullableModule jnm = new JsonNullableModule(); + mapper.registerModule(jnm); } /** 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 0df18c37e39..80e4d937cb7 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesAnyType extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesAnyType name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesAnyType extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(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 0d9a6b14532..59c845c40ac 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import java.util.Map; public class AdditionalPropertiesArray extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesArray name(String name) { + this.name = name; return this; } @@ -44,10 +46,15 @@ public class AdditionalPropertiesArray extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(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 8e85a1f2246..c6c2919f37d 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesBoolean extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesBoolean name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesBoolean extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(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 48fb6a35b5c..1a37edc47bb 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,50 +32,41 @@ import java.util.Map; public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_STRING = "map_string"; - @JsonProperty(JSON_PROPERTY_MAP_STRING) private Map mapString = null; public static final String JSON_PROPERTY_MAP_NUMBER = "map_number"; - @JsonProperty(JSON_PROPERTY_MAP_NUMBER) private Map mapNumber = null; public static final String JSON_PROPERTY_MAP_INTEGER = "map_integer"; - @JsonProperty(JSON_PROPERTY_MAP_INTEGER) private Map mapInteger = null; public static final String JSON_PROPERTY_MAP_BOOLEAN = "map_boolean"; - @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) private Map mapBoolean = null; public static final String JSON_PROPERTY_MAP_ARRAY_INTEGER = "map_array_integer"; - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) private Map> mapArrayInteger = null; public static final String JSON_PROPERTY_MAP_ARRAY_ANYTYPE = "map_array_anytype"; - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) private Map> mapArrayAnytype = null; public static final String JSON_PROPERTY_MAP_MAP_STRING = "map_map_string"; - @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) private Map> mapMapString = null; public static final String JSON_PROPERTY_MAP_MAP_ANYTYPE = "map_map_anytype"; - @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) private Map> mapMapAnytype = null; public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1"; - @JsonProperty(JSON_PROPERTY_ANYTYPE1) - private Object anytype1 = null; + private Object anytype1; public static final String JSON_PROPERTY_ANYTYPE2 = "anytype_2"; - @JsonProperty(JSON_PROPERTY_ANYTYPE2) - private Object anytype2 = null; + private Object anytype2; public static final String JSON_PROPERTY_ANYTYPE3 = "anytype_3"; - @JsonProperty(JSON_PROPERTY_ANYTYPE3) - private Object anytype3 = null; + private Object anytype3; + public AdditionalPropertiesClass mapString(Map mapString) { + this.mapString = mapString; return this; } @@ -93,15 +85,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapString() { return mapString; } + + public void setMapString(Map mapString) { this.mapString = mapString; } + public AdditionalPropertiesClass mapNumber(Map mapNumber) { + this.mapNumber = mapNumber; return this; } @@ -120,15 +119,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapNumber() { return mapNumber; } + + public void setMapNumber(Map mapNumber) { this.mapNumber = mapNumber; } + public AdditionalPropertiesClass mapInteger(Map mapInteger) { + this.mapInteger = mapInteger; return this; } @@ -147,15 +153,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapInteger() { return mapInteger; } + + public void setMapInteger(Map mapInteger) { this.mapInteger = mapInteger; } + public AdditionalPropertiesClass mapBoolean(Map mapBoolean) { + this.mapBoolean = mapBoolean; return this; } @@ -174,15 +187,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapBoolean() { return mapBoolean; } + + public void setMapBoolean(Map mapBoolean) { this.mapBoolean = mapBoolean; } + public AdditionalPropertiesClass mapArrayInteger(Map> mapArrayInteger) { + this.mapArrayInteger = mapArrayInteger; return this; } @@ -201,15 +221,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapArrayInteger() { return mapArrayInteger; } + + public void setMapArrayInteger(Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; } + public AdditionalPropertiesClass mapArrayAnytype(Map> mapArrayAnytype) { + this.mapArrayAnytype = mapArrayAnytype; return this; } @@ -228,15 +255,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapArrayAnytype() { return mapArrayAnytype; } + + public void setMapArrayAnytype(Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; } + public AdditionalPropertiesClass mapMapString(Map> mapMapString) { + this.mapMapString = mapMapString; return this; } @@ -255,15 +289,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapMapString() { return mapMapString; } + + public void setMapMapString(Map> mapMapString) { this.mapMapString = mapMapString; } + public AdditionalPropertiesClass mapMapAnytype(Map> mapMapAnytype) { + this.mapMapAnytype = mapMapAnytype; return this; } @@ -282,15 +323,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapMapAnytype() { return mapMapAnytype; } + + public void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } + public AdditionalPropertiesClass anytype1(Object anytype1) { + this.anytype1 = anytype1; return this; } @@ -301,15 +349,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Object getAnytype1() { return anytype1; } + + public void setAnytype1(Object anytype1) { this.anytype1 = anytype1; } + public AdditionalPropertiesClass anytype2(Object anytype2) { + this.anytype2 = anytype2; return this; } @@ -320,15 +375,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ANYTYPE2) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Object getAnytype2() { return anytype2; } + + public void setAnytype2(Object anytype2) { this.anytype2 = anytype2; } + public AdditionalPropertiesClass anytype3(Object anytype3) { + this.anytype3 = anytype3; return this; } @@ -339,10 +401,15 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ANYTYPE3) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Object getAnytype3() { return anytype3; } + + public void setAnytype3(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 77388b95d86..3d41e99ac8b 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesInteger extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesInteger name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesInteger extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(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 f0a3318bca1..799674f1e1b 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import java.util.Map; public class AdditionalPropertiesNumber extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesNumber name(String name) { + this.name = name; return this; } @@ -44,10 +46,15 @@ public class AdditionalPropertiesNumber extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(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 19d772f4522..3d5a5c25bfa 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesObject extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesObject name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesObject extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(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 09e6431c916..d0c854414c3 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesString extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesString name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesString extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(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 a2d34d82f47..1f548074919 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; @@ -35,14 +36,14 @@ import io.swagger.annotations.ApiModelProperty; public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; - @JsonProperty(JSON_PROPERTY_CLASS_NAME) private String className; public static final String JSON_PROPERTY_COLOR = "color"; - @JsonProperty(JSON_PROPERTY_COLOR) private String color = "red"; + public Animal className(String className) { + this.className = className; return this; } @@ -52,15 +53,22 @@ public class Animal { * @return className **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getClassName() { return className; } + + public void setClassName(String className) { this.className = className; } + public Animal color(String color) { + this.color = color; return this; } @@ -71,10 +79,15 @@ public class Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_COLOR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getColor() { return color; } + + public void setColor(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 4720e6aa390..01187710606 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import java.util.List; public class ArrayOfArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) private List> arrayArrayNumber = null; + public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + this.arrayArrayNumber = arrayArrayNumber; return this; } @@ -52,10 +54,15 @@ public class ArrayOfArrayOfNumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List> getArrayArrayNumber() { return arrayArrayNumber; } + + public void setArrayArrayNumber(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 2eb4ba9e28b..253867634d8 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import java.util.List; public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) private List arrayNumber = null; + public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + this.arrayNumber = arrayNumber; return this; } @@ -52,10 +54,15 @@ public class ArrayOfNumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArrayNumber() { return arrayNumber; } + + public void setArrayNumber(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 8cc6f0ea7a3..a440f0414ba 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,18 +31,17 @@ import org.openapitools.client.model.ReadOnlyFirst; public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) private List arrayOfString = null; public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) private List> arrayArrayOfInteger = null; public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) private List> arrayArrayOfModel = null; + public ArrayTest arrayOfString(List arrayOfString) { + this.arrayOfString = arrayOfString; return this; } @@ -60,15 +60,22 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArrayOfString() { return arrayOfString; } + + public void setArrayOfString(List arrayOfString) { this.arrayOfString = arrayOfString; } + public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + this.arrayArrayOfInteger = arrayArrayOfInteger; return this; } @@ -87,15 +94,22 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List> getArrayArrayOfInteger() { return arrayArrayOfInteger; } + + public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } + public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + this.arrayArrayOfModel = arrayArrayOfModel; return this; } @@ -114,10 +128,15 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List> getArrayArrayOfModel() { return arrayArrayOfModel; } + + public void setArrayArrayOfModel(List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } 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 1d4ebff1533..1db509bc7a9 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,30 +28,26 @@ import io.swagger.annotations.ApiModelProperty; public class Capitalization { public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) private String smallCamel; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) private String capitalCamel; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) private String smallSnake; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) private String capitalSnake; public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) private String scAETHFlowPoints; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) private String ATT_NAME; + public Capitalization smallCamel(String smallCamel) { + this.smallCamel = smallCamel; return this; } @@ -61,15 +58,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSmallCamel() { return smallCamel; } + + public void setSmallCamel(String smallCamel) { this.smallCamel = smallCamel; } + public Capitalization capitalCamel(String capitalCamel) { + this.capitalCamel = capitalCamel; return this; } @@ -80,15 +84,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getCapitalCamel() { return capitalCamel; } + + public void setCapitalCamel(String capitalCamel) { this.capitalCamel = capitalCamel; } + public Capitalization smallSnake(String smallSnake) { + this.smallSnake = smallSnake; return this; } @@ -99,15 +110,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSmallSnake() { return smallSnake; } + + public void setSmallSnake(String smallSnake) { this.smallSnake = smallSnake; } + public Capitalization capitalSnake(String capitalSnake) { + this.capitalSnake = capitalSnake; return this; } @@ -118,15 +136,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getCapitalSnake() { return capitalSnake; } + + public void setCapitalSnake(String capitalSnake) { this.capitalSnake = capitalSnake; } + public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -137,15 +162,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getScAETHFlowPoints() { return scAETHFlowPoints; } + + public void setScAETHFlowPoints(String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } + public Capitalization ATT_NAME(String ATT_NAME) { + this.ATT_NAME = ATT_NAME; return this; } @@ -156,10 +188,15 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "Name of the pet ") + @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getATTNAME() { return ATT_NAME; } + + public void setATTNAME(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 11ffa39d982..35f36932606 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import org.openapitools.client.model.CatAllOf; public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; - @JsonProperty(JSON_PROPERTY_DECLAWED) private Boolean declawed; + public Cat declawed(Boolean declawed) { + this.declawed = declawed; return this; } @@ -43,10 +45,15 @@ public class Cat extends Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getDeclawed() { return declawed; } + + public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/CatAllOf.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/CatAllOf.java index 1c12b1972cf..f498096d0bc 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/CatAllOf.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/CatAllOf.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty; public class CatAllOf { public static final String JSON_PROPERTY_DECLAWED = "declawed"; - @JsonProperty(JSON_PROPERTY_DECLAWED) private Boolean declawed; + public CatAllOf declawed(Boolean declawed) { + this.declawed = declawed; return this; } @@ -41,10 +43,15 @@ public class CatAllOf { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getDeclawed() { return declawed; } + + public void setDeclawed(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 652d69552d1..3c4385a7132 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,14 +28,14 @@ import io.swagger.annotations.ApiModelProperty; public class Category { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name = "default-name"; + public Category id(Long id) { + this.id = id; return this; } @@ -45,15 +46,22 @@ public class Category { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Category name(String name) { + this.name = name; return this; } @@ -63,10 +71,15 @@ public class Category { * @return name **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getName() { return name; } + + public void setName(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 16036936e7a..47ad8fce655 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,10 +29,11 @@ import io.swagger.annotations.ApiModelProperty; public class ClassModel { public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) private String propertyClass; + public ClassModel propertyClass(String propertyClass) { + this.propertyClass = propertyClass; return this; } @@ -42,10 +44,15 @@ public class ClassModel { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPropertyClass() { return propertyClass; } + + public void setPropertyClass(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 a5c065a1dd0..d325f1378cb 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty; public class Client { public static final String JSON_PROPERTY_CLIENT = "client"; - @JsonProperty(JSON_PROPERTY_CLIENT) private String client; + public Client client(String client) { + this.client = client; return this; } @@ -41,10 +43,15 @@ public class Client { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getClient() { return client; } + + public void setClient(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 7ac3c33202e..cc0acce7049 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import org.openapitools.client.model.DogAllOf; public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; - @JsonProperty(JSON_PROPERTY_BREED) private String breed; + public Dog breed(String breed) { + this.breed = breed; return this; } @@ -43,10 +45,15 @@ public class Dog extends Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBreed() { return breed; } + + public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/DogAllOf.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/DogAllOf.java index b79847a96e4..31d4cc3c80e 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/DogAllOf.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/DogAllOf.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty; public class DogAllOf { public static final String JSON_PROPERTY_BREED = "breed"; - @JsonProperty(JSON_PROPERTY_BREED) private String breed; + public DogAllOf breed(String breed) { + this.breed = breed; return this; } @@ -41,10 +43,15 @@ public class DogAllOf { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBreed() { return breed; } + + public void setBreed(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 fe54ca63d14..116ce3648ac 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -64,7 +65,6 @@ public class EnumArrays { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) private JustSymbolEnum justSymbol; /** @@ -103,10 +103,11 @@ public class EnumArrays { } public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) private List arrayEnum = null; + public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + this.justSymbol = justSymbol; return this; } @@ -117,15 +118,22 @@ public class EnumArrays { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public JustSymbolEnum getJustSymbol() { return justSymbol; } + + public void setJustSymbol(JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } + public EnumArrays arrayEnum(List arrayEnum) { + this.arrayEnum = arrayEnum; return this; } @@ -144,10 +152,15 @@ public class EnumArrays { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArrayEnum() { return arrayEnum; } + + public void setArrayEnum(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 bde85ff2a09..615f4806ebd 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -65,7 +66,6 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; - @JsonProperty(JSON_PROPERTY_ENUM_STRING) private EnumStringEnum enumString; /** @@ -106,7 +106,6 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) private EnumStringRequiredEnum enumStringRequired; /** @@ -145,7 +144,6 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) private EnumIntegerEnum enumInteger; /** @@ -184,14 +182,14 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) private OuterEnum outerEnum; + public EnumTest enumString(EnumStringEnum enumString) { + this.enumString = enumString; return this; } @@ -202,15 +200,22 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public EnumStringEnum getEnumString() { return enumString; } + + public void setEnumString(EnumStringEnum enumString) { this.enumString = enumString; } + public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + this.enumStringRequired = enumStringRequired; return this; } @@ -220,15 +225,22 @@ public class EnumTest { * @return enumStringRequired **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; } + + public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } + public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + this.enumInteger = enumInteger; return this; } @@ -239,15 +251,22 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public EnumIntegerEnum getEnumInteger() { return enumInteger; } + + public void setEnumInteger(EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } + public EnumTest enumNumber(EnumNumberEnum enumNumber) { + this.enumNumber = enumNumber; return this; } @@ -258,15 +277,22 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public EnumNumberEnum getEnumNumber() { return enumNumber; } + + public void setEnumNumber(EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } + public EnumTest outerEnum(OuterEnum outerEnum) { + this.outerEnum = outerEnum; return this; } @@ -277,10 +303,15 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OuterEnum getOuterEnum() { return outerEnum; } + + public void setOuterEnum(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 2d510f4342b..e1a6afc0291 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,14 +30,14 @@ import java.util.List; public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; - @JsonProperty(JSON_PROPERTY_FILE) - private java.io.File file = null; + private java.io.File file; public static final String JSON_PROPERTY_FILES = "files"; - @JsonProperty(JSON_PROPERTY_FILES) private List files = null; + public FileSchemaTestClass file(java.io.File file) { + this.file = file; return this; } @@ -47,15 +48,22 @@ public class FileSchemaTestClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FILE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public java.io.File getFile() { return file; } + + public void setFile(java.io.File file) { this.file = file; } + public FileSchemaTestClass files(List files) { + this.files = files; return this; } @@ -74,10 +82,15 @@ public class FileSchemaTestClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FILES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getFiles() { return files; } + + public void setFiles(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 1b9426d9ab6..6aa78ea7e1e 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -32,58 +33,47 @@ import java.util.UUID; public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; - @JsonProperty(JSON_PROPERTY_INTEGER) private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; - @JsonProperty(JSON_PROPERTY_INT32) private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; - @JsonProperty(JSON_PROPERTY_INT64) private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; - @JsonProperty(JSON_PROPERTY_NUMBER) private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; - @JsonProperty(JSON_PROPERTY_FLOAT) private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; - @JsonProperty(JSON_PROPERTY_DOUBLE) private Double _double; public static final String JSON_PROPERTY_STRING = "string"; - @JsonProperty(JSON_PROPERTY_STRING) private String string; public static final String JSON_PROPERTY_BYTE = "byte"; - @JsonProperty(JSON_PROPERTY_BYTE) private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; - @JsonProperty(JSON_PROPERTY_BINARY) private File binary; public static final String JSON_PROPERTY_DATE = "date"; - @JsonProperty(JSON_PROPERTY_DATE) private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @JsonProperty(JSON_PROPERTY_DATE_TIME) private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; - @JsonProperty(JSON_PROPERTY_UUID) private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; - @JsonProperty(JSON_PROPERTY_PASSWORD) private String password; + public FormatTest integer(Integer integer) { + this.integer = integer; return this; } @@ -96,15 +86,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getInteger() { return integer; } + + public void setInteger(Integer integer) { this.integer = integer; } + public FormatTest int32(Integer int32) { + this.int32 = int32; return this; } @@ -117,15 +114,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INT32) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getInt32() { return int32; } + + public void setInt32(Integer int32) { this.int32 = int32; } + public FormatTest int64(Long int64) { + this.int64 = int64; return this; } @@ -136,15 +140,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INT64) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getInt64() { return int64; } + + public void setInt64(Long int64) { this.int64 = int64; } + public FormatTest number(BigDecimal number) { + this.number = number; return this; } @@ -156,15 +167,22 @@ public class FormatTest { * @return number **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getNumber() { return number; } + + public void setNumber(BigDecimal number) { this.number = number; } + public FormatTest _float(Float _float) { + this._float = _float; return this; } @@ -177,15 +195,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Float getFloat() { return _float; } + + public void setFloat(Float _float) { this._float = _float; } + public FormatTest _double(Double _double) { + this._double = _double; return this; } @@ -198,15 +223,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Double getDouble() { return _double; } + + public void setDouble(Double _double) { this._double = _double; } + public FormatTest string(String string) { + this.string = string; return this; } @@ -217,15 +249,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getString() { return string; } + + public void setString(String string) { this.string = string; } + public FormatTest _byte(byte[] _byte) { + this._byte = _byte; return this; } @@ -235,15 +274,22 @@ public class FormatTest { * @return _byte **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_BYTE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public byte[] getByte() { return _byte; } + + public void setByte(byte[] _byte) { this._byte = _byte; } + public FormatTest binary(File binary) { + this.binary = binary; return this; } @@ -254,15 +300,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BINARY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public File getBinary() { return binary; } + + public void setBinary(File binary) { this.binary = binary; } + public FormatTest date(LocalDate date) { + this.date = date; return this; } @@ -272,15 +325,22 @@ public class FormatTest { * @return date **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_DATE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public LocalDate getDate() { return date; } + + public void setDate(LocalDate date) { this.date = date; } + public FormatTest dateTime(OffsetDateTime dateTime) { + this.dateTime = dateTime; return this; } @@ -291,15 +351,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OffsetDateTime getDateTime() { return dateTime; } + + public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } + public FormatTest uuid(UUID uuid) { + this.uuid = uuid; return this; } @@ -310,15 +377,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public UUID getUuid() { return uuid; } + + public void setUuid(UUID uuid) { this.uuid = uuid; } + public FormatTest password(String password) { + this.password = password; return this; } @@ -328,10 +402,15 @@ public class FormatTest { * @return password **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getPassword() { return password; } + + public void setPassword(String password) { this.password = password; } 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 ad6b28d9d1e..9c25eddaa1b 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,34 +28,44 @@ import io.swagger.annotations.ApiModelProperty; public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; - @JsonProperty(JSON_PROPERTY_BAR) private String bar; public static final String JSON_PROPERTY_FOO = "foo"; - @JsonProperty(JSON_PROPERTY_FOO) private String foo; + /** * Get bar * @return bar **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BAR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBar() { return bar; } + + + /** * Get foo * @return foo **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FOO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getFoo() { return foo; } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { 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 1fc9aa22f71..cbdd5db55e5 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,7 +31,6 @@ import java.util.Map; public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) private Map> mapMapOfString = null; /** @@ -69,18 +69,17 @@ public class MapTest { } public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) private Map mapOfEnumString = null; public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) private Map directMap = null; public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) private Map indirectMap = null; + public MapTest mapMapOfString(Map> mapMapOfString) { + this.mapMapOfString = mapMapOfString; return this; } @@ -99,15 +98,22 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapMapOfString() { return mapMapOfString; } + + public void setMapMapOfString(Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } + public MapTest mapOfEnumString(Map mapOfEnumString) { + this.mapOfEnumString = mapOfEnumString; return this; } @@ -126,15 +132,22 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapOfEnumString() { return mapOfEnumString; } + + public void setMapOfEnumString(Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } + public MapTest directMap(Map directMap) { + this.directMap = directMap; return this; } @@ -153,15 +166,22 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getDirectMap() { return directMap; } + + public void setDirectMap(Map directMap) { this.directMap = directMap; } + public MapTest indirectMap(Map indirectMap) { + this.indirectMap = indirectMap; return this; } @@ -180,10 +200,15 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getIndirectMap() { return indirectMap; } + + public void setIndirectMap(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 f538642c886..4dfcdb1ff96 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -33,18 +34,17 @@ import org.openapitools.client.model.Animal; public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; - @JsonProperty(JSON_PROPERTY_UUID) private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @JsonProperty(JSON_PROPERTY_DATE_TIME) private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; - @JsonProperty(JSON_PROPERTY_MAP) private Map map = null; + public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + this.uuid = uuid; return this; } @@ -55,15 +55,22 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public UUID getUuid() { return uuid; } + + public void setUuid(UUID uuid) { this.uuid = uuid; } + public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + this.dateTime = dateTime; return this; } @@ -74,15 +81,22 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OffsetDateTime getDateTime() { return dateTime; } + + public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } + public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + this.map = map; return this; } @@ -101,10 +115,15 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMap() { return map; } + + public void setMap(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 d86df5d7eab..0b39d4177e2 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,14 +29,14 @@ import io.swagger.annotations.ApiModelProperty; public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) private String propertyClass; + public Model200Response name(Integer name) { + this.name = name; return this; } @@ -46,15 +47,22 @@ public class Model200Response { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getName() { return name; } + + public void setName(Integer name) { this.name = name; } + public Model200Response propertyClass(String propertyClass) { + this.propertyClass = propertyClass; return this; } @@ -65,10 +73,15 @@ public class Model200Response { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPropertyClass() { return propertyClass; } + + public void setPropertyClass(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 4c9a7f87b5a..9ca6e78b233 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,18 +28,17 @@ import io.swagger.annotations.ApiModelProperty; public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; - @JsonProperty(JSON_PROPERTY_CODE) private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; - @JsonProperty(JSON_PROPERTY_TYPE) private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; - @JsonProperty(JSON_PROPERTY_MESSAGE) private String message; + public ModelApiResponse code(Integer code) { + this.code = code; return this; } @@ -49,15 +49,22 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getCode() { return code; } + + public void setCode(Integer code) { this.code = code; } + public ModelApiResponse type(String type) { + this.type = type; return this; } @@ -68,15 +75,22 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getType() { return type; } + + public void setType(String type) { this.type = type; } + public ModelApiResponse message(String message) { + this.message = message; return this; } @@ -87,10 +101,15 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } 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 9c9ac21a3fb..300598b5d0b 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,10 +29,11 @@ import io.swagger.annotations.ApiModelProperty; public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; - @JsonProperty(JSON_PROPERTY_RETURN) private Integer _return; + public ModelReturn _return(Integer _return) { + this._return = _return; return this; } @@ -42,10 +44,15 @@ public class ModelReturn { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_RETURN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getReturn() { return _return; } + + public void setReturn(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 47f89c54361..98a92f76c18 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,22 +29,20 @@ import io.swagger.annotations.ApiModelProperty; public class Name { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; - @JsonProperty(JSON_PROPERTY_PROPERTY) private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; - @JsonProperty(JSON_PROPERTY_123NUMBER) private Integer _123number; + public Name name(Integer name) { + this.name = name; return this; } @@ -53,25 +52,38 @@ public class Name { * @return name **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getName() { return name; } + + public void setName(Integer name) { this.name = name; } + /** * Get snakeCase * @return snakeCase **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getSnakeCase() { return snakeCase; } + + + public Name property(String property) { + this.property = property; return this; } @@ -82,25 +94,36 @@ public class Name { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getProperty() { return property; } + + public void setProperty(String property) { this.property = property; } + /** * Get _123number * @return _123number **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_123NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer get123number() { return _123number; } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { 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 f5331da226e..499144e4016 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,10 +29,11 @@ import java.math.BigDecimal; public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) private BigDecimal justNumber; + public NumberOnly justNumber(BigDecimal justNumber) { + this.justNumber = justNumber; return this; } @@ -42,10 +44,15 @@ public class NumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getJustNumber() { return justNumber; } + + public void setJustNumber(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 0730133f9cb..20a630250c8 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,19 +29,15 @@ import java.time.OffsetDateTime; public class Order { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; - @JsonProperty(JSON_PROPERTY_PET_ID) private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; - @JsonProperty(JSON_PROPERTY_QUANTITY) private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; - @JsonProperty(JSON_PROPERTY_SHIP_DATE) private OffsetDateTime shipDate; /** @@ -81,14 +78,14 @@ public class Order { } public static final String JSON_PROPERTY_STATUS = "status"; - @JsonProperty(JSON_PROPERTY_STATUS) private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; - @JsonProperty(JSON_PROPERTY_COMPLETE) private Boolean complete = false; + public Order id(Long id) { + this.id = id; return this; } @@ -99,15 +96,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Order petId(Long petId) { + this.petId = petId; return this; } @@ -118,15 +122,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getPetId() { return petId; } + + public void setPetId(Long petId) { this.petId = petId; } + public Order quantity(Integer quantity) { + this.quantity = quantity; return this; } @@ -137,15 +148,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getQuantity() { return quantity; } + + public void setQuantity(Integer quantity) { this.quantity = quantity; } + public Order shipDate(OffsetDateTime shipDate) { + this.shipDate = shipDate; return this; } @@ -156,15 +174,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OffsetDateTime getShipDate() { return shipDate; } + + public void setShipDate(OffsetDateTime shipDate) { this.shipDate = shipDate; } + public Order status(StatusEnum status) { + this.status = status; return this; } @@ -175,15 +200,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "Order Status") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public StatusEnum getStatus() { return status; } + + public void setStatus(StatusEnum status) { this.status = status; } + public Order complete(Boolean complete) { + this.complete = complete; return this; } @@ -194,10 +226,15 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getComplete() { return complete; } + + public void setComplete(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 7193ba2a0c9..dab9d1be3a8 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,18 +29,17 @@ import java.math.BigDecimal; public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; - @JsonProperty(JSON_PROPERTY_MY_NUMBER) private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; - @JsonProperty(JSON_PROPERTY_MY_STRING) private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) private Boolean myBoolean; + public OuterComposite myNumber(BigDecimal myNumber) { + this.myNumber = myNumber; return this; } @@ -50,15 +50,22 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getMyNumber() { return myNumber; } + + public void setMyNumber(BigDecimal myNumber) { this.myNumber = myNumber; } + public OuterComposite myString(String myString) { + this.myString = myString; return this; } @@ -69,15 +76,22 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getMyString() { return myString; } + + public void setMyString(String myString) { this.myString = myString; } + public OuterComposite myBoolean(Boolean myBoolean) { + this.myBoolean = myBoolean; return this; } @@ -88,10 +102,15 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getMyBoolean() { return myBoolean; } + + public void setMyBoolean(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 948cb6b92f9..1d9cdb5ed07 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,23 +32,18 @@ import org.openapitools.client.model.Tag; public class Pet { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; - @JsonProperty(JSON_PROPERTY_CATEGORY) - private Category category = null; + private Category category; public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) private List photoUrls = new ArrayList<>(); public static final String JSON_PROPERTY_TAGS = "tags"; - @JsonProperty(JSON_PROPERTY_TAGS) private List tags = null; /** @@ -88,10 +84,11 @@ public class Pet { } public static final String JSON_PROPERTY_STATUS = "status"; - @JsonProperty(JSON_PROPERTY_STATUS) private StatusEnum status; + public Pet id(Long id) { + this.id = id; return this; } @@ -102,15 +99,22 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Pet category(Category category) { + this.category = category; return this; } @@ -121,15 +125,22 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Category getCategory() { return category; } + + public void setCategory(Category category) { this.category = category; } + public Pet name(String name) { + this.name = name; return this; } @@ -139,15 +150,22 @@ public class Pet { * @return name **/ @ApiModelProperty(example = "doggie", required = true, value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public Pet photoUrls(List photoUrls) { + this.photoUrls = photoUrls; return this; } @@ -162,15 +180,22 @@ public class Pet { * @return photoUrls **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getPhotoUrls() { return photoUrls; } + + public void setPhotoUrls(List photoUrls) { this.photoUrls = photoUrls; } + public Pet tags(List tags) { + this.tags = tags; return this; } @@ -189,15 +214,22 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getTags() { return tags; } + + public void setTags(List tags) { this.tags = tags; } + public Pet status(StatusEnum status) { + this.status = status; return this; } @@ -208,10 +240,15 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "pet status in the store") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public StatusEnum getStatus() { return status; } + + public void setStatus(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 b0949b9e2ea..28901097fa4 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,24 +28,30 @@ import io.swagger.annotations.ApiModelProperty; public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; - @JsonProperty(JSON_PROPERTY_BAR) private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; - @JsonProperty(JSON_PROPERTY_BAZ) private String baz; + /** * Get bar * @return bar **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BAR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBar() { return bar; } + + + public ReadOnlyFirst baz(String baz) { + this.baz = baz; return this; } @@ -55,10 +62,15 @@ public class ReadOnlyFirst { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BAZ) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBaz() { return baz; } + + public void setBaz(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 a9d03234061..c7820abb0fc 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty; public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) private Long $specialPropertyName; + public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + this.$specialPropertyName = $specialPropertyName; return this; } @@ -41,10 +43,15 @@ public class SpecialModelName { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long get$SpecialPropertyName() { return $specialPropertyName; } + + public void set$SpecialPropertyName(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 45f17b22cf3..7e20ebf4a31 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,14 +28,14 @@ import io.swagger.annotations.ApiModelProperty; public class Tag { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public Tag id(Long id) { + this.id = id; return this; } @@ -45,15 +46,22 @@ public class Tag { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Tag name(String name) { + this.name = name; return this; } @@ -64,10 +72,15 @@ public class Tag { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(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 3f3030998f1..7b858daccac 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,26 +31,23 @@ import java.util.List; public class TypeHolderDefault { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; - @JsonProperty(JSON_PROPERTY_STRING_ITEM) private String stringItem = "what"; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) private BigDecimal numberItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) private Boolean boolItem = true; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) private List arrayItem = new ArrayList<>(); + public TypeHolderDefault stringItem(String stringItem) { + this.stringItem = stringItem; return this; } @@ -59,15 +57,22 @@ public class TypeHolderDefault { * @return stringItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getStringItem() { return stringItem; } + + public void setStringItem(String stringItem) { this.stringItem = stringItem; } + public TypeHolderDefault numberItem(BigDecimal numberItem) { + this.numberItem = numberItem; return this; } @@ -77,15 +82,22 @@ public class TypeHolderDefault { * @return numberItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getNumberItem() { return numberItem; } + + public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } + public TypeHolderDefault integerItem(Integer integerItem) { + this.integerItem = integerItem; return this; } @@ -95,15 +107,22 @@ public class TypeHolderDefault { * @return integerItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getIntegerItem() { return integerItem; } + + public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } + public TypeHolderDefault boolItem(Boolean boolItem) { + this.boolItem = boolItem; return this; } @@ -113,15 +132,22 @@ public class TypeHolderDefault { * @return boolItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Boolean getBoolItem() { return boolItem; } + + public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } + public TypeHolderDefault arrayItem(List arrayItem) { + this.arrayItem = arrayItem; return this; } @@ -136,10 +162,15 @@ public class TypeHolderDefault { * @return arrayItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getArrayItem() { return arrayItem; } + + public void setArrayItem(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 99ddaa8d2eb..34406ee33cb 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,26 +31,23 @@ import java.util.List; public class TypeHolderExample { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; - @JsonProperty(JSON_PROPERTY_STRING_ITEM) private String stringItem; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) private BigDecimal numberItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) private Boolean boolItem; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) private List arrayItem = new ArrayList<>(); + public TypeHolderExample stringItem(String stringItem) { + this.stringItem = stringItem; return this; } @@ -59,15 +57,22 @@ public class TypeHolderExample { * @return stringItem **/ @ApiModelProperty(example = "what", required = true, value = "") + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getStringItem() { return stringItem; } + + public void setStringItem(String stringItem) { this.stringItem = stringItem; } + public TypeHolderExample numberItem(BigDecimal numberItem) { + this.numberItem = numberItem; return this; } @@ -77,15 +82,22 @@ public class TypeHolderExample { * @return numberItem **/ @ApiModelProperty(example = "1.234", required = true, value = "") + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getNumberItem() { return numberItem; } + + public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } + public TypeHolderExample integerItem(Integer integerItem) { + this.integerItem = integerItem; return this; } @@ -95,15 +107,22 @@ public class TypeHolderExample { * @return integerItem **/ @ApiModelProperty(example = "-2", required = true, value = "") + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getIntegerItem() { return integerItem; } + + public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } + public TypeHolderExample boolItem(Boolean boolItem) { + this.boolItem = boolItem; return this; } @@ -113,15 +132,22 @@ public class TypeHolderExample { * @return boolItem **/ @ApiModelProperty(example = "true", required = true, value = "") + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Boolean getBoolItem() { return boolItem; } + + public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } + public TypeHolderExample arrayItem(List arrayItem) { + this.arrayItem = arrayItem; return this; } @@ -136,10 +162,15 @@ public class TypeHolderExample { * @return arrayItem **/ @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getArrayItem() { return arrayItem; } + + public void setArrayItem(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 9ce7869e755..b181265d97d 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,38 +28,32 @@ import io.swagger.annotations.ApiModelProperty; public class User { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; - @JsonProperty(JSON_PROPERTY_USERNAME) private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; - @JsonProperty(JSON_PROPERTY_FIRST_NAME) private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; - @JsonProperty(JSON_PROPERTY_LAST_NAME) private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; - @JsonProperty(JSON_PROPERTY_EMAIL) private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; - @JsonProperty(JSON_PROPERTY_PASSWORD) private String password; public static final String JSON_PROPERTY_PHONE = "phone"; - @JsonProperty(JSON_PROPERTY_PHONE) private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; - @JsonProperty(JSON_PROPERTY_USER_STATUS) private Integer userStatus; + public User id(Long id) { + this.id = id; return this; } @@ -69,15 +64,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public User username(String username) { + this.username = username; return this; } @@ -88,15 +90,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getUsername() { return username; } + + public void setUsername(String username) { this.username = username; } + public User firstName(String firstName) { + this.firstName = firstName; return this; } @@ -107,15 +116,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getFirstName() { return firstName; } + + public void setFirstName(String firstName) { this.firstName = firstName; } + public User lastName(String lastName) { + this.lastName = lastName; return this; } @@ -126,15 +142,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getLastName() { return lastName; } + + public void setLastName(String lastName) { this.lastName = lastName; } + public User email(String email) { + this.email = email; return this; } @@ -145,15 +168,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getEmail() { return email; } + + public void setEmail(String email) { this.email = email; } + public User password(String password) { + this.password = password; return this; } @@ -164,15 +194,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPassword() { return password; } + + public void setPassword(String password) { this.password = password; } + public User phone(String phone) { + this.phone = phone; return this; } @@ -183,15 +220,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PHONE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPhone() { return phone; } + + public void setPhone(String phone) { this.phone = phone; } + public User userStatus(Integer userStatus) { + this.userStatus = userStatus; return this; } @@ -202,10 +246,15 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "User Status") + @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getUserStatus() { return userStatus; } + + public void setUserStatus(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 dc0ad56c1af..b014391d846 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,122 +31,95 @@ import java.util.List; public class XmlItem { public static final String JSON_PROPERTY_ATTRIBUTE_STRING = "attribute_string"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) private String attributeString; public static final String JSON_PROPERTY_ATTRIBUTE_NUMBER = "attribute_number"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) private BigDecimal attributeNumber; public static final String JSON_PROPERTY_ATTRIBUTE_INTEGER = "attribute_integer"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) private Integer attributeInteger; public static final String JSON_PROPERTY_ATTRIBUTE_BOOLEAN = "attribute_boolean"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) private Boolean attributeBoolean; public static final String JSON_PROPERTY_WRAPPED_ARRAY = "wrapped_array"; - @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) private List wrappedArray = null; public static final String JSON_PROPERTY_NAME_STRING = "name_string"; - @JsonProperty(JSON_PROPERTY_NAME_STRING) private String nameString; public static final String JSON_PROPERTY_NAME_NUMBER = "name_number"; - @JsonProperty(JSON_PROPERTY_NAME_NUMBER) private BigDecimal nameNumber; public static final String JSON_PROPERTY_NAME_INTEGER = "name_integer"; - @JsonProperty(JSON_PROPERTY_NAME_INTEGER) private Integer nameInteger; public static final String JSON_PROPERTY_NAME_BOOLEAN = "name_boolean"; - @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) private Boolean nameBoolean; public static final String JSON_PROPERTY_NAME_ARRAY = "name_array"; - @JsonProperty(JSON_PROPERTY_NAME_ARRAY) private List nameArray = null; public static final String JSON_PROPERTY_NAME_WRAPPED_ARRAY = "name_wrapped_array"; - @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) private List nameWrappedArray = null; public static final String JSON_PROPERTY_PREFIX_STRING = "prefix_string"; - @JsonProperty(JSON_PROPERTY_PREFIX_STRING) private String prefixString; public static final String JSON_PROPERTY_PREFIX_NUMBER = "prefix_number"; - @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) private BigDecimal prefixNumber; public static final String JSON_PROPERTY_PREFIX_INTEGER = "prefix_integer"; - @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) private Integer prefixInteger; public static final String JSON_PROPERTY_PREFIX_BOOLEAN = "prefix_boolean"; - @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) private Boolean prefixBoolean; public static final String JSON_PROPERTY_PREFIX_ARRAY = "prefix_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) private List prefixArray = null; public static final String JSON_PROPERTY_PREFIX_WRAPPED_ARRAY = "prefix_wrapped_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) private List prefixWrappedArray = null; public static final String JSON_PROPERTY_NAMESPACE_STRING = "namespace_string"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) private String namespaceString; public static final String JSON_PROPERTY_NAMESPACE_NUMBER = "namespace_number"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) private BigDecimal namespaceNumber; public static final String JSON_PROPERTY_NAMESPACE_INTEGER = "namespace_integer"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) private Integer namespaceInteger; public static final String JSON_PROPERTY_NAMESPACE_BOOLEAN = "namespace_boolean"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) private Boolean namespaceBoolean; public static final String JSON_PROPERTY_NAMESPACE_ARRAY = "namespace_array"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) private List namespaceArray = null; public static final String JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY = "namespace_wrapped_array"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) private List namespaceWrappedArray = null; public static final String JSON_PROPERTY_PREFIX_NS_STRING = "prefix_ns_string"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) private String prefixNsString; public static final String JSON_PROPERTY_PREFIX_NS_NUMBER = "prefix_ns_number"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) private BigDecimal prefixNsNumber; public static final String JSON_PROPERTY_PREFIX_NS_INTEGER = "prefix_ns_integer"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) private Integer prefixNsInteger; public static final String JSON_PROPERTY_PREFIX_NS_BOOLEAN = "prefix_ns_boolean"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) private Boolean prefixNsBoolean; public static final String JSON_PROPERTY_PREFIX_NS_ARRAY = "prefix_ns_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) private List prefixNsArray = null; public static final String JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY = "prefix_ns_wrapped_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) private List prefixNsWrappedArray = null; + public XmlItem attributeString(String attributeString) { + this.attributeString = attributeString; return this; } @@ -156,15 +130,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getAttributeString() { return attributeString; } + + public void setAttributeString(String attributeString) { this.attributeString = attributeString; } + public XmlItem attributeNumber(BigDecimal attributeNumber) { + this.attributeNumber = attributeNumber; return this; } @@ -175,15 +156,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getAttributeNumber() { return attributeNumber; } + + public void setAttributeNumber(BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } + public XmlItem attributeInteger(Integer attributeInteger) { + this.attributeInteger = attributeInteger; return this; } @@ -194,15 +182,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getAttributeInteger() { return attributeInteger; } + + public void setAttributeInteger(Integer attributeInteger) { this.attributeInteger = attributeInteger; } + public XmlItem attributeBoolean(Boolean attributeBoolean) { + this.attributeBoolean = attributeBoolean; return this; } @@ -213,15 +208,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getAttributeBoolean() { return attributeBoolean; } + + public void setAttributeBoolean(Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } + public XmlItem wrappedArray(List wrappedArray) { + this.wrappedArray = wrappedArray; return this; } @@ -240,15 +242,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getWrappedArray() { return wrappedArray; } + + public void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } + public XmlItem nameString(String nameString) { + this.nameString = nameString; return this; } @@ -259,15 +268,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_NAME_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getNameString() { return nameString; } + + public void setNameString(String nameString) { this.nameString = nameString; } + public XmlItem nameNumber(BigDecimal nameNumber) { + this.nameNumber = nameNumber; return this; } @@ -278,15 +294,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_NAME_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getNameNumber() { return nameNumber; } + + public void setNameNumber(BigDecimal nameNumber) { this.nameNumber = nameNumber; } + public XmlItem nameInteger(Integer nameInteger) { + this.nameInteger = nameInteger; return this; } @@ -297,15 +320,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_NAME_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getNameInteger() { return nameInteger; } + + public void setNameInteger(Integer nameInteger) { this.nameInteger = nameInteger; } + public XmlItem nameBoolean(Boolean nameBoolean) { + this.nameBoolean = nameBoolean; return this; } @@ -316,15 +346,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getNameBoolean() { return nameBoolean; } + + public void setNameBoolean(Boolean nameBoolean) { this.nameBoolean = nameBoolean; } + public XmlItem nameArray(List nameArray) { + this.nameArray = nameArray; return this; } @@ -343,15 +380,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNameArray() { return nameArray; } + + public void setNameArray(List nameArray) { this.nameArray = nameArray; } + public XmlItem nameWrappedArray(List nameWrappedArray) { + this.nameWrappedArray = nameWrappedArray; return this; } @@ -370,15 +414,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNameWrappedArray() { return nameWrappedArray; } + + public void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } + public XmlItem prefixString(String prefixString) { + this.prefixString = prefixString; return this; } @@ -389,15 +440,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPrefixString() { return prefixString; } + + public void setPrefixString(String prefixString) { this.prefixString = prefixString; } + public XmlItem prefixNumber(BigDecimal prefixNumber) { + this.prefixNumber = prefixNumber; return this; } @@ -408,15 +466,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getPrefixNumber() { return prefixNumber; } + + public void setPrefixNumber(BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } + public XmlItem prefixInteger(Integer prefixInteger) { + this.prefixInteger = prefixInteger; return this; } @@ -427,15 +492,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getPrefixInteger() { return prefixInteger; } + + public void setPrefixInteger(Integer prefixInteger) { this.prefixInteger = prefixInteger; } + public XmlItem prefixBoolean(Boolean prefixBoolean) { + this.prefixBoolean = prefixBoolean; return this; } @@ -446,15 +518,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getPrefixBoolean() { return prefixBoolean; } + + public void setPrefixBoolean(Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } + public XmlItem prefixArray(List prefixArray) { + this.prefixArray = prefixArray; return this; } @@ -473,15 +552,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixArray() { return prefixArray; } + + public void setPrefixArray(List prefixArray) { this.prefixArray = prefixArray; } + public XmlItem prefixWrappedArray(List prefixWrappedArray) { + this.prefixWrappedArray = prefixWrappedArray; return this; } @@ -500,15 +586,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixWrappedArray() { return prefixWrappedArray; } + + public void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } + public XmlItem namespaceString(String namespaceString) { + this.namespaceString = namespaceString; return this; } @@ -519,15 +612,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getNamespaceString() { return namespaceString; } + + public void setNamespaceString(String namespaceString) { this.namespaceString = namespaceString; } + public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + this.namespaceNumber = namespaceNumber; return this; } @@ -538,15 +638,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getNamespaceNumber() { return namespaceNumber; } + + public void setNamespaceNumber(BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } + public XmlItem namespaceInteger(Integer namespaceInteger) { + this.namespaceInteger = namespaceInteger; return this; } @@ -557,15 +664,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getNamespaceInteger() { return namespaceInteger; } + + public void setNamespaceInteger(Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } + public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + this.namespaceBoolean = namespaceBoolean; return this; } @@ -576,15 +690,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getNamespaceBoolean() { return namespaceBoolean; } + + public void setNamespaceBoolean(Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } + public XmlItem namespaceArray(List namespaceArray) { + this.namespaceArray = namespaceArray; return this; } @@ -603,15 +724,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNamespaceArray() { return namespaceArray; } + + public void setNamespaceArray(List namespaceArray) { this.namespaceArray = namespaceArray; } + public XmlItem namespaceWrappedArray(List namespaceWrappedArray) { + this.namespaceWrappedArray = namespaceWrappedArray; return this; } @@ -630,15 +758,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNamespaceWrappedArray() { return namespaceWrappedArray; } + + public void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } + public XmlItem prefixNsString(String prefixNsString) { + this.prefixNsString = prefixNsString; return this; } @@ -649,15 +784,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPrefixNsString() { return prefixNsString; } + + public void setPrefixNsString(String prefixNsString) { this.prefixNsString = prefixNsString; } + public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + this.prefixNsNumber = prefixNsNumber; return this; } @@ -668,15 +810,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getPrefixNsNumber() { return prefixNsNumber; } + + public void setPrefixNsNumber(BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } + public XmlItem prefixNsInteger(Integer prefixNsInteger) { + this.prefixNsInteger = prefixNsInteger; return this; } @@ -687,15 +836,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getPrefixNsInteger() { return prefixNsInteger; } + + public void setPrefixNsInteger(Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } + public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + this.prefixNsBoolean = prefixNsBoolean; return this; } @@ -706,15 +862,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getPrefixNsBoolean() { return prefixNsBoolean; } + + public void setPrefixNsBoolean(Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } + public XmlItem prefixNsArray(List prefixNsArray) { + this.prefixNsArray = prefixNsArray; return this; } @@ -733,15 +896,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixNsArray() { return prefixNsArray; } + + public void setPrefixNsArray(List prefixNsArray) { this.prefixNsArray = prefixNsArray; } + public XmlItem prefixNsWrappedArray(List prefixNsWrappedArray) { + this.prefixNsWrappedArray = prefixNsWrappedArray; return this; } @@ -760,10 +930,15 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixNsWrappedArray() { return prefixNsWrappedArray; } + + public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/jersey2/docs/UserApi.md b/samples/client/petstore/java/jersey2/docs/UserApi.md index 4154aba4f17..ca9f550c316 100644 --- a/samples/client/petstore/java/jersey2/docs/UserApi.md +++ b/samples/client/petstore/java/jersey2/docs/UserApi.md @@ -101,7 +101,7 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); UserApi apiInstance = new UserApi(defaultClient); - List body = Arrays.asList(null); // List | List of user object + List body = Arrays.asList(); // List | List of user object try { apiInstance.createUsersWithArrayInput(body); } catch (ApiException e) { @@ -163,7 +163,7 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); UserApi apiInstance = new UserApi(defaultClient); - List body = Arrays.asList(null); // List | List of user object + List body = Arrays.asList(); // List | List of user object try { apiInstance.createUsersWithListInput(body); } catch (ApiException e) { diff --git a/samples/client/petstore/java/jersey2/pom.xml b/samples/client/petstore/java/jersey2/pom.xml index d162686c0c3..a9997df35f0 100644 --- a/samples/client/petstore/java/jersey2/pom.xml +++ b/samples/client/petstore/java/jersey2/pom.xml @@ -254,6 +254,11 @@ com.fasterxml.jackson.core jackson-databind ${jackson-databind-version} + + + org.openapitools + jackson-databind-nullable + ${jackson-databind-nullable-version} com.github.joschi.jackson @@ -280,6 +285,7 @@ 2.27 2.9.9 2.9.9 + 0.2.0 2.6.4 1.0.0 4.12 diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/JSON.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/JSON.java index 2df3c2868c4..4e267b9a361 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/JSON.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/JSON.java @@ -3,6 +3,7 @@ package org.openapitools.client; import org.threeten.bp.*; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; +import org.openapitools.jackson.nullable.JsonNullableModule; import com.fasterxml.jackson.datatype.threetenbp.ThreeTenModule; import java.text.DateFormat; @@ -27,6 +28,8 @@ public class JSON implements ContextResolver { module.addDeserializer(OffsetDateTime.class, CustomInstantDeserializer.OFFSET_DATE_TIME); module.addDeserializer(ZonedDateTime.class, CustomInstantDeserializer.ZONED_DATE_TIME); mapper.registerModule(module); + JsonNullableModule jnm = new JsonNullableModule(); + mapper.registerModule(jnm); } /** diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index 0df18c37e39..80e4d937cb7 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesAnyType extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesAnyType name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesAnyType extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 0d9a6b14532..59c845c40ac 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import java.util.Map; public class AdditionalPropertiesArray extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesArray name(String name) { + this.name = name; return this; } @@ -44,10 +46,15 @@ public class AdditionalPropertiesArray extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 8e85a1f2246..c6c2919f37d 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesBoolean extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesBoolean name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesBoolean extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 0fa49af1afd..29f38bc34c9 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,50 +32,41 @@ import java.util.Map; public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_STRING = "map_string"; - @JsonProperty(JSON_PROPERTY_MAP_STRING) private Map mapString = null; public static final String JSON_PROPERTY_MAP_NUMBER = "map_number"; - @JsonProperty(JSON_PROPERTY_MAP_NUMBER) private Map mapNumber = null; public static final String JSON_PROPERTY_MAP_INTEGER = "map_integer"; - @JsonProperty(JSON_PROPERTY_MAP_INTEGER) private Map mapInteger = null; public static final String JSON_PROPERTY_MAP_BOOLEAN = "map_boolean"; - @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) private Map mapBoolean = null; public static final String JSON_PROPERTY_MAP_ARRAY_INTEGER = "map_array_integer"; - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) private Map> mapArrayInteger = null; public static final String JSON_PROPERTY_MAP_ARRAY_ANYTYPE = "map_array_anytype"; - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) private Map> mapArrayAnytype = null; public static final String JSON_PROPERTY_MAP_MAP_STRING = "map_map_string"; - @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) private Map> mapMapString = null; public static final String JSON_PROPERTY_MAP_MAP_ANYTYPE = "map_map_anytype"; - @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) private Map> mapMapAnytype = null; public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1"; - @JsonProperty(JSON_PROPERTY_ANYTYPE1) - private Object anytype1 = null; + private Object anytype1; public static final String JSON_PROPERTY_ANYTYPE2 = "anytype_2"; - @JsonProperty(JSON_PROPERTY_ANYTYPE2) - private Object anytype2 = null; + private Object anytype2; public static final String JSON_PROPERTY_ANYTYPE3 = "anytype_3"; - @JsonProperty(JSON_PROPERTY_ANYTYPE3) - private Object anytype3 = null; + private Object anytype3; + public AdditionalPropertiesClass mapString(Map mapString) { + this.mapString = mapString; return this; } @@ -93,15 +85,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapString() { return mapString; } + + public void setMapString(Map mapString) { this.mapString = mapString; } + public AdditionalPropertiesClass mapNumber(Map mapNumber) { + this.mapNumber = mapNumber; return this; } @@ -120,15 +119,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapNumber() { return mapNumber; } + + public void setMapNumber(Map mapNumber) { this.mapNumber = mapNumber; } + public AdditionalPropertiesClass mapInteger(Map mapInteger) { + this.mapInteger = mapInteger; return this; } @@ -147,15 +153,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapInteger() { return mapInteger; } + + public void setMapInteger(Map mapInteger) { this.mapInteger = mapInteger; } + public AdditionalPropertiesClass mapBoolean(Map mapBoolean) { + this.mapBoolean = mapBoolean; return this; } @@ -174,15 +187,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapBoolean() { return mapBoolean; } + + public void setMapBoolean(Map mapBoolean) { this.mapBoolean = mapBoolean; } + public AdditionalPropertiesClass mapArrayInteger(Map> mapArrayInteger) { + this.mapArrayInteger = mapArrayInteger; return this; } @@ -201,15 +221,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapArrayInteger() { return mapArrayInteger; } + + public void setMapArrayInteger(Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; } + public AdditionalPropertiesClass mapArrayAnytype(Map> mapArrayAnytype) { + this.mapArrayAnytype = mapArrayAnytype; return this; } @@ -228,15 +255,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapArrayAnytype() { return mapArrayAnytype; } + + public void setMapArrayAnytype(Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; } + public AdditionalPropertiesClass mapMapString(Map> mapMapString) { + this.mapMapString = mapMapString; return this; } @@ -255,15 +289,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapMapString() { return mapMapString; } + + public void setMapMapString(Map> mapMapString) { this.mapMapString = mapMapString; } + public AdditionalPropertiesClass mapMapAnytype(Map> mapMapAnytype) { + this.mapMapAnytype = mapMapAnytype; return this; } @@ -282,15 +323,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapMapAnytype() { return mapMapAnytype; } + + public void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } + public AdditionalPropertiesClass anytype1(Object anytype1) { + this.anytype1 = anytype1; return this; } @@ -301,15 +349,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Object getAnytype1() { return anytype1; } + + public void setAnytype1(Object anytype1) { this.anytype1 = anytype1; } + public AdditionalPropertiesClass anytype2(Object anytype2) { + this.anytype2 = anytype2; return this; } @@ -320,15 +375,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ANYTYPE2) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Object getAnytype2() { return anytype2; } + + public void setAnytype2(Object anytype2) { this.anytype2 = anytype2; } + public AdditionalPropertiesClass anytype3(Object anytype3) { + this.anytype3 = anytype3; return this; } @@ -339,10 +401,15 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ANYTYPE3) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Object getAnytype3() { return anytype3; } + + public void setAnytype3(Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 77388b95d86..3d41e99ac8b 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesInteger extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesInteger name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesInteger extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index f0a3318bca1..799674f1e1b 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import java.util.Map; public class AdditionalPropertiesNumber extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesNumber name(String name) { + this.name = name; return this; } @@ -44,10 +46,15 @@ public class AdditionalPropertiesNumber extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index 19d772f4522..3d5a5c25bfa 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesObject extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesObject name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesObject extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 09e6431c916..d0c854414c3 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesString extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesString name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesString extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/Animal.java index a2d34d82f47..1f548074919 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/Animal.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; @@ -35,14 +36,14 @@ import io.swagger.annotations.ApiModelProperty; public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; - @JsonProperty(JSON_PROPERTY_CLASS_NAME) private String className; public static final String JSON_PROPERTY_COLOR = "color"; - @JsonProperty(JSON_PROPERTY_COLOR) private String color = "red"; + public Animal className(String className) { + this.className = className; return this; } @@ -52,15 +53,22 @@ public class Animal { * @return className **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getClassName() { return className; } + + public void setClassName(String className) { this.className = className; } + public Animal color(String color) { + this.color = color; return this; } @@ -71,10 +79,15 @@ public class Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_COLOR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getColor() { return color; } + + public void setColor(String color) { this.color = color; } diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index e1a5139bd25..40fd3259fc7 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import java.util.List; public class ArrayOfArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) private List> arrayArrayNumber = null; + public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + this.arrayArrayNumber = arrayArrayNumber; return this; } @@ -52,10 +54,15 @@ public class ArrayOfArrayOfNumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List> getArrayArrayNumber() { return arrayArrayNumber; } + + public void setArrayArrayNumber(List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 76fc13b8ce8..1b695be1510 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import java.util.List; public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) private List arrayNumber = null; + public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + this.arrayNumber = arrayNumber; return this; } @@ -52,10 +54,15 @@ public class ArrayOfNumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArrayNumber() { return arrayNumber; } + + public void setArrayNumber(List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/ArrayTest.java index a0082db628c..0effb728488 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,18 +31,17 @@ import org.openapitools.client.model.ReadOnlyFirst; public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) private List arrayOfString = null; public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) private List> arrayArrayOfInteger = null; public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) private List> arrayArrayOfModel = null; + public ArrayTest arrayOfString(List arrayOfString) { + this.arrayOfString = arrayOfString; return this; } @@ -60,15 +60,22 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArrayOfString() { return arrayOfString; } + + public void setArrayOfString(List arrayOfString) { this.arrayOfString = arrayOfString; } + public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + this.arrayArrayOfInteger = arrayArrayOfInteger; return this; } @@ -87,15 +94,22 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List> getArrayArrayOfInteger() { return arrayArrayOfInteger; } + + public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } + public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + this.arrayArrayOfModel = arrayArrayOfModel; return this; } @@ -114,10 +128,15 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List> getArrayArrayOfModel() { return arrayArrayOfModel; } + + public void setArrayArrayOfModel(List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/Capitalization.java index 1d4ebff1533..1db509bc7a9 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/Capitalization.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,30 +28,26 @@ import io.swagger.annotations.ApiModelProperty; public class Capitalization { public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) private String smallCamel; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) private String capitalCamel; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) private String smallSnake; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) private String capitalSnake; public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) private String scAETHFlowPoints; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) private String ATT_NAME; + public Capitalization smallCamel(String smallCamel) { + this.smallCamel = smallCamel; return this; } @@ -61,15 +58,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSmallCamel() { return smallCamel; } + + public void setSmallCamel(String smallCamel) { this.smallCamel = smallCamel; } + public Capitalization capitalCamel(String capitalCamel) { + this.capitalCamel = capitalCamel; return this; } @@ -80,15 +84,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getCapitalCamel() { return capitalCamel; } + + public void setCapitalCamel(String capitalCamel) { this.capitalCamel = capitalCamel; } + public Capitalization smallSnake(String smallSnake) { + this.smallSnake = smallSnake; return this; } @@ -99,15 +110,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSmallSnake() { return smallSnake; } + + public void setSmallSnake(String smallSnake) { this.smallSnake = smallSnake; } + public Capitalization capitalSnake(String capitalSnake) { + this.capitalSnake = capitalSnake; return this; } @@ -118,15 +136,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getCapitalSnake() { return capitalSnake; } + + public void setCapitalSnake(String capitalSnake) { this.capitalSnake = capitalSnake; } + public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -137,15 +162,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getScAETHFlowPoints() { return scAETHFlowPoints; } + + public void setScAETHFlowPoints(String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } + public Capitalization ATT_NAME(String ATT_NAME) { + this.ATT_NAME = ATT_NAME; return this; } @@ -156,10 +188,15 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "Name of the pet ") + @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getATTNAME() { return ATT_NAME; } + + public void setATTNAME(String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/Cat.java index 11ffa39d982..35f36932606 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/Cat.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import org.openapitools.client.model.CatAllOf; public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; - @JsonProperty(JSON_PROPERTY_DECLAWED) private Boolean declawed; + public Cat declawed(Boolean declawed) { + this.declawed = declawed; return this; } @@ -43,10 +45,15 @@ public class Cat extends Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getDeclawed() { return declawed; } + + public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/CatAllOf.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/CatAllOf.java index 1c12b1972cf..f498096d0bc 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/CatAllOf.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/CatAllOf.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty; public class CatAllOf { public static final String JSON_PROPERTY_DECLAWED = "declawed"; - @JsonProperty(JSON_PROPERTY_DECLAWED) private Boolean declawed; + public CatAllOf declawed(Boolean declawed) { + this.declawed = declawed; return this; } @@ -41,10 +43,15 @@ public class CatAllOf { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getDeclawed() { return declawed; } + + public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/Category.java index 652d69552d1..3c4385a7132 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/Category.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,14 +28,14 @@ import io.swagger.annotations.ApiModelProperty; public class Category { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name = "default-name"; + public Category id(Long id) { + this.id = id; return this; } @@ -45,15 +46,22 @@ public class Category { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Category name(String name) { + this.name = name; return this; } @@ -63,10 +71,15 @@ public class Category { * @return name **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/ClassModel.java index 16036936e7a..47ad8fce655 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/ClassModel.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,10 +29,11 @@ import io.swagger.annotations.ApiModelProperty; public class ClassModel { public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) private String propertyClass; + public ClassModel propertyClass(String propertyClass) { + this.propertyClass = propertyClass; return this; } @@ -42,10 +44,15 @@ public class ClassModel { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPropertyClass() { return propertyClass; } + + public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/Client.java index a5c065a1dd0..d325f1378cb 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/Client.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty; public class Client { public static final String JSON_PROPERTY_CLIENT = "client"; - @JsonProperty(JSON_PROPERTY_CLIENT) private String client; + public Client client(String client) { + this.client = client; return this; } @@ -41,10 +43,15 @@ public class Client { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getClient() { return client; } + + public void setClient(String client) { this.client = client; } diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/Dog.java index 7ac3c33202e..cc0acce7049 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/Dog.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import org.openapitools.client.model.DogAllOf; public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; - @JsonProperty(JSON_PROPERTY_BREED) private String breed; + public Dog breed(String breed) { + this.breed = breed; return this; } @@ -43,10 +45,15 @@ public class Dog extends Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBreed() { return breed; } + + public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/DogAllOf.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/DogAllOf.java index b79847a96e4..31d4cc3c80e 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/DogAllOf.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/DogAllOf.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty; public class DogAllOf { public static final String JSON_PROPERTY_BREED = "breed"; - @JsonProperty(JSON_PROPERTY_BREED) private String breed; + public DogAllOf breed(String breed) { + this.breed = breed; return this; } @@ -41,10 +43,15 @@ public class DogAllOf { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBreed() { return breed; } + + public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/EnumArrays.java index 93e0acd5746..c60e85ce7d6 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -64,7 +65,6 @@ public class EnumArrays { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) private JustSymbolEnum justSymbol; /** @@ -103,10 +103,11 @@ public class EnumArrays { } public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) private List arrayEnum = null; + public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + this.justSymbol = justSymbol; return this; } @@ -117,15 +118,22 @@ public class EnumArrays { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public JustSymbolEnum getJustSymbol() { return justSymbol; } + + public void setJustSymbol(JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } + public EnumArrays arrayEnum(List arrayEnum) { + this.arrayEnum = arrayEnum; return this; } @@ -144,10 +152,15 @@ public class EnumArrays { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArrayEnum() { return arrayEnum; } + + public void setArrayEnum(List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/EnumTest.java index bde85ff2a09..615f4806ebd 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/EnumTest.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -65,7 +66,6 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; - @JsonProperty(JSON_PROPERTY_ENUM_STRING) private EnumStringEnum enumString; /** @@ -106,7 +106,6 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) private EnumStringRequiredEnum enumStringRequired; /** @@ -145,7 +144,6 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) private EnumIntegerEnum enumInteger; /** @@ -184,14 +182,14 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) private OuterEnum outerEnum; + public EnumTest enumString(EnumStringEnum enumString) { + this.enumString = enumString; return this; } @@ -202,15 +200,22 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public EnumStringEnum getEnumString() { return enumString; } + + public void setEnumString(EnumStringEnum enumString) { this.enumString = enumString; } + public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + this.enumStringRequired = enumStringRequired; return this; } @@ -220,15 +225,22 @@ public class EnumTest { * @return enumStringRequired **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; } + + public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } + public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + this.enumInteger = enumInteger; return this; } @@ -239,15 +251,22 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public EnumIntegerEnum getEnumInteger() { return enumInteger; } + + public void setEnumInteger(EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } + public EnumTest enumNumber(EnumNumberEnum enumNumber) { + this.enumNumber = enumNumber; return this; } @@ -258,15 +277,22 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public EnumNumberEnum getEnumNumber() { return enumNumber; } + + public void setEnumNumber(EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } + public EnumTest outerEnum(OuterEnum outerEnum) { + this.outerEnum = outerEnum; return this; } @@ -277,10 +303,15 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OuterEnum getOuterEnum() { return outerEnum; } + + public void setOuterEnum(OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 1c2623fca90..e2dab74c358 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,14 +30,14 @@ import java.util.List; public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; - @JsonProperty(JSON_PROPERTY_FILE) - private java.io.File file = null; + private java.io.File file; public static final String JSON_PROPERTY_FILES = "files"; - @JsonProperty(JSON_PROPERTY_FILES) private List files = null; + public FileSchemaTestClass file(java.io.File file) { + this.file = file; return this; } @@ -47,15 +48,22 @@ public class FileSchemaTestClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FILE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public java.io.File getFile() { return file; } + + public void setFile(java.io.File file) { this.file = file; } + public FileSchemaTestClass files(List files) { + this.files = files; return this; } @@ -74,10 +82,15 @@ public class FileSchemaTestClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FILES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getFiles() { return files; } + + public void setFiles(List files) { this.files = files; } diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/FormatTest.java index 509048cd5e9..b6dd912d49e 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/FormatTest.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -32,58 +33,47 @@ import org.threeten.bp.OffsetDateTime; public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; - @JsonProperty(JSON_PROPERTY_INTEGER) private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; - @JsonProperty(JSON_PROPERTY_INT32) private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; - @JsonProperty(JSON_PROPERTY_INT64) private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; - @JsonProperty(JSON_PROPERTY_NUMBER) private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; - @JsonProperty(JSON_PROPERTY_FLOAT) private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; - @JsonProperty(JSON_PROPERTY_DOUBLE) private Double _double; public static final String JSON_PROPERTY_STRING = "string"; - @JsonProperty(JSON_PROPERTY_STRING) private String string; public static final String JSON_PROPERTY_BYTE = "byte"; - @JsonProperty(JSON_PROPERTY_BYTE) private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; - @JsonProperty(JSON_PROPERTY_BINARY) private File binary; public static final String JSON_PROPERTY_DATE = "date"; - @JsonProperty(JSON_PROPERTY_DATE) private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @JsonProperty(JSON_PROPERTY_DATE_TIME) private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; - @JsonProperty(JSON_PROPERTY_UUID) private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; - @JsonProperty(JSON_PROPERTY_PASSWORD) private String password; + public FormatTest integer(Integer integer) { + this.integer = integer; return this; } @@ -96,15 +86,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getInteger() { return integer; } + + public void setInteger(Integer integer) { this.integer = integer; } + public FormatTest int32(Integer int32) { + this.int32 = int32; return this; } @@ -117,15 +114,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INT32) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getInt32() { return int32; } + + public void setInt32(Integer int32) { this.int32 = int32; } + public FormatTest int64(Long int64) { + this.int64 = int64; return this; } @@ -136,15 +140,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INT64) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getInt64() { return int64; } + + public void setInt64(Long int64) { this.int64 = int64; } + public FormatTest number(BigDecimal number) { + this.number = number; return this; } @@ -156,15 +167,22 @@ public class FormatTest { * @return number **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getNumber() { return number; } + + public void setNumber(BigDecimal number) { this.number = number; } + public FormatTest _float(Float _float) { + this._float = _float; return this; } @@ -177,15 +195,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Float getFloat() { return _float; } + + public void setFloat(Float _float) { this._float = _float; } + public FormatTest _double(Double _double) { + this._double = _double; return this; } @@ -198,15 +223,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Double getDouble() { return _double; } + + public void setDouble(Double _double) { this._double = _double; } + public FormatTest string(String string) { + this.string = string; return this; } @@ -217,15 +249,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getString() { return string; } + + public void setString(String string) { this.string = string; } + public FormatTest _byte(byte[] _byte) { + this._byte = _byte; return this; } @@ -235,15 +274,22 @@ public class FormatTest { * @return _byte **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_BYTE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public byte[] getByte() { return _byte; } + + public void setByte(byte[] _byte) { this._byte = _byte; } + public FormatTest binary(File binary) { + this.binary = binary; return this; } @@ -254,15 +300,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BINARY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public File getBinary() { return binary; } + + public void setBinary(File binary) { this.binary = binary; } + public FormatTest date(LocalDate date) { + this.date = date; return this; } @@ -272,15 +325,22 @@ public class FormatTest { * @return date **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_DATE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public LocalDate getDate() { return date; } + + public void setDate(LocalDate date) { this.date = date; } + public FormatTest dateTime(OffsetDateTime dateTime) { + this.dateTime = dateTime; return this; } @@ -291,15 +351,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OffsetDateTime getDateTime() { return dateTime; } + + public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } + public FormatTest uuid(UUID uuid) { + this.uuid = uuid; return this; } @@ -310,15 +377,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public UUID getUuid() { return uuid; } + + public void setUuid(UUID uuid) { this.uuid = uuid; } + public FormatTest password(String password) { + this.password = password; return this; } @@ -328,10 +402,15 @@ public class FormatTest { * @return password **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getPassword() { return password; } + + public void setPassword(String password) { this.password = password; } diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index ad6b28d9d1e..9c25eddaa1b 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,34 +28,44 @@ import io.swagger.annotations.ApiModelProperty; public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; - @JsonProperty(JSON_PROPERTY_BAR) private String bar; public static final String JSON_PROPERTY_FOO = "foo"; - @JsonProperty(JSON_PROPERTY_FOO) private String foo; + /** * Get bar * @return bar **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BAR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBar() { return bar; } + + + /** * Get foo * @return foo **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FOO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getFoo() { return foo; } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/MapTest.java index 66b41268e51..c6193edaf98 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/MapTest.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,7 +31,6 @@ import java.util.Map; public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) private Map> mapMapOfString = null; /** @@ -69,18 +69,17 @@ public class MapTest { } public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) private Map mapOfEnumString = null; public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) private Map directMap = null; public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) private Map indirectMap = null; + public MapTest mapMapOfString(Map> mapMapOfString) { + this.mapMapOfString = mapMapOfString; return this; } @@ -99,15 +98,22 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapMapOfString() { return mapMapOfString; } + + public void setMapMapOfString(Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } + public MapTest mapOfEnumString(Map mapOfEnumString) { + this.mapOfEnumString = mapOfEnumString; return this; } @@ -126,15 +132,22 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapOfEnumString() { return mapOfEnumString; } + + public void setMapOfEnumString(Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } + public MapTest directMap(Map directMap) { + this.directMap = directMap; return this; } @@ -153,15 +166,22 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getDirectMap() { return directMap; } + + public void setDirectMap(Map directMap) { this.directMap = directMap; } + public MapTest indirectMap(Map indirectMap) { + this.indirectMap = indirectMap; return this; } @@ -180,10 +200,15 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getIndirectMap() { return indirectMap; } + + public void setIndirectMap(Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index b66724ea321..df4761bf27b 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -33,18 +34,17 @@ import org.threeten.bp.OffsetDateTime; public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; - @JsonProperty(JSON_PROPERTY_UUID) private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @JsonProperty(JSON_PROPERTY_DATE_TIME) private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; - @JsonProperty(JSON_PROPERTY_MAP) private Map map = null; + public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + this.uuid = uuid; return this; } @@ -55,15 +55,22 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public UUID getUuid() { return uuid; } + + public void setUuid(UUID uuid) { this.uuid = uuid; } + public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + this.dateTime = dateTime; return this; } @@ -74,15 +81,22 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OffsetDateTime getDateTime() { return dateTime; } + + public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } + public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + this.map = map; return this; } @@ -101,10 +115,15 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMap() { return map; } + + public void setMap(Map map) { this.map = map; } diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/Model200Response.java index d86df5d7eab..0b39d4177e2 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/Model200Response.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,14 +29,14 @@ import io.swagger.annotations.ApiModelProperty; public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) private String propertyClass; + public Model200Response name(Integer name) { + this.name = name; return this; } @@ -46,15 +47,22 @@ public class Model200Response { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getName() { return name; } + + public void setName(Integer name) { this.name = name; } + public Model200Response propertyClass(String propertyClass) { + this.propertyClass = propertyClass; return this; } @@ -65,10 +73,15 @@ public class Model200Response { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPropertyClass() { return propertyClass; } + + public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 4c9a7f87b5a..9ca6e78b233 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,18 +28,17 @@ import io.swagger.annotations.ApiModelProperty; public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; - @JsonProperty(JSON_PROPERTY_CODE) private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; - @JsonProperty(JSON_PROPERTY_TYPE) private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; - @JsonProperty(JSON_PROPERTY_MESSAGE) private String message; + public ModelApiResponse code(Integer code) { + this.code = code; return this; } @@ -49,15 +49,22 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getCode() { return code; } + + public void setCode(Integer code) { this.code = code; } + public ModelApiResponse type(String type) { + this.type = type; return this; } @@ -68,15 +75,22 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getType() { return type; } + + public void setType(String type) { this.type = type; } + public ModelApiResponse message(String message) { + this.message = message; return this; } @@ -87,10 +101,15 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/ModelReturn.java index 9c9ac21a3fb..300598b5d0b 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,10 +29,11 @@ import io.swagger.annotations.ApiModelProperty; public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; - @JsonProperty(JSON_PROPERTY_RETURN) private Integer _return; + public ModelReturn _return(Integer _return) { + this._return = _return; return this; } @@ -42,10 +44,15 @@ public class ModelReturn { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_RETURN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getReturn() { return _return; } + + public void setReturn(Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/Name.java index 47f89c54361..98a92f76c18 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/Name.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,22 +29,20 @@ import io.swagger.annotations.ApiModelProperty; public class Name { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; - @JsonProperty(JSON_PROPERTY_PROPERTY) private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; - @JsonProperty(JSON_PROPERTY_123NUMBER) private Integer _123number; + public Name name(Integer name) { + this.name = name; return this; } @@ -53,25 +52,38 @@ public class Name { * @return name **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getName() { return name; } + + public void setName(Integer name) { this.name = name; } + /** * Get snakeCase * @return snakeCase **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getSnakeCase() { return snakeCase; } + + + public Name property(String property) { + this.property = property; return this; } @@ -82,25 +94,36 @@ public class Name { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getProperty() { return property; } + + public void setProperty(String property) { this.property = property; } + /** * Get _123number * @return _123number **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_123NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer get123number() { return _123number; } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/NumberOnly.java index f5331da226e..499144e4016 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,10 +29,11 @@ import java.math.BigDecimal; public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) private BigDecimal justNumber; + public NumberOnly justNumber(BigDecimal justNumber) { + this.justNumber = justNumber; return this; } @@ -42,10 +44,15 @@ public class NumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getJustNumber() { return justNumber; } + + public void setJustNumber(BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/Order.java index 0d6bc154e46..fadc836b44a 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/Order.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,19 +29,15 @@ import org.threeten.bp.OffsetDateTime; public class Order { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; - @JsonProperty(JSON_PROPERTY_PET_ID) private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; - @JsonProperty(JSON_PROPERTY_QUANTITY) private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; - @JsonProperty(JSON_PROPERTY_SHIP_DATE) private OffsetDateTime shipDate; /** @@ -81,14 +78,14 @@ public class Order { } public static final String JSON_PROPERTY_STATUS = "status"; - @JsonProperty(JSON_PROPERTY_STATUS) private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; - @JsonProperty(JSON_PROPERTY_COMPLETE) private Boolean complete = false; + public Order id(Long id) { + this.id = id; return this; } @@ -99,15 +96,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Order petId(Long petId) { + this.petId = petId; return this; } @@ -118,15 +122,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getPetId() { return petId; } + + public void setPetId(Long petId) { this.petId = petId; } + public Order quantity(Integer quantity) { + this.quantity = quantity; return this; } @@ -137,15 +148,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getQuantity() { return quantity; } + + public void setQuantity(Integer quantity) { this.quantity = quantity; } + public Order shipDate(OffsetDateTime shipDate) { + this.shipDate = shipDate; return this; } @@ -156,15 +174,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OffsetDateTime getShipDate() { return shipDate; } + + public void setShipDate(OffsetDateTime shipDate) { this.shipDate = shipDate; } + public Order status(StatusEnum status) { + this.status = status; return this; } @@ -175,15 +200,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "Order Status") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public StatusEnum getStatus() { return status; } + + public void setStatus(StatusEnum status) { this.status = status; } + public Order complete(Boolean complete) { + this.complete = complete; return this; } @@ -194,10 +226,15 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getComplete() { return complete; } + + public void setComplete(Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/OuterComposite.java index 7193ba2a0c9..dab9d1be3a8 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,18 +29,17 @@ import java.math.BigDecimal; public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; - @JsonProperty(JSON_PROPERTY_MY_NUMBER) private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; - @JsonProperty(JSON_PROPERTY_MY_STRING) private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) private Boolean myBoolean; + public OuterComposite myNumber(BigDecimal myNumber) { + this.myNumber = myNumber; return this; } @@ -50,15 +50,22 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getMyNumber() { return myNumber; } + + public void setMyNumber(BigDecimal myNumber) { this.myNumber = myNumber; } + public OuterComposite myString(String myString) { + this.myString = myString; return this; } @@ -69,15 +76,22 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getMyString() { return myString; } + + public void setMyString(String myString) { this.myString = myString; } + public OuterComposite myBoolean(Boolean myBoolean) { + this.myBoolean = myBoolean; return this; } @@ -88,10 +102,15 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getMyBoolean() { return myBoolean; } + + public void setMyBoolean(Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/Pet.java index fb59d996bf6..63f1f3771b2 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/Pet.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,23 +32,18 @@ import org.openapitools.client.model.Tag; public class Pet { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; - @JsonProperty(JSON_PROPERTY_CATEGORY) - private Category category = null; + private Category category; public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) private List photoUrls = new ArrayList(); public static final String JSON_PROPERTY_TAGS = "tags"; - @JsonProperty(JSON_PROPERTY_TAGS) private List tags = null; /** @@ -88,10 +84,11 @@ public class Pet { } public static final String JSON_PROPERTY_STATUS = "status"; - @JsonProperty(JSON_PROPERTY_STATUS) private StatusEnum status; + public Pet id(Long id) { + this.id = id; return this; } @@ -102,15 +99,22 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Pet category(Category category) { + this.category = category; return this; } @@ -121,15 +125,22 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Category getCategory() { return category; } + + public void setCategory(Category category) { this.category = category; } + public Pet name(String name) { + this.name = name; return this; } @@ -139,15 +150,22 @@ public class Pet { * @return name **/ @ApiModelProperty(example = "doggie", required = true, value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public Pet photoUrls(List photoUrls) { + this.photoUrls = photoUrls; return this; } @@ -162,15 +180,22 @@ public class Pet { * @return photoUrls **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getPhotoUrls() { return photoUrls; } + + public void setPhotoUrls(List photoUrls) { this.photoUrls = photoUrls; } + public Pet tags(List tags) { + this.tags = tags; return this; } @@ -189,15 +214,22 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getTags() { return tags; } + + public void setTags(List tags) { this.tags = tags; } + public Pet status(StatusEnum status) { + this.status = status; return this; } @@ -208,10 +240,15 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "pet status in the store") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public StatusEnum getStatus() { return status; } + + public void setStatus(StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index b0949b9e2ea..28901097fa4 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,24 +28,30 @@ import io.swagger.annotations.ApiModelProperty; public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; - @JsonProperty(JSON_PROPERTY_BAR) private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; - @JsonProperty(JSON_PROPERTY_BAZ) private String baz; + /** * Get bar * @return bar **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BAR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBar() { return bar; } + + + public ReadOnlyFirst baz(String baz) { + this.baz = baz; return this; } @@ -55,10 +62,15 @@ public class ReadOnlyFirst { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BAZ) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBaz() { return baz; } + + public void setBaz(String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/SpecialModelName.java index a9d03234061..c7820abb0fc 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty; public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) private Long $specialPropertyName; + public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + this.$specialPropertyName = $specialPropertyName; return this; } @@ -41,10 +43,15 @@ public class SpecialModelName { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long get$SpecialPropertyName() { return $specialPropertyName; } + + public void set$SpecialPropertyName(Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/Tag.java index 45f17b22cf3..7e20ebf4a31 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/Tag.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,14 +28,14 @@ import io.swagger.annotations.ApiModelProperty; public class Tag { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public Tag id(Long id) { + this.id = id; return this; } @@ -45,15 +46,22 @@ public class Tag { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Tag name(String name) { + this.name = name; return this; } @@ -64,10 +72,15 @@ public class Tag { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index 0961f776fb0..37fbaac7e13 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,26 +31,23 @@ import java.util.List; public class TypeHolderDefault { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; - @JsonProperty(JSON_PROPERTY_STRING_ITEM) private String stringItem = "what"; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) private BigDecimal numberItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) private Boolean boolItem = true; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) private List arrayItem = new ArrayList(); + public TypeHolderDefault stringItem(String stringItem) { + this.stringItem = stringItem; return this; } @@ -59,15 +57,22 @@ public class TypeHolderDefault { * @return stringItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getStringItem() { return stringItem; } + + public void setStringItem(String stringItem) { this.stringItem = stringItem; } + public TypeHolderDefault numberItem(BigDecimal numberItem) { + this.numberItem = numberItem; return this; } @@ -77,15 +82,22 @@ public class TypeHolderDefault { * @return numberItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getNumberItem() { return numberItem; } + + public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } + public TypeHolderDefault integerItem(Integer integerItem) { + this.integerItem = integerItem; return this; } @@ -95,15 +107,22 @@ public class TypeHolderDefault { * @return integerItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getIntegerItem() { return integerItem; } + + public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } + public TypeHolderDefault boolItem(Boolean boolItem) { + this.boolItem = boolItem; return this; } @@ -113,15 +132,22 @@ public class TypeHolderDefault { * @return boolItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Boolean getBoolItem() { return boolItem; } + + public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } + public TypeHolderDefault arrayItem(List arrayItem) { + this.arrayItem = arrayItem; return this; } @@ -136,10 +162,15 @@ public class TypeHolderDefault { * @return arrayItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getArrayItem() { return arrayItem; } + + public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/TypeHolderExample.java index 3617c5c16b2..25ef3e65cee 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,26 +31,23 @@ import java.util.List; public class TypeHolderExample { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; - @JsonProperty(JSON_PROPERTY_STRING_ITEM) private String stringItem; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) private BigDecimal numberItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) private Boolean boolItem; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) private List arrayItem = new ArrayList(); + public TypeHolderExample stringItem(String stringItem) { + this.stringItem = stringItem; return this; } @@ -59,15 +57,22 @@ public class TypeHolderExample { * @return stringItem **/ @ApiModelProperty(example = "what", required = true, value = "") + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getStringItem() { return stringItem; } + + public void setStringItem(String stringItem) { this.stringItem = stringItem; } + public TypeHolderExample numberItem(BigDecimal numberItem) { + this.numberItem = numberItem; return this; } @@ -77,15 +82,22 @@ public class TypeHolderExample { * @return numberItem **/ @ApiModelProperty(example = "1.234", required = true, value = "") + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getNumberItem() { return numberItem; } + + public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } + public TypeHolderExample integerItem(Integer integerItem) { + this.integerItem = integerItem; return this; } @@ -95,15 +107,22 @@ public class TypeHolderExample { * @return integerItem **/ @ApiModelProperty(example = "-2", required = true, value = "") + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getIntegerItem() { return integerItem; } + + public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } + public TypeHolderExample boolItem(Boolean boolItem) { + this.boolItem = boolItem; return this; } @@ -113,15 +132,22 @@ public class TypeHolderExample { * @return boolItem **/ @ApiModelProperty(example = "true", required = true, value = "") + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Boolean getBoolItem() { return boolItem; } + + public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } + public TypeHolderExample arrayItem(List arrayItem) { + this.arrayItem = arrayItem; return this; } @@ -136,10 +162,15 @@ public class TypeHolderExample { * @return arrayItem **/ @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getArrayItem() { return arrayItem; } + + public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/User.java index 9ce7869e755..b181265d97d 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/User.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,38 +28,32 @@ import io.swagger.annotations.ApiModelProperty; public class User { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; - @JsonProperty(JSON_PROPERTY_USERNAME) private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; - @JsonProperty(JSON_PROPERTY_FIRST_NAME) private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; - @JsonProperty(JSON_PROPERTY_LAST_NAME) private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; - @JsonProperty(JSON_PROPERTY_EMAIL) private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; - @JsonProperty(JSON_PROPERTY_PASSWORD) private String password; public static final String JSON_PROPERTY_PHONE = "phone"; - @JsonProperty(JSON_PROPERTY_PHONE) private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; - @JsonProperty(JSON_PROPERTY_USER_STATUS) private Integer userStatus; + public User id(Long id) { + this.id = id; return this; } @@ -69,15 +64,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public User username(String username) { + this.username = username; return this; } @@ -88,15 +90,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getUsername() { return username; } + + public void setUsername(String username) { this.username = username; } + public User firstName(String firstName) { + this.firstName = firstName; return this; } @@ -107,15 +116,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getFirstName() { return firstName; } + + public void setFirstName(String firstName) { this.firstName = firstName; } + public User lastName(String lastName) { + this.lastName = lastName; return this; } @@ -126,15 +142,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getLastName() { return lastName; } + + public void setLastName(String lastName) { this.lastName = lastName; } + public User email(String email) { + this.email = email; return this; } @@ -145,15 +168,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getEmail() { return email; } + + public void setEmail(String email) { this.email = email; } + public User password(String password) { + this.password = password; return this; } @@ -164,15 +194,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPassword() { return password; } + + public void setPassword(String password) { this.password = password; } + public User phone(String phone) { + this.phone = phone; return this; } @@ -183,15 +220,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PHONE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPhone() { return phone; } + + public void setPhone(String phone) { this.phone = phone; } + public User userStatus(Integer userStatus) { + this.userStatus = userStatus; return this; } @@ -202,10 +246,15 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "User Status") + @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getUserStatus() { return userStatus; } + + public void setUserStatus(Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/XmlItem.java index 8be5213ca84..69467145249 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/XmlItem.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,122 +31,95 @@ import java.util.List; public class XmlItem { public static final String JSON_PROPERTY_ATTRIBUTE_STRING = "attribute_string"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) private String attributeString; public static final String JSON_PROPERTY_ATTRIBUTE_NUMBER = "attribute_number"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) private BigDecimal attributeNumber; public static final String JSON_PROPERTY_ATTRIBUTE_INTEGER = "attribute_integer"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) private Integer attributeInteger; public static final String JSON_PROPERTY_ATTRIBUTE_BOOLEAN = "attribute_boolean"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) private Boolean attributeBoolean; public static final String JSON_PROPERTY_WRAPPED_ARRAY = "wrapped_array"; - @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) private List wrappedArray = null; public static final String JSON_PROPERTY_NAME_STRING = "name_string"; - @JsonProperty(JSON_PROPERTY_NAME_STRING) private String nameString; public static final String JSON_PROPERTY_NAME_NUMBER = "name_number"; - @JsonProperty(JSON_PROPERTY_NAME_NUMBER) private BigDecimal nameNumber; public static final String JSON_PROPERTY_NAME_INTEGER = "name_integer"; - @JsonProperty(JSON_PROPERTY_NAME_INTEGER) private Integer nameInteger; public static final String JSON_PROPERTY_NAME_BOOLEAN = "name_boolean"; - @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) private Boolean nameBoolean; public static final String JSON_PROPERTY_NAME_ARRAY = "name_array"; - @JsonProperty(JSON_PROPERTY_NAME_ARRAY) private List nameArray = null; public static final String JSON_PROPERTY_NAME_WRAPPED_ARRAY = "name_wrapped_array"; - @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) private List nameWrappedArray = null; public static final String JSON_PROPERTY_PREFIX_STRING = "prefix_string"; - @JsonProperty(JSON_PROPERTY_PREFIX_STRING) private String prefixString; public static final String JSON_PROPERTY_PREFIX_NUMBER = "prefix_number"; - @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) private BigDecimal prefixNumber; public static final String JSON_PROPERTY_PREFIX_INTEGER = "prefix_integer"; - @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) private Integer prefixInteger; public static final String JSON_PROPERTY_PREFIX_BOOLEAN = "prefix_boolean"; - @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) private Boolean prefixBoolean; public static final String JSON_PROPERTY_PREFIX_ARRAY = "prefix_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) private List prefixArray = null; public static final String JSON_PROPERTY_PREFIX_WRAPPED_ARRAY = "prefix_wrapped_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) private List prefixWrappedArray = null; public static final String JSON_PROPERTY_NAMESPACE_STRING = "namespace_string"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) private String namespaceString; public static final String JSON_PROPERTY_NAMESPACE_NUMBER = "namespace_number"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) private BigDecimal namespaceNumber; public static final String JSON_PROPERTY_NAMESPACE_INTEGER = "namespace_integer"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) private Integer namespaceInteger; public static final String JSON_PROPERTY_NAMESPACE_BOOLEAN = "namespace_boolean"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) private Boolean namespaceBoolean; public static final String JSON_PROPERTY_NAMESPACE_ARRAY = "namespace_array"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) private List namespaceArray = null; public static final String JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY = "namespace_wrapped_array"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) private List namespaceWrappedArray = null; public static final String JSON_PROPERTY_PREFIX_NS_STRING = "prefix_ns_string"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) private String prefixNsString; public static final String JSON_PROPERTY_PREFIX_NS_NUMBER = "prefix_ns_number"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) private BigDecimal prefixNsNumber; public static final String JSON_PROPERTY_PREFIX_NS_INTEGER = "prefix_ns_integer"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) private Integer prefixNsInteger; public static final String JSON_PROPERTY_PREFIX_NS_BOOLEAN = "prefix_ns_boolean"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) private Boolean prefixNsBoolean; public static final String JSON_PROPERTY_PREFIX_NS_ARRAY = "prefix_ns_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) private List prefixNsArray = null; public static final String JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY = "prefix_ns_wrapped_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) private List prefixNsWrappedArray = null; + public XmlItem attributeString(String attributeString) { + this.attributeString = attributeString; return this; } @@ -156,15 +130,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getAttributeString() { return attributeString; } + + public void setAttributeString(String attributeString) { this.attributeString = attributeString; } + public XmlItem attributeNumber(BigDecimal attributeNumber) { + this.attributeNumber = attributeNumber; return this; } @@ -175,15 +156,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getAttributeNumber() { return attributeNumber; } + + public void setAttributeNumber(BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } + public XmlItem attributeInteger(Integer attributeInteger) { + this.attributeInteger = attributeInteger; return this; } @@ -194,15 +182,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getAttributeInteger() { return attributeInteger; } + + public void setAttributeInteger(Integer attributeInteger) { this.attributeInteger = attributeInteger; } + public XmlItem attributeBoolean(Boolean attributeBoolean) { + this.attributeBoolean = attributeBoolean; return this; } @@ -213,15 +208,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getAttributeBoolean() { return attributeBoolean; } + + public void setAttributeBoolean(Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } + public XmlItem wrappedArray(List wrappedArray) { + this.wrappedArray = wrappedArray; return this; } @@ -240,15 +242,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getWrappedArray() { return wrappedArray; } + + public void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } + public XmlItem nameString(String nameString) { + this.nameString = nameString; return this; } @@ -259,15 +268,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_NAME_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getNameString() { return nameString; } + + public void setNameString(String nameString) { this.nameString = nameString; } + public XmlItem nameNumber(BigDecimal nameNumber) { + this.nameNumber = nameNumber; return this; } @@ -278,15 +294,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_NAME_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getNameNumber() { return nameNumber; } + + public void setNameNumber(BigDecimal nameNumber) { this.nameNumber = nameNumber; } + public XmlItem nameInteger(Integer nameInteger) { + this.nameInteger = nameInteger; return this; } @@ -297,15 +320,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_NAME_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getNameInteger() { return nameInteger; } + + public void setNameInteger(Integer nameInteger) { this.nameInteger = nameInteger; } + public XmlItem nameBoolean(Boolean nameBoolean) { + this.nameBoolean = nameBoolean; return this; } @@ -316,15 +346,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getNameBoolean() { return nameBoolean; } + + public void setNameBoolean(Boolean nameBoolean) { this.nameBoolean = nameBoolean; } + public XmlItem nameArray(List nameArray) { + this.nameArray = nameArray; return this; } @@ -343,15 +380,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNameArray() { return nameArray; } + + public void setNameArray(List nameArray) { this.nameArray = nameArray; } + public XmlItem nameWrappedArray(List nameWrappedArray) { + this.nameWrappedArray = nameWrappedArray; return this; } @@ -370,15 +414,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNameWrappedArray() { return nameWrappedArray; } + + public void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } + public XmlItem prefixString(String prefixString) { + this.prefixString = prefixString; return this; } @@ -389,15 +440,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPrefixString() { return prefixString; } + + public void setPrefixString(String prefixString) { this.prefixString = prefixString; } + public XmlItem prefixNumber(BigDecimal prefixNumber) { + this.prefixNumber = prefixNumber; return this; } @@ -408,15 +466,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getPrefixNumber() { return prefixNumber; } + + public void setPrefixNumber(BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } + public XmlItem prefixInteger(Integer prefixInteger) { + this.prefixInteger = prefixInteger; return this; } @@ -427,15 +492,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getPrefixInteger() { return prefixInteger; } + + public void setPrefixInteger(Integer prefixInteger) { this.prefixInteger = prefixInteger; } + public XmlItem prefixBoolean(Boolean prefixBoolean) { + this.prefixBoolean = prefixBoolean; return this; } @@ -446,15 +518,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getPrefixBoolean() { return prefixBoolean; } + + public void setPrefixBoolean(Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } + public XmlItem prefixArray(List prefixArray) { + this.prefixArray = prefixArray; return this; } @@ -473,15 +552,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixArray() { return prefixArray; } + + public void setPrefixArray(List prefixArray) { this.prefixArray = prefixArray; } + public XmlItem prefixWrappedArray(List prefixWrappedArray) { + this.prefixWrappedArray = prefixWrappedArray; return this; } @@ -500,15 +586,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixWrappedArray() { return prefixWrappedArray; } + + public void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } + public XmlItem namespaceString(String namespaceString) { + this.namespaceString = namespaceString; return this; } @@ -519,15 +612,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getNamespaceString() { return namespaceString; } + + public void setNamespaceString(String namespaceString) { this.namespaceString = namespaceString; } + public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + this.namespaceNumber = namespaceNumber; return this; } @@ -538,15 +638,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getNamespaceNumber() { return namespaceNumber; } + + public void setNamespaceNumber(BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } + public XmlItem namespaceInteger(Integer namespaceInteger) { + this.namespaceInteger = namespaceInteger; return this; } @@ -557,15 +664,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getNamespaceInteger() { return namespaceInteger; } + + public void setNamespaceInteger(Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } + public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + this.namespaceBoolean = namespaceBoolean; return this; } @@ -576,15 +690,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getNamespaceBoolean() { return namespaceBoolean; } + + public void setNamespaceBoolean(Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } + public XmlItem namespaceArray(List namespaceArray) { + this.namespaceArray = namespaceArray; return this; } @@ -603,15 +724,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNamespaceArray() { return namespaceArray; } + + public void setNamespaceArray(List namespaceArray) { this.namespaceArray = namespaceArray; } + public XmlItem namespaceWrappedArray(List namespaceWrappedArray) { + this.namespaceWrappedArray = namespaceWrappedArray; return this; } @@ -630,15 +758,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNamespaceWrappedArray() { return namespaceWrappedArray; } + + public void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } + public XmlItem prefixNsString(String prefixNsString) { + this.prefixNsString = prefixNsString; return this; } @@ -649,15 +784,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPrefixNsString() { return prefixNsString; } + + public void setPrefixNsString(String prefixNsString) { this.prefixNsString = prefixNsString; } + public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + this.prefixNsNumber = prefixNsNumber; return this; } @@ -668,15 +810,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getPrefixNsNumber() { return prefixNsNumber; } + + public void setPrefixNsNumber(BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } + public XmlItem prefixNsInteger(Integer prefixNsInteger) { + this.prefixNsInteger = prefixNsInteger; return this; } @@ -687,15 +836,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getPrefixNsInteger() { return prefixNsInteger; } + + public void setPrefixNsInteger(Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } + public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + this.prefixNsBoolean = prefixNsBoolean; return this; } @@ -706,15 +862,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getPrefixNsBoolean() { return prefixNsBoolean; } + + public void setPrefixNsBoolean(Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } + public XmlItem prefixNsArray(List prefixNsArray) { + this.prefixNsArray = prefixNsArray; return this; } @@ -733,15 +896,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixNsArray() { return prefixNsArray; } + + public void setPrefixNsArray(List prefixNsArray) { this.prefixNsArray = prefixNsArray; } + public XmlItem prefixNsWrappedArray(List prefixNsWrappedArray) { + this.prefixNsWrappedArray = prefixNsWrappedArray; return this; } @@ -760,10 +930,15 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixNsWrappedArray() { return prefixNsWrappedArray; } + + public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/native/docs/UserApi.md b/samples/client/petstore/java/native/docs/UserApi.md index 4154aba4f17..ca9f550c316 100644 --- a/samples/client/petstore/java/native/docs/UserApi.md +++ b/samples/client/petstore/java/native/docs/UserApi.md @@ -101,7 +101,7 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); UserApi apiInstance = new UserApi(defaultClient); - List body = Arrays.asList(null); // List | List of user object + List body = Arrays.asList(); // List | List of user object try { apiInstance.createUsersWithArrayInput(body); } catch (ApiException e) { @@ -163,7 +163,7 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); UserApi apiInstance = new UserApi(defaultClient); - List body = Arrays.asList(null); // List | List of user object + List body = Arrays.asList(); // List | List of user object try { apiInstance.createUsersWithListInput(body); } catch (ApiException e) { diff --git a/samples/client/petstore/java/native/pom.xml b/samples/client/petstore/java/native/pom.xml index 522945ca750..273a741e0ed 100644 --- a/samples/client/petstore/java/native/pom.xml +++ b/samples/client/petstore/java/native/pom.xml @@ -181,6 +181,11 @@ jackson-datatype-jsr310 ${jackson-version} + + org.openapitools + jackson-databind-nullable + ${jackson-databind-nullable-version} + @@ -203,6 +208,7 @@ 11 11 2.9.9 + 0.2.0 4.12 diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/ApiClient.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/ApiClient.java index d09776ee9f0..3db8a760083 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/ApiClient.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/ApiClient.java @@ -17,6 +17,7 @@ import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.SerializationFeature; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; +import org.openapitools.jackson.nullable.JsonNullableModule; import java.net.URI; import java.net.URLEncoder; @@ -162,6 +163,8 @@ public class ApiClient { mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); mapper.registerModule(new JavaTimeModule()); + JsonNullableModule jnm = new JsonNullableModule(); + mapper.registerModule(jnm); URI baseURI = URI.create("http://petstore.swagger.io:80/v2"); scheme = baseURI.getScheme(); host = baseURI.getHost(); diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index 0df18c37e39..80e4d937cb7 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesAnyType extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesAnyType name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesAnyType extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 0d9a6b14532..59c845c40ac 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import java.util.Map; public class AdditionalPropertiesArray extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesArray name(String name) { + this.name = name; return this; } @@ -44,10 +46,15 @@ public class AdditionalPropertiesArray extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 8e85a1f2246..c6c2919f37d 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesBoolean extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesBoolean name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesBoolean extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } 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 48fb6a35b5c..1a37edc47bb 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,50 +32,41 @@ import java.util.Map; public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_STRING = "map_string"; - @JsonProperty(JSON_PROPERTY_MAP_STRING) private Map mapString = null; public static final String JSON_PROPERTY_MAP_NUMBER = "map_number"; - @JsonProperty(JSON_PROPERTY_MAP_NUMBER) private Map mapNumber = null; public static final String JSON_PROPERTY_MAP_INTEGER = "map_integer"; - @JsonProperty(JSON_PROPERTY_MAP_INTEGER) private Map mapInteger = null; public static final String JSON_PROPERTY_MAP_BOOLEAN = "map_boolean"; - @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) private Map mapBoolean = null; public static final String JSON_PROPERTY_MAP_ARRAY_INTEGER = "map_array_integer"; - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) private Map> mapArrayInteger = null; public static final String JSON_PROPERTY_MAP_ARRAY_ANYTYPE = "map_array_anytype"; - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) private Map> mapArrayAnytype = null; public static final String JSON_PROPERTY_MAP_MAP_STRING = "map_map_string"; - @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) private Map> mapMapString = null; public static final String JSON_PROPERTY_MAP_MAP_ANYTYPE = "map_map_anytype"; - @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) private Map> mapMapAnytype = null; public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1"; - @JsonProperty(JSON_PROPERTY_ANYTYPE1) - private Object anytype1 = null; + private Object anytype1; public static final String JSON_PROPERTY_ANYTYPE2 = "anytype_2"; - @JsonProperty(JSON_PROPERTY_ANYTYPE2) - private Object anytype2 = null; + private Object anytype2; public static final String JSON_PROPERTY_ANYTYPE3 = "anytype_3"; - @JsonProperty(JSON_PROPERTY_ANYTYPE3) - private Object anytype3 = null; + private Object anytype3; + public AdditionalPropertiesClass mapString(Map mapString) { + this.mapString = mapString; return this; } @@ -93,15 +85,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapString() { return mapString; } + + public void setMapString(Map mapString) { this.mapString = mapString; } + public AdditionalPropertiesClass mapNumber(Map mapNumber) { + this.mapNumber = mapNumber; return this; } @@ -120,15 +119,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapNumber() { return mapNumber; } + + public void setMapNumber(Map mapNumber) { this.mapNumber = mapNumber; } + public AdditionalPropertiesClass mapInteger(Map mapInteger) { + this.mapInteger = mapInteger; return this; } @@ -147,15 +153,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapInteger() { return mapInteger; } + + public void setMapInteger(Map mapInteger) { this.mapInteger = mapInteger; } + public AdditionalPropertiesClass mapBoolean(Map mapBoolean) { + this.mapBoolean = mapBoolean; return this; } @@ -174,15 +187,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapBoolean() { return mapBoolean; } + + public void setMapBoolean(Map mapBoolean) { this.mapBoolean = mapBoolean; } + public AdditionalPropertiesClass mapArrayInteger(Map> mapArrayInteger) { + this.mapArrayInteger = mapArrayInteger; return this; } @@ -201,15 +221,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapArrayInteger() { return mapArrayInteger; } + + public void setMapArrayInteger(Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; } + public AdditionalPropertiesClass mapArrayAnytype(Map> mapArrayAnytype) { + this.mapArrayAnytype = mapArrayAnytype; return this; } @@ -228,15 +255,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapArrayAnytype() { return mapArrayAnytype; } + + public void setMapArrayAnytype(Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; } + public AdditionalPropertiesClass mapMapString(Map> mapMapString) { + this.mapMapString = mapMapString; return this; } @@ -255,15 +289,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapMapString() { return mapMapString; } + + public void setMapMapString(Map> mapMapString) { this.mapMapString = mapMapString; } + public AdditionalPropertiesClass mapMapAnytype(Map> mapMapAnytype) { + this.mapMapAnytype = mapMapAnytype; return this; } @@ -282,15 +323,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapMapAnytype() { return mapMapAnytype; } + + public void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } + public AdditionalPropertiesClass anytype1(Object anytype1) { + this.anytype1 = anytype1; return this; } @@ -301,15 +349,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Object getAnytype1() { return anytype1; } + + public void setAnytype1(Object anytype1) { this.anytype1 = anytype1; } + public AdditionalPropertiesClass anytype2(Object anytype2) { + this.anytype2 = anytype2; return this; } @@ -320,15 +375,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ANYTYPE2) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Object getAnytype2() { return anytype2; } + + public void setAnytype2(Object anytype2) { this.anytype2 = anytype2; } + public AdditionalPropertiesClass anytype3(Object anytype3) { + this.anytype3 = anytype3; return this; } @@ -339,10 +401,15 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ANYTYPE3) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Object getAnytype3() { return anytype3; } + + public void setAnytype3(Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 77388b95d86..3d41e99ac8b 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesInteger extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesInteger name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesInteger extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index f0a3318bca1..799674f1e1b 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import java.util.Map; public class AdditionalPropertiesNumber extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesNumber name(String name) { + this.name = name; return this; } @@ -44,10 +46,15 @@ public class AdditionalPropertiesNumber extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index 19d772f4522..3d5a5c25bfa 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesObject extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesObject name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesObject extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 09e6431c916..d0c854414c3 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesString extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesString name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesString extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } 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 a2d34d82f47..1f548074919 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; @@ -35,14 +36,14 @@ import io.swagger.annotations.ApiModelProperty; public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; - @JsonProperty(JSON_PROPERTY_CLASS_NAME) private String className; public static final String JSON_PROPERTY_COLOR = "color"; - @JsonProperty(JSON_PROPERTY_COLOR) private String color = "red"; + public Animal className(String className) { + this.className = className; return this; } @@ -52,15 +53,22 @@ public class Animal { * @return className **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getClassName() { return className; } + + public void setClassName(String className) { this.className = className; } + public Animal color(String color) { + this.color = color; return this; } @@ -71,10 +79,15 @@ public class Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_COLOR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getColor() { return color; } + + public void setColor(String color) { this.color = color; } 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 4720e6aa390..01187710606 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import java.util.List; public class ArrayOfArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) private List> arrayArrayNumber = null; + public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + this.arrayArrayNumber = arrayArrayNumber; return this; } @@ -52,10 +54,15 @@ public class ArrayOfArrayOfNumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List> getArrayArrayNumber() { return arrayArrayNumber; } + + public void setArrayArrayNumber(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 2eb4ba9e28b..253867634d8 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import java.util.List; public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) private List arrayNumber = null; + public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + this.arrayNumber = arrayNumber; return this; } @@ -52,10 +54,15 @@ public class ArrayOfNumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArrayNumber() { return arrayNumber; } + + public void setArrayNumber(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 8cc6f0ea7a3..a440f0414ba 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,18 +31,17 @@ import org.openapitools.client.model.ReadOnlyFirst; public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) private List arrayOfString = null; public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) private List> arrayArrayOfInteger = null; public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) private List> arrayArrayOfModel = null; + public ArrayTest arrayOfString(List arrayOfString) { + this.arrayOfString = arrayOfString; return this; } @@ -60,15 +60,22 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArrayOfString() { return arrayOfString; } + + public void setArrayOfString(List arrayOfString) { this.arrayOfString = arrayOfString; } + public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + this.arrayArrayOfInteger = arrayArrayOfInteger; return this; } @@ -87,15 +94,22 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List> getArrayArrayOfInteger() { return arrayArrayOfInteger; } + + public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } + public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + this.arrayArrayOfModel = arrayArrayOfModel; return this; } @@ -114,10 +128,15 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List> getArrayArrayOfModel() { return arrayArrayOfModel; } + + public void setArrayArrayOfModel(List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } 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 1d4ebff1533..1db509bc7a9 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,30 +28,26 @@ import io.swagger.annotations.ApiModelProperty; public class Capitalization { public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) private String smallCamel; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) private String capitalCamel; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) private String smallSnake; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) private String capitalSnake; public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) private String scAETHFlowPoints; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) private String ATT_NAME; + public Capitalization smallCamel(String smallCamel) { + this.smallCamel = smallCamel; return this; } @@ -61,15 +58,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSmallCamel() { return smallCamel; } + + public void setSmallCamel(String smallCamel) { this.smallCamel = smallCamel; } + public Capitalization capitalCamel(String capitalCamel) { + this.capitalCamel = capitalCamel; return this; } @@ -80,15 +84,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getCapitalCamel() { return capitalCamel; } + + public void setCapitalCamel(String capitalCamel) { this.capitalCamel = capitalCamel; } + public Capitalization smallSnake(String smallSnake) { + this.smallSnake = smallSnake; return this; } @@ -99,15 +110,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSmallSnake() { return smallSnake; } + + public void setSmallSnake(String smallSnake) { this.smallSnake = smallSnake; } + public Capitalization capitalSnake(String capitalSnake) { + this.capitalSnake = capitalSnake; return this; } @@ -118,15 +136,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getCapitalSnake() { return capitalSnake; } + + public void setCapitalSnake(String capitalSnake) { this.capitalSnake = capitalSnake; } + public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -137,15 +162,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getScAETHFlowPoints() { return scAETHFlowPoints; } + + public void setScAETHFlowPoints(String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } + public Capitalization ATT_NAME(String ATT_NAME) { + this.ATT_NAME = ATT_NAME; return this; } @@ -156,10 +188,15 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "Name of the pet ") + @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getATTNAME() { return ATT_NAME; } + + public void setATTNAME(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 11ffa39d982..35f36932606 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import org.openapitools.client.model.CatAllOf; public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; - @JsonProperty(JSON_PROPERTY_DECLAWED) private Boolean declawed; + public Cat declawed(Boolean declawed) { + this.declawed = declawed; return this; } @@ -43,10 +45,15 @@ public class Cat extends Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getDeclawed() { return declawed; } + + public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/CatAllOf.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/CatAllOf.java index 1c12b1972cf..f498096d0bc 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/CatAllOf.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/CatAllOf.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty; public class CatAllOf { public static final String JSON_PROPERTY_DECLAWED = "declawed"; - @JsonProperty(JSON_PROPERTY_DECLAWED) private Boolean declawed; + public CatAllOf declawed(Boolean declawed) { + this.declawed = declawed; return this; } @@ -41,10 +43,15 @@ public class CatAllOf { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getDeclawed() { return declawed; } + + public void setDeclawed(Boolean declawed) { this.declawed = declawed; } 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 652d69552d1..3c4385a7132 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,14 +28,14 @@ import io.swagger.annotations.ApiModelProperty; public class Category { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name = "default-name"; + public Category id(Long id) { + this.id = id; return this; } @@ -45,15 +46,22 @@ public class Category { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Category name(String name) { + this.name = name; return this; } @@ -63,10 +71,15 @@ public class Category { * @return name **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } 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 16036936e7a..47ad8fce655 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,10 +29,11 @@ import io.swagger.annotations.ApiModelProperty; public class ClassModel { public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) private String propertyClass; + public ClassModel propertyClass(String propertyClass) { + this.propertyClass = propertyClass; return this; } @@ -42,10 +44,15 @@ public class ClassModel { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPropertyClass() { return propertyClass; } + + public void setPropertyClass(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 a5c065a1dd0..d325f1378cb 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty; public class Client { public static final String JSON_PROPERTY_CLIENT = "client"; - @JsonProperty(JSON_PROPERTY_CLIENT) private String client; + public Client client(String client) { + this.client = client; return this; } @@ -41,10 +43,15 @@ public class Client { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getClient() { return client; } + + public void setClient(String client) { this.client = client; } 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 7ac3c33202e..cc0acce7049 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import org.openapitools.client.model.DogAllOf; public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; - @JsonProperty(JSON_PROPERTY_BREED) private String breed; + public Dog breed(String breed) { + this.breed = breed; return this; } @@ -43,10 +45,15 @@ public class Dog extends Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBreed() { return breed; } + + public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/DogAllOf.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/DogAllOf.java index b79847a96e4..31d4cc3c80e 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/DogAllOf.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/DogAllOf.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty; public class DogAllOf { public static final String JSON_PROPERTY_BREED = "breed"; - @JsonProperty(JSON_PROPERTY_BREED) private String breed; + public DogAllOf breed(String breed) { + this.breed = breed; return this; } @@ -41,10 +43,15 @@ public class DogAllOf { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBreed() { return breed; } + + public void setBreed(String breed) { this.breed = breed; } 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 fe54ca63d14..116ce3648ac 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -64,7 +65,6 @@ public class EnumArrays { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) private JustSymbolEnum justSymbol; /** @@ -103,10 +103,11 @@ public class EnumArrays { } public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) private List arrayEnum = null; + public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + this.justSymbol = justSymbol; return this; } @@ -117,15 +118,22 @@ public class EnumArrays { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public JustSymbolEnum getJustSymbol() { return justSymbol; } + + public void setJustSymbol(JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } + public EnumArrays arrayEnum(List arrayEnum) { + this.arrayEnum = arrayEnum; return this; } @@ -144,10 +152,15 @@ public class EnumArrays { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArrayEnum() { return arrayEnum; } + + public void setArrayEnum(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 bde85ff2a09..615f4806ebd 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -65,7 +66,6 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; - @JsonProperty(JSON_PROPERTY_ENUM_STRING) private EnumStringEnum enumString; /** @@ -106,7 +106,6 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) private EnumStringRequiredEnum enumStringRequired; /** @@ -145,7 +144,6 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) private EnumIntegerEnum enumInteger; /** @@ -184,14 +182,14 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) private OuterEnum outerEnum; + public EnumTest enumString(EnumStringEnum enumString) { + this.enumString = enumString; return this; } @@ -202,15 +200,22 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public EnumStringEnum getEnumString() { return enumString; } + + public void setEnumString(EnumStringEnum enumString) { this.enumString = enumString; } + public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + this.enumStringRequired = enumStringRequired; return this; } @@ -220,15 +225,22 @@ public class EnumTest { * @return enumStringRequired **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; } + + public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } + public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + this.enumInteger = enumInteger; return this; } @@ -239,15 +251,22 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public EnumIntegerEnum getEnumInteger() { return enumInteger; } + + public void setEnumInteger(EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } + public EnumTest enumNumber(EnumNumberEnum enumNumber) { + this.enumNumber = enumNumber; return this; } @@ -258,15 +277,22 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public EnumNumberEnum getEnumNumber() { return enumNumber; } + + public void setEnumNumber(EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } + public EnumTest outerEnum(OuterEnum outerEnum) { + this.outerEnum = outerEnum; return this; } @@ -277,10 +303,15 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OuterEnum getOuterEnum() { return outerEnum; } + + public void setOuterEnum(OuterEnum outerEnum) { this.outerEnum = outerEnum; } 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 2d510f4342b..e1a6afc0291 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,14 +30,14 @@ import java.util.List; public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; - @JsonProperty(JSON_PROPERTY_FILE) - private java.io.File file = null; + private java.io.File file; public static final String JSON_PROPERTY_FILES = "files"; - @JsonProperty(JSON_PROPERTY_FILES) private List files = null; + public FileSchemaTestClass file(java.io.File file) { + this.file = file; return this; } @@ -47,15 +48,22 @@ public class FileSchemaTestClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FILE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public java.io.File getFile() { return file; } + + public void setFile(java.io.File file) { this.file = file; } + public FileSchemaTestClass files(List files) { + this.files = files; return this; } @@ -74,10 +82,15 @@ public class FileSchemaTestClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FILES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getFiles() { return files; } + + public void setFiles(List files) { this.files = files; } 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 1b9426d9ab6..6aa78ea7e1e 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -32,58 +33,47 @@ import java.util.UUID; public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; - @JsonProperty(JSON_PROPERTY_INTEGER) private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; - @JsonProperty(JSON_PROPERTY_INT32) private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; - @JsonProperty(JSON_PROPERTY_INT64) private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; - @JsonProperty(JSON_PROPERTY_NUMBER) private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; - @JsonProperty(JSON_PROPERTY_FLOAT) private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; - @JsonProperty(JSON_PROPERTY_DOUBLE) private Double _double; public static final String JSON_PROPERTY_STRING = "string"; - @JsonProperty(JSON_PROPERTY_STRING) private String string; public static final String JSON_PROPERTY_BYTE = "byte"; - @JsonProperty(JSON_PROPERTY_BYTE) private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; - @JsonProperty(JSON_PROPERTY_BINARY) private File binary; public static final String JSON_PROPERTY_DATE = "date"; - @JsonProperty(JSON_PROPERTY_DATE) private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @JsonProperty(JSON_PROPERTY_DATE_TIME) private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; - @JsonProperty(JSON_PROPERTY_UUID) private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; - @JsonProperty(JSON_PROPERTY_PASSWORD) private String password; + public FormatTest integer(Integer integer) { + this.integer = integer; return this; } @@ -96,15 +86,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getInteger() { return integer; } + + public void setInteger(Integer integer) { this.integer = integer; } + public FormatTest int32(Integer int32) { + this.int32 = int32; return this; } @@ -117,15 +114,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INT32) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getInt32() { return int32; } + + public void setInt32(Integer int32) { this.int32 = int32; } + public FormatTest int64(Long int64) { + this.int64 = int64; return this; } @@ -136,15 +140,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INT64) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getInt64() { return int64; } + + public void setInt64(Long int64) { this.int64 = int64; } + public FormatTest number(BigDecimal number) { + this.number = number; return this; } @@ -156,15 +167,22 @@ public class FormatTest { * @return number **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getNumber() { return number; } + + public void setNumber(BigDecimal number) { this.number = number; } + public FormatTest _float(Float _float) { + this._float = _float; return this; } @@ -177,15 +195,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Float getFloat() { return _float; } + + public void setFloat(Float _float) { this._float = _float; } + public FormatTest _double(Double _double) { + this._double = _double; return this; } @@ -198,15 +223,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Double getDouble() { return _double; } + + public void setDouble(Double _double) { this._double = _double; } + public FormatTest string(String string) { + this.string = string; return this; } @@ -217,15 +249,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getString() { return string; } + + public void setString(String string) { this.string = string; } + public FormatTest _byte(byte[] _byte) { + this._byte = _byte; return this; } @@ -235,15 +274,22 @@ public class FormatTest { * @return _byte **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_BYTE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public byte[] getByte() { return _byte; } + + public void setByte(byte[] _byte) { this._byte = _byte; } + public FormatTest binary(File binary) { + this.binary = binary; return this; } @@ -254,15 +300,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BINARY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public File getBinary() { return binary; } + + public void setBinary(File binary) { this.binary = binary; } + public FormatTest date(LocalDate date) { + this.date = date; return this; } @@ -272,15 +325,22 @@ public class FormatTest { * @return date **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_DATE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public LocalDate getDate() { return date; } + + public void setDate(LocalDate date) { this.date = date; } + public FormatTest dateTime(OffsetDateTime dateTime) { + this.dateTime = dateTime; return this; } @@ -291,15 +351,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OffsetDateTime getDateTime() { return dateTime; } + + public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } + public FormatTest uuid(UUID uuid) { + this.uuid = uuid; return this; } @@ -310,15 +377,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public UUID getUuid() { return uuid; } + + public void setUuid(UUID uuid) { this.uuid = uuid; } + public FormatTest password(String password) { + this.password = password; return this; } @@ -328,10 +402,15 @@ public class FormatTest { * @return password **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getPassword() { return password; } + + public void setPassword(String password) { this.password = password; } 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 ad6b28d9d1e..9c25eddaa1b 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,34 +28,44 @@ import io.swagger.annotations.ApiModelProperty; public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; - @JsonProperty(JSON_PROPERTY_BAR) private String bar; public static final String JSON_PROPERTY_FOO = "foo"; - @JsonProperty(JSON_PROPERTY_FOO) private String foo; + /** * Get bar * @return bar **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BAR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBar() { return bar; } + + + /** * Get foo * @return foo **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FOO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getFoo() { return foo; } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { 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 1fc9aa22f71..cbdd5db55e5 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,7 +31,6 @@ import java.util.Map; public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) private Map> mapMapOfString = null; /** @@ -69,18 +69,17 @@ public class MapTest { } public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) private Map mapOfEnumString = null; public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) private Map directMap = null; public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) private Map indirectMap = null; + public MapTest mapMapOfString(Map> mapMapOfString) { + this.mapMapOfString = mapMapOfString; return this; } @@ -99,15 +98,22 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapMapOfString() { return mapMapOfString; } + + public void setMapMapOfString(Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } + public MapTest mapOfEnumString(Map mapOfEnumString) { + this.mapOfEnumString = mapOfEnumString; return this; } @@ -126,15 +132,22 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapOfEnumString() { return mapOfEnumString; } + + public void setMapOfEnumString(Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } + public MapTest directMap(Map directMap) { + this.directMap = directMap; return this; } @@ -153,15 +166,22 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getDirectMap() { return directMap; } + + public void setDirectMap(Map directMap) { this.directMap = directMap; } + public MapTest indirectMap(Map indirectMap) { + this.indirectMap = indirectMap; return this; } @@ -180,10 +200,15 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getIndirectMap() { return indirectMap; } + + public void setIndirectMap(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 f538642c886..4dfcdb1ff96 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -33,18 +34,17 @@ import org.openapitools.client.model.Animal; public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; - @JsonProperty(JSON_PROPERTY_UUID) private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @JsonProperty(JSON_PROPERTY_DATE_TIME) private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; - @JsonProperty(JSON_PROPERTY_MAP) private Map map = null; + public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + this.uuid = uuid; return this; } @@ -55,15 +55,22 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public UUID getUuid() { return uuid; } + + public void setUuid(UUID uuid) { this.uuid = uuid; } + public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + this.dateTime = dateTime; return this; } @@ -74,15 +81,22 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OffsetDateTime getDateTime() { return dateTime; } + + public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } + public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + this.map = map; return this; } @@ -101,10 +115,15 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMap() { return map; } + + public void setMap(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 d86df5d7eab..0b39d4177e2 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,14 +29,14 @@ import io.swagger.annotations.ApiModelProperty; public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) private String propertyClass; + public Model200Response name(Integer name) { + this.name = name; return this; } @@ -46,15 +47,22 @@ public class Model200Response { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getName() { return name; } + + public void setName(Integer name) { this.name = name; } + public Model200Response propertyClass(String propertyClass) { + this.propertyClass = propertyClass; return this; } @@ -65,10 +73,15 @@ public class Model200Response { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPropertyClass() { return propertyClass; } + + public void setPropertyClass(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 4c9a7f87b5a..9ca6e78b233 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,18 +28,17 @@ import io.swagger.annotations.ApiModelProperty; public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; - @JsonProperty(JSON_PROPERTY_CODE) private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; - @JsonProperty(JSON_PROPERTY_TYPE) private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; - @JsonProperty(JSON_PROPERTY_MESSAGE) private String message; + public ModelApiResponse code(Integer code) { + this.code = code; return this; } @@ -49,15 +49,22 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getCode() { return code; } + + public void setCode(Integer code) { this.code = code; } + public ModelApiResponse type(String type) { + this.type = type; return this; } @@ -68,15 +75,22 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getType() { return type; } + + public void setType(String type) { this.type = type; } + public ModelApiResponse message(String message) { + this.message = message; return this; } @@ -87,10 +101,15 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } 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 9c9ac21a3fb..300598b5d0b 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,10 +29,11 @@ import io.swagger.annotations.ApiModelProperty; public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; - @JsonProperty(JSON_PROPERTY_RETURN) private Integer _return; + public ModelReturn _return(Integer _return) { + this._return = _return; return this; } @@ -42,10 +44,15 @@ public class ModelReturn { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_RETURN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getReturn() { return _return; } + + public void setReturn(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 47f89c54361..98a92f76c18 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,22 +29,20 @@ import io.swagger.annotations.ApiModelProperty; public class Name { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; - @JsonProperty(JSON_PROPERTY_PROPERTY) private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; - @JsonProperty(JSON_PROPERTY_123NUMBER) private Integer _123number; + public Name name(Integer name) { + this.name = name; return this; } @@ -53,25 +52,38 @@ public class Name { * @return name **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getName() { return name; } + + public void setName(Integer name) { this.name = name; } + /** * Get snakeCase * @return snakeCase **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getSnakeCase() { return snakeCase; } + + + public Name property(String property) { + this.property = property; return this; } @@ -82,25 +94,36 @@ public class Name { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getProperty() { return property; } + + public void setProperty(String property) { this.property = property; } + /** * Get _123number * @return _123number **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_123NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer get123number() { return _123number; } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { 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 f5331da226e..499144e4016 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,10 +29,11 @@ import java.math.BigDecimal; public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) private BigDecimal justNumber; + public NumberOnly justNumber(BigDecimal justNumber) { + this.justNumber = justNumber; return this; } @@ -42,10 +44,15 @@ public class NumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getJustNumber() { return justNumber; } + + public void setJustNumber(BigDecimal justNumber) { this.justNumber = justNumber; } 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 0730133f9cb..20a630250c8 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,19 +29,15 @@ import java.time.OffsetDateTime; public class Order { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; - @JsonProperty(JSON_PROPERTY_PET_ID) private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; - @JsonProperty(JSON_PROPERTY_QUANTITY) private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; - @JsonProperty(JSON_PROPERTY_SHIP_DATE) private OffsetDateTime shipDate; /** @@ -81,14 +78,14 @@ public class Order { } public static final String JSON_PROPERTY_STATUS = "status"; - @JsonProperty(JSON_PROPERTY_STATUS) private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; - @JsonProperty(JSON_PROPERTY_COMPLETE) private Boolean complete = false; + public Order id(Long id) { + this.id = id; return this; } @@ -99,15 +96,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Order petId(Long petId) { + this.petId = petId; return this; } @@ -118,15 +122,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getPetId() { return petId; } + + public void setPetId(Long petId) { this.petId = petId; } + public Order quantity(Integer quantity) { + this.quantity = quantity; return this; } @@ -137,15 +148,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getQuantity() { return quantity; } + + public void setQuantity(Integer quantity) { this.quantity = quantity; } + public Order shipDate(OffsetDateTime shipDate) { + this.shipDate = shipDate; return this; } @@ -156,15 +174,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OffsetDateTime getShipDate() { return shipDate; } + + public void setShipDate(OffsetDateTime shipDate) { this.shipDate = shipDate; } + public Order status(StatusEnum status) { + this.status = status; return this; } @@ -175,15 +200,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "Order Status") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public StatusEnum getStatus() { return status; } + + public void setStatus(StatusEnum status) { this.status = status; } + public Order complete(Boolean complete) { + this.complete = complete; return this; } @@ -194,10 +226,15 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getComplete() { return complete; } + + public void setComplete(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 7193ba2a0c9..dab9d1be3a8 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,18 +29,17 @@ import java.math.BigDecimal; public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; - @JsonProperty(JSON_PROPERTY_MY_NUMBER) private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; - @JsonProperty(JSON_PROPERTY_MY_STRING) private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) private Boolean myBoolean; + public OuterComposite myNumber(BigDecimal myNumber) { + this.myNumber = myNumber; return this; } @@ -50,15 +50,22 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getMyNumber() { return myNumber; } + + public void setMyNumber(BigDecimal myNumber) { this.myNumber = myNumber; } + public OuterComposite myString(String myString) { + this.myString = myString; return this; } @@ -69,15 +76,22 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getMyString() { return myString; } + + public void setMyString(String myString) { this.myString = myString; } + public OuterComposite myBoolean(Boolean myBoolean) { + this.myBoolean = myBoolean; return this; } @@ -88,10 +102,15 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getMyBoolean() { return myBoolean; } + + public void setMyBoolean(Boolean myBoolean) { this.myBoolean = myBoolean; } 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 948cb6b92f9..1d9cdb5ed07 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,23 +32,18 @@ import org.openapitools.client.model.Tag; public class Pet { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; - @JsonProperty(JSON_PROPERTY_CATEGORY) - private Category category = null; + private Category category; public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) private List photoUrls = new ArrayList<>(); public static final String JSON_PROPERTY_TAGS = "tags"; - @JsonProperty(JSON_PROPERTY_TAGS) private List tags = null; /** @@ -88,10 +84,11 @@ public class Pet { } public static final String JSON_PROPERTY_STATUS = "status"; - @JsonProperty(JSON_PROPERTY_STATUS) private StatusEnum status; + public Pet id(Long id) { + this.id = id; return this; } @@ -102,15 +99,22 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Pet category(Category category) { + this.category = category; return this; } @@ -121,15 +125,22 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Category getCategory() { return category; } + + public void setCategory(Category category) { this.category = category; } + public Pet name(String name) { + this.name = name; return this; } @@ -139,15 +150,22 @@ public class Pet { * @return name **/ @ApiModelProperty(example = "doggie", required = true, value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public Pet photoUrls(List photoUrls) { + this.photoUrls = photoUrls; return this; } @@ -162,15 +180,22 @@ public class Pet { * @return photoUrls **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getPhotoUrls() { return photoUrls; } + + public void setPhotoUrls(List photoUrls) { this.photoUrls = photoUrls; } + public Pet tags(List tags) { + this.tags = tags; return this; } @@ -189,15 +214,22 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getTags() { return tags; } + + public void setTags(List tags) { this.tags = tags; } + public Pet status(StatusEnum status) { + this.status = status; return this; } @@ -208,10 +240,15 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "pet status in the store") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public StatusEnum getStatus() { return status; } + + public void setStatus(StatusEnum status) { this.status = status; } 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 b0949b9e2ea..28901097fa4 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,24 +28,30 @@ import io.swagger.annotations.ApiModelProperty; public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; - @JsonProperty(JSON_PROPERTY_BAR) private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; - @JsonProperty(JSON_PROPERTY_BAZ) private String baz; + /** * Get bar * @return bar **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BAR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBar() { return bar; } + + + public ReadOnlyFirst baz(String baz) { + this.baz = baz; return this; } @@ -55,10 +62,15 @@ public class ReadOnlyFirst { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BAZ) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBaz() { return baz; } + + public void setBaz(String baz) { this.baz = baz; } 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 a9d03234061..c7820abb0fc 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty; public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) private Long $specialPropertyName; + public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + this.$specialPropertyName = $specialPropertyName; return this; } @@ -41,10 +43,15 @@ public class SpecialModelName { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long get$SpecialPropertyName() { return $specialPropertyName; } + + public void set$SpecialPropertyName(Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } 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 45f17b22cf3..7e20ebf4a31 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,14 +28,14 @@ import io.swagger.annotations.ApiModelProperty; public class Tag { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public Tag id(Long id) { + this.id = id; return this; } @@ -45,15 +46,22 @@ public class Tag { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Tag name(String name) { + this.name = name; return this; } @@ -64,10 +72,15 @@ public class Tag { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index 3f3030998f1..7b858daccac 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,26 +31,23 @@ import java.util.List; public class TypeHolderDefault { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; - @JsonProperty(JSON_PROPERTY_STRING_ITEM) private String stringItem = "what"; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) private BigDecimal numberItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) private Boolean boolItem = true; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) private List arrayItem = new ArrayList<>(); + public TypeHolderDefault stringItem(String stringItem) { + this.stringItem = stringItem; return this; } @@ -59,15 +57,22 @@ public class TypeHolderDefault { * @return stringItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getStringItem() { return stringItem; } + + public void setStringItem(String stringItem) { this.stringItem = stringItem; } + public TypeHolderDefault numberItem(BigDecimal numberItem) { + this.numberItem = numberItem; return this; } @@ -77,15 +82,22 @@ public class TypeHolderDefault { * @return numberItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getNumberItem() { return numberItem; } + + public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } + public TypeHolderDefault integerItem(Integer integerItem) { + this.integerItem = integerItem; return this; } @@ -95,15 +107,22 @@ public class TypeHolderDefault { * @return integerItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getIntegerItem() { return integerItem; } + + public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } + public TypeHolderDefault boolItem(Boolean boolItem) { + this.boolItem = boolItem; return this; } @@ -113,15 +132,22 @@ public class TypeHolderDefault { * @return boolItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Boolean getBoolItem() { return boolItem; } + + public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } + public TypeHolderDefault arrayItem(List arrayItem) { + this.arrayItem = arrayItem; return this; } @@ -136,10 +162,15 @@ public class TypeHolderDefault { * @return arrayItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getArrayItem() { return arrayItem; } + + public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/TypeHolderExample.java index 99ddaa8d2eb..34406ee33cb 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,26 +31,23 @@ import java.util.List; public class TypeHolderExample { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; - @JsonProperty(JSON_PROPERTY_STRING_ITEM) private String stringItem; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) private BigDecimal numberItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) private Boolean boolItem; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) private List arrayItem = new ArrayList<>(); + public TypeHolderExample stringItem(String stringItem) { + this.stringItem = stringItem; return this; } @@ -59,15 +57,22 @@ public class TypeHolderExample { * @return stringItem **/ @ApiModelProperty(example = "what", required = true, value = "") + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getStringItem() { return stringItem; } + + public void setStringItem(String stringItem) { this.stringItem = stringItem; } + public TypeHolderExample numberItem(BigDecimal numberItem) { + this.numberItem = numberItem; return this; } @@ -77,15 +82,22 @@ public class TypeHolderExample { * @return numberItem **/ @ApiModelProperty(example = "1.234", required = true, value = "") + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getNumberItem() { return numberItem; } + + public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } + public TypeHolderExample integerItem(Integer integerItem) { + this.integerItem = integerItem; return this; } @@ -95,15 +107,22 @@ public class TypeHolderExample { * @return integerItem **/ @ApiModelProperty(example = "-2", required = true, value = "") + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getIntegerItem() { return integerItem; } + + public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } + public TypeHolderExample boolItem(Boolean boolItem) { + this.boolItem = boolItem; return this; } @@ -113,15 +132,22 @@ public class TypeHolderExample { * @return boolItem **/ @ApiModelProperty(example = "true", required = true, value = "") + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Boolean getBoolItem() { return boolItem; } + + public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } + public TypeHolderExample arrayItem(List arrayItem) { + this.arrayItem = arrayItem; return this; } @@ -136,10 +162,15 @@ public class TypeHolderExample { * @return arrayItem **/ @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getArrayItem() { return arrayItem; } + + public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/User.java index 9ce7869e755..b181265d97d 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/User.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,38 +28,32 @@ import io.swagger.annotations.ApiModelProperty; public class User { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; - @JsonProperty(JSON_PROPERTY_USERNAME) private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; - @JsonProperty(JSON_PROPERTY_FIRST_NAME) private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; - @JsonProperty(JSON_PROPERTY_LAST_NAME) private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; - @JsonProperty(JSON_PROPERTY_EMAIL) private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; - @JsonProperty(JSON_PROPERTY_PASSWORD) private String password; public static final String JSON_PROPERTY_PHONE = "phone"; - @JsonProperty(JSON_PROPERTY_PHONE) private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; - @JsonProperty(JSON_PROPERTY_USER_STATUS) private Integer userStatus; + public User id(Long id) { + this.id = id; return this; } @@ -69,15 +64,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public User username(String username) { + this.username = username; return this; } @@ -88,15 +90,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getUsername() { return username; } + + public void setUsername(String username) { this.username = username; } + public User firstName(String firstName) { + this.firstName = firstName; return this; } @@ -107,15 +116,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getFirstName() { return firstName; } + + public void setFirstName(String firstName) { this.firstName = firstName; } + public User lastName(String lastName) { + this.lastName = lastName; return this; } @@ -126,15 +142,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getLastName() { return lastName; } + + public void setLastName(String lastName) { this.lastName = lastName; } + public User email(String email) { + this.email = email; return this; } @@ -145,15 +168,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getEmail() { return email; } + + public void setEmail(String email) { this.email = email; } + public User password(String password) { + this.password = password; return this; } @@ -164,15 +194,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPassword() { return password; } + + public void setPassword(String password) { this.password = password; } + public User phone(String phone) { + this.phone = phone; return this; } @@ -183,15 +220,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PHONE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPhone() { return phone; } + + public void setPhone(String phone) { this.phone = phone; } + public User userStatus(Integer userStatus) { + this.userStatus = userStatus; return this; } @@ -202,10 +246,15 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "User Status") + @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getUserStatus() { return userStatus; } + + public void setUserStatus(Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/XmlItem.java index dc0ad56c1af..b014391d846 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/XmlItem.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,122 +31,95 @@ import java.util.List; public class XmlItem { public static final String JSON_PROPERTY_ATTRIBUTE_STRING = "attribute_string"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) private String attributeString; public static final String JSON_PROPERTY_ATTRIBUTE_NUMBER = "attribute_number"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) private BigDecimal attributeNumber; public static final String JSON_PROPERTY_ATTRIBUTE_INTEGER = "attribute_integer"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) private Integer attributeInteger; public static final String JSON_PROPERTY_ATTRIBUTE_BOOLEAN = "attribute_boolean"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) private Boolean attributeBoolean; public static final String JSON_PROPERTY_WRAPPED_ARRAY = "wrapped_array"; - @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) private List wrappedArray = null; public static final String JSON_PROPERTY_NAME_STRING = "name_string"; - @JsonProperty(JSON_PROPERTY_NAME_STRING) private String nameString; public static final String JSON_PROPERTY_NAME_NUMBER = "name_number"; - @JsonProperty(JSON_PROPERTY_NAME_NUMBER) private BigDecimal nameNumber; public static final String JSON_PROPERTY_NAME_INTEGER = "name_integer"; - @JsonProperty(JSON_PROPERTY_NAME_INTEGER) private Integer nameInteger; public static final String JSON_PROPERTY_NAME_BOOLEAN = "name_boolean"; - @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) private Boolean nameBoolean; public static final String JSON_PROPERTY_NAME_ARRAY = "name_array"; - @JsonProperty(JSON_PROPERTY_NAME_ARRAY) private List nameArray = null; public static final String JSON_PROPERTY_NAME_WRAPPED_ARRAY = "name_wrapped_array"; - @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) private List nameWrappedArray = null; public static final String JSON_PROPERTY_PREFIX_STRING = "prefix_string"; - @JsonProperty(JSON_PROPERTY_PREFIX_STRING) private String prefixString; public static final String JSON_PROPERTY_PREFIX_NUMBER = "prefix_number"; - @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) private BigDecimal prefixNumber; public static final String JSON_PROPERTY_PREFIX_INTEGER = "prefix_integer"; - @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) private Integer prefixInteger; public static final String JSON_PROPERTY_PREFIX_BOOLEAN = "prefix_boolean"; - @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) private Boolean prefixBoolean; public static final String JSON_PROPERTY_PREFIX_ARRAY = "prefix_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) private List prefixArray = null; public static final String JSON_PROPERTY_PREFIX_WRAPPED_ARRAY = "prefix_wrapped_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) private List prefixWrappedArray = null; public static final String JSON_PROPERTY_NAMESPACE_STRING = "namespace_string"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) private String namespaceString; public static final String JSON_PROPERTY_NAMESPACE_NUMBER = "namespace_number"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) private BigDecimal namespaceNumber; public static final String JSON_PROPERTY_NAMESPACE_INTEGER = "namespace_integer"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) private Integer namespaceInteger; public static final String JSON_PROPERTY_NAMESPACE_BOOLEAN = "namespace_boolean"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) private Boolean namespaceBoolean; public static final String JSON_PROPERTY_NAMESPACE_ARRAY = "namespace_array"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) private List namespaceArray = null; public static final String JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY = "namespace_wrapped_array"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) private List namespaceWrappedArray = null; public static final String JSON_PROPERTY_PREFIX_NS_STRING = "prefix_ns_string"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) private String prefixNsString; public static final String JSON_PROPERTY_PREFIX_NS_NUMBER = "prefix_ns_number"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) private BigDecimal prefixNsNumber; public static final String JSON_PROPERTY_PREFIX_NS_INTEGER = "prefix_ns_integer"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) private Integer prefixNsInteger; public static final String JSON_PROPERTY_PREFIX_NS_BOOLEAN = "prefix_ns_boolean"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) private Boolean prefixNsBoolean; public static final String JSON_PROPERTY_PREFIX_NS_ARRAY = "prefix_ns_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) private List prefixNsArray = null; public static final String JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY = "prefix_ns_wrapped_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) private List prefixNsWrappedArray = null; + public XmlItem attributeString(String attributeString) { + this.attributeString = attributeString; return this; } @@ -156,15 +130,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getAttributeString() { return attributeString; } + + public void setAttributeString(String attributeString) { this.attributeString = attributeString; } + public XmlItem attributeNumber(BigDecimal attributeNumber) { + this.attributeNumber = attributeNumber; return this; } @@ -175,15 +156,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getAttributeNumber() { return attributeNumber; } + + public void setAttributeNumber(BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } + public XmlItem attributeInteger(Integer attributeInteger) { + this.attributeInteger = attributeInteger; return this; } @@ -194,15 +182,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getAttributeInteger() { return attributeInteger; } + + public void setAttributeInteger(Integer attributeInteger) { this.attributeInteger = attributeInteger; } + public XmlItem attributeBoolean(Boolean attributeBoolean) { + this.attributeBoolean = attributeBoolean; return this; } @@ -213,15 +208,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getAttributeBoolean() { return attributeBoolean; } + + public void setAttributeBoolean(Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } + public XmlItem wrappedArray(List wrappedArray) { + this.wrappedArray = wrappedArray; return this; } @@ -240,15 +242,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getWrappedArray() { return wrappedArray; } + + public void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } + public XmlItem nameString(String nameString) { + this.nameString = nameString; return this; } @@ -259,15 +268,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_NAME_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getNameString() { return nameString; } + + public void setNameString(String nameString) { this.nameString = nameString; } + public XmlItem nameNumber(BigDecimal nameNumber) { + this.nameNumber = nameNumber; return this; } @@ -278,15 +294,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_NAME_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getNameNumber() { return nameNumber; } + + public void setNameNumber(BigDecimal nameNumber) { this.nameNumber = nameNumber; } + public XmlItem nameInteger(Integer nameInteger) { + this.nameInteger = nameInteger; return this; } @@ -297,15 +320,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_NAME_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getNameInteger() { return nameInteger; } + + public void setNameInteger(Integer nameInteger) { this.nameInteger = nameInteger; } + public XmlItem nameBoolean(Boolean nameBoolean) { + this.nameBoolean = nameBoolean; return this; } @@ -316,15 +346,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getNameBoolean() { return nameBoolean; } + + public void setNameBoolean(Boolean nameBoolean) { this.nameBoolean = nameBoolean; } + public XmlItem nameArray(List nameArray) { + this.nameArray = nameArray; return this; } @@ -343,15 +380,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNameArray() { return nameArray; } + + public void setNameArray(List nameArray) { this.nameArray = nameArray; } + public XmlItem nameWrappedArray(List nameWrappedArray) { + this.nameWrappedArray = nameWrappedArray; return this; } @@ -370,15 +414,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNameWrappedArray() { return nameWrappedArray; } + + public void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } + public XmlItem prefixString(String prefixString) { + this.prefixString = prefixString; return this; } @@ -389,15 +440,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPrefixString() { return prefixString; } + + public void setPrefixString(String prefixString) { this.prefixString = prefixString; } + public XmlItem prefixNumber(BigDecimal prefixNumber) { + this.prefixNumber = prefixNumber; return this; } @@ -408,15 +466,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getPrefixNumber() { return prefixNumber; } + + public void setPrefixNumber(BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } + public XmlItem prefixInteger(Integer prefixInteger) { + this.prefixInteger = prefixInteger; return this; } @@ -427,15 +492,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getPrefixInteger() { return prefixInteger; } + + public void setPrefixInteger(Integer prefixInteger) { this.prefixInteger = prefixInteger; } + public XmlItem prefixBoolean(Boolean prefixBoolean) { + this.prefixBoolean = prefixBoolean; return this; } @@ -446,15 +518,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getPrefixBoolean() { return prefixBoolean; } + + public void setPrefixBoolean(Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } + public XmlItem prefixArray(List prefixArray) { + this.prefixArray = prefixArray; return this; } @@ -473,15 +552,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixArray() { return prefixArray; } + + public void setPrefixArray(List prefixArray) { this.prefixArray = prefixArray; } + public XmlItem prefixWrappedArray(List prefixWrappedArray) { + this.prefixWrappedArray = prefixWrappedArray; return this; } @@ -500,15 +586,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixWrappedArray() { return prefixWrappedArray; } + + public void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } + public XmlItem namespaceString(String namespaceString) { + this.namespaceString = namespaceString; return this; } @@ -519,15 +612,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getNamespaceString() { return namespaceString; } + + public void setNamespaceString(String namespaceString) { this.namespaceString = namespaceString; } + public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + this.namespaceNumber = namespaceNumber; return this; } @@ -538,15 +638,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getNamespaceNumber() { return namespaceNumber; } + + public void setNamespaceNumber(BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } + public XmlItem namespaceInteger(Integer namespaceInteger) { + this.namespaceInteger = namespaceInteger; return this; } @@ -557,15 +664,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getNamespaceInteger() { return namespaceInteger; } + + public void setNamespaceInteger(Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } + public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + this.namespaceBoolean = namespaceBoolean; return this; } @@ -576,15 +690,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getNamespaceBoolean() { return namespaceBoolean; } + + public void setNamespaceBoolean(Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } + public XmlItem namespaceArray(List namespaceArray) { + this.namespaceArray = namespaceArray; return this; } @@ -603,15 +724,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNamespaceArray() { return namespaceArray; } + + public void setNamespaceArray(List namespaceArray) { this.namespaceArray = namespaceArray; } + public XmlItem namespaceWrappedArray(List namespaceWrappedArray) { + this.namespaceWrappedArray = namespaceWrappedArray; return this; } @@ -630,15 +758,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNamespaceWrappedArray() { return namespaceWrappedArray; } + + public void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } + public XmlItem prefixNsString(String prefixNsString) { + this.prefixNsString = prefixNsString; return this; } @@ -649,15 +784,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPrefixNsString() { return prefixNsString; } + + public void setPrefixNsString(String prefixNsString) { this.prefixNsString = prefixNsString; } + public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + this.prefixNsNumber = prefixNsNumber; return this; } @@ -668,15 +810,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getPrefixNsNumber() { return prefixNsNumber; } + + public void setPrefixNsNumber(BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } + public XmlItem prefixNsInteger(Integer prefixNsInteger) { + this.prefixNsInteger = prefixNsInteger; return this; } @@ -687,15 +836,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getPrefixNsInteger() { return prefixNsInteger; } + + public void setPrefixNsInteger(Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } + public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + this.prefixNsBoolean = prefixNsBoolean; return this; } @@ -706,15 +862,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getPrefixNsBoolean() { return prefixNsBoolean; } + + public void setPrefixNsBoolean(Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } + public XmlItem prefixNsArray(List prefixNsArray) { + this.prefixNsArray = prefixNsArray; return this; } @@ -733,15 +896,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixNsArray() { return prefixNsArray; } + + public void setPrefixNsArray(List prefixNsArray) { this.prefixNsArray = prefixNsArray; } + public XmlItem prefixNsWrappedArray(List prefixNsWrappedArray) { + this.prefixNsWrappedArray = prefixNsWrappedArray; return this; } @@ -760,10 +930,15 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixNsWrappedArray() { return prefixNsWrappedArray; } + + public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/UserApi.md b/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/UserApi.md index 7f906eed6d9..7a90fb438b1 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/UserApi.md +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/UserApi.md @@ -96,7 +96,7 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); UserApi apiInstance = new UserApi(defaultClient); - List body = Arrays.asList(null); // List | List of user object + List body = Arrays.asList(); // List | List of user object try { apiInstance.createUsersWithArrayInput(body); } catch (ApiException e) { @@ -155,7 +155,7 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); UserApi apiInstance = new UserApi(defaultClient); - List body = Arrays.asList(null); // List | List of user object + List body = Arrays.asList(); // List | List of user object try { apiInstance.createUsersWithListInput(body); } catch (ApiException e) { 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 acb8a5e7723..046018a4bf9 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 @@ -40,7 +40,9 @@ public class AdditionalPropertiesAnyType extends HashMap impleme public AdditionalPropertiesAnyType() { super(); } + public AdditionalPropertiesAnyType name(String name) { + this.name = name; return this; } @@ -51,10 +53,13 @@ public class AdditionalPropertiesAnyType extends HashMap impleme **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(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 ebc9abb8ddc..8f440fc6bf7 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 @@ -41,7 +41,9 @@ public class AdditionalPropertiesArray extends HashMap implements public AdditionalPropertiesArray() { super(); } + public AdditionalPropertiesArray name(String name) { + this.name = name; return this; } @@ -52,10 +54,13 @@ public class AdditionalPropertiesArray extends HashMap implements **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(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 4cc350ca10f..19d55e0f009 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 @@ -40,7 +40,9 @@ public class AdditionalPropertiesBoolean extends HashMap implem public AdditionalPropertiesBoolean() { super(); } + public AdditionalPropertiesBoolean name(String name) { + this.name = name; return this; } @@ -51,10 +53,13 @@ public class AdditionalPropertiesBoolean extends HashMap implem **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(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 57b2d8a6e80..e1edb91edde 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 @@ -69,19 +69,21 @@ public class AdditionalPropertiesClass implements Parcelable { public static final String SERIALIZED_NAME_ANYTYPE1 = "anytype_1"; @SerializedName(SERIALIZED_NAME_ANYTYPE1) - private Object anytype1 = null; + private Object anytype1; public static final String SERIALIZED_NAME_ANYTYPE2 = "anytype_2"; @SerializedName(SERIALIZED_NAME_ANYTYPE2) - private Object anytype2 = null; + private Object anytype2; public static final String SERIALIZED_NAME_ANYTYPE3 = "anytype_3"; @SerializedName(SERIALIZED_NAME_ANYTYPE3) - private Object anytype3 = null; + private Object anytype3; public AdditionalPropertiesClass() { } + public AdditionalPropertiesClass mapString(Map mapString) { + this.mapString = mapString; return this; } @@ -100,15 +102,20 @@ public class AdditionalPropertiesClass implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getMapString() { return mapString; } + + public void setMapString(Map mapString) { this.mapString = mapString; } + public AdditionalPropertiesClass mapNumber(Map mapNumber) { + this.mapNumber = mapNumber; return this; } @@ -127,15 +134,20 @@ public class AdditionalPropertiesClass implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getMapNumber() { return mapNumber; } + + public void setMapNumber(Map mapNumber) { this.mapNumber = mapNumber; } + public AdditionalPropertiesClass mapInteger(Map mapInteger) { + this.mapInteger = mapInteger; return this; } @@ -154,15 +166,20 @@ public class AdditionalPropertiesClass implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getMapInteger() { return mapInteger; } + + public void setMapInteger(Map mapInteger) { this.mapInteger = mapInteger; } + public AdditionalPropertiesClass mapBoolean(Map mapBoolean) { + this.mapBoolean = mapBoolean; return this; } @@ -181,15 +198,20 @@ public class AdditionalPropertiesClass implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getMapBoolean() { return mapBoolean; } + + public void setMapBoolean(Map mapBoolean) { this.mapBoolean = mapBoolean; } + public AdditionalPropertiesClass mapArrayInteger(Map> mapArrayInteger) { + this.mapArrayInteger = mapArrayInteger; return this; } @@ -208,15 +230,20 @@ public class AdditionalPropertiesClass implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map> getMapArrayInteger() { return mapArrayInteger; } + + public void setMapArrayInteger(Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; } + public AdditionalPropertiesClass mapArrayAnytype(Map> mapArrayAnytype) { + this.mapArrayAnytype = mapArrayAnytype; return this; } @@ -235,15 +262,20 @@ public class AdditionalPropertiesClass implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map> getMapArrayAnytype() { return mapArrayAnytype; } + + public void setMapArrayAnytype(Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; } + public AdditionalPropertiesClass mapMapString(Map> mapMapString) { + this.mapMapString = mapMapString; return this; } @@ -262,15 +294,20 @@ public class AdditionalPropertiesClass implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map> getMapMapString() { return mapMapString; } + + public void setMapMapString(Map> mapMapString) { this.mapMapString = mapMapString; } + public AdditionalPropertiesClass mapMapAnytype(Map> mapMapAnytype) { + this.mapMapAnytype = mapMapAnytype; return this; } @@ -289,15 +326,20 @@ public class AdditionalPropertiesClass implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map> getMapMapAnytype() { return mapMapAnytype; } + + public void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } + public AdditionalPropertiesClass anytype1(Object anytype1) { + this.anytype1 = anytype1; return this; } @@ -308,15 +350,20 @@ public class AdditionalPropertiesClass implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Object getAnytype1() { return anytype1; } + + public void setAnytype1(Object anytype1) { this.anytype1 = anytype1; } + public AdditionalPropertiesClass anytype2(Object anytype2) { + this.anytype2 = anytype2; return this; } @@ -327,15 +374,20 @@ public class AdditionalPropertiesClass implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Object getAnytype2() { return anytype2; } + + public void setAnytype2(Object anytype2) { this.anytype2 = anytype2; } + public AdditionalPropertiesClass anytype3(Object anytype3) { + this.anytype3 = anytype3; return this; } @@ -346,10 +398,13 @@ public class AdditionalPropertiesClass implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Object getAnytype3() { return anytype3; } + + public void setAnytype3(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 77d12423789..17e9e9d1913 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 @@ -40,7 +40,9 @@ public class AdditionalPropertiesInteger extends HashMap implem public AdditionalPropertiesInteger() { super(); } + public AdditionalPropertiesInteger name(String name) { + this.name = name; return this; } @@ -51,10 +53,13 @@ public class AdditionalPropertiesInteger extends HashMap implem **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(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 7e0d226868f..6cbb3aa9684 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 @@ -41,7 +41,9 @@ public class AdditionalPropertiesNumber extends HashMap impl public AdditionalPropertiesNumber() { super(); } + public AdditionalPropertiesNumber name(String name) { + this.name = name; return this; } @@ -52,10 +54,13 @@ public class AdditionalPropertiesNumber extends HashMap impl **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(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 5d7aa7a622b..9f14ff2bde0 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 @@ -40,7 +40,9 @@ public class AdditionalPropertiesObject extends HashMap implements public AdditionalPropertiesObject() { super(); } + public AdditionalPropertiesObject name(String name) { + this.name = name; return this; } @@ -51,10 +53,13 @@ public class AdditionalPropertiesObject extends HashMap implements **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(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 7182f821972..c24a17f9080 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 @@ -40,7 +40,9 @@ public class AdditionalPropertiesString extends HashMap implemen public AdditionalPropertiesString() { super(); } + public AdditionalPropertiesString name(String name) { + this.name = name; return this; } @@ -51,10 +53,13 @@ public class AdditionalPropertiesString extends HashMap implemen **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(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 dce6c2969a7..0d24289a3c0 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 @@ -43,7 +43,9 @@ public class Animal implements Parcelable { public Animal() { this.className = this.getClass().getSimpleName(); } + public Animal className(String className) { + this.className = className; return this; } @@ -53,15 +55,20 @@ public class Animal implements Parcelable { * @return className **/ @ApiModelProperty(required = true, value = "") + public String getClassName() { return className; } + + public void setClassName(String className) { this.className = className; } + public Animal color(String color) { + this.color = color; return this; } @@ -72,10 +79,13 @@ public class Animal implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getColor() { return color; } + + public void setColor(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 c300cf14fa3..088c12706d1 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 @@ -40,7 +40,9 @@ public class ArrayOfArrayOfNumberOnly implements Parcelable { public ArrayOfArrayOfNumberOnly() { } + public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + this.arrayArrayNumber = arrayArrayNumber; return this; } @@ -59,10 +61,13 @@ public class ArrayOfArrayOfNumberOnly implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List> getArrayArrayNumber() { return arrayArrayNumber; } + + public void setArrayArrayNumber(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 759fa3b2130..1f5bf615e5d 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 @@ -40,7 +40,9 @@ public class ArrayOfNumberOnly implements Parcelable { public ArrayOfNumberOnly() { } + public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + this.arrayNumber = arrayNumber; return this; } @@ -59,10 +61,13 @@ public class ArrayOfNumberOnly implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getArrayNumber() { return arrayNumber; } + + public void setArrayNumber(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 7a08b970152..1f2fde0c7ef 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 @@ -48,7 +48,9 @@ public class ArrayTest implements Parcelable { public ArrayTest() { } + public ArrayTest arrayOfString(List arrayOfString) { + this.arrayOfString = arrayOfString; return this; } @@ -67,15 +69,20 @@ public class ArrayTest implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getArrayOfString() { return arrayOfString; } + + public void setArrayOfString(List arrayOfString) { this.arrayOfString = arrayOfString; } + public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + this.arrayArrayOfInteger = arrayArrayOfInteger; return this; } @@ -94,15 +101,20 @@ public class ArrayTest implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List> getArrayArrayOfInteger() { return arrayArrayOfInteger; } + + public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } + public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + this.arrayArrayOfModel = arrayArrayOfModel; return this; } @@ -121,10 +133,13 @@ public class ArrayTest implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List> getArrayArrayOfModel() { return arrayArrayOfModel; } + + public void setArrayArrayOfModel(List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } 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 21955e67b7c..f9ddbf936dd 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 @@ -57,7 +57,9 @@ public class Capitalization implements Parcelable { public Capitalization() { } + public Capitalization smallCamel(String smallCamel) { + this.smallCamel = smallCamel; return this; } @@ -68,15 +70,20 @@ public class Capitalization implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getSmallCamel() { return smallCamel; } + + public void setSmallCamel(String smallCamel) { this.smallCamel = smallCamel; } + public Capitalization capitalCamel(String capitalCamel) { + this.capitalCamel = capitalCamel; return this; } @@ -87,15 +94,20 @@ public class Capitalization implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getCapitalCamel() { return capitalCamel; } + + public void setCapitalCamel(String capitalCamel) { this.capitalCamel = capitalCamel; } + public Capitalization smallSnake(String smallSnake) { + this.smallSnake = smallSnake; return this; } @@ -106,15 +118,20 @@ public class Capitalization implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getSmallSnake() { return smallSnake; } + + public void setSmallSnake(String smallSnake) { this.smallSnake = smallSnake; } + public Capitalization capitalSnake(String capitalSnake) { + this.capitalSnake = capitalSnake; return this; } @@ -125,15 +142,20 @@ public class Capitalization implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getCapitalSnake() { return capitalSnake; } + + public void setCapitalSnake(String capitalSnake) { this.capitalSnake = capitalSnake; } + public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -144,15 +166,20 @@ public class Capitalization implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getScAETHFlowPoints() { return scAETHFlowPoints; } + + public void setScAETHFlowPoints(String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } + public Capitalization ATT_NAME(String ATT_NAME) { + this.ATT_NAME = ATT_NAME; return this; } @@ -163,10 +190,13 @@ public class Capitalization implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "Name of the pet ") + public String getATTNAME() { return ATT_NAME; } + + public void setATTNAME(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 5738b17e665..2f96f6fdb6a 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 @@ -40,7 +40,9 @@ public class Cat extends Animal implements Parcelable { public Cat() { super(); } + public Cat declawed(Boolean declawed) { + this.declawed = declawed; return this; } @@ -51,10 +53,13 @@ public class Cat extends Animal implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Boolean getDeclawed() { return declawed; } + + public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/CatAllOf.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/CatAllOf.java index 1d09feb3e71..93b3fbb0c66 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/CatAllOf.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/CatAllOf.java @@ -37,7 +37,9 @@ public class CatAllOf implements Parcelable { public CatAllOf() { } + public CatAllOf declawed(Boolean declawed) { + this.declawed = declawed; return this; } @@ -48,10 +50,13 @@ public class CatAllOf implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Boolean getDeclawed() { return declawed; } + + public void setDeclawed(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 8dedfbedc14..1cd35b954bd 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 @@ -41,7 +41,9 @@ public class Category implements Parcelable { public Category() { } + public Category id(Long id) { + this.id = id; return this; } @@ -52,15 +54,20 @@ public class Category implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Category name(String name) { + this.name = name; return this; } @@ -70,10 +77,13 @@ public class Category implements Parcelable { * @return name **/ @ApiModelProperty(required = true, value = "") + public String getName() { return name; } + + public void setName(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 cbf4ea5ff1b..9ec7a3c8cff 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 @@ -38,7 +38,9 @@ public class ClassModel implements Parcelable { public ClassModel() { } + public ClassModel propertyClass(String propertyClass) { + this.propertyClass = propertyClass; return this; } @@ -49,10 +51,13 @@ public class ClassModel implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getPropertyClass() { return propertyClass; } + + public void setPropertyClass(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 f2dfb2900d3..4e9c9ebc3e4 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 @@ -37,7 +37,9 @@ public class Client implements Parcelable { public Client() { } + public Client client(String client) { + this.client = client; return this; } @@ -48,10 +50,13 @@ public class Client implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getClient() { return client; } + + public void setClient(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 3f89f334489..c420287ab42 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 @@ -40,7 +40,9 @@ public class Dog extends Animal implements Parcelable { public Dog() { super(); } + public Dog breed(String breed) { + this.breed = breed; return this; } @@ -51,10 +53,13 @@ public class Dog extends Animal implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getBreed() { return breed; } + + public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/DogAllOf.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/DogAllOf.java index 9f3e4e0856f..38d0356fd20 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/DogAllOf.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/DogAllOf.java @@ -37,7 +37,9 @@ public class DogAllOf implements Parcelable { public DogAllOf() { } + public DogAllOf breed(String breed) { + this.breed = breed; return this; } @@ -48,10 +50,13 @@ public class DogAllOf implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getBreed() { return breed; } + + public void setBreed(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 326c1be8d91..654d93654b7 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 @@ -137,7 +137,9 @@ public class EnumArrays implements Parcelable { public EnumArrays() { } + public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + this.justSymbol = justSymbol; return this; } @@ -148,15 +150,20 @@ public class EnumArrays implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public JustSymbolEnum getJustSymbol() { return justSymbol; } + + public void setJustSymbol(JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } + public EnumArrays arrayEnum(List arrayEnum) { + this.arrayEnum = arrayEnum; return this; } @@ -175,10 +182,13 @@ public class EnumArrays implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getArrayEnum() { return arrayEnum; } + + public void setArrayEnum(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 7c67dd8229f..af2575a0170 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 @@ -246,7 +246,9 @@ public class EnumTest implements Parcelable { public EnumTest() { } + public EnumTest enumString(EnumStringEnum enumString) { + this.enumString = enumString; return this; } @@ -257,15 +259,20 @@ public class EnumTest implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public EnumStringEnum getEnumString() { return enumString; } + + public void setEnumString(EnumStringEnum enumString) { this.enumString = enumString; } + public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + this.enumStringRequired = enumStringRequired; return this; } @@ -275,15 +282,20 @@ public class EnumTest implements Parcelable { * @return enumStringRequired **/ @ApiModelProperty(required = true, value = "") + public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; } + + public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } + public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + this.enumInteger = enumInteger; return this; } @@ -294,15 +306,20 @@ public class EnumTest implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public EnumIntegerEnum getEnumInteger() { return enumInteger; } + + public void setEnumInteger(EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } + public EnumTest enumNumber(EnumNumberEnum enumNumber) { + this.enumNumber = enumNumber; return this; } @@ -313,15 +330,20 @@ public class EnumTest implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public EnumNumberEnum getEnumNumber() { return enumNumber; } + + public void setEnumNumber(EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } + public EnumTest outerEnum(OuterEnum outerEnum) { + this.outerEnum = outerEnum; return this; } @@ -332,10 +354,13 @@ public class EnumTest implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public OuterEnum getOuterEnum() { return outerEnum; } + + public void setOuterEnum(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 79543c37da5..1222b62971e 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 @@ -35,7 +35,7 @@ import android.os.Parcel; public class FileSchemaTestClass implements Parcelable { public static final String SERIALIZED_NAME_FILE = "file"; @SerializedName(SERIALIZED_NAME_FILE) - private java.io.File file = null; + private java.io.File file; public static final String SERIALIZED_NAME_FILES = "files"; @SerializedName(SERIALIZED_NAME_FILES) @@ -43,7 +43,9 @@ public class FileSchemaTestClass implements Parcelable { public FileSchemaTestClass() { } + public FileSchemaTestClass file(java.io.File file) { + this.file = file; return this; } @@ -54,15 +56,20 @@ public class FileSchemaTestClass implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public java.io.File getFile() { return file; } + + public void setFile(java.io.File file) { this.file = file; } + public FileSchemaTestClass files(List files) { + this.files = files; return this; } @@ -81,10 +88,13 @@ public class FileSchemaTestClass implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getFiles() { return files; } + + public void setFiles(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 1f8cd0e08d2..4064f8ee2fe 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 @@ -90,7 +90,9 @@ public class FormatTest implements Parcelable { public FormatTest() { } + public FormatTest integer(Integer integer) { + this.integer = integer; return this; } @@ -103,15 +105,20 @@ public class FormatTest implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer getInteger() { return integer; } + + public void setInteger(Integer integer) { this.integer = integer; } + public FormatTest int32(Integer int32) { + this.int32 = int32; return this; } @@ -124,15 +131,20 @@ public class FormatTest implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer getInt32() { return int32; } + + public void setInt32(Integer int32) { this.int32 = int32; } + public FormatTest int64(Long int64) { + this.int64 = int64; return this; } @@ -143,15 +155,20 @@ public class FormatTest implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getInt64() { return int64; } + + public void setInt64(Long int64) { this.int64 = int64; } + public FormatTest number(BigDecimal number) { + this.number = number; return this; } @@ -163,15 +180,20 @@ public class FormatTest implements Parcelable { * @return number **/ @ApiModelProperty(required = true, value = "") + public BigDecimal getNumber() { return number; } + + public void setNumber(BigDecimal number) { this.number = number; } + public FormatTest _float(Float _float) { + this._float = _float; return this; } @@ -184,15 +206,20 @@ public class FormatTest implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Float getFloat() { return _float; } + + public void setFloat(Float _float) { this._float = _float; } + public FormatTest _double(Double _double) { + this._double = _double; return this; } @@ -205,15 +232,20 @@ public class FormatTest implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Double getDouble() { return _double; } + + public void setDouble(Double _double) { this._double = _double; } + public FormatTest string(String string) { + this.string = string; return this; } @@ -224,15 +256,20 @@ public class FormatTest implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getString() { return string; } + + public void setString(String string) { this.string = string; } + public FormatTest _byte(byte[] _byte) { + this._byte = _byte; return this; } @@ -242,15 +279,20 @@ public class FormatTest implements Parcelable { * @return _byte **/ @ApiModelProperty(required = true, value = "") + public byte[] getByte() { return _byte; } + + public void setByte(byte[] _byte) { this._byte = _byte; } + public FormatTest binary(File binary) { + this.binary = binary; return this; } @@ -261,15 +303,20 @@ public class FormatTest implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public File getBinary() { return binary; } + + public void setBinary(File binary) { this.binary = binary; } + public FormatTest date(LocalDate date) { + this.date = date; return this; } @@ -279,15 +326,20 @@ public class FormatTest implements Parcelable { * @return date **/ @ApiModelProperty(required = true, value = "") + public LocalDate getDate() { return date; } + + public void setDate(LocalDate date) { this.date = date; } + public FormatTest dateTime(OffsetDateTime dateTime) { + this.dateTime = dateTime; return this; } @@ -298,15 +350,20 @@ public class FormatTest implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public OffsetDateTime getDateTime() { return dateTime; } + + public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } + public FormatTest uuid(UUID uuid) { + this.uuid = uuid; return this; } @@ -317,15 +374,20 @@ public class FormatTest implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + public UUID getUuid() { return uuid; } + + public void setUuid(UUID uuid) { this.uuid = uuid; } + public FormatTest password(String password) { + this.password = password; return this; } @@ -335,10 +397,13 @@ public class FormatTest implements Parcelable { * @return password **/ @ApiModelProperty(required = true, value = "") + public String getPassword() { return password; } + + public void setPassword(String password) { this.password = password; } 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 14c218af7e3..fc314c0a03f 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 @@ -41,27 +41,35 @@ public class HasOnlyReadOnly implements Parcelable { public HasOnlyReadOnly() { } + /** * Get bar * @return bar **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getBar() { return bar; } + + + /** * Get foo * @return foo **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getFoo() { return foo; } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { 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 e6bee09dc16..f01dd58b56c 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 @@ -99,7 +99,9 @@ public class MapTest implements Parcelable { public MapTest() { } + public MapTest mapMapOfString(Map> mapMapOfString) { + this.mapMapOfString = mapMapOfString; return this; } @@ -118,15 +120,20 @@ public class MapTest implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map> getMapMapOfString() { return mapMapOfString; } + + public void setMapMapOfString(Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } + public MapTest mapOfEnumString(Map mapOfEnumString) { + this.mapOfEnumString = mapOfEnumString; return this; } @@ -145,15 +152,20 @@ public class MapTest implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getMapOfEnumString() { return mapOfEnumString; } + + public void setMapOfEnumString(Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } + public MapTest directMap(Map directMap) { + this.directMap = directMap; return this; } @@ -172,15 +184,20 @@ public class MapTest implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getDirectMap() { return directMap; } + + public void setDirectMap(Map directMap) { this.directMap = directMap; } + public MapTest indirectMap(Map indirectMap) { + this.indirectMap = indirectMap; return this; } @@ -199,10 +216,13 @@ public class MapTest implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getIndirectMap() { return indirectMap; } + + public void setIndirectMap(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 f76ed573c8e..1d281317c58 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 @@ -51,7 +51,9 @@ public class MixedPropertiesAndAdditionalPropertiesClass implements Parcelable { public MixedPropertiesAndAdditionalPropertiesClass() { } + public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + this.uuid = uuid; return this; } @@ -62,15 +64,20 @@ public class MixedPropertiesAndAdditionalPropertiesClass implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public UUID getUuid() { return uuid; } + + public void setUuid(UUID uuid) { this.uuid = uuid; } + public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + this.dateTime = dateTime; return this; } @@ -81,15 +88,20 @@ public class MixedPropertiesAndAdditionalPropertiesClass implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public OffsetDateTime getDateTime() { return dateTime; } + + public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } + public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + this.map = map; return this; } @@ -108,10 +120,13 @@ public class MixedPropertiesAndAdditionalPropertiesClass implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getMap() { return map; } + + public void setMap(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 c98ab531f02..53389691bd6 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 @@ -42,7 +42,9 @@ public class Model200Response implements Parcelable { public Model200Response() { } + public Model200Response name(Integer name) { + this.name = name; return this; } @@ -53,15 +55,20 @@ public class Model200Response implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer getName() { return name; } + + public void setName(Integer name) { this.name = name; } + public Model200Response propertyClass(String propertyClass) { + this.propertyClass = propertyClass; return this; } @@ -72,10 +79,13 @@ public class Model200Response implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getPropertyClass() { return propertyClass; } + + public void setPropertyClass(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 166efa5ccdb..fe455189509 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 @@ -45,7 +45,9 @@ public class ModelApiResponse implements Parcelable { public ModelApiResponse() { } + public ModelApiResponse code(Integer code) { + this.code = code; return this; } @@ -56,15 +58,20 @@ public class ModelApiResponse implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer getCode() { return code; } + + public void setCode(Integer code) { this.code = code; } + public ModelApiResponse type(String type) { + this.type = type; return this; } @@ -75,15 +82,20 @@ public class ModelApiResponse implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } + public ModelApiResponse message(String message) { + this.message = message; return this; } @@ -94,10 +106,13 @@ public class ModelApiResponse implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } 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 d475b487008..2f84315ce28 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 @@ -38,7 +38,9 @@ public class ModelReturn implements Parcelable { public ModelReturn() { } + public ModelReturn _return(Integer _return) { + this._return = _return; return this; } @@ -49,10 +51,13 @@ public class ModelReturn implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer getReturn() { return _return; } + + public void setReturn(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 adb0ada7b18..d3169dfa67e 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 @@ -50,7 +50,9 @@ public class Name implements Parcelable { public Name() { } + public Name name(Integer name) { + this.name = name; return this; } @@ -60,25 +62,34 @@ public class Name implements Parcelable { * @return name **/ @ApiModelProperty(required = true, value = "") + public Integer getName() { return name; } + + public void setName(Integer name) { this.name = name; } + /** * Get snakeCase * @return snakeCase **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer getSnakeCase() { return snakeCase; } + + + public Name property(String property) { + this.property = property; return this; } @@ -89,25 +100,32 @@ public class Name implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getProperty() { return property; } + + public void setProperty(String property) { this.property = property; } + /** * Get _123number * @return _123number **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer get123number() { return _123number; } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { 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 d9c95888700..932fb9fb8d6 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 @@ -38,7 +38,9 @@ public class NumberOnly implements Parcelable { public NumberOnly() { } + public NumberOnly justNumber(BigDecimal justNumber) { + this.justNumber = justNumber; return this; } @@ -49,10 +51,13 @@ public class NumberOnly implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public BigDecimal getJustNumber() { return justNumber; } + + public void setJustNumber(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 27f89282284..18ee018f995 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 @@ -107,7 +107,9 @@ public class Order implements Parcelable { public Order() { } + public Order id(Long id) { + this.id = id; return this; } @@ -118,15 +120,20 @@ public class Order implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Order petId(Long petId) { + this.petId = petId; return this; } @@ -137,15 +144,20 @@ public class Order implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getPetId() { return petId; } + + public void setPetId(Long petId) { this.petId = petId; } + public Order quantity(Integer quantity) { + this.quantity = quantity; return this; } @@ -156,15 +168,20 @@ public class Order implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer getQuantity() { return quantity; } + + public void setQuantity(Integer quantity) { this.quantity = quantity; } + public Order shipDate(OffsetDateTime shipDate) { + this.shipDate = shipDate; return this; } @@ -175,15 +192,20 @@ public class Order implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public OffsetDateTime getShipDate() { return shipDate; } + + public void setShipDate(OffsetDateTime shipDate) { this.shipDate = shipDate; } + public Order status(StatusEnum status) { + this.status = status; return this; } @@ -194,15 +216,20 @@ public class Order implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "Order Status") + public StatusEnum getStatus() { return status; } + + public void setStatus(StatusEnum status) { this.status = status; } + public Order complete(Boolean complete) { + this.complete = complete; return this; } @@ -213,10 +240,13 @@ public class Order implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Boolean getComplete() { return complete; } + + public void setComplete(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 171ee7a93d1..8a13eb0902a 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 @@ -46,7 +46,9 @@ public class OuterComposite implements Parcelable { public OuterComposite() { } + public OuterComposite myNumber(BigDecimal myNumber) { + this.myNumber = myNumber; return this; } @@ -57,15 +59,20 @@ public class OuterComposite implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public BigDecimal getMyNumber() { return myNumber; } + + public void setMyNumber(BigDecimal myNumber) { this.myNumber = myNumber; } + public OuterComposite myString(String myString) { + this.myString = myString; return this; } @@ -76,15 +83,20 @@ public class OuterComposite implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getMyString() { return myString; } + + public void setMyString(String myString) { this.myString = myString; } + public OuterComposite myBoolean(Boolean myBoolean) { + this.myBoolean = myBoolean; return this; } @@ -95,10 +107,13 @@ public class OuterComposite implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Boolean getMyBoolean() { return myBoolean; } + + public void setMyBoolean(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 f41a9017dee..5946772dd1c 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 @@ -41,7 +41,7 @@ public class Pet implements Parcelable { public static final String SERIALIZED_NAME_CATEGORY = "category"; @SerializedName(SERIALIZED_NAME_CATEGORY) - private Category category = null; + private Category category; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -110,7 +110,9 @@ public class Pet implements Parcelable { public Pet() { } + public Pet id(Long id) { + this.id = id; return this; } @@ -121,15 +123,20 @@ public class Pet implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Pet category(Category category) { + this.category = category; return this; } @@ -140,15 +147,20 @@ public class Pet implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Category getCategory() { return category; } + + public void setCategory(Category category) { this.category = category; } + public Pet name(String name) { + this.name = name; return this; } @@ -158,15 +170,20 @@ public class Pet implements Parcelable { * @return name **/ @ApiModelProperty(example = "doggie", required = true, value = "") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public Pet photoUrls(List photoUrls) { + this.photoUrls = photoUrls; return this; } @@ -181,15 +198,20 @@ public class Pet implements Parcelable { * @return photoUrls **/ @ApiModelProperty(required = true, value = "") + public List getPhotoUrls() { return photoUrls; } + + public void setPhotoUrls(List photoUrls) { this.photoUrls = photoUrls; } + public Pet tags(List tags) { + this.tags = tags; return this; } @@ -208,15 +230,20 @@ public class Pet implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getTags() { return tags; } + + public void setTags(List tags) { this.tags = tags; } + public Pet status(StatusEnum status) { + this.status = status; return this; } @@ -227,10 +254,13 @@ public class Pet implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "pet status in the store") + public StatusEnum getStatus() { return status; } + + public void setStatus(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 824c0c728cf..33b38146435 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 @@ -41,17 +41,23 @@ public class ReadOnlyFirst implements Parcelable { public ReadOnlyFirst() { } + /** * Get bar * @return bar **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getBar() { return bar; } + + + public ReadOnlyFirst baz(String baz) { + this.baz = baz; return this; } @@ -62,10 +68,13 @@ public class ReadOnlyFirst implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getBaz() { return baz; } + + public void setBaz(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 d2eadd0140b..006df157cc4 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 @@ -37,7 +37,9 @@ public class SpecialModelName implements Parcelable { public SpecialModelName() { } + public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + this.$specialPropertyName = $specialPropertyName; return this; } @@ -48,10 +50,13 @@ public class SpecialModelName implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long get$SpecialPropertyName() { return $specialPropertyName; } + + public void set$SpecialPropertyName(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 1e75240cdec..fa747cd4777 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 @@ -41,7 +41,9 @@ public class Tag implements Parcelable { public Tag() { } + public Tag id(Long id) { + this.id = id; return this; } @@ -52,15 +54,20 @@ public class Tag implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Tag name(String name) { + this.name = name; return this; } @@ -71,10 +78,13 @@ public class Tag implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(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 8cb0ab98689..cdfdf94ca93 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 @@ -56,7 +56,9 @@ public class TypeHolderDefault implements Parcelable { public TypeHolderDefault() { } + public TypeHolderDefault stringItem(String stringItem) { + this.stringItem = stringItem; return this; } @@ -66,15 +68,20 @@ public class TypeHolderDefault implements Parcelable { * @return stringItem **/ @ApiModelProperty(required = true, value = "") + public String getStringItem() { return stringItem; } + + public void setStringItem(String stringItem) { this.stringItem = stringItem; } + public TypeHolderDefault numberItem(BigDecimal numberItem) { + this.numberItem = numberItem; return this; } @@ -84,15 +91,20 @@ public class TypeHolderDefault implements Parcelable { * @return numberItem **/ @ApiModelProperty(required = true, value = "") + public BigDecimal getNumberItem() { return numberItem; } + + public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } + public TypeHolderDefault integerItem(Integer integerItem) { + this.integerItem = integerItem; return this; } @@ -102,15 +114,20 @@ public class TypeHolderDefault implements Parcelable { * @return integerItem **/ @ApiModelProperty(required = true, value = "") + public Integer getIntegerItem() { return integerItem; } + + public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } + public TypeHolderDefault boolItem(Boolean boolItem) { + this.boolItem = boolItem; return this; } @@ -120,15 +137,20 @@ public class TypeHolderDefault implements Parcelable { * @return boolItem **/ @ApiModelProperty(required = true, value = "") + public Boolean getBoolItem() { return boolItem; } + + public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } + public TypeHolderDefault arrayItem(List arrayItem) { + this.arrayItem = arrayItem; return this; } @@ -143,10 +165,13 @@ public class TypeHolderDefault implements Parcelable { * @return arrayItem **/ @ApiModelProperty(required = true, value = "") + public List getArrayItem() { return arrayItem; } + + public void setArrayItem(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 4945a5b35ab..092229cc9e5 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 @@ -56,7 +56,9 @@ public class TypeHolderExample implements Parcelable { public TypeHolderExample() { } + public TypeHolderExample stringItem(String stringItem) { + this.stringItem = stringItem; return this; } @@ -66,15 +68,20 @@ public class TypeHolderExample implements Parcelable { * @return stringItem **/ @ApiModelProperty(example = "what", required = true, value = "") + public String getStringItem() { return stringItem; } + + public void setStringItem(String stringItem) { this.stringItem = stringItem; } + public TypeHolderExample numberItem(BigDecimal numberItem) { + this.numberItem = numberItem; return this; } @@ -84,15 +91,20 @@ public class TypeHolderExample implements Parcelable { * @return numberItem **/ @ApiModelProperty(example = "1.234", required = true, value = "") + public BigDecimal getNumberItem() { return numberItem; } + + public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } + public TypeHolderExample integerItem(Integer integerItem) { + this.integerItem = integerItem; return this; } @@ -102,15 +114,20 @@ public class TypeHolderExample implements Parcelable { * @return integerItem **/ @ApiModelProperty(example = "-2", required = true, value = "") + public Integer getIntegerItem() { return integerItem; } + + public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } + public TypeHolderExample boolItem(Boolean boolItem) { + this.boolItem = boolItem; return this; } @@ -120,15 +137,20 @@ public class TypeHolderExample implements Parcelable { * @return boolItem **/ @ApiModelProperty(example = "true", required = true, value = "") + public Boolean getBoolItem() { return boolItem; } + + public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } + public TypeHolderExample arrayItem(List arrayItem) { + this.arrayItem = arrayItem; return this; } @@ -143,10 +165,13 @@ public class TypeHolderExample implements Parcelable { * @return arrayItem **/ @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") + public List getArrayItem() { return arrayItem; } + + public void setArrayItem(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 3d0d5f8fc5c..a97509e9416 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 @@ -65,7 +65,9 @@ public class User implements Parcelable { public User() { } + public User id(Long id) { + this.id = id; return this; } @@ -76,15 +78,20 @@ public class User implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public User username(String username) { + this.username = username; return this; } @@ -95,15 +102,20 @@ public class User implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getUsername() { return username; } + + public void setUsername(String username) { this.username = username; } + public User firstName(String firstName) { + this.firstName = firstName; return this; } @@ -114,15 +126,20 @@ public class User implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getFirstName() { return firstName; } + + public void setFirstName(String firstName) { this.firstName = firstName; } + public User lastName(String lastName) { + this.lastName = lastName; return this; } @@ -133,15 +150,20 @@ public class User implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getLastName() { return lastName; } + + public void setLastName(String lastName) { this.lastName = lastName; } + public User email(String email) { + this.email = email; return this; } @@ -152,15 +174,20 @@ public class User implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getEmail() { return email; } + + public void setEmail(String email) { this.email = email; } + public User password(String password) { + this.password = password; return this; } @@ -171,15 +198,20 @@ public class User implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getPassword() { return password; } + + public void setPassword(String password) { this.password = password; } + public User phone(String phone) { + this.phone = phone; return this; } @@ -190,15 +222,20 @@ public class User implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getPhone() { return phone; } + + public void setPhone(String phone) { this.phone = phone; } + public User userStatus(Integer userStatus) { + this.userStatus = userStatus; return this; } @@ -209,10 +246,13 @@ public class User implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "User Status") + public Integer getUserStatus() { return userStatus; } + + public void setUserStatus(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 559feea47e8..c5f9a323ab0 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 @@ -152,7 +152,9 @@ public class XmlItem implements Parcelable { public XmlItem() { } + public XmlItem attributeString(String attributeString) { + this.attributeString = attributeString; return this; } @@ -163,15 +165,20 @@ public class XmlItem implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + public String getAttributeString() { return attributeString; } + + public void setAttributeString(String attributeString) { this.attributeString = attributeString; } + public XmlItem attributeNumber(BigDecimal attributeNumber) { + this.attributeNumber = attributeNumber; return this; } @@ -182,15 +189,20 @@ public class XmlItem implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + public BigDecimal getAttributeNumber() { return attributeNumber; } + + public void setAttributeNumber(BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } + public XmlItem attributeInteger(Integer attributeInteger) { + this.attributeInteger = attributeInteger; return this; } @@ -201,15 +213,20 @@ public class XmlItem implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + public Integer getAttributeInteger() { return attributeInteger; } + + public void setAttributeInteger(Integer attributeInteger) { this.attributeInteger = attributeInteger; } + public XmlItem attributeBoolean(Boolean attributeBoolean) { + this.attributeBoolean = attributeBoolean; return this; } @@ -220,15 +237,20 @@ public class XmlItem implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + public Boolean getAttributeBoolean() { return attributeBoolean; } + + public void setAttributeBoolean(Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } + public XmlItem wrappedArray(List wrappedArray) { + this.wrappedArray = wrappedArray; return this; } @@ -247,15 +269,20 @@ public class XmlItem implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getWrappedArray() { return wrappedArray; } + + public void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } + public XmlItem nameString(String nameString) { + this.nameString = nameString; return this; } @@ -266,15 +293,20 @@ public class XmlItem implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + public String getNameString() { return nameString; } + + public void setNameString(String nameString) { this.nameString = nameString; } + public XmlItem nameNumber(BigDecimal nameNumber) { + this.nameNumber = nameNumber; return this; } @@ -285,15 +317,20 @@ public class XmlItem implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + public BigDecimal getNameNumber() { return nameNumber; } + + public void setNameNumber(BigDecimal nameNumber) { this.nameNumber = nameNumber; } + public XmlItem nameInteger(Integer nameInteger) { + this.nameInteger = nameInteger; return this; } @@ -304,15 +341,20 @@ public class XmlItem implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + public Integer getNameInteger() { return nameInteger; } + + public void setNameInteger(Integer nameInteger) { this.nameInteger = nameInteger; } + public XmlItem nameBoolean(Boolean nameBoolean) { + this.nameBoolean = nameBoolean; return this; } @@ -323,15 +365,20 @@ public class XmlItem implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + public Boolean getNameBoolean() { return nameBoolean; } + + public void setNameBoolean(Boolean nameBoolean) { this.nameBoolean = nameBoolean; } + public XmlItem nameArray(List nameArray) { + this.nameArray = nameArray; return this; } @@ -350,15 +397,20 @@ public class XmlItem implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getNameArray() { return nameArray; } + + public void setNameArray(List nameArray) { this.nameArray = nameArray; } + public XmlItem nameWrappedArray(List nameWrappedArray) { + this.nameWrappedArray = nameWrappedArray; return this; } @@ -377,15 +429,20 @@ public class XmlItem implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getNameWrappedArray() { return nameWrappedArray; } + + public void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } + public XmlItem prefixString(String prefixString) { + this.prefixString = prefixString; return this; } @@ -396,15 +453,20 @@ public class XmlItem implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + public String getPrefixString() { return prefixString; } + + public void setPrefixString(String prefixString) { this.prefixString = prefixString; } + public XmlItem prefixNumber(BigDecimal prefixNumber) { + this.prefixNumber = prefixNumber; return this; } @@ -415,15 +477,20 @@ public class XmlItem implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + public BigDecimal getPrefixNumber() { return prefixNumber; } + + public void setPrefixNumber(BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } + public XmlItem prefixInteger(Integer prefixInteger) { + this.prefixInteger = prefixInteger; return this; } @@ -434,15 +501,20 @@ public class XmlItem implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + public Integer getPrefixInteger() { return prefixInteger; } + + public void setPrefixInteger(Integer prefixInteger) { this.prefixInteger = prefixInteger; } + public XmlItem prefixBoolean(Boolean prefixBoolean) { + this.prefixBoolean = prefixBoolean; return this; } @@ -453,15 +525,20 @@ public class XmlItem implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + public Boolean getPrefixBoolean() { return prefixBoolean; } + + public void setPrefixBoolean(Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } + public XmlItem prefixArray(List prefixArray) { + this.prefixArray = prefixArray; return this; } @@ -480,15 +557,20 @@ public class XmlItem implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getPrefixArray() { return prefixArray; } + + public void setPrefixArray(List prefixArray) { this.prefixArray = prefixArray; } + public XmlItem prefixWrappedArray(List prefixWrappedArray) { + this.prefixWrappedArray = prefixWrappedArray; return this; } @@ -507,15 +589,20 @@ public class XmlItem implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getPrefixWrappedArray() { return prefixWrappedArray; } + + public void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } + public XmlItem namespaceString(String namespaceString) { + this.namespaceString = namespaceString; return this; } @@ -526,15 +613,20 @@ public class XmlItem implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + public String getNamespaceString() { return namespaceString; } + + public void setNamespaceString(String namespaceString) { this.namespaceString = namespaceString; } + public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + this.namespaceNumber = namespaceNumber; return this; } @@ -545,15 +637,20 @@ public class XmlItem implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + public BigDecimal getNamespaceNumber() { return namespaceNumber; } + + public void setNamespaceNumber(BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } + public XmlItem namespaceInteger(Integer namespaceInteger) { + this.namespaceInteger = namespaceInteger; return this; } @@ -564,15 +661,20 @@ public class XmlItem implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + public Integer getNamespaceInteger() { return namespaceInteger; } + + public void setNamespaceInteger(Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } + public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + this.namespaceBoolean = namespaceBoolean; return this; } @@ -583,15 +685,20 @@ public class XmlItem implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + public Boolean getNamespaceBoolean() { return namespaceBoolean; } + + public void setNamespaceBoolean(Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } + public XmlItem namespaceArray(List namespaceArray) { + this.namespaceArray = namespaceArray; return this; } @@ -610,15 +717,20 @@ public class XmlItem implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getNamespaceArray() { return namespaceArray; } + + public void setNamespaceArray(List namespaceArray) { this.namespaceArray = namespaceArray; } + public XmlItem namespaceWrappedArray(List namespaceWrappedArray) { + this.namespaceWrappedArray = namespaceWrappedArray; return this; } @@ -637,15 +749,20 @@ public class XmlItem implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getNamespaceWrappedArray() { return namespaceWrappedArray; } + + public void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } + public XmlItem prefixNsString(String prefixNsString) { + this.prefixNsString = prefixNsString; return this; } @@ -656,15 +773,20 @@ public class XmlItem implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + public String getPrefixNsString() { return prefixNsString; } + + public void setPrefixNsString(String prefixNsString) { this.prefixNsString = prefixNsString; } + public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + this.prefixNsNumber = prefixNsNumber; return this; } @@ -675,15 +797,20 @@ public class XmlItem implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + public BigDecimal getPrefixNsNumber() { return prefixNsNumber; } + + public void setPrefixNsNumber(BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } + public XmlItem prefixNsInteger(Integer prefixNsInteger) { + this.prefixNsInteger = prefixNsInteger; return this; } @@ -694,15 +821,20 @@ public class XmlItem implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + public Integer getPrefixNsInteger() { return prefixNsInteger; } + + public void setPrefixNsInteger(Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } + public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + this.prefixNsBoolean = prefixNsBoolean; return this; } @@ -713,15 +845,20 @@ public class XmlItem implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + public Boolean getPrefixNsBoolean() { return prefixNsBoolean; } + + public void setPrefixNsBoolean(Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } + public XmlItem prefixNsArray(List prefixNsArray) { + this.prefixNsArray = prefixNsArray; return this; } @@ -740,15 +877,20 @@ public class XmlItem implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getPrefixNsArray() { return prefixNsArray; } + + public void setPrefixNsArray(List prefixNsArray) { this.prefixNsArray = prefixNsArray; } + public XmlItem prefixNsWrappedArray(List prefixNsWrappedArray) { + this.prefixNsWrappedArray = prefixNsWrappedArray; return this; } @@ -767,10 +909,13 @@ public class XmlItem implements Parcelable { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getPrefixNsWrappedArray() { return prefixNsWrappedArray; } + + public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/okhttp-gson/docs/UserApi.md b/samples/client/petstore/java/okhttp-gson/docs/UserApi.md index 7f906eed6d9..7a90fb438b1 100644 --- a/samples/client/petstore/java/okhttp-gson/docs/UserApi.md +++ b/samples/client/petstore/java/okhttp-gson/docs/UserApi.md @@ -96,7 +96,7 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); UserApi apiInstance = new UserApi(defaultClient); - List body = Arrays.asList(null); // List | List of user object + List body = Arrays.asList(); // List | List of user object try { apiInstance.createUsersWithArrayInput(body); } catch (ApiException e) { @@ -155,7 +155,7 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); UserApi apiInstance = new UserApi(defaultClient); - List body = Arrays.asList(null); // List | List of user object + List body = Arrays.asList(); // List | List of user object try { apiInstance.createUsersWithListInput(body); } catch (ApiException e) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index 6639252ccb3..13e761a8d9c 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -35,7 +35,9 @@ public class AdditionalPropertiesAnyType extends HashMap { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public AdditionalPropertiesAnyType name(String name) { + this.name = name; return this; } @@ -46,10 +48,13 @@ public class AdditionalPropertiesAnyType extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 2c3f2ca0a46..17e320b0a95 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -36,7 +36,9 @@ public class AdditionalPropertiesArray extends HashMap { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public AdditionalPropertiesArray name(String name) { + this.name = name; return this; } @@ -47,10 +49,13 @@ public class AdditionalPropertiesArray extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 7c4a5248c07..8a51fa9f778 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -35,7 +35,9 @@ public class AdditionalPropertiesBoolean extends HashMap { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public AdditionalPropertiesBoolean name(String name) { + this.name = name; return this; } @@ -46,10 +48,13 @@ public class AdditionalPropertiesBoolean extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } 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 58273e62fb0..a4a797bb487 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 @@ -67,17 +67,19 @@ public class AdditionalPropertiesClass { public static final String SERIALIZED_NAME_ANYTYPE1 = "anytype_1"; @SerializedName(SERIALIZED_NAME_ANYTYPE1) - private Object anytype1 = null; + private Object anytype1; public static final String SERIALIZED_NAME_ANYTYPE2 = "anytype_2"; @SerializedName(SERIALIZED_NAME_ANYTYPE2) - private Object anytype2 = null; + private Object anytype2; public static final String SERIALIZED_NAME_ANYTYPE3 = "anytype_3"; @SerializedName(SERIALIZED_NAME_ANYTYPE3) - private Object anytype3 = null; + private Object anytype3; + public AdditionalPropertiesClass mapString(Map mapString) { + this.mapString = mapString; return this; } @@ -96,15 +98,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getMapString() { return mapString; } + + public void setMapString(Map mapString) { this.mapString = mapString; } + public AdditionalPropertiesClass mapNumber(Map mapNumber) { + this.mapNumber = mapNumber; return this; } @@ -123,15 +130,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getMapNumber() { return mapNumber; } + + public void setMapNumber(Map mapNumber) { this.mapNumber = mapNumber; } + public AdditionalPropertiesClass mapInteger(Map mapInteger) { + this.mapInteger = mapInteger; return this; } @@ -150,15 +162,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getMapInteger() { return mapInteger; } + + public void setMapInteger(Map mapInteger) { this.mapInteger = mapInteger; } + public AdditionalPropertiesClass mapBoolean(Map mapBoolean) { + this.mapBoolean = mapBoolean; return this; } @@ -177,15 +194,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getMapBoolean() { return mapBoolean; } + + public void setMapBoolean(Map mapBoolean) { this.mapBoolean = mapBoolean; } + public AdditionalPropertiesClass mapArrayInteger(Map> mapArrayInteger) { + this.mapArrayInteger = mapArrayInteger; return this; } @@ -204,15 +226,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map> getMapArrayInteger() { return mapArrayInteger; } + + public void setMapArrayInteger(Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; } + public AdditionalPropertiesClass mapArrayAnytype(Map> mapArrayAnytype) { + this.mapArrayAnytype = mapArrayAnytype; return this; } @@ -231,15 +258,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map> getMapArrayAnytype() { return mapArrayAnytype; } + + public void setMapArrayAnytype(Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; } + public AdditionalPropertiesClass mapMapString(Map> mapMapString) { + this.mapMapString = mapMapString; return this; } @@ -258,15 +290,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map> getMapMapString() { return mapMapString; } + + public void setMapMapString(Map> mapMapString) { this.mapMapString = mapMapString; } + public AdditionalPropertiesClass mapMapAnytype(Map> mapMapAnytype) { + this.mapMapAnytype = mapMapAnytype; return this; } @@ -285,15 +322,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map> getMapMapAnytype() { return mapMapAnytype; } + + public void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } + public AdditionalPropertiesClass anytype1(Object anytype1) { + this.anytype1 = anytype1; return this; } @@ -304,15 +346,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Object getAnytype1() { return anytype1; } + + public void setAnytype1(Object anytype1) { this.anytype1 = anytype1; } + public AdditionalPropertiesClass anytype2(Object anytype2) { + this.anytype2 = anytype2; return this; } @@ -323,15 +370,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Object getAnytype2() { return anytype2; } + + public void setAnytype2(Object anytype2) { this.anytype2 = anytype2; } + public AdditionalPropertiesClass anytype3(Object anytype3) { + this.anytype3 = anytype3; return this; } @@ -342,10 +394,13 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Object getAnytype3() { return anytype3; } + + public void setAnytype3(Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 10df3df74c7..4f2e3ef333e 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -35,7 +35,9 @@ public class AdditionalPropertiesInteger extends HashMap { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public AdditionalPropertiesInteger name(String name) { + this.name = name; return this; } @@ -46,10 +48,13 @@ public class AdditionalPropertiesInteger extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index 33719cab261..80ce73d422b 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -36,7 +36,9 @@ public class AdditionalPropertiesNumber extends HashMap { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public AdditionalPropertiesNumber name(String name) { + this.name = name; return this; } @@ -47,10 +49,13 @@ public class AdditionalPropertiesNumber extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index e37e04b01a6..bc5cc81bf64 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -35,7 +35,9 @@ public class AdditionalPropertiesObject extends HashMap { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public AdditionalPropertiesObject name(String name) { + this.name = name; return this; } @@ -46,10 +48,13 @@ public class AdditionalPropertiesObject extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index cfbf74f5b32..2e9c0c7ffd9 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -35,7 +35,9 @@ public class AdditionalPropertiesString extends HashMap { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public AdditionalPropertiesString name(String name) { + this.name = name; return this; } @@ -46,10 +48,13 @@ public class AdditionalPropertiesString extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } 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 0a02419dbf1..dd6b313c58c 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 @@ -41,7 +41,9 @@ public class Animal { public Animal() { this.className = this.getClass().getSimpleName(); } + public Animal className(String className) { + this.className = className; return this; } @@ -51,15 +53,20 @@ public class Animal { * @return className **/ @ApiModelProperty(required = true, value = "") + public String getClassName() { return className; } + + public void setClassName(String className) { this.className = className; } + public Animal color(String color) { + this.color = color; return this; } @@ -70,10 +77,13 @@ public class Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getColor() { return color; } + + public void setColor(String color) { this.color = color; } 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 ad0865658ad..1af52a3a988 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 @@ -36,7 +36,9 @@ public class ArrayOfArrayOfNumberOnly { @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_NUMBER) private List> arrayArrayNumber = null; + public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + this.arrayArrayNumber = arrayArrayNumber; return this; } @@ -55,10 +57,13 @@ public class ArrayOfArrayOfNumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List> getArrayArrayNumber() { return arrayArrayNumber; } + + public void setArrayArrayNumber(List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } 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 0b30fa73f86..eba8d40a289 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 @@ -36,7 +36,9 @@ public class ArrayOfNumberOnly { @SerializedName(SERIALIZED_NAME_ARRAY_NUMBER) private List arrayNumber = null; + public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + this.arrayNumber = arrayNumber; return this; } @@ -55,10 +57,13 @@ public class ArrayOfNumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getArrayNumber() { return arrayNumber; } + + public void setArrayNumber(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 acfcd76498e..7ba0d8b77e0 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 @@ -44,7 +44,9 @@ public class ArrayTest { @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_OF_MODEL) private List> arrayArrayOfModel = null; + public ArrayTest arrayOfString(List arrayOfString) { + this.arrayOfString = arrayOfString; return this; } @@ -63,15 +65,20 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getArrayOfString() { return arrayOfString; } + + public void setArrayOfString(List arrayOfString) { this.arrayOfString = arrayOfString; } + public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + this.arrayArrayOfInteger = arrayArrayOfInteger; return this; } @@ -90,15 +97,20 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List> getArrayArrayOfInteger() { return arrayArrayOfInteger; } + + public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } + public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + this.arrayArrayOfModel = arrayArrayOfModel; return this; } @@ -117,10 +129,13 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List> getArrayArrayOfModel() { return arrayArrayOfModel; } + + public void setArrayArrayOfModel(List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } 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 ef40fe949fd..dc70cf2b597 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 @@ -53,7 +53,9 @@ public class Capitalization { @SerializedName(SERIALIZED_NAME_A_T_T_N_A_M_E) private String ATT_NAME; + public Capitalization smallCamel(String smallCamel) { + this.smallCamel = smallCamel; return this; } @@ -64,15 +66,20 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getSmallCamel() { return smallCamel; } + + public void setSmallCamel(String smallCamel) { this.smallCamel = smallCamel; } + public Capitalization capitalCamel(String capitalCamel) { + this.capitalCamel = capitalCamel; return this; } @@ -83,15 +90,20 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getCapitalCamel() { return capitalCamel; } + + public void setCapitalCamel(String capitalCamel) { this.capitalCamel = capitalCamel; } + public Capitalization smallSnake(String smallSnake) { + this.smallSnake = smallSnake; return this; } @@ -102,15 +114,20 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getSmallSnake() { return smallSnake; } + + public void setSmallSnake(String smallSnake) { this.smallSnake = smallSnake; } + public Capitalization capitalSnake(String capitalSnake) { + this.capitalSnake = capitalSnake; return this; } @@ -121,15 +138,20 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getCapitalSnake() { return capitalSnake; } + + public void setCapitalSnake(String capitalSnake) { this.capitalSnake = capitalSnake; } + public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -140,15 +162,20 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getScAETHFlowPoints() { return scAETHFlowPoints; } + + public void setScAETHFlowPoints(String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } + public Capitalization ATT_NAME(String ATT_NAME) { + this.ATT_NAME = ATT_NAME; return this; } @@ -159,10 +186,13 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "Name of the pet ") + public String getATTNAME() { return ATT_NAME; } + + public void setATTNAME(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 c600502f716..8829c547501 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 @@ -35,7 +35,9 @@ public class Cat extends Animal { @SerializedName(SERIALIZED_NAME_DECLAWED) private Boolean declawed; + public Cat declawed(Boolean declawed) { + this.declawed = declawed; return this; } @@ -46,10 +48,13 @@ public class Cat extends Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Boolean getDeclawed() { return declawed; } + + public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/CatAllOf.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/CatAllOf.java index 29b3658551e..d20d19aa53f 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/CatAllOf.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/CatAllOf.java @@ -33,7 +33,9 @@ public class CatAllOf { @SerializedName(SERIALIZED_NAME_DECLAWED) private Boolean declawed; + public CatAllOf declawed(Boolean declawed) { + this.declawed = declawed; return this; } @@ -44,10 +46,13 @@ public class CatAllOf { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Boolean getDeclawed() { return declawed; } + + public void setDeclawed(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 1968763722d..f335f0b5217 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 @@ -37,7 +37,9 @@ public class Category { @SerializedName(SERIALIZED_NAME_NAME) private String name = "default-name"; + public Category id(Long id) { + this.id = id; return this; } @@ -48,15 +50,20 @@ public class Category { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Category name(String name) { + this.name = name; return this; } @@ -66,10 +73,13 @@ public class Category { * @return name **/ @ApiModelProperty(required = true, value = "") + public String getName() { return name; } + + public void setName(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 52245d70502..83c30b802d4 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 @@ -34,7 +34,9 @@ public class ClassModel { @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) private String propertyClass; + public ClassModel propertyClass(String propertyClass) { + this.propertyClass = propertyClass; return this; } @@ -45,10 +47,13 @@ public class ClassModel { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getPropertyClass() { return propertyClass; } + + public void setPropertyClass(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 e5ece3536d6..192c0ce6e5b 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 @@ -33,7 +33,9 @@ public class Client { @SerializedName(SERIALIZED_NAME_CLIENT) private String client; + public Client client(String client) { + this.client = client; return this; } @@ -44,10 +46,13 @@ public class Client { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getClient() { return client; } + + public void setClient(String client) { this.client = client; } 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 d877eb2f370..2f8a4652247 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 @@ -35,7 +35,9 @@ public class Dog extends Animal { @SerializedName(SERIALIZED_NAME_BREED) private String breed; + public Dog breed(String breed) { + this.breed = breed; return this; } @@ -46,10 +48,13 @@ public class Dog extends Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getBreed() { return breed; } + + public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/DogAllOf.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/DogAllOf.java index 54483f2227d..96610291473 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/DogAllOf.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/DogAllOf.java @@ -33,7 +33,9 @@ public class DogAllOf { @SerializedName(SERIALIZED_NAME_BREED) private String breed; + public DogAllOf breed(String breed) { + this.breed = breed; return this; } @@ -44,10 +46,13 @@ public class DogAllOf { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getBreed() { return breed; } + + public void setBreed(String breed) { this.breed = breed; } 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 8d3e9bd58a3..4587357d5b0 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 @@ -133,7 +133,9 @@ public class EnumArrays { @SerializedName(SERIALIZED_NAME_ARRAY_ENUM) private List arrayEnum = null; + public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + this.justSymbol = justSymbol; return this; } @@ -144,15 +146,20 @@ public class EnumArrays { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public JustSymbolEnum getJustSymbol() { return justSymbol; } + + public void setJustSymbol(JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } + public EnumArrays arrayEnum(List arrayEnum) { + this.arrayEnum = arrayEnum; return this; } @@ -171,10 +178,13 @@ public class EnumArrays { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getArrayEnum() { return arrayEnum; } + + public void setArrayEnum(List arrayEnum) { this.arrayEnum = arrayEnum; } 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 679584204fb..34f8781e089 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 @@ -242,7 +242,9 @@ public class EnumTest { @SerializedName(SERIALIZED_NAME_OUTER_ENUM) private OuterEnum outerEnum; + public EnumTest enumString(EnumStringEnum enumString) { + this.enumString = enumString; return this; } @@ -253,15 +255,20 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public EnumStringEnum getEnumString() { return enumString; } + + public void setEnumString(EnumStringEnum enumString) { this.enumString = enumString; } + public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + this.enumStringRequired = enumStringRequired; return this; } @@ -271,15 +278,20 @@ public class EnumTest { * @return enumStringRequired **/ @ApiModelProperty(required = true, value = "") + public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; } + + public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } + public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + this.enumInteger = enumInteger; return this; } @@ -290,15 +302,20 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public EnumIntegerEnum getEnumInteger() { return enumInteger; } + + public void setEnumInteger(EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } + public EnumTest enumNumber(EnumNumberEnum enumNumber) { + this.enumNumber = enumNumber; return this; } @@ -309,15 +326,20 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public EnumNumberEnum getEnumNumber() { return enumNumber; } + + public void setEnumNumber(EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } + public EnumTest outerEnum(OuterEnum outerEnum) { + this.outerEnum = outerEnum; return this; } @@ -328,10 +350,13 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public OuterEnum getOuterEnum() { return outerEnum; } + + public void setOuterEnum(OuterEnum outerEnum) { this.outerEnum = outerEnum; } 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 29fe111764c..45ce4347b2d 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 @@ -33,13 +33,15 @@ import java.util.List; public class FileSchemaTestClass { public static final String SERIALIZED_NAME_FILE = "file"; @SerializedName(SERIALIZED_NAME_FILE) - private java.io.File file = null; + private java.io.File file; public static final String SERIALIZED_NAME_FILES = "files"; @SerializedName(SERIALIZED_NAME_FILES) private List files = null; + public FileSchemaTestClass file(java.io.File file) { + this.file = file; return this; } @@ -50,15 +52,20 @@ public class FileSchemaTestClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public java.io.File getFile() { return file; } + + public void setFile(java.io.File file) { this.file = file; } + public FileSchemaTestClass files(List files) { + this.files = files; return this; } @@ -77,10 +84,13 @@ public class FileSchemaTestClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getFiles() { return files; } + + public void setFiles(List files) { this.files = files; } 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 583b12a0ebc..36fe5897683 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 @@ -86,7 +86,9 @@ public class FormatTest { @SerializedName(SERIALIZED_NAME_PASSWORD) private String password; + public FormatTest integer(Integer integer) { + this.integer = integer; return this; } @@ -99,15 +101,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer getInteger() { return integer; } + + public void setInteger(Integer integer) { this.integer = integer; } + public FormatTest int32(Integer int32) { + this.int32 = int32; return this; } @@ -120,15 +127,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer getInt32() { return int32; } + + public void setInt32(Integer int32) { this.int32 = int32; } + public FormatTest int64(Long int64) { + this.int64 = int64; return this; } @@ -139,15 +151,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getInt64() { return int64; } + + public void setInt64(Long int64) { this.int64 = int64; } + public FormatTest number(BigDecimal number) { + this.number = number; return this; } @@ -159,15 +176,20 @@ public class FormatTest { * @return number **/ @ApiModelProperty(required = true, value = "") + public BigDecimal getNumber() { return number; } + + public void setNumber(BigDecimal number) { this.number = number; } + public FormatTest _float(Float _float) { + this._float = _float; return this; } @@ -180,15 +202,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Float getFloat() { return _float; } + + public void setFloat(Float _float) { this._float = _float; } + public FormatTest _double(Double _double) { + this._double = _double; return this; } @@ -201,15 +228,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Double getDouble() { return _double; } + + public void setDouble(Double _double) { this._double = _double; } + public FormatTest string(String string) { + this.string = string; return this; } @@ -220,15 +252,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getString() { return string; } + + public void setString(String string) { this.string = string; } + public FormatTest _byte(byte[] _byte) { + this._byte = _byte; return this; } @@ -238,15 +275,20 @@ public class FormatTest { * @return _byte **/ @ApiModelProperty(required = true, value = "") + public byte[] getByte() { return _byte; } + + public void setByte(byte[] _byte) { this._byte = _byte; } + public FormatTest binary(File binary) { + this.binary = binary; return this; } @@ -257,15 +299,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public File getBinary() { return binary; } + + public void setBinary(File binary) { this.binary = binary; } + public FormatTest date(LocalDate date) { + this.date = date; return this; } @@ -275,15 +322,20 @@ public class FormatTest { * @return date **/ @ApiModelProperty(required = true, value = "") + public LocalDate getDate() { return date; } + + public void setDate(LocalDate date) { this.date = date; } + public FormatTest dateTime(OffsetDateTime dateTime) { + this.dateTime = dateTime; return this; } @@ -294,15 +346,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public OffsetDateTime getDateTime() { return dateTime; } + + public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } + public FormatTest uuid(UUID uuid) { + this.uuid = uuid; return this; } @@ -313,15 +370,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + public UUID getUuid() { return uuid; } + + public void setUuid(UUID uuid) { this.uuid = uuid; } + public FormatTest password(String password) { + this.password = password; return this; } @@ -331,10 +393,13 @@ public class FormatTest { * @return password **/ @ApiModelProperty(required = true, value = "") + public String getPassword() { return password; } + + public void setPassword(String password) { this.password = password; } 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 02225d278c4..8fcb2684643 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 @@ -37,27 +37,35 @@ public class HasOnlyReadOnly { @SerializedName(SERIALIZED_NAME_FOO) private String foo; + /** * Get bar * @return bar **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getBar() { return bar; } + + + /** * Get foo * @return foo **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getFoo() { return foo; } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { 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 60892fc9476..609587e370f 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 @@ -95,7 +95,9 @@ public class MapTest { @SerializedName(SERIALIZED_NAME_INDIRECT_MAP) private Map indirectMap = null; + public MapTest mapMapOfString(Map> mapMapOfString) { + this.mapMapOfString = mapMapOfString; return this; } @@ -114,15 +116,20 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map> getMapMapOfString() { return mapMapOfString; } + + public void setMapMapOfString(Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } + public MapTest mapOfEnumString(Map mapOfEnumString) { + this.mapOfEnumString = mapOfEnumString; return this; } @@ -141,15 +148,20 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getMapOfEnumString() { return mapOfEnumString; } + + public void setMapOfEnumString(Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } + public MapTest directMap(Map directMap) { + this.directMap = directMap; return this; } @@ -168,15 +180,20 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getDirectMap() { return directMap; } + + public void setDirectMap(Map directMap) { this.directMap = directMap; } + public MapTest indirectMap(Map indirectMap) { + this.indirectMap = indirectMap; return this; } @@ -195,10 +212,13 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getIndirectMap() { return indirectMap; } + + public void setIndirectMap(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 9cb44786512..815cf8d5e05 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 @@ -47,7 +47,9 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @SerializedName(SERIALIZED_NAME_MAP) private Map map = null; + public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + this.uuid = uuid; return this; } @@ -58,15 +60,20 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public UUID getUuid() { return uuid; } + + public void setUuid(UUID uuid) { this.uuid = uuid; } + public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + this.dateTime = dateTime; return this; } @@ -77,15 +84,20 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public OffsetDateTime getDateTime() { return dateTime; } + + public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } + public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + this.map = map; return this; } @@ -104,10 +116,13 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getMap() { return map; } + + public void setMap(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 3167560a9dd..42a61d0d877 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 @@ -38,7 +38,9 @@ public class Model200Response { @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) private String propertyClass; + public Model200Response name(Integer name) { + this.name = name; return this; } @@ -49,15 +51,20 @@ public class Model200Response { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer getName() { return name; } + + public void setName(Integer name) { this.name = name; } + public Model200Response propertyClass(String propertyClass) { + this.propertyClass = propertyClass; return this; } @@ -68,10 +75,13 @@ public class Model200Response { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getPropertyClass() { return propertyClass; } + + public void setPropertyClass(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 84d2fcc4d39..db323b17602 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 @@ -41,7 +41,9 @@ public class ModelApiResponse { @SerializedName(SERIALIZED_NAME_MESSAGE) private String message; + public ModelApiResponse code(Integer code) { + this.code = code; return this; } @@ -52,15 +54,20 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer getCode() { return code; } + + public void setCode(Integer code) { this.code = code; } + public ModelApiResponse type(String type) { + this.type = type; return this; } @@ -71,15 +78,20 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } + public ModelApiResponse message(String message) { + this.message = message; return this; } @@ -90,10 +102,13 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } 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 c13f1babe59..da9f1a20259 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 @@ -34,7 +34,9 @@ public class ModelReturn { @SerializedName(SERIALIZED_NAME_RETURN) private Integer _return; + public ModelReturn _return(Integer _return) { + this._return = _return; return this; } @@ -45,10 +47,13 @@ public class ModelReturn { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer getReturn() { return _return; } + + public void setReturn(Integer _return) { this._return = _return; } 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 221821d4e19..f775f97b3f1 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 @@ -46,7 +46,9 @@ public class Name { @SerializedName(SERIALIZED_NAME_123NUMBER) private Integer _123number; + public Name name(Integer name) { + this.name = name; return this; } @@ -56,25 +58,34 @@ public class Name { * @return name **/ @ApiModelProperty(required = true, value = "") + public Integer getName() { return name; } + + public void setName(Integer name) { this.name = name; } + /** * Get snakeCase * @return snakeCase **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer getSnakeCase() { return snakeCase; } + + + public Name property(String property) { + this.property = property; return this; } @@ -85,25 +96,32 @@ public class Name { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getProperty() { return property; } + + public void setProperty(String property) { this.property = property; } + /** * Get _123number * @return _123number **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer get123number() { return _123number; } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { 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 9a068c2e1ee..1a7bd689645 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 @@ -34,7 +34,9 @@ public class NumberOnly { @SerializedName(SERIALIZED_NAME_JUST_NUMBER) private BigDecimal justNumber; + public NumberOnly justNumber(BigDecimal justNumber) { + this.justNumber = justNumber; return this; } @@ -45,10 +47,13 @@ public class NumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public BigDecimal getJustNumber() { return justNumber; } + + public void setJustNumber(BigDecimal justNumber) { this.justNumber = justNumber; } 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 9ee41b5b8a9..fe6a60098bf 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 @@ -103,7 +103,9 @@ public class Order { @SerializedName(SERIALIZED_NAME_COMPLETE) private Boolean complete = false; + public Order id(Long id) { + this.id = id; return this; } @@ -114,15 +116,20 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Order petId(Long petId) { + this.petId = petId; return this; } @@ -133,15 +140,20 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getPetId() { return petId; } + + public void setPetId(Long petId) { this.petId = petId; } + public Order quantity(Integer quantity) { + this.quantity = quantity; return this; } @@ -152,15 +164,20 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer getQuantity() { return quantity; } + + public void setQuantity(Integer quantity) { this.quantity = quantity; } + public Order shipDate(OffsetDateTime shipDate) { + this.shipDate = shipDate; return this; } @@ -171,15 +188,20 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public OffsetDateTime getShipDate() { return shipDate; } + + public void setShipDate(OffsetDateTime shipDate) { this.shipDate = shipDate; } + public Order status(StatusEnum status) { + this.status = status; return this; } @@ -190,15 +212,20 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "Order Status") + public StatusEnum getStatus() { return status; } + + public void setStatus(StatusEnum status) { this.status = status; } + public Order complete(Boolean complete) { + this.complete = complete; return this; } @@ -209,10 +236,13 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Boolean getComplete() { return complete; } + + public void setComplete(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 690b6bde4be..3db0e2e26c9 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 @@ -42,7 +42,9 @@ public class OuterComposite { @SerializedName(SERIALIZED_NAME_MY_BOOLEAN) private Boolean myBoolean; + public OuterComposite myNumber(BigDecimal myNumber) { + this.myNumber = myNumber; return this; } @@ -53,15 +55,20 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public BigDecimal getMyNumber() { return myNumber; } + + public void setMyNumber(BigDecimal myNumber) { this.myNumber = myNumber; } + public OuterComposite myString(String myString) { + this.myString = myString; return this; } @@ -72,15 +79,20 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getMyString() { return myString; } + + public void setMyString(String myString) { this.myString = myString; } + public OuterComposite myBoolean(Boolean myBoolean) { + this.myBoolean = myBoolean; return this; } @@ -91,10 +103,13 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Boolean getMyBoolean() { return myBoolean; } + + public void setMyBoolean(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 ae8237d55b9..943b3103f03 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 @@ -39,7 +39,7 @@ public class Pet { public static final String SERIALIZED_NAME_CATEGORY = "category"; @SerializedName(SERIALIZED_NAME_CATEGORY) - private Category category = null; + private Category category; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -106,7 +106,9 @@ public class Pet { @SerializedName(SERIALIZED_NAME_STATUS) private StatusEnum status; + public Pet id(Long id) { + this.id = id; return this; } @@ -117,15 +119,20 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Pet category(Category category) { + this.category = category; return this; } @@ -136,15 +143,20 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Category getCategory() { return category; } + + public void setCategory(Category category) { this.category = category; } + public Pet name(String name) { + this.name = name; return this; } @@ -154,15 +166,20 @@ public class Pet { * @return name **/ @ApiModelProperty(example = "doggie", required = true, value = "") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public Pet photoUrls(List photoUrls) { + this.photoUrls = photoUrls; return this; } @@ -177,15 +194,20 @@ public class Pet { * @return photoUrls **/ @ApiModelProperty(required = true, value = "") + public List getPhotoUrls() { return photoUrls; } + + public void setPhotoUrls(List photoUrls) { this.photoUrls = photoUrls; } + public Pet tags(List tags) { + this.tags = tags; return this; } @@ -204,15 +226,20 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getTags() { return tags; } + + public void setTags(List tags) { this.tags = tags; } + public Pet status(StatusEnum status) { + this.status = status; return this; } @@ -223,10 +250,13 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "pet status in the store") + public StatusEnum getStatus() { return status; } + + public void setStatus(StatusEnum status) { this.status = status; } 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 84780d763a0..2501babb56e 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 @@ -37,17 +37,23 @@ public class ReadOnlyFirst { @SerializedName(SERIALIZED_NAME_BAZ) private String baz; + /** * Get bar * @return bar **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getBar() { return bar; } + + + public ReadOnlyFirst baz(String baz) { + this.baz = baz; return this; } @@ -58,10 +64,13 @@ public class ReadOnlyFirst { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getBaz() { return baz; } + + public void setBaz(String baz) { this.baz = baz; } 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 c6ccd2c33f6..4ff598a6cfc 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 @@ -33,7 +33,9 @@ public class SpecialModelName { @SerializedName(SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME) private Long $specialPropertyName; + public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + this.$specialPropertyName = $specialPropertyName; return this; } @@ -44,10 +46,13 @@ public class SpecialModelName { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long get$SpecialPropertyName() { return $specialPropertyName; } + + public void set$SpecialPropertyName(Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } 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 504c51cc3e5..693247a2fd2 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 @@ -37,7 +37,9 @@ public class Tag { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public Tag id(Long id) { + this.id = id; return this; } @@ -48,15 +50,20 @@ public class Tag { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Tag name(String name) { + this.name = name; return this; } @@ -67,10 +74,13 @@ public class Tag { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index 8fc321bc0a2..e61b1492abc 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -52,7 +52,9 @@ public class TypeHolderDefault { @SerializedName(SERIALIZED_NAME_ARRAY_ITEM) private List arrayItem = new ArrayList(); + public TypeHolderDefault stringItem(String stringItem) { + this.stringItem = stringItem; return this; } @@ -62,15 +64,20 @@ public class TypeHolderDefault { * @return stringItem **/ @ApiModelProperty(required = true, value = "") + public String getStringItem() { return stringItem; } + + public void setStringItem(String stringItem) { this.stringItem = stringItem; } + public TypeHolderDefault numberItem(BigDecimal numberItem) { + this.numberItem = numberItem; return this; } @@ -80,15 +87,20 @@ public class TypeHolderDefault { * @return numberItem **/ @ApiModelProperty(required = true, value = "") + public BigDecimal getNumberItem() { return numberItem; } + + public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } + public TypeHolderDefault integerItem(Integer integerItem) { + this.integerItem = integerItem; return this; } @@ -98,15 +110,20 @@ public class TypeHolderDefault { * @return integerItem **/ @ApiModelProperty(required = true, value = "") + public Integer getIntegerItem() { return integerItem; } + + public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } + public TypeHolderDefault boolItem(Boolean boolItem) { + this.boolItem = boolItem; return this; } @@ -116,15 +133,20 @@ public class TypeHolderDefault { * @return boolItem **/ @ApiModelProperty(required = true, value = "") + public Boolean getBoolItem() { return boolItem; } + + public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } + public TypeHolderDefault arrayItem(List arrayItem) { + this.arrayItem = arrayItem; return this; } @@ -139,10 +161,13 @@ public class TypeHolderDefault { * @return arrayItem **/ @ApiModelProperty(required = true, value = "") + public List getArrayItem() { return arrayItem; } + + public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TypeHolderExample.java index d9496cbd790..a0691d38a54 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -52,7 +52,9 @@ public class TypeHolderExample { @SerializedName(SERIALIZED_NAME_ARRAY_ITEM) private List arrayItem = new ArrayList(); + public TypeHolderExample stringItem(String stringItem) { + this.stringItem = stringItem; return this; } @@ -62,15 +64,20 @@ public class TypeHolderExample { * @return stringItem **/ @ApiModelProperty(example = "what", required = true, value = "") + public String getStringItem() { return stringItem; } + + public void setStringItem(String stringItem) { this.stringItem = stringItem; } + public TypeHolderExample numberItem(BigDecimal numberItem) { + this.numberItem = numberItem; return this; } @@ -80,15 +87,20 @@ public class TypeHolderExample { * @return numberItem **/ @ApiModelProperty(example = "1.234", required = true, value = "") + public BigDecimal getNumberItem() { return numberItem; } + + public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } + public TypeHolderExample integerItem(Integer integerItem) { + this.integerItem = integerItem; return this; } @@ -98,15 +110,20 @@ public class TypeHolderExample { * @return integerItem **/ @ApiModelProperty(example = "-2", required = true, value = "") + public Integer getIntegerItem() { return integerItem; } + + public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } + public TypeHolderExample boolItem(Boolean boolItem) { + this.boolItem = boolItem; return this; } @@ -116,15 +133,20 @@ public class TypeHolderExample { * @return boolItem **/ @ApiModelProperty(example = "true", required = true, value = "") + public Boolean getBoolItem() { return boolItem; } + + public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } + public TypeHolderExample arrayItem(List arrayItem) { + this.arrayItem = arrayItem; return this; } @@ -139,10 +161,13 @@ public class TypeHolderExample { * @return arrayItem **/ @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") + public List getArrayItem() { return arrayItem; } + + public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } 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 1aedd044b58..3760c07c592 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 @@ -61,7 +61,9 @@ public class User { @SerializedName(SERIALIZED_NAME_USER_STATUS) private Integer userStatus; + public User id(Long id) { + this.id = id; return this; } @@ -72,15 +74,20 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public User username(String username) { + this.username = username; return this; } @@ -91,15 +98,20 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getUsername() { return username; } + + public void setUsername(String username) { this.username = username; } + public User firstName(String firstName) { + this.firstName = firstName; return this; } @@ -110,15 +122,20 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getFirstName() { return firstName; } + + public void setFirstName(String firstName) { this.firstName = firstName; } + public User lastName(String lastName) { + this.lastName = lastName; return this; } @@ -129,15 +146,20 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getLastName() { return lastName; } + + public void setLastName(String lastName) { this.lastName = lastName; } + public User email(String email) { + this.email = email; return this; } @@ -148,15 +170,20 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getEmail() { return email; } + + public void setEmail(String email) { this.email = email; } + public User password(String password) { + this.password = password; return this; } @@ -167,15 +194,20 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getPassword() { return password; } + + public void setPassword(String password) { this.password = password; } + public User phone(String phone) { + this.phone = phone; return this; } @@ -186,15 +218,20 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getPhone() { return phone; } + + public void setPhone(String phone) { this.phone = phone; } + public User userStatus(Integer userStatus) { + this.userStatus = userStatus; return this; } @@ -205,10 +242,13 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "User Status") + public Integer getUserStatus() { return userStatus; } + + public void setUserStatus(Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/XmlItem.java index 21ff0ff8aae..4fce3d5e1c0 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/XmlItem.java @@ -148,7 +148,9 @@ public class XmlItem { @SerializedName(SERIALIZED_NAME_PREFIX_NS_WRAPPED_ARRAY) private List prefixNsWrappedArray = null; + public XmlItem attributeString(String attributeString) { + this.attributeString = attributeString; return this; } @@ -159,15 +161,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + public String getAttributeString() { return attributeString; } + + public void setAttributeString(String attributeString) { this.attributeString = attributeString; } + public XmlItem attributeNumber(BigDecimal attributeNumber) { + this.attributeNumber = attributeNumber; return this; } @@ -178,15 +185,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + public BigDecimal getAttributeNumber() { return attributeNumber; } + + public void setAttributeNumber(BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } + public XmlItem attributeInteger(Integer attributeInteger) { + this.attributeInteger = attributeInteger; return this; } @@ -197,15 +209,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + public Integer getAttributeInteger() { return attributeInteger; } + + public void setAttributeInteger(Integer attributeInteger) { this.attributeInteger = attributeInteger; } + public XmlItem attributeBoolean(Boolean attributeBoolean) { + this.attributeBoolean = attributeBoolean; return this; } @@ -216,15 +233,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + public Boolean getAttributeBoolean() { return attributeBoolean; } + + public void setAttributeBoolean(Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } + public XmlItem wrappedArray(List wrappedArray) { + this.wrappedArray = wrappedArray; return this; } @@ -243,15 +265,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getWrappedArray() { return wrappedArray; } + + public void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } + public XmlItem nameString(String nameString) { + this.nameString = nameString; return this; } @@ -262,15 +289,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + public String getNameString() { return nameString; } + + public void setNameString(String nameString) { this.nameString = nameString; } + public XmlItem nameNumber(BigDecimal nameNumber) { + this.nameNumber = nameNumber; return this; } @@ -281,15 +313,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + public BigDecimal getNameNumber() { return nameNumber; } + + public void setNameNumber(BigDecimal nameNumber) { this.nameNumber = nameNumber; } + public XmlItem nameInteger(Integer nameInteger) { + this.nameInteger = nameInteger; return this; } @@ -300,15 +337,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + public Integer getNameInteger() { return nameInteger; } + + public void setNameInteger(Integer nameInteger) { this.nameInteger = nameInteger; } + public XmlItem nameBoolean(Boolean nameBoolean) { + this.nameBoolean = nameBoolean; return this; } @@ -319,15 +361,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + public Boolean getNameBoolean() { return nameBoolean; } + + public void setNameBoolean(Boolean nameBoolean) { this.nameBoolean = nameBoolean; } + public XmlItem nameArray(List nameArray) { + this.nameArray = nameArray; return this; } @@ -346,15 +393,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getNameArray() { return nameArray; } + + public void setNameArray(List nameArray) { this.nameArray = nameArray; } + public XmlItem nameWrappedArray(List nameWrappedArray) { + this.nameWrappedArray = nameWrappedArray; return this; } @@ -373,15 +425,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getNameWrappedArray() { return nameWrappedArray; } + + public void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } + public XmlItem prefixString(String prefixString) { + this.prefixString = prefixString; return this; } @@ -392,15 +449,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + public String getPrefixString() { return prefixString; } + + public void setPrefixString(String prefixString) { this.prefixString = prefixString; } + public XmlItem prefixNumber(BigDecimal prefixNumber) { + this.prefixNumber = prefixNumber; return this; } @@ -411,15 +473,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + public BigDecimal getPrefixNumber() { return prefixNumber; } + + public void setPrefixNumber(BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } + public XmlItem prefixInteger(Integer prefixInteger) { + this.prefixInteger = prefixInteger; return this; } @@ -430,15 +497,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + public Integer getPrefixInteger() { return prefixInteger; } + + public void setPrefixInteger(Integer prefixInteger) { this.prefixInteger = prefixInteger; } + public XmlItem prefixBoolean(Boolean prefixBoolean) { + this.prefixBoolean = prefixBoolean; return this; } @@ -449,15 +521,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + public Boolean getPrefixBoolean() { return prefixBoolean; } + + public void setPrefixBoolean(Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } + public XmlItem prefixArray(List prefixArray) { + this.prefixArray = prefixArray; return this; } @@ -476,15 +553,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getPrefixArray() { return prefixArray; } + + public void setPrefixArray(List prefixArray) { this.prefixArray = prefixArray; } + public XmlItem prefixWrappedArray(List prefixWrappedArray) { + this.prefixWrappedArray = prefixWrappedArray; return this; } @@ -503,15 +585,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getPrefixWrappedArray() { return prefixWrappedArray; } + + public void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } + public XmlItem namespaceString(String namespaceString) { + this.namespaceString = namespaceString; return this; } @@ -522,15 +609,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + public String getNamespaceString() { return namespaceString; } + + public void setNamespaceString(String namespaceString) { this.namespaceString = namespaceString; } + public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + this.namespaceNumber = namespaceNumber; return this; } @@ -541,15 +633,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + public BigDecimal getNamespaceNumber() { return namespaceNumber; } + + public void setNamespaceNumber(BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } + public XmlItem namespaceInteger(Integer namespaceInteger) { + this.namespaceInteger = namespaceInteger; return this; } @@ -560,15 +657,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + public Integer getNamespaceInteger() { return namespaceInteger; } + + public void setNamespaceInteger(Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } + public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + this.namespaceBoolean = namespaceBoolean; return this; } @@ -579,15 +681,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + public Boolean getNamespaceBoolean() { return namespaceBoolean; } + + public void setNamespaceBoolean(Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } + public XmlItem namespaceArray(List namespaceArray) { + this.namespaceArray = namespaceArray; return this; } @@ -606,15 +713,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getNamespaceArray() { return namespaceArray; } + + public void setNamespaceArray(List namespaceArray) { this.namespaceArray = namespaceArray; } + public XmlItem namespaceWrappedArray(List namespaceWrappedArray) { + this.namespaceWrappedArray = namespaceWrappedArray; return this; } @@ -633,15 +745,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getNamespaceWrappedArray() { return namespaceWrappedArray; } + + public void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } + public XmlItem prefixNsString(String prefixNsString) { + this.prefixNsString = prefixNsString; return this; } @@ -652,15 +769,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + public String getPrefixNsString() { return prefixNsString; } + + public void setPrefixNsString(String prefixNsString) { this.prefixNsString = prefixNsString; } + public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + this.prefixNsNumber = prefixNsNumber; return this; } @@ -671,15 +793,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + public BigDecimal getPrefixNsNumber() { return prefixNsNumber; } + + public void setPrefixNsNumber(BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } + public XmlItem prefixNsInteger(Integer prefixNsInteger) { + this.prefixNsInteger = prefixNsInteger; return this; } @@ -690,15 +817,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + public Integer getPrefixNsInteger() { return prefixNsInteger; } + + public void setPrefixNsInteger(Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } + public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + this.prefixNsBoolean = prefixNsBoolean; return this; } @@ -709,15 +841,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + public Boolean getPrefixNsBoolean() { return prefixNsBoolean; } + + public void setPrefixNsBoolean(Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } + public XmlItem prefixNsArray(List prefixNsArray) { + this.prefixNsArray = prefixNsArray; return this; } @@ -736,15 +873,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getPrefixNsArray() { return prefixNsArray; } + + public void setPrefixNsArray(List prefixNsArray) { this.prefixNsArray = prefixNsArray; } + public XmlItem prefixNsWrappedArray(List prefixNsWrappedArray) { + this.prefixNsWrappedArray = prefixNsWrappedArray; return this; } @@ -763,10 +905,13 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getPrefixNsWrappedArray() { return prefixNsWrappedArray; } + + public void setPrefixNsWrappedArray(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 6639252ccb3..13e761a8d9c 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 @@ -35,7 +35,9 @@ public class AdditionalPropertiesAnyType extends HashMap { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public AdditionalPropertiesAnyType name(String name) { + this.name = name; return this; } @@ -46,10 +48,13 @@ public class AdditionalPropertiesAnyType extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(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 2c3f2ca0a46..17e320b0a95 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 @@ -36,7 +36,9 @@ public class AdditionalPropertiesArray extends HashMap { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public AdditionalPropertiesArray name(String name) { + this.name = name; return this; } @@ -47,10 +49,13 @@ public class AdditionalPropertiesArray extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(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 7c4a5248c07..8a51fa9f778 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 @@ -35,7 +35,9 @@ public class AdditionalPropertiesBoolean extends HashMap { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public AdditionalPropertiesBoolean name(String name) { + this.name = name; return this; } @@ -46,10 +48,13 @@ public class AdditionalPropertiesBoolean extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(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 58273e62fb0..a4a797bb487 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 @@ -67,17 +67,19 @@ public class AdditionalPropertiesClass { public static final String SERIALIZED_NAME_ANYTYPE1 = "anytype_1"; @SerializedName(SERIALIZED_NAME_ANYTYPE1) - private Object anytype1 = null; + private Object anytype1; public static final String SERIALIZED_NAME_ANYTYPE2 = "anytype_2"; @SerializedName(SERIALIZED_NAME_ANYTYPE2) - private Object anytype2 = null; + private Object anytype2; public static final String SERIALIZED_NAME_ANYTYPE3 = "anytype_3"; @SerializedName(SERIALIZED_NAME_ANYTYPE3) - private Object anytype3 = null; + private Object anytype3; + public AdditionalPropertiesClass mapString(Map mapString) { + this.mapString = mapString; return this; } @@ -96,15 +98,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getMapString() { return mapString; } + + public void setMapString(Map mapString) { this.mapString = mapString; } + public AdditionalPropertiesClass mapNumber(Map mapNumber) { + this.mapNumber = mapNumber; return this; } @@ -123,15 +130,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getMapNumber() { return mapNumber; } + + public void setMapNumber(Map mapNumber) { this.mapNumber = mapNumber; } + public AdditionalPropertiesClass mapInteger(Map mapInteger) { + this.mapInteger = mapInteger; return this; } @@ -150,15 +162,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getMapInteger() { return mapInteger; } + + public void setMapInteger(Map mapInteger) { this.mapInteger = mapInteger; } + public AdditionalPropertiesClass mapBoolean(Map mapBoolean) { + this.mapBoolean = mapBoolean; return this; } @@ -177,15 +194,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getMapBoolean() { return mapBoolean; } + + public void setMapBoolean(Map mapBoolean) { this.mapBoolean = mapBoolean; } + public AdditionalPropertiesClass mapArrayInteger(Map> mapArrayInteger) { + this.mapArrayInteger = mapArrayInteger; return this; } @@ -204,15 +226,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map> getMapArrayInteger() { return mapArrayInteger; } + + public void setMapArrayInteger(Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; } + public AdditionalPropertiesClass mapArrayAnytype(Map> mapArrayAnytype) { + this.mapArrayAnytype = mapArrayAnytype; return this; } @@ -231,15 +258,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map> getMapArrayAnytype() { return mapArrayAnytype; } + + public void setMapArrayAnytype(Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; } + public AdditionalPropertiesClass mapMapString(Map> mapMapString) { + this.mapMapString = mapMapString; return this; } @@ -258,15 +290,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map> getMapMapString() { return mapMapString; } + + public void setMapMapString(Map> mapMapString) { this.mapMapString = mapMapString; } + public AdditionalPropertiesClass mapMapAnytype(Map> mapMapAnytype) { + this.mapMapAnytype = mapMapAnytype; return this; } @@ -285,15 +322,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map> getMapMapAnytype() { return mapMapAnytype; } + + public void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } + public AdditionalPropertiesClass anytype1(Object anytype1) { + this.anytype1 = anytype1; return this; } @@ -304,15 +346,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Object getAnytype1() { return anytype1; } + + public void setAnytype1(Object anytype1) { this.anytype1 = anytype1; } + public AdditionalPropertiesClass anytype2(Object anytype2) { + this.anytype2 = anytype2; return this; } @@ -323,15 +370,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Object getAnytype2() { return anytype2; } + + public void setAnytype2(Object anytype2) { this.anytype2 = anytype2; } + public AdditionalPropertiesClass anytype3(Object anytype3) { + this.anytype3 = anytype3; return this; } @@ -342,10 +394,13 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Object getAnytype3() { return anytype3; } + + public void setAnytype3(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 10df3df74c7..4f2e3ef333e 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 @@ -35,7 +35,9 @@ public class AdditionalPropertiesInteger extends HashMap { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public AdditionalPropertiesInteger name(String name) { + this.name = name; return this; } @@ -46,10 +48,13 @@ public class AdditionalPropertiesInteger extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(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 33719cab261..80ce73d422b 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 @@ -36,7 +36,9 @@ public class AdditionalPropertiesNumber extends HashMap { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public AdditionalPropertiesNumber name(String name) { + this.name = name; return this; } @@ -47,10 +49,13 @@ public class AdditionalPropertiesNumber extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(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 e37e04b01a6..bc5cc81bf64 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 @@ -35,7 +35,9 @@ public class AdditionalPropertiesObject extends HashMap { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public AdditionalPropertiesObject name(String name) { + this.name = name; return this; } @@ -46,10 +48,13 @@ public class AdditionalPropertiesObject extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(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 cfbf74f5b32..2e9c0c7ffd9 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 @@ -35,7 +35,9 @@ public class AdditionalPropertiesString extends HashMap { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public AdditionalPropertiesString name(String name) { + this.name = name; return this; } @@ -46,10 +48,13 @@ public class AdditionalPropertiesString extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(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 0a02419dbf1..dd6b313c58c 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 @@ -41,7 +41,9 @@ public class Animal { public Animal() { this.className = this.getClass().getSimpleName(); } + public Animal className(String className) { + this.className = className; return this; } @@ -51,15 +53,20 @@ public class Animal { * @return className **/ @ApiModelProperty(required = true, value = "") + public String getClassName() { return className; } + + public void setClassName(String className) { this.className = className; } + public Animal color(String color) { + this.color = color; return this; } @@ -70,10 +77,13 @@ public class Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getColor() { return color; } + + public void setColor(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 ad0865658ad..1af52a3a988 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,7 +36,9 @@ public class ArrayOfArrayOfNumberOnly { @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_NUMBER) private List> arrayArrayNumber = null; + public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + this.arrayArrayNumber = arrayArrayNumber; return this; } @@ -55,10 +57,13 @@ public class ArrayOfArrayOfNumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List> getArrayArrayNumber() { return arrayArrayNumber; } + + public void setArrayArrayNumber(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 0b30fa73f86..eba8d40a289 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,7 +36,9 @@ public class ArrayOfNumberOnly { @SerializedName(SERIALIZED_NAME_ARRAY_NUMBER) private List arrayNumber = null; + public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + this.arrayNumber = arrayNumber; return this; } @@ -55,10 +57,13 @@ public class ArrayOfNumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getArrayNumber() { return arrayNumber; } + + public void setArrayNumber(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 acfcd76498e..7ba0d8b77e0 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 @@ -44,7 +44,9 @@ public class ArrayTest { @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_OF_MODEL) private List> arrayArrayOfModel = null; + public ArrayTest arrayOfString(List arrayOfString) { + this.arrayOfString = arrayOfString; return this; } @@ -63,15 +65,20 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getArrayOfString() { return arrayOfString; } + + public void setArrayOfString(List arrayOfString) { this.arrayOfString = arrayOfString; } + public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + this.arrayArrayOfInteger = arrayArrayOfInteger; return this; } @@ -90,15 +97,20 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List> getArrayArrayOfInteger() { return arrayArrayOfInteger; } + + public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } + public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + this.arrayArrayOfModel = arrayArrayOfModel; return this; } @@ -117,10 +129,13 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List> getArrayArrayOfModel() { return arrayArrayOfModel; } + + public void setArrayArrayOfModel(List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } 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 ef40fe949fd..dc70cf2b597 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 @@ -53,7 +53,9 @@ public class Capitalization { @SerializedName(SERIALIZED_NAME_A_T_T_N_A_M_E) private String ATT_NAME; + public Capitalization smallCamel(String smallCamel) { + this.smallCamel = smallCamel; return this; } @@ -64,15 +66,20 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getSmallCamel() { return smallCamel; } + + public void setSmallCamel(String smallCamel) { this.smallCamel = smallCamel; } + public Capitalization capitalCamel(String capitalCamel) { + this.capitalCamel = capitalCamel; return this; } @@ -83,15 +90,20 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getCapitalCamel() { return capitalCamel; } + + public void setCapitalCamel(String capitalCamel) { this.capitalCamel = capitalCamel; } + public Capitalization smallSnake(String smallSnake) { + this.smallSnake = smallSnake; return this; } @@ -102,15 +114,20 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getSmallSnake() { return smallSnake; } + + public void setSmallSnake(String smallSnake) { this.smallSnake = smallSnake; } + public Capitalization capitalSnake(String capitalSnake) { + this.capitalSnake = capitalSnake; return this; } @@ -121,15 +138,20 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getCapitalSnake() { return capitalSnake; } + + public void setCapitalSnake(String capitalSnake) { this.capitalSnake = capitalSnake; } + public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -140,15 +162,20 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getScAETHFlowPoints() { return scAETHFlowPoints; } + + public void setScAETHFlowPoints(String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } + public Capitalization ATT_NAME(String ATT_NAME) { + this.ATT_NAME = ATT_NAME; return this; } @@ -159,10 +186,13 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "Name of the pet ") + public String getATTNAME() { return ATT_NAME; } + + public void setATTNAME(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 91196d53a89..65795e6d7ac 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 @@ -35,7 +35,9 @@ public class Cat extends Animal { @SerializedName(SERIALIZED_NAME_DECLAWED) private Boolean declawed; + public Cat declawed(Boolean declawed) { + this.declawed = declawed; return this; } @@ -46,10 +48,13 @@ public class Cat extends Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Boolean isDeclawed() { return declawed; } + + public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/CatAllOf.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/CatAllOf.java index d7569c72fd4..94268aba4af 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/CatAllOf.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/CatAllOf.java @@ -33,7 +33,9 @@ public class CatAllOf { @SerializedName(SERIALIZED_NAME_DECLAWED) private Boolean declawed; + public CatAllOf declawed(Boolean declawed) { + this.declawed = declawed; return this; } @@ -44,10 +46,13 @@ public class CatAllOf { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Boolean isDeclawed() { return declawed; } + + public void setDeclawed(Boolean declawed) { this.declawed = declawed; } 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 1968763722d..f335f0b5217 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 @@ -37,7 +37,9 @@ public class Category { @SerializedName(SERIALIZED_NAME_NAME) private String name = "default-name"; + public Category id(Long id) { + this.id = id; return this; } @@ -48,15 +50,20 @@ public class Category { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Category name(String name) { + this.name = name; return this; } @@ -66,10 +73,13 @@ public class Category { * @return name **/ @ApiModelProperty(required = true, value = "") + public String getName() { return name; } + + public void setName(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 52245d70502..83c30b802d4 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 @@ -34,7 +34,9 @@ public class ClassModel { @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) private String propertyClass; + public ClassModel propertyClass(String propertyClass) { + this.propertyClass = propertyClass; return this; } @@ -45,10 +47,13 @@ public class ClassModel { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getPropertyClass() { return propertyClass; } + + public void setPropertyClass(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 e5ece3536d6..192c0ce6e5b 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 @@ -33,7 +33,9 @@ public class Client { @SerializedName(SERIALIZED_NAME_CLIENT) private String client; + public Client client(String client) { + this.client = client; return this; } @@ -44,10 +46,13 @@ public class Client { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getClient() { return client; } + + public void setClient(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 d877eb2f370..2f8a4652247 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 @@ -35,7 +35,9 @@ public class Dog extends Animal { @SerializedName(SERIALIZED_NAME_BREED) private String breed; + public Dog breed(String breed) { + this.breed = breed; return this; } @@ -46,10 +48,13 @@ public class Dog extends Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getBreed() { return breed; } + + public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/DogAllOf.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/DogAllOf.java index 54483f2227d..96610291473 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/DogAllOf.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/DogAllOf.java @@ -33,7 +33,9 @@ public class DogAllOf { @SerializedName(SERIALIZED_NAME_BREED) private String breed; + public DogAllOf breed(String breed) { + this.breed = breed; return this; } @@ -44,10 +46,13 @@ public class DogAllOf { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getBreed() { return breed; } + + public void setBreed(String breed) { this.breed = breed; } 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 8d3e9bd58a3..4587357d5b0 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 @@ -133,7 +133,9 @@ public class EnumArrays { @SerializedName(SERIALIZED_NAME_ARRAY_ENUM) private List arrayEnum = null; + public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + this.justSymbol = justSymbol; return this; } @@ -144,15 +146,20 @@ public class EnumArrays { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public JustSymbolEnum getJustSymbol() { return justSymbol; } + + public void setJustSymbol(JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } + public EnumArrays arrayEnum(List arrayEnum) { + this.arrayEnum = arrayEnum; return this; } @@ -171,10 +178,13 @@ public class EnumArrays { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getArrayEnum() { return arrayEnum; } + + public void setArrayEnum(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 679584204fb..34f8781e089 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 @@ -242,7 +242,9 @@ public class EnumTest { @SerializedName(SERIALIZED_NAME_OUTER_ENUM) private OuterEnum outerEnum; + public EnumTest enumString(EnumStringEnum enumString) { + this.enumString = enumString; return this; } @@ -253,15 +255,20 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public EnumStringEnum getEnumString() { return enumString; } + + public void setEnumString(EnumStringEnum enumString) { this.enumString = enumString; } + public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + this.enumStringRequired = enumStringRequired; return this; } @@ -271,15 +278,20 @@ public class EnumTest { * @return enumStringRequired **/ @ApiModelProperty(required = true, value = "") + public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; } + + public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } + public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + this.enumInteger = enumInteger; return this; } @@ -290,15 +302,20 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public EnumIntegerEnum getEnumInteger() { return enumInteger; } + + public void setEnumInteger(EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } + public EnumTest enumNumber(EnumNumberEnum enumNumber) { + this.enumNumber = enumNumber; return this; } @@ -309,15 +326,20 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public EnumNumberEnum getEnumNumber() { return enumNumber; } + + public void setEnumNumber(EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } + public EnumTest outerEnum(OuterEnum outerEnum) { + this.outerEnum = outerEnum; return this; } @@ -328,10 +350,13 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public OuterEnum getOuterEnum() { return outerEnum; } + + public void setOuterEnum(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 29fe111764c..45ce4347b2d 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 @@ -33,13 +33,15 @@ import java.util.List; public class FileSchemaTestClass { public static final String SERIALIZED_NAME_FILE = "file"; @SerializedName(SERIALIZED_NAME_FILE) - private java.io.File file = null; + private java.io.File file; public static final String SERIALIZED_NAME_FILES = "files"; @SerializedName(SERIALIZED_NAME_FILES) private List files = null; + public FileSchemaTestClass file(java.io.File file) { + this.file = file; return this; } @@ -50,15 +52,20 @@ public class FileSchemaTestClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public java.io.File getFile() { return file; } + + public void setFile(java.io.File file) { this.file = file; } + public FileSchemaTestClass files(List files) { + this.files = files; return this; } @@ -77,10 +84,13 @@ public class FileSchemaTestClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getFiles() { return files; } + + public void setFiles(List 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 583b12a0ebc..36fe5897683 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 @@ -86,7 +86,9 @@ public class FormatTest { @SerializedName(SERIALIZED_NAME_PASSWORD) private String password; + public FormatTest integer(Integer integer) { + this.integer = integer; return this; } @@ -99,15 +101,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer getInteger() { return integer; } + + public void setInteger(Integer integer) { this.integer = integer; } + public FormatTest int32(Integer int32) { + this.int32 = int32; return this; } @@ -120,15 +127,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer getInt32() { return int32; } + + public void setInt32(Integer int32) { this.int32 = int32; } + public FormatTest int64(Long int64) { + this.int64 = int64; return this; } @@ -139,15 +151,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getInt64() { return int64; } + + public void setInt64(Long int64) { this.int64 = int64; } + public FormatTest number(BigDecimal number) { + this.number = number; return this; } @@ -159,15 +176,20 @@ public class FormatTest { * @return number **/ @ApiModelProperty(required = true, value = "") + public BigDecimal getNumber() { return number; } + + public void setNumber(BigDecimal number) { this.number = number; } + public FormatTest _float(Float _float) { + this._float = _float; return this; } @@ -180,15 +202,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Float getFloat() { return _float; } + + public void setFloat(Float _float) { this._float = _float; } + public FormatTest _double(Double _double) { + this._double = _double; return this; } @@ -201,15 +228,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Double getDouble() { return _double; } + + public void setDouble(Double _double) { this._double = _double; } + public FormatTest string(String string) { + this.string = string; return this; } @@ -220,15 +252,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getString() { return string; } + + public void setString(String string) { this.string = string; } + public FormatTest _byte(byte[] _byte) { + this._byte = _byte; return this; } @@ -238,15 +275,20 @@ public class FormatTest { * @return _byte **/ @ApiModelProperty(required = true, value = "") + public byte[] getByte() { return _byte; } + + public void setByte(byte[] _byte) { this._byte = _byte; } + public FormatTest binary(File binary) { + this.binary = binary; return this; } @@ -257,15 +299,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public File getBinary() { return binary; } + + public void setBinary(File binary) { this.binary = binary; } + public FormatTest date(LocalDate date) { + this.date = date; return this; } @@ -275,15 +322,20 @@ public class FormatTest { * @return date **/ @ApiModelProperty(required = true, value = "") + public LocalDate getDate() { return date; } + + public void setDate(LocalDate date) { this.date = date; } + public FormatTest dateTime(OffsetDateTime dateTime) { + this.dateTime = dateTime; return this; } @@ -294,15 +346,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public OffsetDateTime getDateTime() { return dateTime; } + + public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } + public FormatTest uuid(UUID uuid) { + this.uuid = uuid; return this; } @@ -313,15 +370,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + public UUID getUuid() { return uuid; } + + public void setUuid(UUID uuid) { this.uuid = uuid; } + public FormatTest password(String password) { + this.password = password; return this; } @@ -331,10 +393,13 @@ public class FormatTest { * @return password **/ @ApiModelProperty(required = true, value = "") + public String getPassword() { return password; } + + public void setPassword(String password) { this.password = password; } 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 02225d278c4..8fcb2684643 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 @@ -37,27 +37,35 @@ public class HasOnlyReadOnly { @SerializedName(SERIALIZED_NAME_FOO) private String foo; + /** * Get bar * @return bar **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getBar() { return bar; } + + + /** * Get foo * @return foo **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getFoo() { return foo; } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { 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 60892fc9476..609587e370f 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 @@ -95,7 +95,9 @@ public class MapTest { @SerializedName(SERIALIZED_NAME_INDIRECT_MAP) private Map indirectMap = null; + public MapTest mapMapOfString(Map> mapMapOfString) { + this.mapMapOfString = mapMapOfString; return this; } @@ -114,15 +116,20 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map> getMapMapOfString() { return mapMapOfString; } + + public void setMapMapOfString(Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } + public MapTest mapOfEnumString(Map mapOfEnumString) { + this.mapOfEnumString = mapOfEnumString; return this; } @@ -141,15 +148,20 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getMapOfEnumString() { return mapOfEnumString; } + + public void setMapOfEnumString(Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } + public MapTest directMap(Map directMap) { + this.directMap = directMap; return this; } @@ -168,15 +180,20 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getDirectMap() { return directMap; } + + public void setDirectMap(Map directMap) { this.directMap = directMap; } + public MapTest indirectMap(Map indirectMap) { + this.indirectMap = indirectMap; return this; } @@ -195,10 +212,13 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getIndirectMap() { return indirectMap; } + + public void setIndirectMap(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 9cb44786512..815cf8d5e05 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 @@ -47,7 +47,9 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @SerializedName(SERIALIZED_NAME_MAP) private Map map = null; + public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + this.uuid = uuid; return this; } @@ -58,15 +60,20 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public UUID getUuid() { return uuid; } + + public void setUuid(UUID uuid) { this.uuid = uuid; } + public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + this.dateTime = dateTime; return this; } @@ -77,15 +84,20 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public OffsetDateTime getDateTime() { return dateTime; } + + public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } + public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + this.map = map; return this; } @@ -104,10 +116,13 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getMap() { return map; } + + public void setMap(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 3167560a9dd..42a61d0d877 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 @@ -38,7 +38,9 @@ public class Model200Response { @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) private String propertyClass; + public Model200Response name(Integer name) { + this.name = name; return this; } @@ -49,15 +51,20 @@ public class Model200Response { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer getName() { return name; } + + public void setName(Integer name) { this.name = name; } + public Model200Response propertyClass(String propertyClass) { + this.propertyClass = propertyClass; return this; } @@ -68,10 +75,13 @@ public class Model200Response { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getPropertyClass() { return propertyClass; } + + public void setPropertyClass(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 84d2fcc4d39..db323b17602 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 @@ -41,7 +41,9 @@ public class ModelApiResponse { @SerializedName(SERIALIZED_NAME_MESSAGE) private String message; + public ModelApiResponse code(Integer code) { + this.code = code; return this; } @@ -52,15 +54,20 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer getCode() { return code; } + + public void setCode(Integer code) { this.code = code; } + public ModelApiResponse type(String type) { + this.type = type; return this; } @@ -71,15 +78,20 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } + public ModelApiResponse message(String message) { + this.message = message; return this; } @@ -90,10 +102,13 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } 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 c13f1babe59..da9f1a20259 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 @@ -34,7 +34,9 @@ public class ModelReturn { @SerializedName(SERIALIZED_NAME_RETURN) private Integer _return; + public ModelReturn _return(Integer _return) { + this._return = _return; return this; } @@ -45,10 +47,13 @@ public class ModelReturn { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer getReturn() { return _return; } + + public void setReturn(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 221821d4e19..f775f97b3f1 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 @@ -46,7 +46,9 @@ public class Name { @SerializedName(SERIALIZED_NAME_123NUMBER) private Integer _123number; + public Name name(Integer name) { + this.name = name; return this; } @@ -56,25 +58,34 @@ public class Name { * @return name **/ @ApiModelProperty(required = true, value = "") + public Integer getName() { return name; } + + public void setName(Integer name) { this.name = name; } + /** * Get snakeCase * @return snakeCase **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer getSnakeCase() { return snakeCase; } + + + public Name property(String property) { + this.property = property; return this; } @@ -85,25 +96,32 @@ public class Name { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getProperty() { return property; } + + public void setProperty(String property) { this.property = property; } + /** * Get _123number * @return _123number **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer get123number() { return _123number; } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { 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 9a068c2e1ee..1a7bd689645 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 @@ -34,7 +34,9 @@ public class NumberOnly { @SerializedName(SERIALIZED_NAME_JUST_NUMBER) private BigDecimal justNumber; + public NumberOnly justNumber(BigDecimal justNumber) { + this.justNumber = justNumber; return this; } @@ -45,10 +47,13 @@ public class NumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public BigDecimal getJustNumber() { return justNumber; } + + public void setJustNumber(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 bfd740e83b5..ed6de56bce1 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 @@ -103,7 +103,9 @@ public class Order { @SerializedName(SERIALIZED_NAME_COMPLETE) private Boolean complete = false; + public Order id(Long id) { + this.id = id; return this; } @@ -114,15 +116,20 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Order petId(Long petId) { + this.petId = petId; return this; } @@ -133,15 +140,20 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getPetId() { return petId; } + + public void setPetId(Long petId) { this.petId = petId; } + public Order quantity(Integer quantity) { + this.quantity = quantity; return this; } @@ -152,15 +164,20 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer getQuantity() { return quantity; } + + public void setQuantity(Integer quantity) { this.quantity = quantity; } + public Order shipDate(OffsetDateTime shipDate) { + this.shipDate = shipDate; return this; } @@ -171,15 +188,20 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public OffsetDateTime getShipDate() { return shipDate; } + + public void setShipDate(OffsetDateTime shipDate) { this.shipDate = shipDate; } + public Order status(StatusEnum status) { + this.status = status; return this; } @@ -190,15 +212,20 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "Order Status") + public StatusEnum getStatus() { return status; } + + public void setStatus(StatusEnum status) { this.status = status; } + public Order complete(Boolean complete) { + this.complete = complete; return this; } @@ -209,10 +236,13 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Boolean isComplete() { return complete; } + + public void setComplete(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 5bc91ffa0a1..0147882173c 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 @@ -42,7 +42,9 @@ public class OuterComposite { @SerializedName(SERIALIZED_NAME_MY_BOOLEAN) private Boolean myBoolean; + public OuterComposite myNumber(BigDecimal myNumber) { + this.myNumber = myNumber; return this; } @@ -53,15 +55,20 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public BigDecimal getMyNumber() { return myNumber; } + + public void setMyNumber(BigDecimal myNumber) { this.myNumber = myNumber; } + public OuterComposite myString(String myString) { + this.myString = myString; return this; } @@ -72,15 +79,20 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getMyString() { return myString; } + + public void setMyString(String myString) { this.myString = myString; } + public OuterComposite myBoolean(Boolean myBoolean) { + this.myBoolean = myBoolean; return this; } @@ -91,10 +103,13 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Boolean isMyBoolean() { return myBoolean; } + + public void setMyBoolean(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 ae8237d55b9..943b3103f03 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,7 +39,7 @@ public class Pet { public static final String SERIALIZED_NAME_CATEGORY = "category"; @SerializedName(SERIALIZED_NAME_CATEGORY) - private Category category = null; + private Category category; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -106,7 +106,9 @@ public class Pet { @SerializedName(SERIALIZED_NAME_STATUS) private StatusEnum status; + public Pet id(Long id) { + this.id = id; return this; } @@ -117,15 +119,20 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Pet category(Category category) { + this.category = category; return this; } @@ -136,15 +143,20 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Category getCategory() { return category; } + + public void setCategory(Category category) { this.category = category; } + public Pet name(String name) { + this.name = name; return this; } @@ -154,15 +166,20 @@ public class Pet { * @return name **/ @ApiModelProperty(example = "doggie", required = true, value = "") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public Pet photoUrls(List photoUrls) { + this.photoUrls = photoUrls; return this; } @@ -177,15 +194,20 @@ public class Pet { * @return photoUrls **/ @ApiModelProperty(required = true, value = "") + public List getPhotoUrls() { return photoUrls; } + + public void setPhotoUrls(List photoUrls) { this.photoUrls = photoUrls; } + public Pet tags(List tags) { + this.tags = tags; return this; } @@ -204,15 +226,20 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getTags() { return tags; } + + public void setTags(List tags) { this.tags = tags; } + public Pet status(StatusEnum status) { + this.status = status; return this; } @@ -223,10 +250,13 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "pet status in the store") + public StatusEnum getStatus() { return status; } + + public void setStatus(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 84780d763a0..2501babb56e 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 @@ -37,17 +37,23 @@ public class ReadOnlyFirst { @SerializedName(SERIALIZED_NAME_BAZ) private String baz; + /** * Get bar * @return bar **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getBar() { return bar; } + + + public ReadOnlyFirst baz(String baz) { + this.baz = baz; return this; } @@ -58,10 +64,13 @@ public class ReadOnlyFirst { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getBaz() { return baz; } + + public void setBaz(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 c6ccd2c33f6..4ff598a6cfc 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 @@ -33,7 +33,9 @@ public class SpecialModelName { @SerializedName(SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME) private Long $specialPropertyName; + public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + this.$specialPropertyName = $specialPropertyName; return this; } @@ -44,10 +46,13 @@ public class SpecialModelName { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long get$SpecialPropertyName() { return $specialPropertyName; } + + public void set$SpecialPropertyName(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 504c51cc3e5..693247a2fd2 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 @@ -37,7 +37,9 @@ public class Tag { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public Tag id(Long id) { + this.id = id; return this; } @@ -48,15 +50,20 @@ public class Tag { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Tag name(String name) { + this.name = name; return this; } @@ -67,10 +74,13 @@ public class Tag { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(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 13d9a5ad670..2a91f01e7cd 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 @@ -52,7 +52,9 @@ public class TypeHolderDefault { @SerializedName(SERIALIZED_NAME_ARRAY_ITEM) private List arrayItem = new ArrayList(); + public TypeHolderDefault stringItem(String stringItem) { + this.stringItem = stringItem; return this; } @@ -62,15 +64,20 @@ public class TypeHolderDefault { * @return stringItem **/ @ApiModelProperty(required = true, value = "") + public String getStringItem() { return stringItem; } + + public void setStringItem(String stringItem) { this.stringItem = stringItem; } + public TypeHolderDefault numberItem(BigDecimal numberItem) { + this.numberItem = numberItem; return this; } @@ -80,15 +87,20 @@ public class TypeHolderDefault { * @return numberItem **/ @ApiModelProperty(required = true, value = "") + public BigDecimal getNumberItem() { return numberItem; } + + public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } + public TypeHolderDefault integerItem(Integer integerItem) { + this.integerItem = integerItem; return this; } @@ -98,15 +110,20 @@ public class TypeHolderDefault { * @return integerItem **/ @ApiModelProperty(required = true, value = "") + public Integer getIntegerItem() { return integerItem; } + + public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } + public TypeHolderDefault boolItem(Boolean boolItem) { + this.boolItem = boolItem; return this; } @@ -116,15 +133,20 @@ public class TypeHolderDefault { * @return boolItem **/ @ApiModelProperty(required = true, value = "") + public Boolean isBoolItem() { return boolItem; } + + public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } + public TypeHolderDefault arrayItem(List arrayItem) { + this.arrayItem = arrayItem; return this; } @@ -139,10 +161,13 @@ public class TypeHolderDefault { * @return arrayItem **/ @ApiModelProperty(required = true, value = "") + public List getArrayItem() { return arrayItem; } + + public void setArrayItem(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 adf66b7c654..f01043e7876 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 @@ -52,7 +52,9 @@ public class TypeHolderExample { @SerializedName(SERIALIZED_NAME_ARRAY_ITEM) private List arrayItem = new ArrayList(); + public TypeHolderExample stringItem(String stringItem) { + this.stringItem = stringItem; return this; } @@ -62,15 +64,20 @@ public class TypeHolderExample { * @return stringItem **/ @ApiModelProperty(example = "what", required = true, value = "") + public String getStringItem() { return stringItem; } + + public void setStringItem(String stringItem) { this.stringItem = stringItem; } + public TypeHolderExample numberItem(BigDecimal numberItem) { + this.numberItem = numberItem; return this; } @@ -80,15 +87,20 @@ public class TypeHolderExample { * @return numberItem **/ @ApiModelProperty(example = "1.234", required = true, value = "") + public BigDecimal getNumberItem() { return numberItem; } + + public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } + public TypeHolderExample integerItem(Integer integerItem) { + this.integerItem = integerItem; return this; } @@ -98,15 +110,20 @@ public class TypeHolderExample { * @return integerItem **/ @ApiModelProperty(example = "-2", required = true, value = "") + public Integer getIntegerItem() { return integerItem; } + + public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } + public TypeHolderExample boolItem(Boolean boolItem) { + this.boolItem = boolItem; return this; } @@ -116,15 +133,20 @@ public class TypeHolderExample { * @return boolItem **/ @ApiModelProperty(example = "true", required = true, value = "") + public Boolean isBoolItem() { return boolItem; } + + public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } + public TypeHolderExample arrayItem(List arrayItem) { + this.arrayItem = arrayItem; return this; } @@ -139,10 +161,13 @@ public class TypeHolderExample { * @return arrayItem **/ @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") + public List getArrayItem() { return arrayItem; } + + public void setArrayItem(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 1aedd044b58..3760c07c592 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 @@ -61,7 +61,9 @@ public class User { @SerializedName(SERIALIZED_NAME_USER_STATUS) private Integer userStatus; + public User id(Long id) { + this.id = id; return this; } @@ -72,15 +74,20 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public User username(String username) { + this.username = username; return this; } @@ -91,15 +98,20 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getUsername() { return username; } + + public void setUsername(String username) { this.username = username; } + public User firstName(String firstName) { + this.firstName = firstName; return this; } @@ -110,15 +122,20 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getFirstName() { return firstName; } + + public void setFirstName(String firstName) { this.firstName = firstName; } + public User lastName(String lastName) { + this.lastName = lastName; return this; } @@ -129,15 +146,20 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getLastName() { return lastName; } + + public void setLastName(String lastName) { this.lastName = lastName; } + public User email(String email) { + this.email = email; return this; } @@ -148,15 +170,20 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getEmail() { return email; } + + public void setEmail(String email) { this.email = email; } + public User password(String password) { + this.password = password; return this; } @@ -167,15 +194,20 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getPassword() { return password; } + + public void setPassword(String password) { this.password = password; } + public User phone(String phone) { + this.phone = phone; return this; } @@ -186,15 +218,20 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getPhone() { return phone; } + + public void setPhone(String phone) { this.phone = phone; } + public User userStatus(Integer userStatus) { + this.userStatus = userStatus; return this; } @@ -205,10 +242,13 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "User Status") + public Integer getUserStatus() { return userStatus; } + + public void setUserStatus(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 11a42cfd197..fd741c73012 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 @@ -148,7 +148,9 @@ public class XmlItem { @SerializedName(SERIALIZED_NAME_PREFIX_NS_WRAPPED_ARRAY) private List prefixNsWrappedArray = null; + public XmlItem attributeString(String attributeString) { + this.attributeString = attributeString; return this; } @@ -159,15 +161,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + public String getAttributeString() { return attributeString; } + + public void setAttributeString(String attributeString) { this.attributeString = attributeString; } + public XmlItem attributeNumber(BigDecimal attributeNumber) { + this.attributeNumber = attributeNumber; return this; } @@ -178,15 +185,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + public BigDecimal getAttributeNumber() { return attributeNumber; } + + public void setAttributeNumber(BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } + public XmlItem attributeInteger(Integer attributeInteger) { + this.attributeInteger = attributeInteger; return this; } @@ -197,15 +209,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + public Integer getAttributeInteger() { return attributeInteger; } + + public void setAttributeInteger(Integer attributeInteger) { this.attributeInteger = attributeInteger; } + public XmlItem attributeBoolean(Boolean attributeBoolean) { + this.attributeBoolean = attributeBoolean; return this; } @@ -216,15 +233,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + public Boolean isAttributeBoolean() { return attributeBoolean; } + + public void setAttributeBoolean(Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } + public XmlItem wrappedArray(List wrappedArray) { + this.wrappedArray = wrappedArray; return this; } @@ -243,15 +265,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getWrappedArray() { return wrappedArray; } + + public void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } + public XmlItem nameString(String nameString) { + this.nameString = nameString; return this; } @@ -262,15 +289,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + public String getNameString() { return nameString; } + + public void setNameString(String nameString) { this.nameString = nameString; } + public XmlItem nameNumber(BigDecimal nameNumber) { + this.nameNumber = nameNumber; return this; } @@ -281,15 +313,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + public BigDecimal getNameNumber() { return nameNumber; } + + public void setNameNumber(BigDecimal nameNumber) { this.nameNumber = nameNumber; } + public XmlItem nameInteger(Integer nameInteger) { + this.nameInteger = nameInteger; return this; } @@ -300,15 +337,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + public Integer getNameInteger() { return nameInteger; } + + public void setNameInteger(Integer nameInteger) { this.nameInteger = nameInteger; } + public XmlItem nameBoolean(Boolean nameBoolean) { + this.nameBoolean = nameBoolean; return this; } @@ -319,15 +361,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + public Boolean isNameBoolean() { return nameBoolean; } + + public void setNameBoolean(Boolean nameBoolean) { this.nameBoolean = nameBoolean; } + public XmlItem nameArray(List nameArray) { + this.nameArray = nameArray; return this; } @@ -346,15 +393,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getNameArray() { return nameArray; } + + public void setNameArray(List nameArray) { this.nameArray = nameArray; } + public XmlItem nameWrappedArray(List nameWrappedArray) { + this.nameWrappedArray = nameWrappedArray; return this; } @@ -373,15 +425,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getNameWrappedArray() { return nameWrappedArray; } + + public void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } + public XmlItem prefixString(String prefixString) { + this.prefixString = prefixString; return this; } @@ -392,15 +449,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + public String getPrefixString() { return prefixString; } + + public void setPrefixString(String prefixString) { this.prefixString = prefixString; } + public XmlItem prefixNumber(BigDecimal prefixNumber) { + this.prefixNumber = prefixNumber; return this; } @@ -411,15 +473,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + public BigDecimal getPrefixNumber() { return prefixNumber; } + + public void setPrefixNumber(BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } + public XmlItem prefixInteger(Integer prefixInteger) { + this.prefixInteger = prefixInteger; return this; } @@ -430,15 +497,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + public Integer getPrefixInteger() { return prefixInteger; } + + public void setPrefixInteger(Integer prefixInteger) { this.prefixInteger = prefixInteger; } + public XmlItem prefixBoolean(Boolean prefixBoolean) { + this.prefixBoolean = prefixBoolean; return this; } @@ -449,15 +521,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + public Boolean isPrefixBoolean() { return prefixBoolean; } + + public void setPrefixBoolean(Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } + public XmlItem prefixArray(List prefixArray) { + this.prefixArray = prefixArray; return this; } @@ -476,15 +553,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getPrefixArray() { return prefixArray; } + + public void setPrefixArray(List prefixArray) { this.prefixArray = prefixArray; } + public XmlItem prefixWrappedArray(List prefixWrappedArray) { + this.prefixWrappedArray = prefixWrappedArray; return this; } @@ -503,15 +585,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getPrefixWrappedArray() { return prefixWrappedArray; } + + public void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } + public XmlItem namespaceString(String namespaceString) { + this.namespaceString = namespaceString; return this; } @@ -522,15 +609,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + public String getNamespaceString() { return namespaceString; } + + public void setNamespaceString(String namespaceString) { this.namespaceString = namespaceString; } + public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + this.namespaceNumber = namespaceNumber; return this; } @@ -541,15 +633,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + public BigDecimal getNamespaceNumber() { return namespaceNumber; } + + public void setNamespaceNumber(BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } + public XmlItem namespaceInteger(Integer namespaceInteger) { + this.namespaceInteger = namespaceInteger; return this; } @@ -560,15 +657,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + public Integer getNamespaceInteger() { return namespaceInteger; } + + public void setNamespaceInteger(Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } + public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + this.namespaceBoolean = namespaceBoolean; return this; } @@ -579,15 +681,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + public Boolean isNamespaceBoolean() { return namespaceBoolean; } + + public void setNamespaceBoolean(Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } + public XmlItem namespaceArray(List namespaceArray) { + this.namespaceArray = namespaceArray; return this; } @@ -606,15 +713,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getNamespaceArray() { return namespaceArray; } + + public void setNamespaceArray(List namespaceArray) { this.namespaceArray = namespaceArray; } + public XmlItem namespaceWrappedArray(List namespaceWrappedArray) { + this.namespaceWrappedArray = namespaceWrappedArray; return this; } @@ -633,15 +745,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getNamespaceWrappedArray() { return namespaceWrappedArray; } + + public void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } + public XmlItem prefixNsString(String prefixNsString) { + this.prefixNsString = prefixNsString; return this; } @@ -652,15 +769,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + public String getPrefixNsString() { return prefixNsString; } + + public void setPrefixNsString(String prefixNsString) { this.prefixNsString = prefixNsString; } + public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + this.prefixNsNumber = prefixNsNumber; return this; } @@ -671,15 +793,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + public BigDecimal getPrefixNsNumber() { return prefixNsNumber; } + + public void setPrefixNsNumber(BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } + public XmlItem prefixNsInteger(Integer prefixNsInteger) { + this.prefixNsInteger = prefixNsInteger; return this; } @@ -690,15 +817,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + public Integer getPrefixNsInteger() { return prefixNsInteger; } + + public void setPrefixNsInteger(Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } + public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + this.prefixNsBoolean = prefixNsBoolean; return this; } @@ -709,15 +841,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + public Boolean isPrefixNsBoolean() { return prefixNsBoolean; } + + public void setPrefixNsBoolean(Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } + public XmlItem prefixNsArray(List prefixNsArray) { + this.prefixNsArray = prefixNsArray; return this; } @@ -736,15 +873,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getPrefixNsArray() { return prefixNsArray; } + + public void setPrefixNsArray(List prefixNsArray) { this.prefixNsArray = prefixNsArray; } + public XmlItem prefixNsWrappedArray(List prefixNsWrappedArray) { + this.prefixNsWrappedArray = prefixNsWrappedArray; return this; } @@ -763,10 +905,13 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getPrefixNsWrappedArray() { return prefixNsWrappedArray; } + + public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/resteasy/docs/UserApi.md b/samples/client/petstore/java/resteasy/docs/UserApi.md index 4154aba4f17..ca9f550c316 100644 --- a/samples/client/petstore/java/resteasy/docs/UserApi.md +++ b/samples/client/petstore/java/resteasy/docs/UserApi.md @@ -101,7 +101,7 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); UserApi apiInstance = new UserApi(defaultClient); - List body = Arrays.asList(null); // List | List of user object + List body = Arrays.asList(); // List | List of user object try { apiInstance.createUsersWithArrayInput(body); } catch (ApiException e) { @@ -163,7 +163,7 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); UserApi apiInstance = new UserApi(defaultClient); - List body = Arrays.asList(null); // List | List of user object + List body = Arrays.asList(); // List | List of user object try { apiInstance.createUsersWithListInput(body); } catch (ApiException e) { diff --git a/samples/client/petstore/java/resteasy/pom.xml b/samples/client/petstore/java/resteasy/pom.xml index 1b327454a68..0ef6c55d6f7 100644 --- a/samples/client/petstore/java/resteasy/pom.xml +++ b/samples/client/petstore/java/resteasy/pom.xml @@ -193,6 +193,11 @@ jackson-databind ${jackson-databind-version} + + org.openapitools + jackson-databind-nullable + ${jackson-databind-nullable-version} + com.fasterxml.jackson.datatype jackson-datatype-joda @@ -240,6 +245,7 @@ 3.1.3.Final 2.9.9 2.9.9 + 0.2.0 2.6.4 2.9.9 1.0.0 diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/JSON.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/JSON.java index b85fd70601f..b586ff36219 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/JSON.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/JSON.java @@ -2,6 +2,7 @@ package org.openapitools.client; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; +import org.openapitools.jackson.nullable.JsonNullableModule; import com.fasterxml.jackson.datatype.joda.*; import java.text.DateFormat; @@ -21,6 +22,8 @@ public class JSON implements ContextResolver { mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); mapper.setDateFormat(new RFC3339DateFormat()); + JsonNullableModule jnm = new JsonNullableModule(); + mapper.registerModule(jnm); mapper.registerModule(new JodaModule()); } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index 0df18c37e39..80e4d937cb7 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesAnyType extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesAnyType name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesAnyType extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 0d9a6b14532..59c845c40ac 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import java.util.Map; public class AdditionalPropertiesArray extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesArray name(String name) { + this.name = name; return this; } @@ -44,10 +46,15 @@ public class AdditionalPropertiesArray extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 8e85a1f2246..c6c2919f37d 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesBoolean extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesBoolean name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesBoolean extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 0fa49af1afd..29f38bc34c9 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,50 +32,41 @@ import java.util.Map; public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_STRING = "map_string"; - @JsonProperty(JSON_PROPERTY_MAP_STRING) private Map mapString = null; public static final String JSON_PROPERTY_MAP_NUMBER = "map_number"; - @JsonProperty(JSON_PROPERTY_MAP_NUMBER) private Map mapNumber = null; public static final String JSON_PROPERTY_MAP_INTEGER = "map_integer"; - @JsonProperty(JSON_PROPERTY_MAP_INTEGER) private Map mapInteger = null; public static final String JSON_PROPERTY_MAP_BOOLEAN = "map_boolean"; - @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) private Map mapBoolean = null; public static final String JSON_PROPERTY_MAP_ARRAY_INTEGER = "map_array_integer"; - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) private Map> mapArrayInteger = null; public static final String JSON_PROPERTY_MAP_ARRAY_ANYTYPE = "map_array_anytype"; - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) private Map> mapArrayAnytype = null; public static final String JSON_PROPERTY_MAP_MAP_STRING = "map_map_string"; - @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) private Map> mapMapString = null; public static final String JSON_PROPERTY_MAP_MAP_ANYTYPE = "map_map_anytype"; - @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) private Map> mapMapAnytype = null; public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1"; - @JsonProperty(JSON_PROPERTY_ANYTYPE1) - private Object anytype1 = null; + private Object anytype1; public static final String JSON_PROPERTY_ANYTYPE2 = "anytype_2"; - @JsonProperty(JSON_PROPERTY_ANYTYPE2) - private Object anytype2 = null; + private Object anytype2; public static final String JSON_PROPERTY_ANYTYPE3 = "anytype_3"; - @JsonProperty(JSON_PROPERTY_ANYTYPE3) - private Object anytype3 = null; + private Object anytype3; + public AdditionalPropertiesClass mapString(Map mapString) { + this.mapString = mapString; return this; } @@ -93,15 +85,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapString() { return mapString; } + + public void setMapString(Map mapString) { this.mapString = mapString; } + public AdditionalPropertiesClass mapNumber(Map mapNumber) { + this.mapNumber = mapNumber; return this; } @@ -120,15 +119,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapNumber() { return mapNumber; } + + public void setMapNumber(Map mapNumber) { this.mapNumber = mapNumber; } + public AdditionalPropertiesClass mapInteger(Map mapInteger) { + this.mapInteger = mapInteger; return this; } @@ -147,15 +153,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapInteger() { return mapInteger; } + + public void setMapInteger(Map mapInteger) { this.mapInteger = mapInteger; } + public AdditionalPropertiesClass mapBoolean(Map mapBoolean) { + this.mapBoolean = mapBoolean; return this; } @@ -174,15 +187,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapBoolean() { return mapBoolean; } + + public void setMapBoolean(Map mapBoolean) { this.mapBoolean = mapBoolean; } + public AdditionalPropertiesClass mapArrayInteger(Map> mapArrayInteger) { + this.mapArrayInteger = mapArrayInteger; return this; } @@ -201,15 +221,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapArrayInteger() { return mapArrayInteger; } + + public void setMapArrayInteger(Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; } + public AdditionalPropertiesClass mapArrayAnytype(Map> mapArrayAnytype) { + this.mapArrayAnytype = mapArrayAnytype; return this; } @@ -228,15 +255,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapArrayAnytype() { return mapArrayAnytype; } + + public void setMapArrayAnytype(Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; } + public AdditionalPropertiesClass mapMapString(Map> mapMapString) { + this.mapMapString = mapMapString; return this; } @@ -255,15 +289,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapMapString() { return mapMapString; } + + public void setMapMapString(Map> mapMapString) { this.mapMapString = mapMapString; } + public AdditionalPropertiesClass mapMapAnytype(Map> mapMapAnytype) { + this.mapMapAnytype = mapMapAnytype; return this; } @@ -282,15 +323,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapMapAnytype() { return mapMapAnytype; } + + public void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } + public AdditionalPropertiesClass anytype1(Object anytype1) { + this.anytype1 = anytype1; return this; } @@ -301,15 +349,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Object getAnytype1() { return anytype1; } + + public void setAnytype1(Object anytype1) { this.anytype1 = anytype1; } + public AdditionalPropertiesClass anytype2(Object anytype2) { + this.anytype2 = anytype2; return this; } @@ -320,15 +375,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ANYTYPE2) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Object getAnytype2() { return anytype2; } + + public void setAnytype2(Object anytype2) { this.anytype2 = anytype2; } + public AdditionalPropertiesClass anytype3(Object anytype3) { + this.anytype3 = anytype3; return this; } @@ -339,10 +401,15 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ANYTYPE3) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Object getAnytype3() { return anytype3; } + + public void setAnytype3(Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 77388b95d86..3d41e99ac8b 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesInteger extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesInteger name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesInteger extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index f0a3318bca1..799674f1e1b 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import java.util.Map; public class AdditionalPropertiesNumber extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesNumber name(String name) { + this.name = name; return this; } @@ -44,10 +46,15 @@ public class AdditionalPropertiesNumber extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index 19d772f4522..3d5a5c25bfa 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesObject extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesObject name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesObject extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 09e6431c916..d0c854414c3 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesString extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesString name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesString extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } 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 a2d34d82f47..1f548074919 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; @@ -35,14 +36,14 @@ import io.swagger.annotations.ApiModelProperty; public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; - @JsonProperty(JSON_PROPERTY_CLASS_NAME) private String className; public static final String JSON_PROPERTY_COLOR = "color"; - @JsonProperty(JSON_PROPERTY_COLOR) private String color = "red"; + public Animal className(String className) { + this.className = className; return this; } @@ -52,15 +53,22 @@ public class Animal { * @return className **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getClassName() { return className; } + + public void setClassName(String className) { this.className = className; } + public Animal color(String color) { + this.color = color; return this; } @@ -71,10 +79,15 @@ public class Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_COLOR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getColor() { return color; } + + public void setColor(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 e1a5139bd25..40fd3259fc7 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import java.util.List; public class ArrayOfArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) private List> arrayArrayNumber = null; + public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + this.arrayArrayNumber = arrayArrayNumber; return this; } @@ -52,10 +54,15 @@ public class ArrayOfArrayOfNumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List> getArrayArrayNumber() { return arrayArrayNumber; } + + public void setArrayArrayNumber(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 76fc13b8ce8..1b695be1510 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import java.util.List; public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) private List arrayNumber = null; + public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + this.arrayNumber = arrayNumber; return this; } @@ -52,10 +54,15 @@ public class ArrayOfNumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArrayNumber() { return arrayNumber; } + + public void setArrayNumber(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 a0082db628c..0effb728488 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,18 +31,17 @@ import org.openapitools.client.model.ReadOnlyFirst; public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) private List arrayOfString = null; public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) private List> arrayArrayOfInteger = null; public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) private List> arrayArrayOfModel = null; + public ArrayTest arrayOfString(List arrayOfString) { + this.arrayOfString = arrayOfString; return this; } @@ -60,15 +60,22 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArrayOfString() { return arrayOfString; } + + public void setArrayOfString(List arrayOfString) { this.arrayOfString = arrayOfString; } + public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + this.arrayArrayOfInteger = arrayArrayOfInteger; return this; } @@ -87,15 +94,22 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List> getArrayArrayOfInteger() { return arrayArrayOfInteger; } + + public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } + public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + this.arrayArrayOfModel = arrayArrayOfModel; return this; } @@ -114,10 +128,15 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List> getArrayArrayOfModel() { return arrayArrayOfModel; } + + public void setArrayArrayOfModel(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 1d4ebff1533..1db509bc7a9 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,30 +28,26 @@ import io.swagger.annotations.ApiModelProperty; public class Capitalization { public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) private String smallCamel; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) private String capitalCamel; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) private String smallSnake; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) private String capitalSnake; public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) private String scAETHFlowPoints; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) private String ATT_NAME; + public Capitalization smallCamel(String smallCamel) { + this.smallCamel = smallCamel; return this; } @@ -61,15 +58,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSmallCamel() { return smallCamel; } + + public void setSmallCamel(String smallCamel) { this.smallCamel = smallCamel; } + public Capitalization capitalCamel(String capitalCamel) { + this.capitalCamel = capitalCamel; return this; } @@ -80,15 +84,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getCapitalCamel() { return capitalCamel; } + + public void setCapitalCamel(String capitalCamel) { this.capitalCamel = capitalCamel; } + public Capitalization smallSnake(String smallSnake) { + this.smallSnake = smallSnake; return this; } @@ -99,15 +110,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSmallSnake() { return smallSnake; } + + public void setSmallSnake(String smallSnake) { this.smallSnake = smallSnake; } + public Capitalization capitalSnake(String capitalSnake) { + this.capitalSnake = capitalSnake; return this; } @@ -118,15 +136,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getCapitalSnake() { return capitalSnake; } + + public void setCapitalSnake(String capitalSnake) { this.capitalSnake = capitalSnake; } + public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -137,15 +162,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getScAETHFlowPoints() { return scAETHFlowPoints; } + + public void setScAETHFlowPoints(String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } + public Capitalization ATT_NAME(String ATT_NAME) { + this.ATT_NAME = ATT_NAME; return this; } @@ -156,10 +188,15 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "Name of the pet ") + @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getATTNAME() { return ATT_NAME; } + + public void setATTNAME(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 11ffa39d982..35f36932606 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import org.openapitools.client.model.CatAllOf; public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; - @JsonProperty(JSON_PROPERTY_DECLAWED) private Boolean declawed; + public Cat declawed(Boolean declawed) { + this.declawed = declawed; return this; } @@ -43,10 +45,15 @@ public class Cat extends Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getDeclawed() { return declawed; } + + public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/CatAllOf.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/CatAllOf.java index 1c12b1972cf..f498096d0bc 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/CatAllOf.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/CatAllOf.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty; public class CatAllOf { public static final String JSON_PROPERTY_DECLAWED = "declawed"; - @JsonProperty(JSON_PROPERTY_DECLAWED) private Boolean declawed; + public CatAllOf declawed(Boolean declawed) { + this.declawed = declawed; return this; } @@ -41,10 +43,15 @@ public class CatAllOf { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getDeclawed() { return declawed; } + + public void setDeclawed(Boolean declawed) { this.declawed = declawed; } 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 652d69552d1..3c4385a7132 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,14 +28,14 @@ import io.swagger.annotations.ApiModelProperty; public class Category { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name = "default-name"; + public Category id(Long id) { + this.id = id; return this; } @@ -45,15 +46,22 @@ public class Category { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Category name(String name) { + this.name = name; return this; } @@ -63,10 +71,15 @@ public class Category { * @return name **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } 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 16036936e7a..47ad8fce655 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,10 +29,11 @@ import io.swagger.annotations.ApiModelProperty; public class ClassModel { public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) private String propertyClass; + public ClassModel propertyClass(String propertyClass) { + this.propertyClass = propertyClass; return this; } @@ -42,10 +44,15 @@ public class ClassModel { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPropertyClass() { return propertyClass; } + + public void setPropertyClass(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 a5c065a1dd0..d325f1378cb 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty; public class Client { public static final String JSON_PROPERTY_CLIENT = "client"; - @JsonProperty(JSON_PROPERTY_CLIENT) private String client; + public Client client(String client) { + this.client = client; return this; } @@ -41,10 +43,15 @@ public class Client { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getClient() { return client; } + + public void setClient(String client) { this.client = client; } 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 7ac3c33202e..cc0acce7049 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import org.openapitools.client.model.DogAllOf; public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; - @JsonProperty(JSON_PROPERTY_BREED) private String breed; + public Dog breed(String breed) { + this.breed = breed; return this; } @@ -43,10 +45,15 @@ public class Dog extends Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBreed() { return breed; } + + public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/DogAllOf.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/DogAllOf.java index b79847a96e4..31d4cc3c80e 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/DogAllOf.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/DogAllOf.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty; public class DogAllOf { public static final String JSON_PROPERTY_BREED = "breed"; - @JsonProperty(JSON_PROPERTY_BREED) private String breed; + public DogAllOf breed(String breed) { + this.breed = breed; return this; } @@ -41,10 +43,15 @@ public class DogAllOf { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBreed() { return breed; } + + public void setBreed(String breed) { this.breed = breed; } 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 93e0acd5746..c60e85ce7d6 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -64,7 +65,6 @@ public class EnumArrays { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) private JustSymbolEnum justSymbol; /** @@ -103,10 +103,11 @@ public class EnumArrays { } public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) private List arrayEnum = null; + public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + this.justSymbol = justSymbol; return this; } @@ -117,15 +118,22 @@ public class EnumArrays { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public JustSymbolEnum getJustSymbol() { return justSymbol; } + + public void setJustSymbol(JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } + public EnumArrays arrayEnum(List arrayEnum) { + this.arrayEnum = arrayEnum; return this; } @@ -144,10 +152,15 @@ public class EnumArrays { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArrayEnum() { return arrayEnum; } + + public void setArrayEnum(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 bde85ff2a09..615f4806ebd 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -65,7 +66,6 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; - @JsonProperty(JSON_PROPERTY_ENUM_STRING) private EnumStringEnum enumString; /** @@ -106,7 +106,6 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) private EnumStringRequiredEnum enumStringRequired; /** @@ -145,7 +144,6 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) private EnumIntegerEnum enumInteger; /** @@ -184,14 +182,14 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) private OuterEnum outerEnum; + public EnumTest enumString(EnumStringEnum enumString) { + this.enumString = enumString; return this; } @@ -202,15 +200,22 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public EnumStringEnum getEnumString() { return enumString; } + + public void setEnumString(EnumStringEnum enumString) { this.enumString = enumString; } + public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + this.enumStringRequired = enumStringRequired; return this; } @@ -220,15 +225,22 @@ public class EnumTest { * @return enumStringRequired **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; } + + public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } + public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + this.enumInteger = enumInteger; return this; } @@ -239,15 +251,22 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public EnumIntegerEnum getEnumInteger() { return enumInteger; } + + public void setEnumInteger(EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } + public EnumTest enumNumber(EnumNumberEnum enumNumber) { + this.enumNumber = enumNumber; return this; } @@ -258,15 +277,22 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public EnumNumberEnum getEnumNumber() { return enumNumber; } + + public void setEnumNumber(EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } + public EnumTest outerEnum(OuterEnum outerEnum) { + this.outerEnum = outerEnum; return this; } @@ -277,10 +303,15 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OuterEnum getOuterEnum() { return outerEnum; } + + public void setOuterEnum(OuterEnum outerEnum) { this.outerEnum = outerEnum; } 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 1c2623fca90..e2dab74c358 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,14 +30,14 @@ import java.util.List; public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; - @JsonProperty(JSON_PROPERTY_FILE) - private java.io.File file = null; + private java.io.File file; public static final String JSON_PROPERTY_FILES = "files"; - @JsonProperty(JSON_PROPERTY_FILES) private List files = null; + public FileSchemaTestClass file(java.io.File file) { + this.file = file; return this; } @@ -47,15 +48,22 @@ public class FileSchemaTestClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FILE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public java.io.File getFile() { return file; } + + public void setFile(java.io.File file) { this.file = file; } + public FileSchemaTestClass files(List files) { + this.files = files; return this; } @@ -74,10 +82,15 @@ public class FileSchemaTestClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FILES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getFiles() { return files; } + + public void setFiles(List files) { this.files = files; } 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 509048cd5e9..b6dd912d49e 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -32,58 +33,47 @@ import org.threeten.bp.OffsetDateTime; public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; - @JsonProperty(JSON_PROPERTY_INTEGER) private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; - @JsonProperty(JSON_PROPERTY_INT32) private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; - @JsonProperty(JSON_PROPERTY_INT64) private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; - @JsonProperty(JSON_PROPERTY_NUMBER) private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; - @JsonProperty(JSON_PROPERTY_FLOAT) private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; - @JsonProperty(JSON_PROPERTY_DOUBLE) private Double _double; public static final String JSON_PROPERTY_STRING = "string"; - @JsonProperty(JSON_PROPERTY_STRING) private String string; public static final String JSON_PROPERTY_BYTE = "byte"; - @JsonProperty(JSON_PROPERTY_BYTE) private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; - @JsonProperty(JSON_PROPERTY_BINARY) private File binary; public static final String JSON_PROPERTY_DATE = "date"; - @JsonProperty(JSON_PROPERTY_DATE) private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @JsonProperty(JSON_PROPERTY_DATE_TIME) private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; - @JsonProperty(JSON_PROPERTY_UUID) private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; - @JsonProperty(JSON_PROPERTY_PASSWORD) private String password; + public FormatTest integer(Integer integer) { + this.integer = integer; return this; } @@ -96,15 +86,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getInteger() { return integer; } + + public void setInteger(Integer integer) { this.integer = integer; } + public FormatTest int32(Integer int32) { + this.int32 = int32; return this; } @@ -117,15 +114,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INT32) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getInt32() { return int32; } + + public void setInt32(Integer int32) { this.int32 = int32; } + public FormatTest int64(Long int64) { + this.int64 = int64; return this; } @@ -136,15 +140,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INT64) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getInt64() { return int64; } + + public void setInt64(Long int64) { this.int64 = int64; } + public FormatTest number(BigDecimal number) { + this.number = number; return this; } @@ -156,15 +167,22 @@ public class FormatTest { * @return number **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getNumber() { return number; } + + public void setNumber(BigDecimal number) { this.number = number; } + public FormatTest _float(Float _float) { + this._float = _float; return this; } @@ -177,15 +195,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Float getFloat() { return _float; } + + public void setFloat(Float _float) { this._float = _float; } + public FormatTest _double(Double _double) { + this._double = _double; return this; } @@ -198,15 +223,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Double getDouble() { return _double; } + + public void setDouble(Double _double) { this._double = _double; } + public FormatTest string(String string) { + this.string = string; return this; } @@ -217,15 +249,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getString() { return string; } + + public void setString(String string) { this.string = string; } + public FormatTest _byte(byte[] _byte) { + this._byte = _byte; return this; } @@ -235,15 +274,22 @@ public class FormatTest { * @return _byte **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_BYTE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public byte[] getByte() { return _byte; } + + public void setByte(byte[] _byte) { this._byte = _byte; } + public FormatTest binary(File binary) { + this.binary = binary; return this; } @@ -254,15 +300,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BINARY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public File getBinary() { return binary; } + + public void setBinary(File binary) { this.binary = binary; } + public FormatTest date(LocalDate date) { + this.date = date; return this; } @@ -272,15 +325,22 @@ public class FormatTest { * @return date **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_DATE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public LocalDate getDate() { return date; } + + public void setDate(LocalDate date) { this.date = date; } + public FormatTest dateTime(OffsetDateTime dateTime) { + this.dateTime = dateTime; return this; } @@ -291,15 +351,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OffsetDateTime getDateTime() { return dateTime; } + + public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } + public FormatTest uuid(UUID uuid) { + this.uuid = uuid; return this; } @@ -310,15 +377,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public UUID getUuid() { return uuid; } + + public void setUuid(UUID uuid) { this.uuid = uuid; } + public FormatTest password(String password) { + this.password = password; return this; } @@ -328,10 +402,15 @@ public class FormatTest { * @return password **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getPassword() { return password; } + + public void setPassword(String password) { this.password = password; } 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 ad6b28d9d1e..9c25eddaa1b 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,34 +28,44 @@ import io.swagger.annotations.ApiModelProperty; public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; - @JsonProperty(JSON_PROPERTY_BAR) private String bar; public static final String JSON_PROPERTY_FOO = "foo"; - @JsonProperty(JSON_PROPERTY_FOO) private String foo; + /** * Get bar * @return bar **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BAR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBar() { return bar; } + + + /** * Get foo * @return foo **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FOO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getFoo() { return foo; } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { 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 66b41268e51..c6193edaf98 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,7 +31,6 @@ import java.util.Map; public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) private Map> mapMapOfString = null; /** @@ -69,18 +69,17 @@ public class MapTest { } public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) private Map mapOfEnumString = null; public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) private Map directMap = null; public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) private Map indirectMap = null; + public MapTest mapMapOfString(Map> mapMapOfString) { + this.mapMapOfString = mapMapOfString; return this; } @@ -99,15 +98,22 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapMapOfString() { return mapMapOfString; } + + public void setMapMapOfString(Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } + public MapTest mapOfEnumString(Map mapOfEnumString) { + this.mapOfEnumString = mapOfEnumString; return this; } @@ -126,15 +132,22 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapOfEnumString() { return mapOfEnumString; } + + public void setMapOfEnumString(Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } + public MapTest directMap(Map directMap) { + this.directMap = directMap; return this; } @@ -153,15 +166,22 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getDirectMap() { return directMap; } + + public void setDirectMap(Map directMap) { this.directMap = directMap; } + public MapTest indirectMap(Map indirectMap) { + this.indirectMap = indirectMap; return this; } @@ -180,10 +200,15 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getIndirectMap() { return indirectMap; } + + public void setIndirectMap(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 b66724ea321..df4761bf27b 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -33,18 +34,17 @@ import org.threeten.bp.OffsetDateTime; public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; - @JsonProperty(JSON_PROPERTY_UUID) private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @JsonProperty(JSON_PROPERTY_DATE_TIME) private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; - @JsonProperty(JSON_PROPERTY_MAP) private Map map = null; + public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + this.uuid = uuid; return this; } @@ -55,15 +55,22 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public UUID getUuid() { return uuid; } + + public void setUuid(UUID uuid) { this.uuid = uuid; } + public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + this.dateTime = dateTime; return this; } @@ -74,15 +81,22 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OffsetDateTime getDateTime() { return dateTime; } + + public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } + public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + this.map = map; return this; } @@ -101,10 +115,15 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMap() { return map; } + + public void setMap(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 d86df5d7eab..0b39d4177e2 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,14 +29,14 @@ import io.swagger.annotations.ApiModelProperty; public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) private String propertyClass; + public Model200Response name(Integer name) { + this.name = name; return this; } @@ -46,15 +47,22 @@ public class Model200Response { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getName() { return name; } + + public void setName(Integer name) { this.name = name; } + public Model200Response propertyClass(String propertyClass) { + this.propertyClass = propertyClass; return this; } @@ -65,10 +73,15 @@ public class Model200Response { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPropertyClass() { return propertyClass; } + + public void setPropertyClass(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 4c9a7f87b5a..9ca6e78b233 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,18 +28,17 @@ import io.swagger.annotations.ApiModelProperty; public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; - @JsonProperty(JSON_PROPERTY_CODE) private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; - @JsonProperty(JSON_PROPERTY_TYPE) private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; - @JsonProperty(JSON_PROPERTY_MESSAGE) private String message; + public ModelApiResponse code(Integer code) { + this.code = code; return this; } @@ -49,15 +49,22 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getCode() { return code; } + + public void setCode(Integer code) { this.code = code; } + public ModelApiResponse type(String type) { + this.type = type; return this; } @@ -68,15 +75,22 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getType() { return type; } + + public void setType(String type) { this.type = type; } + public ModelApiResponse message(String message) { + this.message = message; return this; } @@ -87,10 +101,15 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } 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 9c9ac21a3fb..300598b5d0b 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,10 +29,11 @@ import io.swagger.annotations.ApiModelProperty; public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; - @JsonProperty(JSON_PROPERTY_RETURN) private Integer _return; + public ModelReturn _return(Integer _return) { + this._return = _return; return this; } @@ -42,10 +44,15 @@ public class ModelReturn { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_RETURN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getReturn() { return _return; } + + public void setReturn(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 47f89c54361..98a92f76c18 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,22 +29,20 @@ import io.swagger.annotations.ApiModelProperty; public class Name { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; - @JsonProperty(JSON_PROPERTY_PROPERTY) private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; - @JsonProperty(JSON_PROPERTY_123NUMBER) private Integer _123number; + public Name name(Integer name) { + this.name = name; return this; } @@ -53,25 +52,38 @@ public class Name { * @return name **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getName() { return name; } + + public void setName(Integer name) { this.name = name; } + /** * Get snakeCase * @return snakeCase **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getSnakeCase() { return snakeCase; } + + + public Name property(String property) { + this.property = property; return this; } @@ -82,25 +94,36 @@ public class Name { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getProperty() { return property; } + + public void setProperty(String property) { this.property = property; } + /** * Get _123number * @return _123number **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_123NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer get123number() { return _123number; } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { 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 f5331da226e..499144e4016 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,10 +29,11 @@ import java.math.BigDecimal; public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) private BigDecimal justNumber; + public NumberOnly justNumber(BigDecimal justNumber) { + this.justNumber = justNumber; return this; } @@ -42,10 +44,15 @@ public class NumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getJustNumber() { return justNumber; } + + public void setJustNumber(BigDecimal justNumber) { this.justNumber = justNumber; } 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 0d6bc154e46..fadc836b44a 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,19 +29,15 @@ import org.threeten.bp.OffsetDateTime; public class Order { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; - @JsonProperty(JSON_PROPERTY_PET_ID) private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; - @JsonProperty(JSON_PROPERTY_QUANTITY) private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; - @JsonProperty(JSON_PROPERTY_SHIP_DATE) private OffsetDateTime shipDate; /** @@ -81,14 +78,14 @@ public class Order { } public static final String JSON_PROPERTY_STATUS = "status"; - @JsonProperty(JSON_PROPERTY_STATUS) private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; - @JsonProperty(JSON_PROPERTY_COMPLETE) private Boolean complete = false; + public Order id(Long id) { + this.id = id; return this; } @@ -99,15 +96,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Order petId(Long petId) { + this.petId = petId; return this; } @@ -118,15 +122,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getPetId() { return petId; } + + public void setPetId(Long petId) { this.petId = petId; } + public Order quantity(Integer quantity) { + this.quantity = quantity; return this; } @@ -137,15 +148,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getQuantity() { return quantity; } + + public void setQuantity(Integer quantity) { this.quantity = quantity; } + public Order shipDate(OffsetDateTime shipDate) { + this.shipDate = shipDate; return this; } @@ -156,15 +174,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OffsetDateTime getShipDate() { return shipDate; } + + public void setShipDate(OffsetDateTime shipDate) { this.shipDate = shipDate; } + public Order status(StatusEnum status) { + this.status = status; return this; } @@ -175,15 +200,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "Order Status") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public StatusEnum getStatus() { return status; } + + public void setStatus(StatusEnum status) { this.status = status; } + public Order complete(Boolean complete) { + this.complete = complete; return this; } @@ -194,10 +226,15 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getComplete() { return complete; } + + public void setComplete(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 7193ba2a0c9..dab9d1be3a8 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,18 +29,17 @@ import java.math.BigDecimal; public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; - @JsonProperty(JSON_PROPERTY_MY_NUMBER) private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; - @JsonProperty(JSON_PROPERTY_MY_STRING) private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) private Boolean myBoolean; + public OuterComposite myNumber(BigDecimal myNumber) { + this.myNumber = myNumber; return this; } @@ -50,15 +50,22 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getMyNumber() { return myNumber; } + + public void setMyNumber(BigDecimal myNumber) { this.myNumber = myNumber; } + public OuterComposite myString(String myString) { + this.myString = myString; return this; } @@ -69,15 +76,22 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getMyString() { return myString; } + + public void setMyString(String myString) { this.myString = myString; } + public OuterComposite myBoolean(Boolean myBoolean) { + this.myBoolean = myBoolean; return this; } @@ -88,10 +102,15 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getMyBoolean() { return myBoolean; } + + public void setMyBoolean(Boolean myBoolean) { this.myBoolean = myBoolean; } 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 fb59d996bf6..63f1f3771b2 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,23 +32,18 @@ import org.openapitools.client.model.Tag; public class Pet { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; - @JsonProperty(JSON_PROPERTY_CATEGORY) - private Category category = null; + private Category category; public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) private List photoUrls = new ArrayList(); public static final String JSON_PROPERTY_TAGS = "tags"; - @JsonProperty(JSON_PROPERTY_TAGS) private List tags = null; /** @@ -88,10 +84,11 @@ public class Pet { } public static final String JSON_PROPERTY_STATUS = "status"; - @JsonProperty(JSON_PROPERTY_STATUS) private StatusEnum status; + public Pet id(Long id) { + this.id = id; return this; } @@ -102,15 +99,22 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Pet category(Category category) { + this.category = category; return this; } @@ -121,15 +125,22 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Category getCategory() { return category; } + + public void setCategory(Category category) { this.category = category; } + public Pet name(String name) { + this.name = name; return this; } @@ -139,15 +150,22 @@ public class Pet { * @return name **/ @ApiModelProperty(example = "doggie", required = true, value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public Pet photoUrls(List photoUrls) { + this.photoUrls = photoUrls; return this; } @@ -162,15 +180,22 @@ public class Pet { * @return photoUrls **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getPhotoUrls() { return photoUrls; } + + public void setPhotoUrls(List photoUrls) { this.photoUrls = photoUrls; } + public Pet tags(List tags) { + this.tags = tags; return this; } @@ -189,15 +214,22 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getTags() { return tags; } + + public void setTags(List tags) { this.tags = tags; } + public Pet status(StatusEnum status) { + this.status = status; return this; } @@ -208,10 +240,15 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "pet status in the store") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public StatusEnum getStatus() { return status; } + + public void setStatus(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 b0949b9e2ea..28901097fa4 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,24 +28,30 @@ import io.swagger.annotations.ApiModelProperty; public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; - @JsonProperty(JSON_PROPERTY_BAR) private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; - @JsonProperty(JSON_PROPERTY_BAZ) private String baz; + /** * Get bar * @return bar **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BAR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBar() { return bar; } + + + public ReadOnlyFirst baz(String baz) { + this.baz = baz; return this; } @@ -55,10 +62,15 @@ public class ReadOnlyFirst { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BAZ) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBaz() { return baz; } + + public void setBaz(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 a9d03234061..c7820abb0fc 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty; public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) private Long $specialPropertyName; + public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + this.$specialPropertyName = $specialPropertyName; return this; } @@ -41,10 +43,15 @@ public class SpecialModelName { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long get$SpecialPropertyName() { return $specialPropertyName; } + + public void set$SpecialPropertyName(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 45f17b22cf3..7e20ebf4a31 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,14 +28,14 @@ import io.swagger.annotations.ApiModelProperty; public class Tag { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public Tag id(Long id) { + this.id = id; return this; } @@ -45,15 +46,22 @@ public class Tag { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Tag name(String name) { + this.name = name; return this; } @@ -64,10 +72,15 @@ public class Tag { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index 0961f776fb0..37fbaac7e13 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,26 +31,23 @@ import java.util.List; public class TypeHolderDefault { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; - @JsonProperty(JSON_PROPERTY_STRING_ITEM) private String stringItem = "what"; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) private BigDecimal numberItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) private Boolean boolItem = true; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) private List arrayItem = new ArrayList(); + public TypeHolderDefault stringItem(String stringItem) { + this.stringItem = stringItem; return this; } @@ -59,15 +57,22 @@ public class TypeHolderDefault { * @return stringItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getStringItem() { return stringItem; } + + public void setStringItem(String stringItem) { this.stringItem = stringItem; } + public TypeHolderDefault numberItem(BigDecimal numberItem) { + this.numberItem = numberItem; return this; } @@ -77,15 +82,22 @@ public class TypeHolderDefault { * @return numberItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getNumberItem() { return numberItem; } + + public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } + public TypeHolderDefault integerItem(Integer integerItem) { + this.integerItem = integerItem; return this; } @@ -95,15 +107,22 @@ public class TypeHolderDefault { * @return integerItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getIntegerItem() { return integerItem; } + + public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } + public TypeHolderDefault boolItem(Boolean boolItem) { + this.boolItem = boolItem; return this; } @@ -113,15 +132,22 @@ public class TypeHolderDefault { * @return boolItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Boolean getBoolItem() { return boolItem; } + + public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } + public TypeHolderDefault arrayItem(List arrayItem) { + this.arrayItem = arrayItem; return this; } @@ -136,10 +162,15 @@ public class TypeHolderDefault { * @return arrayItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getArrayItem() { return arrayItem; } + + public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/TypeHolderExample.java index 3617c5c16b2..25ef3e65cee 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,26 +31,23 @@ import java.util.List; public class TypeHolderExample { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; - @JsonProperty(JSON_PROPERTY_STRING_ITEM) private String stringItem; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) private BigDecimal numberItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) private Boolean boolItem; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) private List arrayItem = new ArrayList(); + public TypeHolderExample stringItem(String stringItem) { + this.stringItem = stringItem; return this; } @@ -59,15 +57,22 @@ public class TypeHolderExample { * @return stringItem **/ @ApiModelProperty(example = "what", required = true, value = "") + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getStringItem() { return stringItem; } + + public void setStringItem(String stringItem) { this.stringItem = stringItem; } + public TypeHolderExample numberItem(BigDecimal numberItem) { + this.numberItem = numberItem; return this; } @@ -77,15 +82,22 @@ public class TypeHolderExample { * @return numberItem **/ @ApiModelProperty(example = "1.234", required = true, value = "") + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getNumberItem() { return numberItem; } + + public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } + public TypeHolderExample integerItem(Integer integerItem) { + this.integerItem = integerItem; return this; } @@ -95,15 +107,22 @@ public class TypeHolderExample { * @return integerItem **/ @ApiModelProperty(example = "-2", required = true, value = "") + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getIntegerItem() { return integerItem; } + + public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } + public TypeHolderExample boolItem(Boolean boolItem) { + this.boolItem = boolItem; return this; } @@ -113,15 +132,22 @@ public class TypeHolderExample { * @return boolItem **/ @ApiModelProperty(example = "true", required = true, value = "") + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Boolean getBoolItem() { return boolItem; } + + public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } + public TypeHolderExample arrayItem(List arrayItem) { + this.arrayItem = arrayItem; return this; } @@ -136,10 +162,15 @@ public class TypeHolderExample { * @return arrayItem **/ @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getArrayItem() { return arrayItem; } + + public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/User.java index 9ce7869e755..b181265d97d 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/User.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,38 +28,32 @@ import io.swagger.annotations.ApiModelProperty; public class User { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; - @JsonProperty(JSON_PROPERTY_USERNAME) private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; - @JsonProperty(JSON_PROPERTY_FIRST_NAME) private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; - @JsonProperty(JSON_PROPERTY_LAST_NAME) private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; - @JsonProperty(JSON_PROPERTY_EMAIL) private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; - @JsonProperty(JSON_PROPERTY_PASSWORD) private String password; public static final String JSON_PROPERTY_PHONE = "phone"; - @JsonProperty(JSON_PROPERTY_PHONE) private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; - @JsonProperty(JSON_PROPERTY_USER_STATUS) private Integer userStatus; + public User id(Long id) { + this.id = id; return this; } @@ -69,15 +64,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public User username(String username) { + this.username = username; return this; } @@ -88,15 +90,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getUsername() { return username; } + + public void setUsername(String username) { this.username = username; } + public User firstName(String firstName) { + this.firstName = firstName; return this; } @@ -107,15 +116,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getFirstName() { return firstName; } + + public void setFirstName(String firstName) { this.firstName = firstName; } + public User lastName(String lastName) { + this.lastName = lastName; return this; } @@ -126,15 +142,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getLastName() { return lastName; } + + public void setLastName(String lastName) { this.lastName = lastName; } + public User email(String email) { + this.email = email; return this; } @@ -145,15 +168,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getEmail() { return email; } + + public void setEmail(String email) { this.email = email; } + public User password(String password) { + this.password = password; return this; } @@ -164,15 +194,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPassword() { return password; } + + public void setPassword(String password) { this.password = password; } + public User phone(String phone) { + this.phone = phone; return this; } @@ -183,15 +220,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PHONE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPhone() { return phone; } + + public void setPhone(String phone) { this.phone = phone; } + public User userStatus(Integer userStatus) { + this.userStatus = userStatus; return this; } @@ -202,10 +246,15 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "User Status") + @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getUserStatus() { return userStatus; } + + public void setUserStatus(Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/XmlItem.java index 8be5213ca84..69467145249 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/XmlItem.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,122 +31,95 @@ import java.util.List; public class XmlItem { public static final String JSON_PROPERTY_ATTRIBUTE_STRING = "attribute_string"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) private String attributeString; public static final String JSON_PROPERTY_ATTRIBUTE_NUMBER = "attribute_number"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) private BigDecimal attributeNumber; public static final String JSON_PROPERTY_ATTRIBUTE_INTEGER = "attribute_integer"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) private Integer attributeInteger; public static final String JSON_PROPERTY_ATTRIBUTE_BOOLEAN = "attribute_boolean"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) private Boolean attributeBoolean; public static final String JSON_PROPERTY_WRAPPED_ARRAY = "wrapped_array"; - @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) private List wrappedArray = null; public static final String JSON_PROPERTY_NAME_STRING = "name_string"; - @JsonProperty(JSON_PROPERTY_NAME_STRING) private String nameString; public static final String JSON_PROPERTY_NAME_NUMBER = "name_number"; - @JsonProperty(JSON_PROPERTY_NAME_NUMBER) private BigDecimal nameNumber; public static final String JSON_PROPERTY_NAME_INTEGER = "name_integer"; - @JsonProperty(JSON_PROPERTY_NAME_INTEGER) private Integer nameInteger; public static final String JSON_PROPERTY_NAME_BOOLEAN = "name_boolean"; - @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) private Boolean nameBoolean; public static final String JSON_PROPERTY_NAME_ARRAY = "name_array"; - @JsonProperty(JSON_PROPERTY_NAME_ARRAY) private List nameArray = null; public static final String JSON_PROPERTY_NAME_WRAPPED_ARRAY = "name_wrapped_array"; - @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) private List nameWrappedArray = null; public static final String JSON_PROPERTY_PREFIX_STRING = "prefix_string"; - @JsonProperty(JSON_PROPERTY_PREFIX_STRING) private String prefixString; public static final String JSON_PROPERTY_PREFIX_NUMBER = "prefix_number"; - @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) private BigDecimal prefixNumber; public static final String JSON_PROPERTY_PREFIX_INTEGER = "prefix_integer"; - @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) private Integer prefixInteger; public static final String JSON_PROPERTY_PREFIX_BOOLEAN = "prefix_boolean"; - @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) private Boolean prefixBoolean; public static final String JSON_PROPERTY_PREFIX_ARRAY = "prefix_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) private List prefixArray = null; public static final String JSON_PROPERTY_PREFIX_WRAPPED_ARRAY = "prefix_wrapped_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) private List prefixWrappedArray = null; public static final String JSON_PROPERTY_NAMESPACE_STRING = "namespace_string"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) private String namespaceString; public static final String JSON_PROPERTY_NAMESPACE_NUMBER = "namespace_number"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) private BigDecimal namespaceNumber; public static final String JSON_PROPERTY_NAMESPACE_INTEGER = "namespace_integer"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) private Integer namespaceInteger; public static final String JSON_PROPERTY_NAMESPACE_BOOLEAN = "namespace_boolean"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) private Boolean namespaceBoolean; public static final String JSON_PROPERTY_NAMESPACE_ARRAY = "namespace_array"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) private List namespaceArray = null; public static final String JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY = "namespace_wrapped_array"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) private List namespaceWrappedArray = null; public static final String JSON_PROPERTY_PREFIX_NS_STRING = "prefix_ns_string"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) private String prefixNsString; public static final String JSON_PROPERTY_PREFIX_NS_NUMBER = "prefix_ns_number"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) private BigDecimal prefixNsNumber; public static final String JSON_PROPERTY_PREFIX_NS_INTEGER = "prefix_ns_integer"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) private Integer prefixNsInteger; public static final String JSON_PROPERTY_PREFIX_NS_BOOLEAN = "prefix_ns_boolean"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) private Boolean prefixNsBoolean; public static final String JSON_PROPERTY_PREFIX_NS_ARRAY = "prefix_ns_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) private List prefixNsArray = null; public static final String JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY = "prefix_ns_wrapped_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) private List prefixNsWrappedArray = null; + public XmlItem attributeString(String attributeString) { + this.attributeString = attributeString; return this; } @@ -156,15 +130,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getAttributeString() { return attributeString; } + + public void setAttributeString(String attributeString) { this.attributeString = attributeString; } + public XmlItem attributeNumber(BigDecimal attributeNumber) { + this.attributeNumber = attributeNumber; return this; } @@ -175,15 +156,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getAttributeNumber() { return attributeNumber; } + + public void setAttributeNumber(BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } + public XmlItem attributeInteger(Integer attributeInteger) { + this.attributeInteger = attributeInteger; return this; } @@ -194,15 +182,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getAttributeInteger() { return attributeInteger; } + + public void setAttributeInteger(Integer attributeInteger) { this.attributeInteger = attributeInteger; } + public XmlItem attributeBoolean(Boolean attributeBoolean) { + this.attributeBoolean = attributeBoolean; return this; } @@ -213,15 +208,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getAttributeBoolean() { return attributeBoolean; } + + public void setAttributeBoolean(Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } + public XmlItem wrappedArray(List wrappedArray) { + this.wrappedArray = wrappedArray; return this; } @@ -240,15 +242,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getWrappedArray() { return wrappedArray; } + + public void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } + public XmlItem nameString(String nameString) { + this.nameString = nameString; return this; } @@ -259,15 +268,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_NAME_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getNameString() { return nameString; } + + public void setNameString(String nameString) { this.nameString = nameString; } + public XmlItem nameNumber(BigDecimal nameNumber) { + this.nameNumber = nameNumber; return this; } @@ -278,15 +294,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_NAME_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getNameNumber() { return nameNumber; } + + public void setNameNumber(BigDecimal nameNumber) { this.nameNumber = nameNumber; } + public XmlItem nameInteger(Integer nameInteger) { + this.nameInteger = nameInteger; return this; } @@ -297,15 +320,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_NAME_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getNameInteger() { return nameInteger; } + + public void setNameInteger(Integer nameInteger) { this.nameInteger = nameInteger; } + public XmlItem nameBoolean(Boolean nameBoolean) { + this.nameBoolean = nameBoolean; return this; } @@ -316,15 +346,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getNameBoolean() { return nameBoolean; } + + public void setNameBoolean(Boolean nameBoolean) { this.nameBoolean = nameBoolean; } + public XmlItem nameArray(List nameArray) { + this.nameArray = nameArray; return this; } @@ -343,15 +380,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNameArray() { return nameArray; } + + public void setNameArray(List nameArray) { this.nameArray = nameArray; } + public XmlItem nameWrappedArray(List nameWrappedArray) { + this.nameWrappedArray = nameWrappedArray; return this; } @@ -370,15 +414,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNameWrappedArray() { return nameWrappedArray; } + + public void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } + public XmlItem prefixString(String prefixString) { + this.prefixString = prefixString; return this; } @@ -389,15 +440,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPrefixString() { return prefixString; } + + public void setPrefixString(String prefixString) { this.prefixString = prefixString; } + public XmlItem prefixNumber(BigDecimal prefixNumber) { + this.prefixNumber = prefixNumber; return this; } @@ -408,15 +466,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getPrefixNumber() { return prefixNumber; } + + public void setPrefixNumber(BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } + public XmlItem prefixInteger(Integer prefixInteger) { + this.prefixInteger = prefixInteger; return this; } @@ -427,15 +492,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getPrefixInteger() { return prefixInteger; } + + public void setPrefixInteger(Integer prefixInteger) { this.prefixInteger = prefixInteger; } + public XmlItem prefixBoolean(Boolean prefixBoolean) { + this.prefixBoolean = prefixBoolean; return this; } @@ -446,15 +518,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getPrefixBoolean() { return prefixBoolean; } + + public void setPrefixBoolean(Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } + public XmlItem prefixArray(List prefixArray) { + this.prefixArray = prefixArray; return this; } @@ -473,15 +552,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixArray() { return prefixArray; } + + public void setPrefixArray(List prefixArray) { this.prefixArray = prefixArray; } + public XmlItem prefixWrappedArray(List prefixWrappedArray) { + this.prefixWrappedArray = prefixWrappedArray; return this; } @@ -500,15 +586,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixWrappedArray() { return prefixWrappedArray; } + + public void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } + public XmlItem namespaceString(String namespaceString) { + this.namespaceString = namespaceString; return this; } @@ -519,15 +612,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getNamespaceString() { return namespaceString; } + + public void setNamespaceString(String namespaceString) { this.namespaceString = namespaceString; } + public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + this.namespaceNumber = namespaceNumber; return this; } @@ -538,15 +638,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getNamespaceNumber() { return namespaceNumber; } + + public void setNamespaceNumber(BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } + public XmlItem namespaceInteger(Integer namespaceInteger) { + this.namespaceInteger = namespaceInteger; return this; } @@ -557,15 +664,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getNamespaceInteger() { return namespaceInteger; } + + public void setNamespaceInteger(Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } + public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + this.namespaceBoolean = namespaceBoolean; return this; } @@ -576,15 +690,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getNamespaceBoolean() { return namespaceBoolean; } + + public void setNamespaceBoolean(Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } + public XmlItem namespaceArray(List namespaceArray) { + this.namespaceArray = namespaceArray; return this; } @@ -603,15 +724,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNamespaceArray() { return namespaceArray; } + + public void setNamespaceArray(List namespaceArray) { this.namespaceArray = namespaceArray; } + public XmlItem namespaceWrappedArray(List namespaceWrappedArray) { + this.namespaceWrappedArray = namespaceWrappedArray; return this; } @@ -630,15 +758,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNamespaceWrappedArray() { return namespaceWrappedArray; } + + public void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } + public XmlItem prefixNsString(String prefixNsString) { + this.prefixNsString = prefixNsString; return this; } @@ -649,15 +784,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPrefixNsString() { return prefixNsString; } + + public void setPrefixNsString(String prefixNsString) { this.prefixNsString = prefixNsString; } + public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + this.prefixNsNumber = prefixNsNumber; return this; } @@ -668,15 +810,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getPrefixNsNumber() { return prefixNsNumber; } + + public void setPrefixNsNumber(BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } + public XmlItem prefixNsInteger(Integer prefixNsInteger) { + this.prefixNsInteger = prefixNsInteger; return this; } @@ -687,15 +836,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getPrefixNsInteger() { return prefixNsInteger; } + + public void setPrefixNsInteger(Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } + public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + this.prefixNsBoolean = prefixNsBoolean; return this; } @@ -706,15 +862,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getPrefixNsBoolean() { return prefixNsBoolean; } + + public void setPrefixNsBoolean(Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } + public XmlItem prefixNsArray(List prefixNsArray) { + this.prefixNsArray = prefixNsArray; return this; } @@ -733,15 +896,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixNsArray() { return prefixNsArray; } + + public void setPrefixNsArray(List prefixNsArray) { this.prefixNsArray = prefixNsArray; } + public XmlItem prefixNsWrappedArray(List prefixNsWrappedArray) { + this.prefixNsWrappedArray = prefixNsWrappedArray; return this; } @@ -760,10 +930,15 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixNsWrappedArray() { return prefixNsWrappedArray; } + + public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/resttemplate-withXml/docs/UserApi.md b/samples/client/petstore/java/resttemplate-withXml/docs/UserApi.md index 4154aba4f17..ca9f550c316 100644 --- a/samples/client/petstore/java/resttemplate-withXml/docs/UserApi.md +++ b/samples/client/petstore/java/resttemplate-withXml/docs/UserApi.md @@ -101,7 +101,7 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); UserApi apiInstance = new UserApi(defaultClient); - List body = Arrays.asList(null); // List | List of user object + List body = Arrays.asList(); // List | List of user object try { apiInstance.createUsersWithArrayInput(body); } catch (ApiException e) { @@ -163,7 +163,7 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); UserApi apiInstance = new UserApi(defaultClient); - List body = Arrays.asList(null); // List | List of user object + List body = Arrays.asList(); // List | List of user object try { apiInstance.createUsersWithListInput(body); } catch (ApiException e) { diff --git a/samples/client/petstore/java/resttemplate-withXml/pom.xml b/samples/client/petstore/java/resttemplate-withXml/pom.xml index 03f37e2fc0c..74763f9a6c8 100644 --- a/samples/client/petstore/java/resttemplate-withXml/pom.xml +++ b/samples/client/petstore/java/resttemplate-withXml/pom.xml @@ -236,6 +236,11 @@ jackson-jaxrs-json-provider ${jackson-version} + + org.openapitools + jackson-databind-nullable + ${jackson-databind-nullable-version} + @@ -264,6 +269,7 @@ 4.3.9.RELEASE 2.9.9 2.9.9 + 0.2.0 2.6.4 1.0.0 4.12 diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/ApiClient.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/ApiClient.java index 6ccafb53cc2..5d8fa7b9a8e 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/ApiClient.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/ApiClient.java @@ -34,6 +34,7 @@ import com.fasterxml.jackson.datatype.threetenbp.ThreeTenModule; import org.springframework.http.converter.HttpMessageConverter; import org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter; import com.fasterxml.jackson.databind.ObjectMapper; +import org.openapitools.jackson.nullable.JsonNullableModule; import java.io.BufferedReader; import java.io.IOException; @@ -649,6 +650,7 @@ public class ApiClient { messageConverters.add(new MappingJackson2HttpMessageConverter()); XmlMapper xmlMapper = new XmlMapper(); xmlMapper.configure(ToXmlGenerator.Feature.WRITE_XML_DECLARATION, true); + xmlMapper.registerModule(new JsonNullableModule()); messageConverters.add(new MappingJackson2XmlHttpMessageConverter(xmlMapper)); RestTemplate restTemplate = new RestTemplate(messageConverters); @@ -661,6 +663,7 @@ public class ApiClient { module.addDeserializer(OffsetDateTime.class, CustomInstantDeserializer.OFFSET_DATE_TIME); module.addDeserializer(ZonedDateTime.class, CustomInstantDeserializer.ZONED_DATE_TIME); mapper.registerModule(module); + mapper.registerModule(new JsonNullableModule()); } } // This allows us to read the response more than once - Necessary for debugging. diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index f84a1d2fdc6..98ae2fa50d8 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -33,13 +34,13 @@ import javax.xml.bind.annotation.*; @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "AdditionalPropertiesAnyType") public class AdditionalPropertiesAnyType extends HashMap { - public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) - @JacksonXmlProperty(localName = "name") @XmlElement(name = "name") + public static final String JSON_PROPERTY_NAME = "name"; private String name; + public AdditionalPropertiesAnyType name(String name) { + this.name = name; return this; } @@ -50,10 +51,16 @@ public class AdditionalPropertiesAnyType extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "name") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index af9a2679f91..9a8142a6c7e 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -34,13 +35,13 @@ import javax.xml.bind.annotation.*; @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "AdditionalPropertiesArray") public class AdditionalPropertiesArray extends HashMap { - public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) - @JacksonXmlProperty(localName = "name") @XmlElement(name = "name") + public static final String JSON_PROPERTY_NAME = "name"; private String name; + public AdditionalPropertiesArray name(String name) { + this.name = name; return this; } @@ -51,10 +52,16 @@ public class AdditionalPropertiesArray extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "name") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 02df03199f9..51c6f9e06be 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -33,13 +34,13 @@ import javax.xml.bind.annotation.*; @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "AdditionalPropertiesBoolean") public class AdditionalPropertiesBoolean extends HashMap { - public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) - @JacksonXmlProperty(localName = "name") @XmlElement(name = "name") + public static final String JSON_PROPERTY_NAME = "name"; private String name; + public AdditionalPropertiesBoolean name(String name) { + this.name = name; return this; } @@ -50,10 +51,16 @@ public class AdditionalPropertiesBoolean extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "name") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } 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 5325828f8a1..e591b5052d4 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -35,89 +36,77 @@ import javax.xml.bind.annotation.*; @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "AdditionalPropertiesClass") public class AdditionalPropertiesClass { - public static final String JSON_PROPERTY_MAP_STRING = "map_string"; - @JsonProperty(JSON_PROPERTY_MAP_STRING) // Is a container wrapped=false // items.name=inner items.baseName=inner items.xmlName= items.xmlNamespace= // items.example= items.type=String @XmlElement(name = "inner") + public static final String JSON_PROPERTY_MAP_STRING = "map_string"; private Map mapString = null; - public static final String JSON_PROPERTY_MAP_NUMBER = "map_number"; - @JsonProperty(JSON_PROPERTY_MAP_NUMBER) // Is a container wrapped=false // items.name=inner items.baseName=inner items.xmlName= items.xmlNamespace= // items.example= items.type=BigDecimal @XmlElement(name = "inner") + public static final String JSON_PROPERTY_MAP_NUMBER = "map_number"; private Map mapNumber = null; - public static final String JSON_PROPERTY_MAP_INTEGER = "map_integer"; - @JsonProperty(JSON_PROPERTY_MAP_INTEGER) // Is a container wrapped=false // items.name=inner items.baseName=inner items.xmlName= items.xmlNamespace= // items.example= items.type=Integer @XmlElement(name = "inner") + public static final String JSON_PROPERTY_MAP_INTEGER = "map_integer"; private Map mapInteger = null; - public static final String JSON_PROPERTY_MAP_BOOLEAN = "map_boolean"; - @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) // Is a container wrapped=false // items.name=inner items.baseName=inner items.xmlName= items.xmlNamespace= // items.example= items.type=Boolean @XmlElement(name = "inner") + public static final String JSON_PROPERTY_MAP_BOOLEAN = "map_boolean"; private Map mapBoolean = null; - public static final String JSON_PROPERTY_MAP_ARRAY_INTEGER = "map_array_integer"; - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) // Is a container wrapped=false // items.name=inner items.baseName=inner items.xmlName= items.xmlNamespace= // items.example= items.type=List<Integer> @XmlElement(name = "inner") + public static final String JSON_PROPERTY_MAP_ARRAY_INTEGER = "map_array_integer"; private Map> mapArrayInteger = null; - public static final String JSON_PROPERTY_MAP_ARRAY_ANYTYPE = "map_array_anytype"; - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) // Is a container wrapped=false // items.name=inner items.baseName=inner items.xmlName= items.xmlNamespace= // items.example= items.type=List<Object> @XmlElement(name = "inner") + public static final String JSON_PROPERTY_MAP_ARRAY_ANYTYPE = "map_array_anytype"; private Map> mapArrayAnytype = null; - public static final String JSON_PROPERTY_MAP_MAP_STRING = "map_map_string"; - @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) // Is a container wrapped=false // items.name=inner items.baseName=inner items.xmlName= items.xmlNamespace= // items.example= items.type=Map<String, String> @XmlElement(name = "inner") + public static final String JSON_PROPERTY_MAP_MAP_STRING = "map_map_string"; private Map> mapMapString = null; - public static final String JSON_PROPERTY_MAP_MAP_ANYTYPE = "map_map_anytype"; - @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) // Is a container wrapped=false // items.name=inner items.baseName=inner items.xmlName= items.xmlNamespace= // items.example= items.type=Map<String, Object> @XmlElement(name = "inner") + public static final String JSON_PROPERTY_MAP_MAP_ANYTYPE = "map_map_anytype"; private Map> mapMapAnytype = null; - public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1"; - @JsonProperty(JSON_PROPERTY_ANYTYPE1) - @JacksonXmlProperty(localName = "anytype_1") @XmlElement(name = "anytype_1") - private Object anytype1 = null; + public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1"; + private Object anytype1; - public static final String JSON_PROPERTY_ANYTYPE2 = "anytype_2"; - @JsonProperty(JSON_PROPERTY_ANYTYPE2) - @JacksonXmlProperty(localName = "anytype_2") @XmlElement(name = "anytype_2") - private Object anytype2 = null; + public static final String JSON_PROPERTY_ANYTYPE2 = "anytype_2"; + private Object anytype2; - public static final String JSON_PROPERTY_ANYTYPE3 = "anytype_3"; - @JsonProperty(JSON_PROPERTY_ANYTYPE3) - @JacksonXmlProperty(localName = "anytype_3") @XmlElement(name = "anytype_3") - private Object anytype3 = null; + public static final String JSON_PROPERTY_ANYTYPE3 = "anytype_3"; + private Object anytype3; + public AdditionalPropertiesClass mapString(Map mapString) { + this.mapString = mapString; return this; } @@ -136,15 +125,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapString() { return mapString; } + + public void setMapString(Map mapString) { this.mapString = mapString; } + public AdditionalPropertiesClass mapNumber(Map mapNumber) { + this.mapNumber = mapNumber; return this; } @@ -163,15 +159,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapNumber() { return mapNumber; } + + public void setMapNumber(Map mapNumber) { this.mapNumber = mapNumber; } + public AdditionalPropertiesClass mapInteger(Map mapInteger) { + this.mapInteger = mapInteger; return this; } @@ -190,15 +193,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapInteger() { return mapInteger; } + + public void setMapInteger(Map mapInteger) { this.mapInteger = mapInteger; } + public AdditionalPropertiesClass mapBoolean(Map mapBoolean) { + this.mapBoolean = mapBoolean; return this; } @@ -217,15 +227,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapBoolean() { return mapBoolean; } + + public void setMapBoolean(Map mapBoolean) { this.mapBoolean = mapBoolean; } + public AdditionalPropertiesClass mapArrayInteger(Map> mapArrayInteger) { + this.mapArrayInteger = mapArrayInteger; return this; } @@ -244,15 +261,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapArrayInteger() { return mapArrayInteger; } + + public void setMapArrayInteger(Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; } + public AdditionalPropertiesClass mapArrayAnytype(Map> mapArrayAnytype) { + this.mapArrayAnytype = mapArrayAnytype; return this; } @@ -271,15 +295,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapArrayAnytype() { return mapArrayAnytype; } + + public void setMapArrayAnytype(Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; } + public AdditionalPropertiesClass mapMapString(Map> mapMapString) { + this.mapMapString = mapMapString; return this; } @@ -298,15 +329,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapMapString() { return mapMapString; } + + public void setMapMapString(Map> mapMapString) { this.mapMapString = mapMapString; } + public AdditionalPropertiesClass mapMapAnytype(Map> mapMapAnytype) { + this.mapMapAnytype = mapMapAnytype; return this; } @@ -325,15 +363,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapMapAnytype() { return mapMapAnytype; } + + public void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } + public AdditionalPropertiesClass anytype1(Object anytype1) { + this.anytype1 = anytype1; return this; } @@ -344,15 +389,23 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "anytype_1") + public Object getAnytype1() { return anytype1; } + + public void setAnytype1(Object anytype1) { this.anytype1 = anytype1; } + public AdditionalPropertiesClass anytype2(Object anytype2) { + this.anytype2 = anytype2; return this; } @@ -363,15 +416,23 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ANYTYPE2) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "anytype_2") + public Object getAnytype2() { return anytype2; } + + public void setAnytype2(Object anytype2) { this.anytype2 = anytype2; } + public AdditionalPropertiesClass anytype3(Object anytype3) { + this.anytype3 = anytype3; return this; } @@ -382,10 +443,16 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ANYTYPE3) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "anytype_3") + public Object getAnytype3() { return anytype3; } + + public void setAnytype3(Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index ed7a57eb1eb..6ce196d4b13 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -33,13 +34,13 @@ import javax.xml.bind.annotation.*; @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "AdditionalPropertiesInteger") public class AdditionalPropertiesInteger extends HashMap { - public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) - @JacksonXmlProperty(localName = "name") @XmlElement(name = "name") + public static final String JSON_PROPERTY_NAME = "name"; private String name; + public AdditionalPropertiesInteger name(String name) { + this.name = name; return this; } @@ -50,10 +51,16 @@ public class AdditionalPropertiesInteger extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "name") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index fe1af38c34b..8af8601e7b5 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -34,13 +35,13 @@ import javax.xml.bind.annotation.*; @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "AdditionalPropertiesNumber") public class AdditionalPropertiesNumber extends HashMap { - public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) - @JacksonXmlProperty(localName = "name") @XmlElement(name = "name") + public static final String JSON_PROPERTY_NAME = "name"; private String name; + public AdditionalPropertiesNumber name(String name) { + this.name = name; return this; } @@ -51,10 +52,16 @@ public class AdditionalPropertiesNumber extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "name") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index 23a4f6750ab..ab4179e5576 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -33,13 +34,13 @@ import javax.xml.bind.annotation.*; @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "AdditionalPropertiesObject") public class AdditionalPropertiesObject extends HashMap { - public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) - @JacksonXmlProperty(localName = "name") @XmlElement(name = "name") + public static final String JSON_PROPERTY_NAME = "name"; private String name; + public AdditionalPropertiesObject name(String name) { + this.name = name; return this; } @@ -50,10 +51,16 @@ public class AdditionalPropertiesObject extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "name") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 234743f50e0..9279830ce19 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -33,13 +34,13 @@ import javax.xml.bind.annotation.*; @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "AdditionalPropertiesString") public class AdditionalPropertiesString extends HashMap { - public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) - @JacksonXmlProperty(localName = "name") @XmlElement(name = "name") + public static final String JSON_PROPERTY_NAME = "name"; private String name; + public AdditionalPropertiesString name(String name) { + this.name = name; return this; } @@ -50,10 +51,16 @@ public class AdditionalPropertiesString extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "name") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } 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 cfa45cacb63..47360509f58 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; @@ -39,19 +40,17 @@ import javax.xml.bind.annotation.*; @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "Animal") public class Animal { - public static final String JSON_PROPERTY_CLASS_NAME = "className"; - @JsonProperty(JSON_PROPERTY_CLASS_NAME) - @JacksonXmlProperty(localName = "className") @XmlElement(name = "className") + public static final String JSON_PROPERTY_CLASS_NAME = "className"; private String className; - public static final String JSON_PROPERTY_COLOR = "color"; - @JsonProperty(JSON_PROPERTY_COLOR) - @JacksonXmlProperty(localName = "color") @XmlElement(name = "color") + public static final String JSON_PROPERTY_COLOR = "color"; private String color = "red"; + public Animal className(String className) { + this.className = className; return this; } @@ -61,15 +60,23 @@ public class Animal { * @return className **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JacksonXmlProperty(localName = "className") + public String getClassName() { return className; } + + public void setClassName(String className) { this.className = className; } + public Animal color(String color) { + this.color = color; return this; } @@ -80,10 +87,16 @@ public class Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_COLOR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "color") + public String getColor() { return color; } + + public void setColor(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 21f8252700d..0e444d641be 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -34,15 +35,16 @@ import javax.xml.bind.annotation.*; @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "ArrayOfArrayOfNumberOnly") public class ArrayOfArrayOfNumberOnly { - public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) // Is a container wrapped=false // items.name=arrayArrayNumber items.baseName=arrayArrayNumber items.xmlName= items.xmlNamespace= // items.example= items.type=List<BigDecimal> @XmlElement(name = "arrayArrayNumber") + public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; private List> arrayArrayNumber = null; + public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + this.arrayArrayNumber = arrayArrayNumber; return this; } @@ -61,10 +63,15 @@ public class ArrayOfArrayOfNumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List> getArrayArrayNumber() { return arrayArrayNumber; } + + public void setArrayArrayNumber(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 dc2192e887e..57becb376b1 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -34,15 +35,16 @@ import javax.xml.bind.annotation.*; @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "ArrayOfNumberOnly") public class ArrayOfNumberOnly { - public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) // Is a container wrapped=false // items.name=arrayNumber items.baseName=arrayNumber items.xmlName= items.xmlNamespace= // items.example= items.type=BigDecimal @XmlElement(name = "arrayNumber") + public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; private List arrayNumber = null; + public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + this.arrayNumber = arrayNumber; return this; } @@ -61,10 +63,15 @@ public class ArrayOfNumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArrayNumber() { return arrayNumber; } + + public void setArrayNumber(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 83782acdd81..0b5a357d88b 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -34,31 +35,30 @@ import javax.xml.bind.annotation.*; @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "ArrayTest") public class ArrayTest { - public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) // Is a container wrapped=false // items.name=arrayOfString items.baseName=arrayOfString items.xmlName= items.xmlNamespace= // items.example= items.type=String @XmlElement(name = "arrayOfString") + public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; private List arrayOfString = null; - public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) // Is a container wrapped=false // items.name=arrayArrayOfInteger items.baseName=arrayArrayOfInteger items.xmlName= items.xmlNamespace= // items.example= items.type=List<Long> @XmlElement(name = "arrayArrayOfInteger") + public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; private List> arrayArrayOfInteger = null; - public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) // Is a container wrapped=false // items.name=arrayArrayOfModel items.baseName=arrayArrayOfModel items.xmlName= items.xmlNamespace= // items.example= items.type=List<ReadOnlyFirst> @XmlElement(name = "arrayArrayOfModel") + public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; private List> arrayArrayOfModel = null; + public ArrayTest arrayOfString(List arrayOfString) { + this.arrayOfString = arrayOfString; return this; } @@ -77,15 +77,22 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArrayOfString() { return arrayOfString; } + + public void setArrayOfString(List arrayOfString) { this.arrayOfString = arrayOfString; } + public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + this.arrayArrayOfInteger = arrayArrayOfInteger; return this; } @@ -104,15 +111,22 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List> getArrayArrayOfInteger() { return arrayArrayOfInteger; } + + public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } + public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + this.arrayArrayOfModel = arrayArrayOfModel; return this; } @@ -131,10 +145,15 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List> getArrayArrayOfModel() { return arrayArrayOfModel; } + + public void setArrayArrayOfModel(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 520e7400d74..12e24596517 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,43 +32,33 @@ import javax.xml.bind.annotation.*; @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "Capitalization") public class Capitalization { - public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) - @JacksonXmlProperty(localName = "smallCamel") @XmlElement(name = "smallCamel") + public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; private String smallCamel; - public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) - @JacksonXmlProperty(localName = "CapitalCamel") @XmlElement(name = "CapitalCamel") + public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; private String capitalCamel; - public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) - @JacksonXmlProperty(localName = "small_Snake") @XmlElement(name = "small_Snake") + public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; private String smallSnake; - public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) - @JacksonXmlProperty(localName = "Capital_Snake") @XmlElement(name = "Capital_Snake") + public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; private String capitalSnake; - public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) - @JacksonXmlProperty(localName = "SCA_ETH_Flow_Points") @XmlElement(name = "SCA_ETH_Flow_Points") + public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; private String scAETHFlowPoints; - public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) - @JacksonXmlProperty(localName = "ATT_NAME") @XmlElement(name = "ATT_NAME") + public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; private String ATT_NAME; + public Capitalization smallCamel(String smallCamel) { + this.smallCamel = smallCamel; return this; } @@ -78,15 +69,23 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "smallCamel") + public String getSmallCamel() { return smallCamel; } + + public void setSmallCamel(String smallCamel) { this.smallCamel = smallCamel; } + public Capitalization capitalCamel(String capitalCamel) { + this.capitalCamel = capitalCamel; return this; } @@ -97,15 +96,23 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "CapitalCamel") + public String getCapitalCamel() { return capitalCamel; } + + public void setCapitalCamel(String capitalCamel) { this.capitalCamel = capitalCamel; } + public Capitalization smallSnake(String smallSnake) { + this.smallSnake = smallSnake; return this; } @@ -116,15 +123,23 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "small_Snake") + public String getSmallSnake() { return smallSnake; } + + public void setSmallSnake(String smallSnake) { this.smallSnake = smallSnake; } + public Capitalization capitalSnake(String capitalSnake) { + this.capitalSnake = capitalSnake; return this; } @@ -135,15 +150,23 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "Capital_Snake") + public String getCapitalSnake() { return capitalSnake; } + + public void setCapitalSnake(String capitalSnake) { this.capitalSnake = capitalSnake; } + public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -154,15 +177,23 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "SCA_ETH_Flow_Points") + public String getScAETHFlowPoints() { return scAETHFlowPoints; } + + public void setScAETHFlowPoints(String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } + public Capitalization ATT_NAME(String ATT_NAME) { + this.ATT_NAME = ATT_NAME; return this; } @@ -173,10 +204,16 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "Name of the pet ") + @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "ATT_NAME") + public String getATTNAME() { return ATT_NAME; } + + public void setATTNAME(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 a26c42f8d43..0e414730601 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -33,13 +34,13 @@ import javax.xml.bind.annotation.*; @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "Cat") public class Cat extends Animal { - public static final String JSON_PROPERTY_DECLAWED = "declawed"; - @JsonProperty(JSON_PROPERTY_DECLAWED) - @JacksonXmlProperty(localName = "declawed") @XmlElement(name = "declawed") + public static final String JSON_PROPERTY_DECLAWED = "declawed"; private Boolean declawed; + public Cat declawed(Boolean declawed) { + this.declawed = declawed; return this; } @@ -50,10 +51,16 @@ public class Cat extends Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "declawed") + public Boolean getDeclawed() { return declawed; } + + public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/CatAllOf.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/CatAllOf.java index 9f105804527..7b4d9d542a0 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/CatAllOf.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/CatAllOf.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,13 +32,13 @@ import javax.xml.bind.annotation.*; @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "CatAllOf") public class CatAllOf { - public static final String JSON_PROPERTY_DECLAWED = "declawed"; - @JsonProperty(JSON_PROPERTY_DECLAWED) - @JacksonXmlProperty(localName = "declawed") @XmlElement(name = "declawed") + public static final String JSON_PROPERTY_DECLAWED = "declawed"; private Boolean declawed; + public CatAllOf declawed(Boolean declawed) { + this.declawed = declawed; return this; } @@ -48,10 +49,16 @@ public class CatAllOf { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "declawed") + public Boolean getDeclawed() { return declawed; } + + public void setDeclawed(Boolean declawed) { this.declawed = declawed; } 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 9278904f691..267767a1089 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,19 +32,17 @@ import javax.xml.bind.annotation.*; @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "Category") public class Category { - public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) - @JacksonXmlProperty(localName = "id") @XmlElement(name = "id") + public static final String JSON_PROPERTY_ID = "id"; private Long id; - public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) - @JacksonXmlProperty(localName = "name") @XmlElement(name = "name") + public static final String JSON_PROPERTY_NAME = "name"; private String name = "default-name"; + public Category id(Long id) { + this.id = id; return this; } @@ -54,15 +53,23 @@ public class Category { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "id") + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Category name(String name) { + this.name = name; return this; } @@ -72,10 +79,16 @@ public class Category { * @return name **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JacksonXmlProperty(localName = "name") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } 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 0c74063d681..93468b4cd21 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -32,13 +33,13 @@ import javax.xml.bind.annotation.*; @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "ClassModel") public class ClassModel { - public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) - @JacksonXmlProperty(localName = "_class") @XmlElement(name = "_class") + public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; private String propertyClass; + public ClassModel propertyClass(String propertyClass) { + this.propertyClass = propertyClass; return this; } @@ -49,10 +50,16 @@ public class ClassModel { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "_class") + public String getPropertyClass() { return propertyClass; } + + public void setPropertyClass(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 3b7ce5c17ce..da3359560ef 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,13 +32,13 @@ import javax.xml.bind.annotation.*; @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "Client") public class Client { - public static final String JSON_PROPERTY_CLIENT = "client"; - @JsonProperty(JSON_PROPERTY_CLIENT) - @JacksonXmlProperty(localName = "client") @XmlElement(name = "client") + public static final String JSON_PROPERTY_CLIENT = "client"; private String client; + public Client client(String client) { + this.client = client; return this; } @@ -48,10 +49,16 @@ public class Client { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "client") + public String getClient() { return client; } + + public void setClient(String client) { this.client = client; } 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 b95d3f385bc..2aef26be2b3 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -33,13 +34,13 @@ import javax.xml.bind.annotation.*; @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "Dog") public class Dog extends Animal { - public static final String JSON_PROPERTY_BREED = "breed"; - @JsonProperty(JSON_PROPERTY_BREED) - @JacksonXmlProperty(localName = "breed") @XmlElement(name = "breed") + public static final String JSON_PROPERTY_BREED = "breed"; private String breed; + public Dog breed(String breed) { + this.breed = breed; return this; } @@ -50,10 +51,16 @@ public class Dog extends Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "breed") + public String getBreed() { return breed; } + + public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/DogAllOf.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/DogAllOf.java index 10cecedd80b..ac141badbc2 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/DogAllOf.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/DogAllOf.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,13 +32,13 @@ import javax.xml.bind.annotation.*; @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "DogAllOf") public class DogAllOf { - public static final String JSON_PROPERTY_BREED = "breed"; - @JsonProperty(JSON_PROPERTY_BREED) - @JacksonXmlProperty(localName = "breed") @XmlElement(name = "breed") + public static final String JSON_PROPERTY_BREED = "breed"; private String breed; + public DogAllOf breed(String breed) { + this.breed = breed; return this; } @@ -48,10 +49,16 @@ public class DogAllOf { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "breed") + public String getBreed() { return breed; } + + public void setBreed(String breed) { this.breed = breed; } 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 a667918397f..ebf8ba43a00 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -68,10 +69,8 @@ public class EnumArrays { } } - public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) - @JacksonXmlProperty(localName = "just_symbol") @XmlElement(name = "just_symbol") + public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; private JustSymbolEnum justSymbol; /** @@ -109,15 +108,16 @@ public class EnumArrays { } } - public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) // Is a container wrapped=false // items.name=arrayEnum items.baseName=arrayEnum items.xmlName= items.xmlNamespace= // items.example= items.type=String @XmlElement(name = "arrayEnum") + public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; private List arrayEnum = null; + public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + this.justSymbol = justSymbol; return this; } @@ -128,15 +128,23 @@ public class EnumArrays { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "just_symbol") + public JustSymbolEnum getJustSymbol() { return justSymbol; } + + public void setJustSymbol(JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } + public EnumArrays arrayEnum(List arrayEnum) { + this.arrayEnum = arrayEnum; return this; } @@ -155,10 +163,15 @@ public class EnumArrays { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArrayEnum() { return arrayEnum; } + + public void setArrayEnum(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 3813bb861f4..12bbe430a87 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -69,10 +70,8 @@ public class EnumTest { } } - public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; - @JsonProperty(JSON_PROPERTY_ENUM_STRING) - @JacksonXmlProperty(localName = "enum_string") @XmlElement(name = "enum_string") + public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; private EnumStringEnum enumString; /** @@ -112,10 +111,8 @@ public class EnumTest { } } - public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) - @JacksonXmlProperty(localName = "enum_string_required") @XmlElement(name = "enum_string_required") + public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; private EnumStringRequiredEnum enumStringRequired; /** @@ -153,10 +150,8 @@ public class EnumTest { } } - public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) - @JacksonXmlProperty(localName = "enum_integer") @XmlElement(name = "enum_integer") + public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; private EnumIntegerEnum enumInteger; /** @@ -194,19 +189,17 @@ public class EnumTest { } } - public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) - @JacksonXmlProperty(localName = "enum_number") @XmlElement(name = "enum_number") + public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; private EnumNumberEnum enumNumber; - public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) - @JacksonXmlProperty(localName = "outerEnum") @XmlElement(name = "outerEnum") + public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; private OuterEnum outerEnum; + public EnumTest enumString(EnumStringEnum enumString) { + this.enumString = enumString; return this; } @@ -217,15 +210,23 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "enum_string") + public EnumStringEnum getEnumString() { return enumString; } + + public void setEnumString(EnumStringEnum enumString) { this.enumString = enumString; } + public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + this.enumStringRequired = enumStringRequired; return this; } @@ -235,15 +236,23 @@ public class EnumTest { * @return enumStringRequired **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JacksonXmlProperty(localName = "enum_string_required") + public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; } + + public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } + public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + this.enumInteger = enumInteger; return this; } @@ -254,15 +263,23 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "enum_integer") + public EnumIntegerEnum getEnumInteger() { return enumInteger; } + + public void setEnumInteger(EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } + public EnumTest enumNumber(EnumNumberEnum enumNumber) { + this.enumNumber = enumNumber; return this; } @@ -273,15 +290,23 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "enum_number") + public EnumNumberEnum getEnumNumber() { return enumNumber; } + + public void setEnumNumber(EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } + public EnumTest outerEnum(OuterEnum outerEnum) { + this.outerEnum = outerEnum; return this; } @@ -292,10 +317,16 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "outerEnum") + public OuterEnum getOuterEnum() { return outerEnum; } + + public void setOuterEnum(OuterEnum outerEnum) { this.outerEnum = outerEnum; } 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 e63eb5971af..6a083ff378f 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -33,21 +34,20 @@ import javax.xml.bind.annotation.*; @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "FileSchemaTestClass") public class FileSchemaTestClass { - public static final String JSON_PROPERTY_FILE = "file"; - @JsonProperty(JSON_PROPERTY_FILE) - @JacksonXmlProperty(localName = "file") @XmlElement(name = "file") - private java.io.File file = null; + public static final String JSON_PROPERTY_FILE = "file"; + private java.io.File file; - public static final String JSON_PROPERTY_FILES = "files"; - @JsonProperty(JSON_PROPERTY_FILES) // Is a container wrapped=false // items.name=files items.baseName=files items.xmlName= items.xmlNamespace= // items.example= items.type=java.io.File @XmlElement(name = "files") + public static final String JSON_PROPERTY_FILES = "files"; private List files = null; + public FileSchemaTestClass file(java.io.File file) { + this.file = file; return this; } @@ -58,15 +58,23 @@ public class FileSchemaTestClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FILE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "file") + public java.io.File getFile() { return file; } + + public void setFile(java.io.File file) { this.file = file; } + public FileSchemaTestClass files(List files) { + this.files = files; return this; } @@ -85,10 +93,15 @@ public class FileSchemaTestClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FILES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getFiles() { return files; } + + public void setFiles(List files) { this.files = files; } 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 e0328c647e8..71cf450bc66 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -36,85 +37,61 @@ import javax.xml.bind.annotation.*; @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "FormatTest") public class FormatTest { - public static final String JSON_PROPERTY_INTEGER = "integer"; - @JsonProperty(JSON_PROPERTY_INTEGER) - @JacksonXmlProperty(localName = "integer") @XmlElement(name = "integer") + public static final String JSON_PROPERTY_INTEGER = "integer"; private Integer integer; - public static final String JSON_PROPERTY_INT32 = "int32"; - @JsonProperty(JSON_PROPERTY_INT32) - @JacksonXmlProperty(localName = "int32") @XmlElement(name = "int32") + public static final String JSON_PROPERTY_INT32 = "int32"; private Integer int32; - public static final String JSON_PROPERTY_INT64 = "int64"; - @JsonProperty(JSON_PROPERTY_INT64) - @JacksonXmlProperty(localName = "int64") @XmlElement(name = "int64") + public static final String JSON_PROPERTY_INT64 = "int64"; private Long int64; - public static final String JSON_PROPERTY_NUMBER = "number"; - @JsonProperty(JSON_PROPERTY_NUMBER) - @JacksonXmlProperty(localName = "number") @XmlElement(name = "number") + public static final String JSON_PROPERTY_NUMBER = "number"; private BigDecimal number; - public static final String JSON_PROPERTY_FLOAT = "float"; - @JsonProperty(JSON_PROPERTY_FLOAT) - @JacksonXmlProperty(localName = "float") @XmlElement(name = "float") + public static final String JSON_PROPERTY_FLOAT = "float"; private Float _float; - public static final String JSON_PROPERTY_DOUBLE = "double"; - @JsonProperty(JSON_PROPERTY_DOUBLE) - @JacksonXmlProperty(localName = "double") @XmlElement(name = "double") + public static final String JSON_PROPERTY_DOUBLE = "double"; private Double _double; - public static final String JSON_PROPERTY_STRING = "string"; - @JsonProperty(JSON_PROPERTY_STRING) - @JacksonXmlProperty(localName = "string") @XmlElement(name = "string") + public static final String JSON_PROPERTY_STRING = "string"; private String string; - public static final String JSON_PROPERTY_BYTE = "byte"; - @JsonProperty(JSON_PROPERTY_BYTE) - @JacksonXmlProperty(localName = "byte") @XmlElement(name = "byte") + public static final String JSON_PROPERTY_BYTE = "byte"; private byte[] _byte; - public static final String JSON_PROPERTY_BINARY = "binary"; - @JsonProperty(JSON_PROPERTY_BINARY) - @JacksonXmlProperty(localName = "binary") @XmlElement(name = "binary") + public static final String JSON_PROPERTY_BINARY = "binary"; private File binary; - public static final String JSON_PROPERTY_DATE = "date"; - @JsonProperty(JSON_PROPERTY_DATE) - @JacksonXmlProperty(localName = "date") @XmlElement(name = "date") + public static final String JSON_PROPERTY_DATE = "date"; private LocalDate date; - public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @JsonProperty(JSON_PROPERTY_DATE_TIME) - @JacksonXmlProperty(localName = "dateTime") @XmlElement(name = "dateTime") + public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; private OffsetDateTime dateTime; - public static final String JSON_PROPERTY_UUID = "uuid"; - @JsonProperty(JSON_PROPERTY_UUID) - @JacksonXmlProperty(localName = "uuid") @XmlElement(name = "uuid") + public static final String JSON_PROPERTY_UUID = "uuid"; private UUID uuid; - public static final String JSON_PROPERTY_PASSWORD = "password"; - @JsonProperty(JSON_PROPERTY_PASSWORD) - @JacksonXmlProperty(localName = "password") @XmlElement(name = "password") + public static final String JSON_PROPERTY_PASSWORD = "password"; private String password; + public FormatTest integer(Integer integer) { + this.integer = integer; return this; } @@ -127,15 +104,23 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "integer") + public Integer getInteger() { return integer; } + + public void setInteger(Integer integer) { this.integer = integer; } + public FormatTest int32(Integer int32) { + this.int32 = int32; return this; } @@ -148,15 +133,23 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INT32) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "int32") + public Integer getInt32() { return int32; } + + public void setInt32(Integer int32) { this.int32 = int32; } + public FormatTest int64(Long int64) { + this.int64 = int64; return this; } @@ -167,15 +160,23 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INT64) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "int64") + public Long getInt64() { return int64; } + + public void setInt64(Long int64) { this.int64 = int64; } + public FormatTest number(BigDecimal number) { + this.number = number; return this; } @@ -187,15 +188,23 @@ public class FormatTest { * @return number **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JacksonXmlProperty(localName = "number") + public BigDecimal getNumber() { return number; } + + public void setNumber(BigDecimal number) { this.number = number; } + public FormatTest _float(Float _float) { + this._float = _float; return this; } @@ -208,15 +217,23 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "float") + public Float getFloat() { return _float; } + + public void setFloat(Float _float) { this._float = _float; } + public FormatTest _double(Double _double) { + this._double = _double; return this; } @@ -229,15 +246,23 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "double") + public Double getDouble() { return _double; } + + public void setDouble(Double _double) { this._double = _double; } + public FormatTest string(String string) { + this.string = string; return this; } @@ -248,15 +273,23 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "string") + public String getString() { return string; } + + public void setString(String string) { this.string = string; } + public FormatTest _byte(byte[] _byte) { + this._byte = _byte; return this; } @@ -266,15 +299,23 @@ public class FormatTest { * @return _byte **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_BYTE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JacksonXmlProperty(localName = "byte") + public byte[] getByte() { return _byte; } + + public void setByte(byte[] _byte) { this._byte = _byte; } + public FormatTest binary(File binary) { + this.binary = binary; return this; } @@ -285,15 +326,23 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BINARY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "binary") + public File getBinary() { return binary; } + + public void setBinary(File binary) { this.binary = binary; } + public FormatTest date(LocalDate date) { + this.date = date; return this; } @@ -303,15 +352,23 @@ public class FormatTest { * @return date **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_DATE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JacksonXmlProperty(localName = "date") + public LocalDate getDate() { return date; } + + public void setDate(LocalDate date) { this.date = date; } + public FormatTest dateTime(OffsetDateTime dateTime) { + this.dateTime = dateTime; return this; } @@ -322,15 +379,23 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "dateTime") + public OffsetDateTime getDateTime() { return dateTime; } + + public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } + public FormatTest uuid(UUID uuid) { + this.uuid = uuid; return this; } @@ -341,15 +406,23 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "uuid") + public UUID getUuid() { return uuid; } + + public void setUuid(UUID uuid) { this.uuid = uuid; } + public FormatTest password(String password) { + this.password = password; return this; } @@ -359,10 +432,16 @@ public class FormatTest { * @return password **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JacksonXmlProperty(localName = "password") + public String getPassword() { return password; } + + public void setPassword(String password) { this.password = password; } 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 c02be2c3ddc..643f7a289bc 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,39 +32,49 @@ import javax.xml.bind.annotation.*; @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "HasOnlyReadOnly") public class HasOnlyReadOnly { - public static final String JSON_PROPERTY_BAR = "bar"; - @JsonProperty(JSON_PROPERTY_BAR) - @JacksonXmlProperty(localName = "bar") @XmlElement(name = "bar") + public static final String JSON_PROPERTY_BAR = "bar"; private String bar; - public static final String JSON_PROPERTY_FOO = "foo"; - @JsonProperty(JSON_PROPERTY_FOO) - @JacksonXmlProperty(localName = "foo") @XmlElement(name = "foo") + public static final String JSON_PROPERTY_FOO = "foo"; private String foo; + /** * Get bar * @return bar **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BAR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "bar") + public String getBar() { return bar; } + + + /** * Get foo * @return foo **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FOO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "foo") + public String getFoo() { return foo; } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { 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 19d232f2c59..39269678b38 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -34,12 +35,11 @@ import javax.xml.bind.annotation.*; @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "MapTest") public class MapTest { - public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) // Is a container wrapped=false // items.name=inner items.baseName=inner items.xmlName= items.xmlNamespace= // items.example= items.type=Map<String, String> @XmlElement(name = "inner") + public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; private Map> mapMapOfString = null; /** @@ -77,31 +77,30 @@ public class MapTest { } } - public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) // Is a container wrapped=false // items.name=inner items.baseName=inner items.xmlName= items.xmlNamespace= // items.example= items.type=String @XmlElement(name = "inner") + public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; private Map mapOfEnumString = null; - public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) // Is a container wrapped=false // items.name=inner items.baseName=inner items.xmlName= items.xmlNamespace= // items.example= items.type=Boolean @XmlElement(name = "inner") + public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; private Map directMap = null; - public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) // Is a container wrapped=false // items.name=inner items.baseName=inner items.xmlName= items.xmlNamespace= // items.example= items.type=Boolean @XmlElement(name = "inner") + public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; private Map indirectMap = null; + public MapTest mapMapOfString(Map> mapMapOfString) { + this.mapMapOfString = mapMapOfString; return this; } @@ -120,15 +119,22 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapMapOfString() { return mapMapOfString; } + + public void setMapMapOfString(Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } + public MapTest mapOfEnumString(Map mapOfEnumString) { + this.mapOfEnumString = mapOfEnumString; return this; } @@ -147,15 +153,22 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapOfEnumString() { return mapOfEnumString; } + + public void setMapOfEnumString(Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } + public MapTest directMap(Map directMap) { + this.directMap = directMap; return this; } @@ -174,15 +187,22 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getDirectMap() { return directMap; } + + public void setDirectMap(Map directMap) { this.directMap = directMap; } + public MapTest indirectMap(Map indirectMap) { + this.indirectMap = indirectMap; return this; } @@ -201,10 +221,15 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getIndirectMap() { return indirectMap; } + + public void setIndirectMap(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 0c646421645..728a79fbd4e 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -37,27 +38,24 @@ import javax.xml.bind.annotation.*; @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "MixedPropertiesAndAdditionalPropertiesClass") public class MixedPropertiesAndAdditionalPropertiesClass { - public static final String JSON_PROPERTY_UUID = "uuid"; - @JsonProperty(JSON_PROPERTY_UUID) - @JacksonXmlProperty(localName = "uuid") @XmlElement(name = "uuid") + public static final String JSON_PROPERTY_UUID = "uuid"; private UUID uuid; - public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @JsonProperty(JSON_PROPERTY_DATE_TIME) - @JacksonXmlProperty(localName = "dateTime") @XmlElement(name = "dateTime") + public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; private OffsetDateTime dateTime; - public static final String JSON_PROPERTY_MAP = "map"; - @JsonProperty(JSON_PROPERTY_MAP) // Is a container wrapped=false // items.name=inner items.baseName=inner items.xmlName= items.xmlNamespace= // items.example= items.type=Animal @XmlElement(name = "inner") + public static final String JSON_PROPERTY_MAP = "map"; private Map map = null; + public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + this.uuid = uuid; return this; } @@ -68,15 +66,23 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "uuid") + public UUID getUuid() { return uuid; } + + public void setUuid(UUID uuid) { this.uuid = uuid; } + public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + this.dateTime = dateTime; return this; } @@ -87,15 +93,23 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "dateTime") + public OffsetDateTime getDateTime() { return dateTime; } + + public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } + public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + this.map = map; return this; } @@ -114,10 +128,15 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMap() { return map; } + + public void setMap(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 88715980d82..5bfcfe00f74 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -32,19 +33,17 @@ import javax.xml.bind.annotation.*; @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "Name") public class Model200Response { - public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) - @JacksonXmlProperty(localName = "name") @XmlElement(name = "name") + public static final String JSON_PROPERTY_NAME = "name"; private Integer name; - public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) - @JacksonXmlProperty(localName = "class") @XmlElement(name = "class") + public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; private String propertyClass; + public Model200Response name(Integer name) { + this.name = name; return this; } @@ -55,15 +54,23 @@ public class Model200Response { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "name") + public Integer getName() { return name; } + + public void setName(Integer name) { this.name = name; } + public Model200Response propertyClass(String propertyClass) { + this.propertyClass = propertyClass; return this; } @@ -74,10 +81,16 @@ public class Model200Response { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "class") + public String getPropertyClass() { return propertyClass; } + + public void setPropertyClass(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 a2997af04dc..899cae701dd 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,25 +32,21 @@ import javax.xml.bind.annotation.*; @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "ModelApiResponse") public class ModelApiResponse { - public static final String JSON_PROPERTY_CODE = "code"; - @JsonProperty(JSON_PROPERTY_CODE) - @JacksonXmlProperty(localName = "code") @XmlElement(name = "code") + public static final String JSON_PROPERTY_CODE = "code"; private Integer code; - public static final String JSON_PROPERTY_TYPE = "type"; - @JsonProperty(JSON_PROPERTY_TYPE) - @JacksonXmlProperty(localName = "type") @XmlElement(name = "type") + public static final String JSON_PROPERTY_TYPE = "type"; private String type; - public static final String JSON_PROPERTY_MESSAGE = "message"; - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JacksonXmlProperty(localName = "message") @XmlElement(name = "message") + public static final String JSON_PROPERTY_MESSAGE = "message"; private String message; + public ModelApiResponse code(Integer code) { + this.code = code; return this; } @@ -60,15 +57,23 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "code") + public Integer getCode() { return code; } + + public void setCode(Integer code) { this.code = code; } + public ModelApiResponse type(String type) { + this.type = type; return this; } @@ -79,15 +84,23 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "type") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } + public ModelApiResponse message(String message) { + this.message = message; return this; } @@ -98,10 +111,16 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "message") + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } 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 a56ca84199a..82069a930a3 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -32,13 +33,13 @@ import javax.xml.bind.annotation.*; @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "Return") public class ModelReturn { - public static final String JSON_PROPERTY_RETURN = "return"; - @JsonProperty(JSON_PROPERTY_RETURN) - @JacksonXmlProperty(localName = "return") @XmlElement(name = "return") + public static final String JSON_PROPERTY_RETURN = "return"; private Integer _return; + public ModelReturn _return(Integer _return) { + this._return = _return; return this; } @@ -49,10 +50,16 @@ public class ModelReturn { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_RETURN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "return") + public Integer getReturn() { return _return; } + + public void setReturn(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 aacb62b4d59..3511f83cdf9 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -32,31 +33,25 @@ import javax.xml.bind.annotation.*; @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "Name") public class Name { - public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) - @JacksonXmlProperty(localName = "name") @XmlElement(name = "name") + public static final String JSON_PROPERTY_NAME = "name"; private Integer name; - public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) - @JacksonXmlProperty(localName = "snake_case") @XmlElement(name = "snake_case") + public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; private Integer snakeCase; - public static final String JSON_PROPERTY_PROPERTY = "property"; - @JsonProperty(JSON_PROPERTY_PROPERTY) - @JacksonXmlProperty(localName = "property") @XmlElement(name = "property") + public static final String JSON_PROPERTY_PROPERTY = "property"; private String property; - public static final String JSON_PROPERTY_123NUMBER = "123Number"; - @JsonProperty(JSON_PROPERTY_123NUMBER) - @JacksonXmlProperty(localName = "123Number") @XmlElement(name = "123Number") + public static final String JSON_PROPERTY_123NUMBER = "123Number"; private Integer _123number; + public Name name(Integer name) { + this.name = name; return this; } @@ -66,25 +61,40 @@ public class Name { * @return name **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JacksonXmlProperty(localName = "name") + public Integer getName() { return name; } + + public void setName(Integer name) { this.name = name; } + /** * Get snakeCase * @return snakeCase **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "snake_case") + public Integer getSnakeCase() { return snakeCase; } + + + public Name property(String property) { + this.property = property; return this; } @@ -95,25 +105,38 @@ public class Name { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "property") + public String getProperty() { return property; } + + public void setProperty(String property) { this.property = property; } + /** * Get _123number * @return _123number **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_123NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "123Number") + public Integer get123number() { return _123number; } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { 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 c2a3752b5d8..6362b6b4909 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -32,13 +33,13 @@ import javax.xml.bind.annotation.*; @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "NumberOnly") public class NumberOnly { - public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) - @JacksonXmlProperty(localName = "JustNumber") @XmlElement(name = "JustNumber") + public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; private BigDecimal justNumber; + public NumberOnly justNumber(BigDecimal justNumber) { + this.justNumber = justNumber; return this; } @@ -49,10 +50,16 @@ public class NumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "JustNumber") + public BigDecimal getJustNumber() { return justNumber; } + + public void setJustNumber(BigDecimal justNumber) { this.justNumber = justNumber; } 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 4a9e562d00c..ffed27819a5 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -32,28 +33,20 @@ import javax.xml.bind.annotation.*; @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "Order") public class Order { - public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) - @JacksonXmlProperty(localName = "id") @XmlElement(name = "id") + public static final String JSON_PROPERTY_ID = "id"; private Long id; - public static final String JSON_PROPERTY_PET_ID = "petId"; - @JsonProperty(JSON_PROPERTY_PET_ID) - @JacksonXmlProperty(localName = "petId") @XmlElement(name = "petId") + public static final String JSON_PROPERTY_PET_ID = "petId"; private Long petId; - public static final String JSON_PROPERTY_QUANTITY = "quantity"; - @JsonProperty(JSON_PROPERTY_QUANTITY) - @JacksonXmlProperty(localName = "quantity") @XmlElement(name = "quantity") + public static final String JSON_PROPERTY_QUANTITY = "quantity"; private Integer quantity; - public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; - @JsonProperty(JSON_PROPERTY_SHIP_DATE) - @JacksonXmlProperty(localName = "shipDate") @XmlElement(name = "shipDate") + public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; private OffsetDateTime shipDate; /** @@ -93,19 +86,17 @@ public class Order { } } - public static final String JSON_PROPERTY_STATUS = "status"; - @JsonProperty(JSON_PROPERTY_STATUS) - @JacksonXmlProperty(localName = "status") @XmlElement(name = "status") + public static final String JSON_PROPERTY_STATUS = "status"; private StatusEnum status; - public static final String JSON_PROPERTY_COMPLETE = "complete"; - @JsonProperty(JSON_PROPERTY_COMPLETE) - @JacksonXmlProperty(localName = "complete") @XmlElement(name = "complete") + public static final String JSON_PROPERTY_COMPLETE = "complete"; private Boolean complete = false; + public Order id(Long id) { + this.id = id; return this; } @@ -116,15 +107,23 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "id") + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Order petId(Long petId) { + this.petId = petId; return this; } @@ -135,15 +134,23 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "petId") + public Long getPetId() { return petId; } + + public void setPetId(Long petId) { this.petId = petId; } + public Order quantity(Integer quantity) { + this.quantity = quantity; return this; } @@ -154,15 +161,23 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "quantity") + public Integer getQuantity() { return quantity; } + + public void setQuantity(Integer quantity) { this.quantity = quantity; } + public Order shipDate(OffsetDateTime shipDate) { + this.shipDate = shipDate; return this; } @@ -173,15 +188,23 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "shipDate") + public OffsetDateTime getShipDate() { return shipDate; } + + public void setShipDate(OffsetDateTime shipDate) { this.shipDate = shipDate; } + public Order status(StatusEnum status) { + this.status = status; return this; } @@ -192,15 +215,23 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "Order Status") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "status") + public StatusEnum getStatus() { return status; } + + public void setStatus(StatusEnum status) { this.status = status; } + public Order complete(Boolean complete) { + this.complete = complete; return this; } @@ -211,10 +242,16 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "complete") + public Boolean getComplete() { return complete; } + + public void setComplete(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 1ee7b435736..80484064cb9 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -32,25 +33,21 @@ import javax.xml.bind.annotation.*; @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "OuterComposite") public class OuterComposite { - public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; - @JsonProperty(JSON_PROPERTY_MY_NUMBER) - @JacksonXmlProperty(localName = "my_number") @XmlElement(name = "my_number") + public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; private BigDecimal myNumber; - public static final String JSON_PROPERTY_MY_STRING = "my_string"; - @JsonProperty(JSON_PROPERTY_MY_STRING) - @JacksonXmlProperty(localName = "my_string") @XmlElement(name = "my_string") + public static final String JSON_PROPERTY_MY_STRING = "my_string"; private String myString; - public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) - @JacksonXmlProperty(localName = "my_boolean") @XmlElement(name = "my_boolean") + public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; private Boolean myBoolean; + public OuterComposite myNumber(BigDecimal myNumber) { + this.myNumber = myNumber; return this; } @@ -61,15 +58,23 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "my_number") + public BigDecimal getMyNumber() { return myNumber; } + + public void setMyNumber(BigDecimal myNumber) { this.myNumber = myNumber; } + public OuterComposite myString(String myString) { + this.myString = myString; return this; } @@ -80,15 +85,23 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "my_string") + public String getMyString() { return myString; } + + public void setMyString(String myString) { this.myString = myString; } + public OuterComposite myBoolean(Boolean myBoolean) { + this.myBoolean = myBoolean; return this; } @@ -99,10 +112,16 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "my_boolean") + public Boolean getMyBoolean() { return myBoolean; } + + public void setMyBoolean(Boolean myBoolean) { this.myBoolean = myBoolean; } 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 00ceff8bb77..8dbd84bb813 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -35,44 +36,32 @@ import javax.xml.bind.annotation.*; @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "Pet") public class Pet { - public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) - @JacksonXmlProperty(localName = "id") @XmlElement(name = "id") + public static final String JSON_PROPERTY_ID = "id"; private Long id; - public static final String JSON_PROPERTY_CATEGORY = "category"; - @JsonProperty(JSON_PROPERTY_CATEGORY) - @JacksonXmlProperty(localName = "category") @XmlElement(name = "category") - private Category category = null; + public static final String JSON_PROPERTY_CATEGORY = "category"; + private Category category; - public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) - @JacksonXmlProperty(localName = "name") @XmlElement(name = "name") + public static final String JSON_PROPERTY_NAME = "name"; private String name; - public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) - // items.xmlName= - @JacksonXmlElementWrapper(useWrapping = true, localName = "photoUrls") // Is a container wrapped=true // items.name=photoUrls items.baseName=photoUrls items.xmlName= items.xmlNamespace= // items.example= items.type=String @XmlElement(name = "photoUrls") @XmlElementWrapper(name = "photoUrl") + public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; private List photoUrls = new ArrayList(); - public static final String JSON_PROPERTY_TAGS = "tags"; - @JsonProperty(JSON_PROPERTY_TAGS) - // items.xmlName= - @JacksonXmlElementWrapper(useWrapping = true, localName = "tags") // Is a container wrapped=true // items.name=tags items.baseName=tags items.xmlName= items.xmlNamespace= // items.example= items.type=Tag @XmlElement(name = "tags") @XmlElementWrapper(name = "tag") + public static final String JSON_PROPERTY_TAGS = "tags"; private List tags = null; /** @@ -112,13 +101,13 @@ public class Pet { } } - public static final String JSON_PROPERTY_STATUS = "status"; - @JsonProperty(JSON_PROPERTY_STATUS) - @JacksonXmlProperty(localName = "status") @XmlElement(name = "status") + public static final String JSON_PROPERTY_STATUS = "status"; private StatusEnum status; + public Pet id(Long id) { + this.id = id; return this; } @@ -129,15 +118,23 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "id") + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Pet category(Category category) { + this.category = category; return this; } @@ -148,15 +145,23 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "category") + public Category getCategory() { return category; } + + public void setCategory(Category category) { this.category = category; } + public Pet name(String name) { + this.name = name; return this; } @@ -166,15 +171,23 @@ public class Pet { * @return name **/ @ApiModelProperty(example = "doggie", required = true, value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JacksonXmlProperty(localName = "name") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public Pet photoUrls(List photoUrls) { + this.photoUrls = photoUrls; return this; } @@ -189,15 +202,24 @@ public class Pet { * @return photoUrls **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + // items.xmlName= + @JacksonXmlElementWrapper(useWrapping = true, localName = "photoUrls") + public List getPhotoUrls() { return photoUrls; } + + public void setPhotoUrls(List photoUrls) { this.photoUrls = photoUrls; } + public Pet tags(List tags) { + this.tags = tags; return this; } @@ -216,15 +238,24 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + // items.xmlName= + @JacksonXmlElementWrapper(useWrapping = true, localName = "tags") + public List getTags() { return tags; } + + public void setTags(List tags) { this.tags = tags; } + public Pet status(StatusEnum status) { + this.status = status; return this; } @@ -235,10 +266,16 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "pet status in the store") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "status") + public StatusEnum getStatus() { return status; } + + public void setStatus(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 95c3b1a6022..fcc1fe35532 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,29 +32,34 @@ import javax.xml.bind.annotation.*; @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "ReadOnlyFirst") public class ReadOnlyFirst { - public static final String JSON_PROPERTY_BAR = "bar"; - @JsonProperty(JSON_PROPERTY_BAR) - @JacksonXmlProperty(localName = "bar") @XmlElement(name = "bar") + public static final String JSON_PROPERTY_BAR = "bar"; private String bar; - public static final String JSON_PROPERTY_BAZ = "baz"; - @JsonProperty(JSON_PROPERTY_BAZ) - @JacksonXmlProperty(localName = "baz") @XmlElement(name = "baz") + public static final String JSON_PROPERTY_BAZ = "baz"; private String baz; + /** * Get bar * @return bar **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BAR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "bar") + public String getBar() { return bar; } + + + public ReadOnlyFirst baz(String baz) { + this.baz = baz; return this; } @@ -64,10 +70,16 @@ public class ReadOnlyFirst { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BAZ) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "baz") + public String getBaz() { return baz; } + + public void setBaz(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 02bf80764c9..e2370e30ab3 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,13 +32,13 @@ import javax.xml.bind.annotation.*; @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "$special[model.name]") public class SpecialModelName { - public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) - @JacksonXmlProperty(localName = "$special[property.name]") @XmlElement(name = "$special[property.name]") + public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; private Long $specialPropertyName; + public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + this.$specialPropertyName = $specialPropertyName; return this; } @@ -48,10 +49,16 @@ public class SpecialModelName { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "$special[property.name]") + public Long get$SpecialPropertyName() { return $specialPropertyName; } + + public void set$SpecialPropertyName(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 6942e79d6f1..dc3aea56874 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,19 +32,17 @@ import javax.xml.bind.annotation.*; @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "Tag") public class Tag { - public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) - @JacksonXmlProperty(localName = "id") @XmlElement(name = "id") + public static final String JSON_PROPERTY_ID = "id"; private Long id; - public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) - @JacksonXmlProperty(localName = "name") @XmlElement(name = "name") + public static final String JSON_PROPERTY_NAME = "name"; private String name; + public Tag id(Long id) { + this.id = id; return this; } @@ -54,15 +53,23 @@ public class Tag { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "id") + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Tag name(String name) { + this.name = name; return this; } @@ -73,10 +80,16 @@ public class Tag { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "name") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index 9012547ae0f..905acf8d2ae 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -34,39 +35,32 @@ import javax.xml.bind.annotation.*; @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "TypeHolderDefault") public class TypeHolderDefault { - public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; - @JsonProperty(JSON_PROPERTY_STRING_ITEM) - @JacksonXmlProperty(localName = "string_item") @XmlElement(name = "string_item") + public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; private String stringItem = "what"; - public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) - @JacksonXmlProperty(localName = "number_item") @XmlElement(name = "number_item") + public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; private BigDecimal numberItem; - public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) - @JacksonXmlProperty(localName = "integer_item") @XmlElement(name = "integer_item") + public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; private Integer integerItem; - public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) - @JacksonXmlProperty(localName = "bool_item") @XmlElement(name = "bool_item") + public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; private Boolean boolItem = true; - public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) // Is a container wrapped=false // items.name=arrayItem items.baseName=arrayItem items.xmlName= items.xmlNamespace= // items.example= items.type=Integer @XmlElement(name = "arrayItem") + public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; private List arrayItem = new ArrayList(); + public TypeHolderDefault stringItem(String stringItem) { + this.stringItem = stringItem; return this; } @@ -76,15 +70,23 @@ public class TypeHolderDefault { * @return stringItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JacksonXmlProperty(localName = "string_item") + public String getStringItem() { return stringItem; } + + public void setStringItem(String stringItem) { this.stringItem = stringItem; } + public TypeHolderDefault numberItem(BigDecimal numberItem) { + this.numberItem = numberItem; return this; } @@ -94,15 +96,23 @@ public class TypeHolderDefault { * @return numberItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JacksonXmlProperty(localName = "number_item") + public BigDecimal getNumberItem() { return numberItem; } + + public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } + public TypeHolderDefault integerItem(Integer integerItem) { + this.integerItem = integerItem; return this; } @@ -112,15 +122,23 @@ public class TypeHolderDefault { * @return integerItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JacksonXmlProperty(localName = "integer_item") + public Integer getIntegerItem() { return integerItem; } + + public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } + public TypeHolderDefault boolItem(Boolean boolItem) { + this.boolItem = boolItem; return this; } @@ -130,15 +148,23 @@ public class TypeHolderDefault { * @return boolItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JacksonXmlProperty(localName = "bool_item") + public Boolean getBoolItem() { return boolItem; } + + public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } + public TypeHolderDefault arrayItem(List arrayItem) { + this.arrayItem = arrayItem; return this; } @@ -153,10 +179,15 @@ public class TypeHolderDefault { * @return arrayItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getArrayItem() { return arrayItem; } + + public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/TypeHolderExample.java index 86b51dbe04c..b99b7d06f34 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -34,39 +35,32 @@ import javax.xml.bind.annotation.*; @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "TypeHolderExample") public class TypeHolderExample { - public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; - @JsonProperty(JSON_PROPERTY_STRING_ITEM) - @JacksonXmlProperty(localName = "string_item") @XmlElement(name = "string_item") + public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; private String stringItem; - public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) - @JacksonXmlProperty(localName = "number_item") @XmlElement(name = "number_item") + public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; private BigDecimal numberItem; - public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) - @JacksonXmlProperty(localName = "integer_item") @XmlElement(name = "integer_item") + public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; private Integer integerItem; - public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) - @JacksonXmlProperty(localName = "bool_item") @XmlElement(name = "bool_item") + public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; private Boolean boolItem; - public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) // Is a container wrapped=false // items.name=arrayItem items.baseName=arrayItem items.xmlName= items.xmlNamespace= // items.example= items.type=Integer @XmlElement(name = "arrayItem") + public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; private List arrayItem = new ArrayList(); + public TypeHolderExample stringItem(String stringItem) { + this.stringItem = stringItem; return this; } @@ -76,15 +70,23 @@ public class TypeHolderExample { * @return stringItem **/ @ApiModelProperty(example = "what", required = true, value = "") + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JacksonXmlProperty(localName = "string_item") + public String getStringItem() { return stringItem; } + + public void setStringItem(String stringItem) { this.stringItem = stringItem; } + public TypeHolderExample numberItem(BigDecimal numberItem) { + this.numberItem = numberItem; return this; } @@ -94,15 +96,23 @@ public class TypeHolderExample { * @return numberItem **/ @ApiModelProperty(example = "1.234", required = true, value = "") + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JacksonXmlProperty(localName = "number_item") + public BigDecimal getNumberItem() { return numberItem; } + + public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } + public TypeHolderExample integerItem(Integer integerItem) { + this.integerItem = integerItem; return this; } @@ -112,15 +122,23 @@ public class TypeHolderExample { * @return integerItem **/ @ApiModelProperty(example = "-2", required = true, value = "") + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JacksonXmlProperty(localName = "integer_item") + public Integer getIntegerItem() { return integerItem; } + + public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } + public TypeHolderExample boolItem(Boolean boolItem) { + this.boolItem = boolItem; return this; } @@ -130,15 +148,23 @@ public class TypeHolderExample { * @return boolItem **/ @ApiModelProperty(example = "true", required = true, value = "") + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JacksonXmlProperty(localName = "bool_item") + public Boolean getBoolItem() { return boolItem; } + + public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } + public TypeHolderExample arrayItem(List arrayItem) { + this.arrayItem = arrayItem; return this; } @@ -153,10 +179,15 @@ public class TypeHolderExample { * @return arrayItem **/ @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getArrayItem() { return arrayItem; } + + public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/User.java index cabbb31fe80..2a9b50167f5 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/User.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,55 +32,41 @@ import javax.xml.bind.annotation.*; @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "User") public class User { - public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) - @JacksonXmlProperty(localName = "id") @XmlElement(name = "id") + public static final String JSON_PROPERTY_ID = "id"; private Long id; - public static final String JSON_PROPERTY_USERNAME = "username"; - @JsonProperty(JSON_PROPERTY_USERNAME) - @JacksonXmlProperty(localName = "username") @XmlElement(name = "username") + public static final String JSON_PROPERTY_USERNAME = "username"; private String username; - public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; - @JsonProperty(JSON_PROPERTY_FIRST_NAME) - @JacksonXmlProperty(localName = "firstName") @XmlElement(name = "firstName") + public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; private String firstName; - public static final String JSON_PROPERTY_LAST_NAME = "lastName"; - @JsonProperty(JSON_PROPERTY_LAST_NAME) - @JacksonXmlProperty(localName = "lastName") @XmlElement(name = "lastName") + public static final String JSON_PROPERTY_LAST_NAME = "lastName"; private String lastName; - public static final String JSON_PROPERTY_EMAIL = "email"; - @JsonProperty(JSON_PROPERTY_EMAIL) - @JacksonXmlProperty(localName = "email") @XmlElement(name = "email") + public static final String JSON_PROPERTY_EMAIL = "email"; private String email; - public static final String JSON_PROPERTY_PASSWORD = "password"; - @JsonProperty(JSON_PROPERTY_PASSWORD) - @JacksonXmlProperty(localName = "password") @XmlElement(name = "password") + public static final String JSON_PROPERTY_PASSWORD = "password"; private String password; - public static final String JSON_PROPERTY_PHONE = "phone"; - @JsonProperty(JSON_PROPERTY_PHONE) - @JacksonXmlProperty(localName = "phone") @XmlElement(name = "phone") + public static final String JSON_PROPERTY_PHONE = "phone"; private String phone; - public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; - @JsonProperty(JSON_PROPERTY_USER_STATUS) - @JacksonXmlProperty(localName = "userStatus") @XmlElement(name = "userStatus") + public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; private Integer userStatus; + public User id(Long id) { + this.id = id; return this; } @@ -90,15 +77,23 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "id") + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public User username(String username) { + this.username = username; return this; } @@ -109,15 +104,23 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "username") + public String getUsername() { return username; } + + public void setUsername(String username) { this.username = username; } + public User firstName(String firstName) { + this.firstName = firstName; return this; } @@ -128,15 +131,23 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "firstName") + public String getFirstName() { return firstName; } + + public void setFirstName(String firstName) { this.firstName = firstName; } + public User lastName(String lastName) { + this.lastName = lastName; return this; } @@ -147,15 +158,23 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "lastName") + public String getLastName() { return lastName; } + + public void setLastName(String lastName) { this.lastName = lastName; } + public User email(String email) { + this.email = email; return this; } @@ -166,15 +185,23 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "email") + public String getEmail() { return email; } + + public void setEmail(String email) { this.email = email; } + public User password(String password) { + this.password = password; return this; } @@ -185,15 +212,23 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "password") + public String getPassword() { return password; } + + public void setPassword(String password) { this.password = password; } + public User phone(String phone) { + this.phone = phone; return this; } @@ -204,15 +239,23 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PHONE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "phone") + public String getPhone() { return phone; } + + public void setPhone(String phone) { this.phone = phone; } + public User userStatus(Integer userStatus) { + this.userStatus = userStatus; return this; } @@ -223,10 +266,16 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "User Status") + @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "userStatus") + public Integer getUserStatus() { return userStatus; } + + public void setUserStatus(Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/XmlItem.java index 76f17ec7291..f9d5c1be522 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/XmlItem.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -34,214 +35,157 @@ import javax.xml.bind.annotation.*; @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(namespace="http://a.com/schema", localName = "XmlItem") public class XmlItem { - public static final String JSON_PROPERTY_ATTRIBUTE_STRING = "attribute_string"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) - @JacksonXmlProperty(isAttribute = true, localName = "attribute_string") @XmlAttribute(name = "attribute_string") + public static final String JSON_PROPERTY_ATTRIBUTE_STRING = "attribute_string"; private String attributeString; - public static final String JSON_PROPERTY_ATTRIBUTE_NUMBER = "attribute_number"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) - @JacksonXmlProperty(isAttribute = true, localName = "attribute_number") @XmlAttribute(name = "attribute_number") + public static final String JSON_PROPERTY_ATTRIBUTE_NUMBER = "attribute_number"; private BigDecimal attributeNumber; - public static final String JSON_PROPERTY_ATTRIBUTE_INTEGER = "attribute_integer"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) - @JacksonXmlProperty(isAttribute = true, localName = "attribute_integer") @XmlAttribute(name = "attribute_integer") + public static final String JSON_PROPERTY_ATTRIBUTE_INTEGER = "attribute_integer"; private Integer attributeInteger; - public static final String JSON_PROPERTY_ATTRIBUTE_BOOLEAN = "attribute_boolean"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) - @JacksonXmlProperty(isAttribute = true, localName = "attribute_boolean") @XmlAttribute(name = "attribute_boolean") + public static final String JSON_PROPERTY_ATTRIBUTE_BOOLEAN = "attribute_boolean"; private Boolean attributeBoolean; - public static final String JSON_PROPERTY_WRAPPED_ARRAY = "wrapped_array"; - @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) - // items.xmlName= - @JacksonXmlElementWrapper(useWrapping = true, localName = "wrappedArray") // Is a container wrapped=true // items.name=wrappedArray items.baseName=wrappedArray items.xmlName= items.xmlNamespace= // items.example= items.type=Integer @XmlElement(name = "wrappedArray") @XmlElementWrapper(name = "wrapped_array") + public static final String JSON_PROPERTY_WRAPPED_ARRAY = "wrapped_array"; private List wrappedArray = null; - public static final String JSON_PROPERTY_NAME_STRING = "name_string"; - @JsonProperty(JSON_PROPERTY_NAME_STRING) - @JacksonXmlProperty(localName = "xml_name_string") @XmlElement(name = "xml_name_string") + public static final String JSON_PROPERTY_NAME_STRING = "name_string"; private String nameString; - public static final String JSON_PROPERTY_NAME_NUMBER = "name_number"; - @JsonProperty(JSON_PROPERTY_NAME_NUMBER) - @JacksonXmlProperty(localName = "xml_name_number") @XmlElement(name = "xml_name_number") + public static final String JSON_PROPERTY_NAME_NUMBER = "name_number"; private BigDecimal nameNumber; - public static final String JSON_PROPERTY_NAME_INTEGER = "name_integer"; - @JsonProperty(JSON_PROPERTY_NAME_INTEGER) - @JacksonXmlProperty(localName = "xml_name_integer") @XmlElement(name = "xml_name_integer") + public static final String JSON_PROPERTY_NAME_INTEGER = "name_integer"; private Integer nameInteger; - public static final String JSON_PROPERTY_NAME_BOOLEAN = "name_boolean"; - @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) - @JacksonXmlProperty(localName = "xml_name_boolean") @XmlElement(name = "xml_name_boolean") + public static final String JSON_PROPERTY_NAME_BOOLEAN = "name_boolean"; private Boolean nameBoolean; - public static final String JSON_PROPERTY_NAME_ARRAY = "name_array"; - @JsonProperty(JSON_PROPERTY_NAME_ARRAY) // Is a container wrapped=false // items.name=nameArray items.baseName=nameArray items.xmlName=xml_name_array_item items.xmlNamespace= // items.example= items.type=Integer @XmlElement(name = "xml_name_array_item") + public static final String JSON_PROPERTY_NAME_ARRAY = "name_array"; private List nameArray = null; - public static final String JSON_PROPERTY_NAME_WRAPPED_ARRAY = "name_wrapped_array"; - @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) - // items.xmlName=xml_name_wrapped_array_item - @JacksonXmlElementWrapper(useWrapping = true, localName = "xml_name_wrapped_array_item") // Is a container wrapped=true // items.name=nameWrappedArray items.baseName=nameWrappedArray items.xmlName=xml_name_wrapped_array_item items.xmlNamespace= // items.example= items.type=Integer @XmlElement(name = "xml_name_wrapped_array_item") @XmlElementWrapper(name = "xml_name_wrapped_array") + public static final String JSON_PROPERTY_NAME_WRAPPED_ARRAY = "name_wrapped_array"; private List nameWrappedArray = null; - public static final String JSON_PROPERTY_PREFIX_STRING = "prefix_string"; - @JsonProperty(JSON_PROPERTY_PREFIX_STRING) - @JacksonXmlProperty(localName = "prefix_string") @XmlElement(name = "prefix_string") + public static final String JSON_PROPERTY_PREFIX_STRING = "prefix_string"; private String prefixString; - public static final String JSON_PROPERTY_PREFIX_NUMBER = "prefix_number"; - @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) - @JacksonXmlProperty(localName = "prefix_number") @XmlElement(name = "prefix_number") + public static final String JSON_PROPERTY_PREFIX_NUMBER = "prefix_number"; private BigDecimal prefixNumber; - public static final String JSON_PROPERTY_PREFIX_INTEGER = "prefix_integer"; - @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) - @JacksonXmlProperty(localName = "prefix_integer") @XmlElement(name = "prefix_integer") + public static final String JSON_PROPERTY_PREFIX_INTEGER = "prefix_integer"; private Integer prefixInteger; - public static final String JSON_PROPERTY_PREFIX_BOOLEAN = "prefix_boolean"; - @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) - @JacksonXmlProperty(localName = "prefix_boolean") @XmlElement(name = "prefix_boolean") + public static final String JSON_PROPERTY_PREFIX_BOOLEAN = "prefix_boolean"; private Boolean prefixBoolean; - public static final String JSON_PROPERTY_PREFIX_ARRAY = "prefix_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) // Is a container wrapped=false // items.name=prefixArray items.baseName=prefixArray items.xmlName= items.xmlNamespace= // items.example= items.type=Integer @XmlElement(name = "prefixArray") + public static final String JSON_PROPERTY_PREFIX_ARRAY = "prefix_array"; private List prefixArray = null; - public static final String JSON_PROPERTY_PREFIX_WRAPPED_ARRAY = "prefix_wrapped_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) - // items.xmlName= - @JacksonXmlElementWrapper(useWrapping = true, localName = "prefixWrappedArray") // Is a container wrapped=true // items.name=prefixWrappedArray items.baseName=prefixWrappedArray items.xmlName= items.xmlNamespace= // items.example= items.type=Integer @XmlElement(name = "prefixWrappedArray") @XmlElementWrapper(name = "prefix_wrapped_array") + public static final String JSON_PROPERTY_PREFIX_WRAPPED_ARRAY = "prefix_wrapped_array"; private List prefixWrappedArray = null; - public static final String JSON_PROPERTY_NAMESPACE_STRING = "namespace_string"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) - @JacksonXmlProperty(namespace="http://a.com/schema", localName = "namespace_string") @XmlElement(namespace="http://a.com/schema", name = "namespace_string") + public static final String JSON_PROPERTY_NAMESPACE_STRING = "namespace_string"; private String namespaceString; - public static final String JSON_PROPERTY_NAMESPACE_NUMBER = "namespace_number"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) - @JacksonXmlProperty(namespace="http://b.com/schema", localName = "namespace_number") @XmlElement(namespace="http://b.com/schema", name = "namespace_number") + public static final String JSON_PROPERTY_NAMESPACE_NUMBER = "namespace_number"; private BigDecimal namespaceNumber; - public static final String JSON_PROPERTY_NAMESPACE_INTEGER = "namespace_integer"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) - @JacksonXmlProperty(namespace="http://c.com/schema", localName = "namespace_integer") @XmlElement(namespace="http://c.com/schema", name = "namespace_integer") + public static final String JSON_PROPERTY_NAMESPACE_INTEGER = "namespace_integer"; private Integer namespaceInteger; - public static final String JSON_PROPERTY_NAMESPACE_BOOLEAN = "namespace_boolean"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) - @JacksonXmlProperty(namespace="http://d.com/schema", localName = "namespace_boolean") @XmlElement(namespace="http://d.com/schema", name = "namespace_boolean") + public static final String JSON_PROPERTY_NAMESPACE_BOOLEAN = "namespace_boolean"; private Boolean namespaceBoolean; - public static final String JSON_PROPERTY_NAMESPACE_ARRAY = "namespace_array"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) // Is a container wrapped=false // items.name=namespaceArray items.baseName=namespaceArray items.xmlName= items.xmlNamespace=http://e.com/schema // items.example= items.type=Integer @XmlElement(namespace="http://e.com/schema", name = "namespaceArray") + public static final String JSON_PROPERTY_NAMESPACE_ARRAY = "namespace_array"; private List namespaceArray = null; - public static final String JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY = "namespace_wrapped_array"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) - // items.xmlName= - @JacksonXmlElementWrapper(useWrapping = true, namespace="http://f.com/schema", localName = "namespaceWrappedArray") // Is a container wrapped=true // items.name=namespaceWrappedArray items.baseName=namespaceWrappedArray items.xmlName= items.xmlNamespace=http://g.com/schema // items.example= items.type=Integer @XmlElement(namespace="http://g.com/schema", name = "namespaceWrappedArray") @XmlElementWrapper(namespace="http://f.com/schema", name = "namespace_wrapped_array") + public static final String JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY = "namespace_wrapped_array"; private List namespaceWrappedArray = null; - public static final String JSON_PROPERTY_PREFIX_NS_STRING = "prefix_ns_string"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) - @JacksonXmlProperty(namespace="http://a.com/schema", localName = "prefix_ns_string") @XmlElement(namespace="http://a.com/schema", name = "prefix_ns_string") + public static final String JSON_PROPERTY_PREFIX_NS_STRING = "prefix_ns_string"; private String prefixNsString; - public static final String JSON_PROPERTY_PREFIX_NS_NUMBER = "prefix_ns_number"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) - @JacksonXmlProperty(namespace="http://b.com/schema", localName = "prefix_ns_number") @XmlElement(namespace="http://b.com/schema", name = "prefix_ns_number") + public static final String JSON_PROPERTY_PREFIX_NS_NUMBER = "prefix_ns_number"; private BigDecimal prefixNsNumber; - public static final String JSON_PROPERTY_PREFIX_NS_INTEGER = "prefix_ns_integer"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) - @JacksonXmlProperty(namespace="http://c.com/schema", localName = "prefix_ns_integer") @XmlElement(namespace="http://c.com/schema", name = "prefix_ns_integer") + public static final String JSON_PROPERTY_PREFIX_NS_INTEGER = "prefix_ns_integer"; private Integer prefixNsInteger; - public static final String JSON_PROPERTY_PREFIX_NS_BOOLEAN = "prefix_ns_boolean"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) - @JacksonXmlProperty(namespace="http://d.com/schema", localName = "prefix_ns_boolean") @XmlElement(namespace="http://d.com/schema", name = "prefix_ns_boolean") + public static final String JSON_PROPERTY_PREFIX_NS_BOOLEAN = "prefix_ns_boolean"; private Boolean prefixNsBoolean; - public static final String JSON_PROPERTY_PREFIX_NS_ARRAY = "prefix_ns_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) // Is a container wrapped=false // items.name=prefixNsArray items.baseName=prefixNsArray items.xmlName= items.xmlNamespace=http://e.com/schema // items.example= items.type=Integer @XmlElement(namespace="http://e.com/schema", name = "prefixNsArray") + public static final String JSON_PROPERTY_PREFIX_NS_ARRAY = "prefix_ns_array"; private List prefixNsArray = null; - public static final String JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY = "prefix_ns_wrapped_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) - // items.xmlName= - @JacksonXmlElementWrapper(useWrapping = true, namespace="http://f.com/schema", localName = "prefixNsWrappedArray") // Is a container wrapped=true // items.name=prefixNsWrappedArray items.baseName=prefixNsWrappedArray items.xmlName= items.xmlNamespace=http://g.com/schema // items.example= items.type=Integer @XmlElement(namespace="http://g.com/schema", name = "prefixNsWrappedArray") @XmlElementWrapper(namespace="http://f.com/schema", name = "prefix_ns_wrapped_array") + public static final String JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY = "prefix_ns_wrapped_array"; private List prefixNsWrappedArray = null; + public XmlItem attributeString(String attributeString) { + this.attributeString = attributeString; return this; } @@ -252,15 +196,23 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(isAttribute = true, localName = "attribute_string") + public String getAttributeString() { return attributeString; } + + public void setAttributeString(String attributeString) { this.attributeString = attributeString; } + public XmlItem attributeNumber(BigDecimal attributeNumber) { + this.attributeNumber = attributeNumber; return this; } @@ -271,15 +223,23 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(isAttribute = true, localName = "attribute_number") + public BigDecimal getAttributeNumber() { return attributeNumber; } + + public void setAttributeNumber(BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } + public XmlItem attributeInteger(Integer attributeInteger) { + this.attributeInteger = attributeInteger; return this; } @@ -290,15 +250,23 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(isAttribute = true, localName = "attribute_integer") + public Integer getAttributeInteger() { return attributeInteger; } + + public void setAttributeInteger(Integer attributeInteger) { this.attributeInteger = attributeInteger; } + public XmlItem attributeBoolean(Boolean attributeBoolean) { + this.attributeBoolean = attributeBoolean; return this; } @@ -309,15 +277,23 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(isAttribute = true, localName = "attribute_boolean") + public Boolean getAttributeBoolean() { return attributeBoolean; } + + public void setAttributeBoolean(Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } + public XmlItem wrappedArray(List wrappedArray) { + this.wrappedArray = wrappedArray; return this; } @@ -336,15 +312,24 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + // items.xmlName= + @JacksonXmlElementWrapper(useWrapping = true, localName = "wrappedArray") + public List getWrappedArray() { return wrappedArray; } + + public void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } + public XmlItem nameString(String nameString) { + this.nameString = nameString; return this; } @@ -355,15 +340,23 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_NAME_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "xml_name_string") + public String getNameString() { return nameString; } + + public void setNameString(String nameString) { this.nameString = nameString; } + public XmlItem nameNumber(BigDecimal nameNumber) { + this.nameNumber = nameNumber; return this; } @@ -374,15 +367,23 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_NAME_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "xml_name_number") + public BigDecimal getNameNumber() { return nameNumber; } + + public void setNameNumber(BigDecimal nameNumber) { this.nameNumber = nameNumber; } + public XmlItem nameInteger(Integer nameInteger) { + this.nameInteger = nameInteger; return this; } @@ -393,15 +394,23 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_NAME_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "xml_name_integer") + public Integer getNameInteger() { return nameInteger; } + + public void setNameInteger(Integer nameInteger) { this.nameInteger = nameInteger; } + public XmlItem nameBoolean(Boolean nameBoolean) { + this.nameBoolean = nameBoolean; return this; } @@ -412,15 +421,23 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "xml_name_boolean") + public Boolean getNameBoolean() { return nameBoolean; } + + public void setNameBoolean(Boolean nameBoolean) { this.nameBoolean = nameBoolean; } + public XmlItem nameArray(List nameArray) { + this.nameArray = nameArray; return this; } @@ -439,15 +456,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNameArray() { return nameArray; } + + public void setNameArray(List nameArray) { this.nameArray = nameArray; } + public XmlItem nameWrappedArray(List nameWrappedArray) { + this.nameWrappedArray = nameWrappedArray; return this; } @@ -466,15 +490,24 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + // items.xmlName=xml_name_wrapped_array_item + @JacksonXmlElementWrapper(useWrapping = true, localName = "xml_name_wrapped_array_item") + public List getNameWrappedArray() { return nameWrappedArray; } + + public void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } + public XmlItem prefixString(String prefixString) { + this.prefixString = prefixString; return this; } @@ -485,15 +518,23 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "prefix_string") + public String getPrefixString() { return prefixString; } + + public void setPrefixString(String prefixString) { this.prefixString = prefixString; } + public XmlItem prefixNumber(BigDecimal prefixNumber) { + this.prefixNumber = prefixNumber; return this; } @@ -504,15 +545,23 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "prefix_number") + public BigDecimal getPrefixNumber() { return prefixNumber; } + + public void setPrefixNumber(BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } + public XmlItem prefixInteger(Integer prefixInteger) { + this.prefixInteger = prefixInteger; return this; } @@ -523,15 +572,23 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "prefix_integer") + public Integer getPrefixInteger() { return prefixInteger; } + + public void setPrefixInteger(Integer prefixInteger) { this.prefixInteger = prefixInteger; } + public XmlItem prefixBoolean(Boolean prefixBoolean) { + this.prefixBoolean = prefixBoolean; return this; } @@ -542,15 +599,23 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "prefix_boolean") + public Boolean getPrefixBoolean() { return prefixBoolean; } + + public void setPrefixBoolean(Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } + public XmlItem prefixArray(List prefixArray) { + this.prefixArray = prefixArray; return this; } @@ -569,15 +634,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixArray() { return prefixArray; } + + public void setPrefixArray(List prefixArray) { this.prefixArray = prefixArray; } + public XmlItem prefixWrappedArray(List prefixWrappedArray) { + this.prefixWrappedArray = prefixWrappedArray; return this; } @@ -596,15 +668,24 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + // items.xmlName= + @JacksonXmlElementWrapper(useWrapping = true, localName = "prefixWrappedArray") + public List getPrefixWrappedArray() { return prefixWrappedArray; } + + public void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } + public XmlItem namespaceString(String namespaceString) { + this.namespaceString = namespaceString; return this; } @@ -615,15 +696,23 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(namespace="http://a.com/schema", localName = "namespace_string") + public String getNamespaceString() { return namespaceString; } + + public void setNamespaceString(String namespaceString) { this.namespaceString = namespaceString; } + public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + this.namespaceNumber = namespaceNumber; return this; } @@ -634,15 +723,23 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(namespace="http://b.com/schema", localName = "namespace_number") + public BigDecimal getNamespaceNumber() { return namespaceNumber; } + + public void setNamespaceNumber(BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } + public XmlItem namespaceInteger(Integer namespaceInteger) { + this.namespaceInteger = namespaceInteger; return this; } @@ -653,15 +750,23 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(namespace="http://c.com/schema", localName = "namespace_integer") + public Integer getNamespaceInteger() { return namespaceInteger; } + + public void setNamespaceInteger(Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } + public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + this.namespaceBoolean = namespaceBoolean; return this; } @@ -672,15 +777,23 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(namespace="http://d.com/schema", localName = "namespace_boolean") + public Boolean getNamespaceBoolean() { return namespaceBoolean; } + + public void setNamespaceBoolean(Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } + public XmlItem namespaceArray(List namespaceArray) { + this.namespaceArray = namespaceArray; return this; } @@ -699,15 +812,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNamespaceArray() { return namespaceArray; } + + public void setNamespaceArray(List namespaceArray) { this.namespaceArray = namespaceArray; } + public XmlItem namespaceWrappedArray(List namespaceWrappedArray) { + this.namespaceWrappedArray = namespaceWrappedArray; return this; } @@ -726,15 +846,24 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + // items.xmlName= + @JacksonXmlElementWrapper(useWrapping = true, namespace="http://f.com/schema", localName = "namespaceWrappedArray") + public List getNamespaceWrappedArray() { return namespaceWrappedArray; } + + public void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } + public XmlItem prefixNsString(String prefixNsString) { + this.prefixNsString = prefixNsString; return this; } @@ -745,15 +874,23 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(namespace="http://a.com/schema", localName = "prefix_ns_string") + public String getPrefixNsString() { return prefixNsString; } + + public void setPrefixNsString(String prefixNsString) { this.prefixNsString = prefixNsString; } + public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + this.prefixNsNumber = prefixNsNumber; return this; } @@ -764,15 +901,23 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(namespace="http://b.com/schema", localName = "prefix_ns_number") + public BigDecimal getPrefixNsNumber() { return prefixNsNumber; } + + public void setPrefixNsNumber(BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } + public XmlItem prefixNsInteger(Integer prefixNsInteger) { + this.prefixNsInteger = prefixNsInteger; return this; } @@ -783,15 +928,23 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(namespace="http://c.com/schema", localName = "prefix_ns_integer") + public Integer getPrefixNsInteger() { return prefixNsInteger; } + + public void setPrefixNsInteger(Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } + public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + this.prefixNsBoolean = prefixNsBoolean; return this; } @@ -802,15 +955,23 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(namespace="http://d.com/schema", localName = "prefix_ns_boolean") + public Boolean getPrefixNsBoolean() { return prefixNsBoolean; } + + public void setPrefixNsBoolean(Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } + public XmlItem prefixNsArray(List prefixNsArray) { + this.prefixNsArray = prefixNsArray; return this; } @@ -829,15 +990,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixNsArray() { return prefixNsArray; } + + public void setPrefixNsArray(List prefixNsArray) { this.prefixNsArray = prefixNsArray; } + public XmlItem prefixNsWrappedArray(List prefixNsWrappedArray) { + this.prefixNsWrappedArray = prefixNsWrappedArray; return this; } @@ -856,10 +1024,17 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + // items.xmlName= + @JacksonXmlElementWrapper(useWrapping = true, namespace="http://f.com/schema", localName = "prefixNsWrappedArray") + public List getPrefixNsWrappedArray() { return prefixNsWrappedArray; } + + public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/resttemplate/docs/UserApi.md b/samples/client/petstore/java/resttemplate/docs/UserApi.md index 4154aba4f17..ca9f550c316 100644 --- a/samples/client/petstore/java/resttemplate/docs/UserApi.md +++ b/samples/client/petstore/java/resttemplate/docs/UserApi.md @@ -101,7 +101,7 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); UserApi apiInstance = new UserApi(defaultClient); - List body = Arrays.asList(null); // List | List of user object + List body = Arrays.asList(); // List | List of user object try { apiInstance.createUsersWithArrayInput(body); } catch (ApiException e) { @@ -163,7 +163,7 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); UserApi apiInstance = new UserApi(defaultClient); - List body = Arrays.asList(null); // List | List of user object + List body = Arrays.asList(); // List | List of user object try { apiInstance.createUsersWithListInput(body); } catch (ApiException e) { diff --git a/samples/client/petstore/java/resttemplate/pom.xml b/samples/client/petstore/java/resttemplate/pom.xml index 3f6172a6765..314fb7f6a7c 100644 --- a/samples/client/petstore/java/resttemplate/pom.xml +++ b/samples/client/petstore/java/resttemplate/pom.xml @@ -235,6 +235,11 @@ com.fasterxml.jackson.jaxrs jackson-jaxrs-json-provider ${jackson-version} + + + org.openapitools + jackson-databind-nullable + ${jackson-databind-nullable-version} com.github.joschi.jackson @@ -256,6 +261,7 @@ 4.3.9.RELEASE 2.9.9 2.9.9 + 0.2.0 2.6.4 1.0.0 4.12 diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/ApiClient.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/ApiClient.java index c49d73bcfb0..264ea075d19 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/ApiClient.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/ApiClient.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.datatype.threetenbp.ThreeTenModule; import org.springframework.http.converter.HttpMessageConverter; import org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter; import com.fasterxml.jackson.databind.ObjectMapper; +import org.openapitools.jackson.nullable.JsonNullableModule; import java.io.BufferedReader; import java.io.IOException; @@ -649,6 +650,7 @@ public class ApiClient { module.addDeserializer(OffsetDateTime.class, CustomInstantDeserializer.OFFSET_DATE_TIME); module.addDeserializer(ZonedDateTime.class, CustomInstantDeserializer.ZONED_DATE_TIME); mapper.registerModule(module); + mapper.registerModule(new JsonNullableModule()); } } // This allows us to read the response more than once - Necessary for debugging. diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index 0df18c37e39..80e4d937cb7 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesAnyType extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesAnyType name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesAnyType extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 0d9a6b14532..59c845c40ac 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import java.util.Map; public class AdditionalPropertiesArray extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesArray name(String name) { + this.name = name; return this; } @@ -44,10 +46,15 @@ public class AdditionalPropertiesArray extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 8e85a1f2246..c6c2919f37d 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesBoolean extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesBoolean name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesBoolean extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 0fa49af1afd..29f38bc34c9 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,50 +32,41 @@ import java.util.Map; public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_STRING = "map_string"; - @JsonProperty(JSON_PROPERTY_MAP_STRING) private Map mapString = null; public static final String JSON_PROPERTY_MAP_NUMBER = "map_number"; - @JsonProperty(JSON_PROPERTY_MAP_NUMBER) private Map mapNumber = null; public static final String JSON_PROPERTY_MAP_INTEGER = "map_integer"; - @JsonProperty(JSON_PROPERTY_MAP_INTEGER) private Map mapInteger = null; public static final String JSON_PROPERTY_MAP_BOOLEAN = "map_boolean"; - @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) private Map mapBoolean = null; public static final String JSON_PROPERTY_MAP_ARRAY_INTEGER = "map_array_integer"; - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) private Map> mapArrayInteger = null; public static final String JSON_PROPERTY_MAP_ARRAY_ANYTYPE = "map_array_anytype"; - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) private Map> mapArrayAnytype = null; public static final String JSON_PROPERTY_MAP_MAP_STRING = "map_map_string"; - @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) private Map> mapMapString = null; public static final String JSON_PROPERTY_MAP_MAP_ANYTYPE = "map_map_anytype"; - @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) private Map> mapMapAnytype = null; public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1"; - @JsonProperty(JSON_PROPERTY_ANYTYPE1) - private Object anytype1 = null; + private Object anytype1; public static final String JSON_PROPERTY_ANYTYPE2 = "anytype_2"; - @JsonProperty(JSON_PROPERTY_ANYTYPE2) - private Object anytype2 = null; + private Object anytype2; public static final String JSON_PROPERTY_ANYTYPE3 = "anytype_3"; - @JsonProperty(JSON_PROPERTY_ANYTYPE3) - private Object anytype3 = null; + private Object anytype3; + public AdditionalPropertiesClass mapString(Map mapString) { + this.mapString = mapString; return this; } @@ -93,15 +85,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapString() { return mapString; } + + public void setMapString(Map mapString) { this.mapString = mapString; } + public AdditionalPropertiesClass mapNumber(Map mapNumber) { + this.mapNumber = mapNumber; return this; } @@ -120,15 +119,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapNumber() { return mapNumber; } + + public void setMapNumber(Map mapNumber) { this.mapNumber = mapNumber; } + public AdditionalPropertiesClass mapInteger(Map mapInteger) { + this.mapInteger = mapInteger; return this; } @@ -147,15 +153,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapInteger() { return mapInteger; } + + public void setMapInteger(Map mapInteger) { this.mapInteger = mapInteger; } + public AdditionalPropertiesClass mapBoolean(Map mapBoolean) { + this.mapBoolean = mapBoolean; return this; } @@ -174,15 +187,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapBoolean() { return mapBoolean; } + + public void setMapBoolean(Map mapBoolean) { this.mapBoolean = mapBoolean; } + public AdditionalPropertiesClass mapArrayInteger(Map> mapArrayInteger) { + this.mapArrayInteger = mapArrayInteger; return this; } @@ -201,15 +221,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapArrayInteger() { return mapArrayInteger; } + + public void setMapArrayInteger(Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; } + public AdditionalPropertiesClass mapArrayAnytype(Map> mapArrayAnytype) { + this.mapArrayAnytype = mapArrayAnytype; return this; } @@ -228,15 +255,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapArrayAnytype() { return mapArrayAnytype; } + + public void setMapArrayAnytype(Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; } + public AdditionalPropertiesClass mapMapString(Map> mapMapString) { + this.mapMapString = mapMapString; return this; } @@ -255,15 +289,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapMapString() { return mapMapString; } + + public void setMapMapString(Map> mapMapString) { this.mapMapString = mapMapString; } + public AdditionalPropertiesClass mapMapAnytype(Map> mapMapAnytype) { + this.mapMapAnytype = mapMapAnytype; return this; } @@ -282,15 +323,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapMapAnytype() { return mapMapAnytype; } + + public void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } + public AdditionalPropertiesClass anytype1(Object anytype1) { + this.anytype1 = anytype1; return this; } @@ -301,15 +349,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Object getAnytype1() { return anytype1; } + + public void setAnytype1(Object anytype1) { this.anytype1 = anytype1; } + public AdditionalPropertiesClass anytype2(Object anytype2) { + this.anytype2 = anytype2; return this; } @@ -320,15 +375,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ANYTYPE2) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Object getAnytype2() { return anytype2; } + + public void setAnytype2(Object anytype2) { this.anytype2 = anytype2; } + public AdditionalPropertiesClass anytype3(Object anytype3) { + this.anytype3 = anytype3; return this; } @@ -339,10 +401,15 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ANYTYPE3) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Object getAnytype3() { return anytype3; } + + public void setAnytype3(Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 77388b95d86..3d41e99ac8b 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesInteger extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesInteger name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesInteger extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index f0a3318bca1..799674f1e1b 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import java.util.Map; public class AdditionalPropertiesNumber extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesNumber name(String name) { + this.name = name; return this; } @@ -44,10 +46,15 @@ public class AdditionalPropertiesNumber extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index 19d772f4522..3d5a5c25bfa 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesObject extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesObject name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesObject extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 09e6431c916..d0c854414c3 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesString extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesString name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesString extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } 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 a2d34d82f47..1f548074919 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; @@ -35,14 +36,14 @@ import io.swagger.annotations.ApiModelProperty; public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; - @JsonProperty(JSON_PROPERTY_CLASS_NAME) private String className; public static final String JSON_PROPERTY_COLOR = "color"; - @JsonProperty(JSON_PROPERTY_COLOR) private String color = "red"; + public Animal className(String className) { + this.className = className; return this; } @@ -52,15 +53,22 @@ public class Animal { * @return className **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getClassName() { return className; } + + public void setClassName(String className) { this.className = className; } + public Animal color(String color) { + this.color = color; return this; } @@ -71,10 +79,15 @@ public class Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_COLOR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getColor() { return color; } + + public void setColor(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 e1a5139bd25..40fd3259fc7 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import java.util.List; public class ArrayOfArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) private List> arrayArrayNumber = null; + public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + this.arrayArrayNumber = arrayArrayNumber; return this; } @@ -52,10 +54,15 @@ public class ArrayOfArrayOfNumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List> getArrayArrayNumber() { return arrayArrayNumber; } + + public void setArrayArrayNumber(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 76fc13b8ce8..1b695be1510 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import java.util.List; public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) private List arrayNumber = null; + public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + this.arrayNumber = arrayNumber; return this; } @@ -52,10 +54,15 @@ public class ArrayOfNumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArrayNumber() { return arrayNumber; } + + public void setArrayNumber(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 a0082db628c..0effb728488 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,18 +31,17 @@ import org.openapitools.client.model.ReadOnlyFirst; public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) private List arrayOfString = null; public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) private List> arrayArrayOfInteger = null; public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) private List> arrayArrayOfModel = null; + public ArrayTest arrayOfString(List arrayOfString) { + this.arrayOfString = arrayOfString; return this; } @@ -60,15 +60,22 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArrayOfString() { return arrayOfString; } + + public void setArrayOfString(List arrayOfString) { this.arrayOfString = arrayOfString; } + public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + this.arrayArrayOfInteger = arrayArrayOfInteger; return this; } @@ -87,15 +94,22 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List> getArrayArrayOfInteger() { return arrayArrayOfInteger; } + + public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } + public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + this.arrayArrayOfModel = arrayArrayOfModel; return this; } @@ -114,10 +128,15 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List> getArrayArrayOfModel() { return arrayArrayOfModel; } + + public void setArrayArrayOfModel(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 1d4ebff1533..1db509bc7a9 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,30 +28,26 @@ import io.swagger.annotations.ApiModelProperty; public class Capitalization { public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) private String smallCamel; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) private String capitalCamel; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) private String smallSnake; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) private String capitalSnake; public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) private String scAETHFlowPoints; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) private String ATT_NAME; + public Capitalization smallCamel(String smallCamel) { + this.smallCamel = smallCamel; return this; } @@ -61,15 +58,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSmallCamel() { return smallCamel; } + + public void setSmallCamel(String smallCamel) { this.smallCamel = smallCamel; } + public Capitalization capitalCamel(String capitalCamel) { + this.capitalCamel = capitalCamel; return this; } @@ -80,15 +84,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getCapitalCamel() { return capitalCamel; } + + public void setCapitalCamel(String capitalCamel) { this.capitalCamel = capitalCamel; } + public Capitalization smallSnake(String smallSnake) { + this.smallSnake = smallSnake; return this; } @@ -99,15 +110,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSmallSnake() { return smallSnake; } + + public void setSmallSnake(String smallSnake) { this.smallSnake = smallSnake; } + public Capitalization capitalSnake(String capitalSnake) { + this.capitalSnake = capitalSnake; return this; } @@ -118,15 +136,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getCapitalSnake() { return capitalSnake; } + + public void setCapitalSnake(String capitalSnake) { this.capitalSnake = capitalSnake; } + public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -137,15 +162,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getScAETHFlowPoints() { return scAETHFlowPoints; } + + public void setScAETHFlowPoints(String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } + public Capitalization ATT_NAME(String ATT_NAME) { + this.ATT_NAME = ATT_NAME; return this; } @@ -156,10 +188,15 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "Name of the pet ") + @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getATTNAME() { return ATT_NAME; } + + public void setATTNAME(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 11ffa39d982..35f36932606 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import org.openapitools.client.model.CatAllOf; public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; - @JsonProperty(JSON_PROPERTY_DECLAWED) private Boolean declawed; + public Cat declawed(Boolean declawed) { + this.declawed = declawed; return this; } @@ -43,10 +45,15 @@ public class Cat extends Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getDeclawed() { return declawed; } + + public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/CatAllOf.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/CatAllOf.java index 1c12b1972cf..f498096d0bc 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/CatAllOf.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/CatAllOf.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty; public class CatAllOf { public static final String JSON_PROPERTY_DECLAWED = "declawed"; - @JsonProperty(JSON_PROPERTY_DECLAWED) private Boolean declawed; + public CatAllOf declawed(Boolean declawed) { + this.declawed = declawed; return this; } @@ -41,10 +43,15 @@ public class CatAllOf { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getDeclawed() { return declawed; } + + public void setDeclawed(Boolean declawed) { this.declawed = declawed; } 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 652d69552d1..3c4385a7132 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,14 +28,14 @@ import io.swagger.annotations.ApiModelProperty; public class Category { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name = "default-name"; + public Category id(Long id) { + this.id = id; return this; } @@ -45,15 +46,22 @@ public class Category { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Category name(String name) { + this.name = name; return this; } @@ -63,10 +71,15 @@ public class Category { * @return name **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } 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 16036936e7a..47ad8fce655 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,10 +29,11 @@ import io.swagger.annotations.ApiModelProperty; public class ClassModel { public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) private String propertyClass; + public ClassModel propertyClass(String propertyClass) { + this.propertyClass = propertyClass; return this; } @@ -42,10 +44,15 @@ public class ClassModel { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPropertyClass() { return propertyClass; } + + public void setPropertyClass(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 a5c065a1dd0..d325f1378cb 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty; public class Client { public static final String JSON_PROPERTY_CLIENT = "client"; - @JsonProperty(JSON_PROPERTY_CLIENT) private String client; + public Client client(String client) { + this.client = client; return this; } @@ -41,10 +43,15 @@ public class Client { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getClient() { return client; } + + public void setClient(String client) { this.client = client; } 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 7ac3c33202e..cc0acce7049 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import org.openapitools.client.model.DogAllOf; public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; - @JsonProperty(JSON_PROPERTY_BREED) private String breed; + public Dog breed(String breed) { + this.breed = breed; return this; } @@ -43,10 +45,15 @@ public class Dog extends Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBreed() { return breed; } + + public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/DogAllOf.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/DogAllOf.java index b79847a96e4..31d4cc3c80e 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/DogAllOf.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/DogAllOf.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty; public class DogAllOf { public static final String JSON_PROPERTY_BREED = "breed"; - @JsonProperty(JSON_PROPERTY_BREED) private String breed; + public DogAllOf breed(String breed) { + this.breed = breed; return this; } @@ -41,10 +43,15 @@ public class DogAllOf { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBreed() { return breed; } + + public void setBreed(String breed) { this.breed = breed; } 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 93e0acd5746..c60e85ce7d6 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -64,7 +65,6 @@ public class EnumArrays { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) private JustSymbolEnum justSymbol; /** @@ -103,10 +103,11 @@ public class EnumArrays { } public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) private List arrayEnum = null; + public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + this.justSymbol = justSymbol; return this; } @@ -117,15 +118,22 @@ public class EnumArrays { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public JustSymbolEnum getJustSymbol() { return justSymbol; } + + public void setJustSymbol(JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } + public EnumArrays arrayEnum(List arrayEnum) { + this.arrayEnum = arrayEnum; return this; } @@ -144,10 +152,15 @@ public class EnumArrays { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArrayEnum() { return arrayEnum; } + + public void setArrayEnum(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 bde85ff2a09..615f4806ebd 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -65,7 +66,6 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; - @JsonProperty(JSON_PROPERTY_ENUM_STRING) private EnumStringEnum enumString; /** @@ -106,7 +106,6 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) private EnumStringRequiredEnum enumStringRequired; /** @@ -145,7 +144,6 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) private EnumIntegerEnum enumInteger; /** @@ -184,14 +182,14 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) private OuterEnum outerEnum; + public EnumTest enumString(EnumStringEnum enumString) { + this.enumString = enumString; return this; } @@ -202,15 +200,22 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public EnumStringEnum getEnumString() { return enumString; } + + public void setEnumString(EnumStringEnum enumString) { this.enumString = enumString; } + public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + this.enumStringRequired = enumStringRequired; return this; } @@ -220,15 +225,22 @@ public class EnumTest { * @return enumStringRequired **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; } + + public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } + public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + this.enumInteger = enumInteger; return this; } @@ -239,15 +251,22 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public EnumIntegerEnum getEnumInteger() { return enumInteger; } + + public void setEnumInteger(EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } + public EnumTest enumNumber(EnumNumberEnum enumNumber) { + this.enumNumber = enumNumber; return this; } @@ -258,15 +277,22 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public EnumNumberEnum getEnumNumber() { return enumNumber; } + + public void setEnumNumber(EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } + public EnumTest outerEnum(OuterEnum outerEnum) { + this.outerEnum = outerEnum; return this; } @@ -277,10 +303,15 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OuterEnum getOuterEnum() { return outerEnum; } + + public void setOuterEnum(OuterEnum outerEnum) { this.outerEnum = outerEnum; } 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 1c2623fca90..e2dab74c358 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,14 +30,14 @@ import java.util.List; public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; - @JsonProperty(JSON_PROPERTY_FILE) - private java.io.File file = null; + private java.io.File file; public static final String JSON_PROPERTY_FILES = "files"; - @JsonProperty(JSON_PROPERTY_FILES) private List files = null; + public FileSchemaTestClass file(java.io.File file) { + this.file = file; return this; } @@ -47,15 +48,22 @@ public class FileSchemaTestClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FILE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public java.io.File getFile() { return file; } + + public void setFile(java.io.File file) { this.file = file; } + public FileSchemaTestClass files(List files) { + this.files = files; return this; } @@ -74,10 +82,15 @@ public class FileSchemaTestClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FILES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getFiles() { return files; } + + public void setFiles(List files) { this.files = files; } 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 509048cd5e9..b6dd912d49e 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -32,58 +33,47 @@ import org.threeten.bp.OffsetDateTime; public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; - @JsonProperty(JSON_PROPERTY_INTEGER) private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; - @JsonProperty(JSON_PROPERTY_INT32) private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; - @JsonProperty(JSON_PROPERTY_INT64) private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; - @JsonProperty(JSON_PROPERTY_NUMBER) private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; - @JsonProperty(JSON_PROPERTY_FLOAT) private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; - @JsonProperty(JSON_PROPERTY_DOUBLE) private Double _double; public static final String JSON_PROPERTY_STRING = "string"; - @JsonProperty(JSON_PROPERTY_STRING) private String string; public static final String JSON_PROPERTY_BYTE = "byte"; - @JsonProperty(JSON_PROPERTY_BYTE) private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; - @JsonProperty(JSON_PROPERTY_BINARY) private File binary; public static final String JSON_PROPERTY_DATE = "date"; - @JsonProperty(JSON_PROPERTY_DATE) private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @JsonProperty(JSON_PROPERTY_DATE_TIME) private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; - @JsonProperty(JSON_PROPERTY_UUID) private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; - @JsonProperty(JSON_PROPERTY_PASSWORD) private String password; + public FormatTest integer(Integer integer) { + this.integer = integer; return this; } @@ -96,15 +86,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getInteger() { return integer; } + + public void setInteger(Integer integer) { this.integer = integer; } + public FormatTest int32(Integer int32) { + this.int32 = int32; return this; } @@ -117,15 +114,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INT32) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getInt32() { return int32; } + + public void setInt32(Integer int32) { this.int32 = int32; } + public FormatTest int64(Long int64) { + this.int64 = int64; return this; } @@ -136,15 +140,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INT64) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getInt64() { return int64; } + + public void setInt64(Long int64) { this.int64 = int64; } + public FormatTest number(BigDecimal number) { + this.number = number; return this; } @@ -156,15 +167,22 @@ public class FormatTest { * @return number **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getNumber() { return number; } + + public void setNumber(BigDecimal number) { this.number = number; } + public FormatTest _float(Float _float) { + this._float = _float; return this; } @@ -177,15 +195,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Float getFloat() { return _float; } + + public void setFloat(Float _float) { this._float = _float; } + public FormatTest _double(Double _double) { + this._double = _double; return this; } @@ -198,15 +223,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Double getDouble() { return _double; } + + public void setDouble(Double _double) { this._double = _double; } + public FormatTest string(String string) { + this.string = string; return this; } @@ -217,15 +249,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getString() { return string; } + + public void setString(String string) { this.string = string; } + public FormatTest _byte(byte[] _byte) { + this._byte = _byte; return this; } @@ -235,15 +274,22 @@ public class FormatTest { * @return _byte **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_BYTE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public byte[] getByte() { return _byte; } + + public void setByte(byte[] _byte) { this._byte = _byte; } + public FormatTest binary(File binary) { + this.binary = binary; return this; } @@ -254,15 +300,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BINARY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public File getBinary() { return binary; } + + public void setBinary(File binary) { this.binary = binary; } + public FormatTest date(LocalDate date) { + this.date = date; return this; } @@ -272,15 +325,22 @@ public class FormatTest { * @return date **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_DATE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public LocalDate getDate() { return date; } + + public void setDate(LocalDate date) { this.date = date; } + public FormatTest dateTime(OffsetDateTime dateTime) { + this.dateTime = dateTime; return this; } @@ -291,15 +351,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OffsetDateTime getDateTime() { return dateTime; } + + public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } + public FormatTest uuid(UUID uuid) { + this.uuid = uuid; return this; } @@ -310,15 +377,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public UUID getUuid() { return uuid; } + + public void setUuid(UUID uuid) { this.uuid = uuid; } + public FormatTest password(String password) { + this.password = password; return this; } @@ -328,10 +402,15 @@ public class FormatTest { * @return password **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getPassword() { return password; } + + public void setPassword(String password) { this.password = password; } 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 ad6b28d9d1e..9c25eddaa1b 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,34 +28,44 @@ import io.swagger.annotations.ApiModelProperty; public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; - @JsonProperty(JSON_PROPERTY_BAR) private String bar; public static final String JSON_PROPERTY_FOO = "foo"; - @JsonProperty(JSON_PROPERTY_FOO) private String foo; + /** * Get bar * @return bar **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BAR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBar() { return bar; } + + + /** * Get foo * @return foo **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FOO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getFoo() { return foo; } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { 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 66b41268e51..c6193edaf98 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,7 +31,6 @@ import java.util.Map; public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) private Map> mapMapOfString = null; /** @@ -69,18 +69,17 @@ public class MapTest { } public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) private Map mapOfEnumString = null; public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) private Map directMap = null; public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) private Map indirectMap = null; + public MapTest mapMapOfString(Map> mapMapOfString) { + this.mapMapOfString = mapMapOfString; return this; } @@ -99,15 +98,22 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapMapOfString() { return mapMapOfString; } + + public void setMapMapOfString(Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } + public MapTest mapOfEnumString(Map mapOfEnumString) { + this.mapOfEnumString = mapOfEnumString; return this; } @@ -126,15 +132,22 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapOfEnumString() { return mapOfEnumString; } + + public void setMapOfEnumString(Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } + public MapTest directMap(Map directMap) { + this.directMap = directMap; return this; } @@ -153,15 +166,22 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getDirectMap() { return directMap; } + + public void setDirectMap(Map directMap) { this.directMap = directMap; } + public MapTest indirectMap(Map indirectMap) { + this.indirectMap = indirectMap; return this; } @@ -180,10 +200,15 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getIndirectMap() { return indirectMap; } + + public void setIndirectMap(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 b66724ea321..df4761bf27b 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -33,18 +34,17 @@ import org.threeten.bp.OffsetDateTime; public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; - @JsonProperty(JSON_PROPERTY_UUID) private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @JsonProperty(JSON_PROPERTY_DATE_TIME) private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; - @JsonProperty(JSON_PROPERTY_MAP) private Map map = null; + public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + this.uuid = uuid; return this; } @@ -55,15 +55,22 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public UUID getUuid() { return uuid; } + + public void setUuid(UUID uuid) { this.uuid = uuid; } + public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + this.dateTime = dateTime; return this; } @@ -74,15 +81,22 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OffsetDateTime getDateTime() { return dateTime; } + + public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } + public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + this.map = map; return this; } @@ -101,10 +115,15 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMap() { return map; } + + public void setMap(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 d86df5d7eab..0b39d4177e2 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,14 +29,14 @@ import io.swagger.annotations.ApiModelProperty; public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) private String propertyClass; + public Model200Response name(Integer name) { + this.name = name; return this; } @@ -46,15 +47,22 @@ public class Model200Response { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getName() { return name; } + + public void setName(Integer name) { this.name = name; } + public Model200Response propertyClass(String propertyClass) { + this.propertyClass = propertyClass; return this; } @@ -65,10 +73,15 @@ public class Model200Response { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPropertyClass() { return propertyClass; } + + public void setPropertyClass(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 4c9a7f87b5a..9ca6e78b233 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,18 +28,17 @@ import io.swagger.annotations.ApiModelProperty; public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; - @JsonProperty(JSON_PROPERTY_CODE) private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; - @JsonProperty(JSON_PROPERTY_TYPE) private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; - @JsonProperty(JSON_PROPERTY_MESSAGE) private String message; + public ModelApiResponse code(Integer code) { + this.code = code; return this; } @@ -49,15 +49,22 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getCode() { return code; } + + public void setCode(Integer code) { this.code = code; } + public ModelApiResponse type(String type) { + this.type = type; return this; } @@ -68,15 +75,22 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getType() { return type; } + + public void setType(String type) { this.type = type; } + public ModelApiResponse message(String message) { + this.message = message; return this; } @@ -87,10 +101,15 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } 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 9c9ac21a3fb..300598b5d0b 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,10 +29,11 @@ import io.swagger.annotations.ApiModelProperty; public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; - @JsonProperty(JSON_PROPERTY_RETURN) private Integer _return; + public ModelReturn _return(Integer _return) { + this._return = _return; return this; } @@ -42,10 +44,15 @@ public class ModelReturn { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_RETURN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getReturn() { return _return; } + + public void setReturn(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 47f89c54361..98a92f76c18 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,22 +29,20 @@ import io.swagger.annotations.ApiModelProperty; public class Name { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; - @JsonProperty(JSON_PROPERTY_PROPERTY) private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; - @JsonProperty(JSON_PROPERTY_123NUMBER) private Integer _123number; + public Name name(Integer name) { + this.name = name; return this; } @@ -53,25 +52,38 @@ public class Name { * @return name **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getName() { return name; } + + public void setName(Integer name) { this.name = name; } + /** * Get snakeCase * @return snakeCase **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getSnakeCase() { return snakeCase; } + + + public Name property(String property) { + this.property = property; return this; } @@ -82,25 +94,36 @@ public class Name { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getProperty() { return property; } + + public void setProperty(String property) { this.property = property; } + /** * Get _123number * @return _123number **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_123NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer get123number() { return _123number; } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { 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 f5331da226e..499144e4016 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,10 +29,11 @@ import java.math.BigDecimal; public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) private BigDecimal justNumber; + public NumberOnly justNumber(BigDecimal justNumber) { + this.justNumber = justNumber; return this; } @@ -42,10 +44,15 @@ public class NumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getJustNumber() { return justNumber; } + + public void setJustNumber(BigDecimal justNumber) { this.justNumber = justNumber; } 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 0d6bc154e46..fadc836b44a 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,19 +29,15 @@ import org.threeten.bp.OffsetDateTime; public class Order { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; - @JsonProperty(JSON_PROPERTY_PET_ID) private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; - @JsonProperty(JSON_PROPERTY_QUANTITY) private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; - @JsonProperty(JSON_PROPERTY_SHIP_DATE) private OffsetDateTime shipDate; /** @@ -81,14 +78,14 @@ public class Order { } public static final String JSON_PROPERTY_STATUS = "status"; - @JsonProperty(JSON_PROPERTY_STATUS) private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; - @JsonProperty(JSON_PROPERTY_COMPLETE) private Boolean complete = false; + public Order id(Long id) { + this.id = id; return this; } @@ -99,15 +96,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Order petId(Long petId) { + this.petId = petId; return this; } @@ -118,15 +122,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getPetId() { return petId; } + + public void setPetId(Long petId) { this.petId = petId; } + public Order quantity(Integer quantity) { + this.quantity = quantity; return this; } @@ -137,15 +148,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getQuantity() { return quantity; } + + public void setQuantity(Integer quantity) { this.quantity = quantity; } + public Order shipDate(OffsetDateTime shipDate) { + this.shipDate = shipDate; return this; } @@ -156,15 +174,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OffsetDateTime getShipDate() { return shipDate; } + + public void setShipDate(OffsetDateTime shipDate) { this.shipDate = shipDate; } + public Order status(StatusEnum status) { + this.status = status; return this; } @@ -175,15 +200,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "Order Status") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public StatusEnum getStatus() { return status; } + + public void setStatus(StatusEnum status) { this.status = status; } + public Order complete(Boolean complete) { + this.complete = complete; return this; } @@ -194,10 +226,15 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getComplete() { return complete; } + + public void setComplete(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 7193ba2a0c9..dab9d1be3a8 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,18 +29,17 @@ import java.math.BigDecimal; public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; - @JsonProperty(JSON_PROPERTY_MY_NUMBER) private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; - @JsonProperty(JSON_PROPERTY_MY_STRING) private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) private Boolean myBoolean; + public OuterComposite myNumber(BigDecimal myNumber) { + this.myNumber = myNumber; return this; } @@ -50,15 +50,22 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getMyNumber() { return myNumber; } + + public void setMyNumber(BigDecimal myNumber) { this.myNumber = myNumber; } + public OuterComposite myString(String myString) { + this.myString = myString; return this; } @@ -69,15 +76,22 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getMyString() { return myString; } + + public void setMyString(String myString) { this.myString = myString; } + public OuterComposite myBoolean(Boolean myBoolean) { + this.myBoolean = myBoolean; return this; } @@ -88,10 +102,15 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getMyBoolean() { return myBoolean; } + + public void setMyBoolean(Boolean myBoolean) { this.myBoolean = myBoolean; } 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 fb59d996bf6..63f1f3771b2 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,23 +32,18 @@ import org.openapitools.client.model.Tag; public class Pet { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; - @JsonProperty(JSON_PROPERTY_CATEGORY) - private Category category = null; + private Category category; public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) private List photoUrls = new ArrayList(); public static final String JSON_PROPERTY_TAGS = "tags"; - @JsonProperty(JSON_PROPERTY_TAGS) private List tags = null; /** @@ -88,10 +84,11 @@ public class Pet { } public static final String JSON_PROPERTY_STATUS = "status"; - @JsonProperty(JSON_PROPERTY_STATUS) private StatusEnum status; + public Pet id(Long id) { + this.id = id; return this; } @@ -102,15 +99,22 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Pet category(Category category) { + this.category = category; return this; } @@ -121,15 +125,22 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Category getCategory() { return category; } + + public void setCategory(Category category) { this.category = category; } + public Pet name(String name) { + this.name = name; return this; } @@ -139,15 +150,22 @@ public class Pet { * @return name **/ @ApiModelProperty(example = "doggie", required = true, value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public Pet photoUrls(List photoUrls) { + this.photoUrls = photoUrls; return this; } @@ -162,15 +180,22 @@ public class Pet { * @return photoUrls **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getPhotoUrls() { return photoUrls; } + + public void setPhotoUrls(List photoUrls) { this.photoUrls = photoUrls; } + public Pet tags(List tags) { + this.tags = tags; return this; } @@ -189,15 +214,22 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getTags() { return tags; } + + public void setTags(List tags) { this.tags = tags; } + public Pet status(StatusEnum status) { + this.status = status; return this; } @@ -208,10 +240,15 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "pet status in the store") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public StatusEnum getStatus() { return status; } + + public void setStatus(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 b0949b9e2ea..28901097fa4 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,24 +28,30 @@ import io.swagger.annotations.ApiModelProperty; public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; - @JsonProperty(JSON_PROPERTY_BAR) private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; - @JsonProperty(JSON_PROPERTY_BAZ) private String baz; + /** * Get bar * @return bar **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BAR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBar() { return bar; } + + + public ReadOnlyFirst baz(String baz) { + this.baz = baz; return this; } @@ -55,10 +62,15 @@ public class ReadOnlyFirst { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BAZ) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBaz() { return baz; } + + public void setBaz(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 a9d03234061..c7820abb0fc 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty; public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) private Long $specialPropertyName; + public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + this.$specialPropertyName = $specialPropertyName; return this; } @@ -41,10 +43,15 @@ public class SpecialModelName { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long get$SpecialPropertyName() { return $specialPropertyName; } + + public void set$SpecialPropertyName(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 45f17b22cf3..7e20ebf4a31 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,14 +28,14 @@ import io.swagger.annotations.ApiModelProperty; public class Tag { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public Tag id(Long id) { + this.id = id; return this; } @@ -45,15 +46,22 @@ public class Tag { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Tag name(String name) { + this.name = name; return this; } @@ -64,10 +72,15 @@ public class Tag { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index 0961f776fb0..37fbaac7e13 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,26 +31,23 @@ import java.util.List; public class TypeHolderDefault { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; - @JsonProperty(JSON_PROPERTY_STRING_ITEM) private String stringItem = "what"; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) private BigDecimal numberItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) private Boolean boolItem = true; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) private List arrayItem = new ArrayList(); + public TypeHolderDefault stringItem(String stringItem) { + this.stringItem = stringItem; return this; } @@ -59,15 +57,22 @@ public class TypeHolderDefault { * @return stringItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getStringItem() { return stringItem; } + + public void setStringItem(String stringItem) { this.stringItem = stringItem; } + public TypeHolderDefault numberItem(BigDecimal numberItem) { + this.numberItem = numberItem; return this; } @@ -77,15 +82,22 @@ public class TypeHolderDefault { * @return numberItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getNumberItem() { return numberItem; } + + public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } + public TypeHolderDefault integerItem(Integer integerItem) { + this.integerItem = integerItem; return this; } @@ -95,15 +107,22 @@ public class TypeHolderDefault { * @return integerItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getIntegerItem() { return integerItem; } + + public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } + public TypeHolderDefault boolItem(Boolean boolItem) { + this.boolItem = boolItem; return this; } @@ -113,15 +132,22 @@ public class TypeHolderDefault { * @return boolItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Boolean getBoolItem() { return boolItem; } + + public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } + public TypeHolderDefault arrayItem(List arrayItem) { + this.arrayItem = arrayItem; return this; } @@ -136,10 +162,15 @@ public class TypeHolderDefault { * @return arrayItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getArrayItem() { return arrayItem; } + + public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/TypeHolderExample.java index 3617c5c16b2..25ef3e65cee 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,26 +31,23 @@ import java.util.List; public class TypeHolderExample { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; - @JsonProperty(JSON_PROPERTY_STRING_ITEM) private String stringItem; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) private BigDecimal numberItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) private Boolean boolItem; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) private List arrayItem = new ArrayList(); + public TypeHolderExample stringItem(String stringItem) { + this.stringItem = stringItem; return this; } @@ -59,15 +57,22 @@ public class TypeHolderExample { * @return stringItem **/ @ApiModelProperty(example = "what", required = true, value = "") + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getStringItem() { return stringItem; } + + public void setStringItem(String stringItem) { this.stringItem = stringItem; } + public TypeHolderExample numberItem(BigDecimal numberItem) { + this.numberItem = numberItem; return this; } @@ -77,15 +82,22 @@ public class TypeHolderExample { * @return numberItem **/ @ApiModelProperty(example = "1.234", required = true, value = "") + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getNumberItem() { return numberItem; } + + public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } + public TypeHolderExample integerItem(Integer integerItem) { + this.integerItem = integerItem; return this; } @@ -95,15 +107,22 @@ public class TypeHolderExample { * @return integerItem **/ @ApiModelProperty(example = "-2", required = true, value = "") + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getIntegerItem() { return integerItem; } + + public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } + public TypeHolderExample boolItem(Boolean boolItem) { + this.boolItem = boolItem; return this; } @@ -113,15 +132,22 @@ public class TypeHolderExample { * @return boolItem **/ @ApiModelProperty(example = "true", required = true, value = "") + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Boolean getBoolItem() { return boolItem; } + + public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } + public TypeHolderExample arrayItem(List arrayItem) { + this.arrayItem = arrayItem; return this; } @@ -136,10 +162,15 @@ public class TypeHolderExample { * @return arrayItem **/ @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getArrayItem() { return arrayItem; } + + public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/User.java index 9ce7869e755..b181265d97d 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/User.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,38 +28,32 @@ import io.swagger.annotations.ApiModelProperty; public class User { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; - @JsonProperty(JSON_PROPERTY_USERNAME) private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; - @JsonProperty(JSON_PROPERTY_FIRST_NAME) private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; - @JsonProperty(JSON_PROPERTY_LAST_NAME) private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; - @JsonProperty(JSON_PROPERTY_EMAIL) private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; - @JsonProperty(JSON_PROPERTY_PASSWORD) private String password; public static final String JSON_PROPERTY_PHONE = "phone"; - @JsonProperty(JSON_PROPERTY_PHONE) private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; - @JsonProperty(JSON_PROPERTY_USER_STATUS) private Integer userStatus; + public User id(Long id) { + this.id = id; return this; } @@ -69,15 +64,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public User username(String username) { + this.username = username; return this; } @@ -88,15 +90,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getUsername() { return username; } + + public void setUsername(String username) { this.username = username; } + public User firstName(String firstName) { + this.firstName = firstName; return this; } @@ -107,15 +116,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getFirstName() { return firstName; } + + public void setFirstName(String firstName) { this.firstName = firstName; } + public User lastName(String lastName) { + this.lastName = lastName; return this; } @@ -126,15 +142,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getLastName() { return lastName; } + + public void setLastName(String lastName) { this.lastName = lastName; } + public User email(String email) { + this.email = email; return this; } @@ -145,15 +168,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getEmail() { return email; } + + public void setEmail(String email) { this.email = email; } + public User password(String password) { + this.password = password; return this; } @@ -164,15 +194,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPassword() { return password; } + + public void setPassword(String password) { this.password = password; } + public User phone(String phone) { + this.phone = phone; return this; } @@ -183,15 +220,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PHONE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPhone() { return phone; } + + public void setPhone(String phone) { this.phone = phone; } + public User userStatus(Integer userStatus) { + this.userStatus = userStatus; return this; } @@ -202,10 +246,15 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "User Status") + @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getUserStatus() { return userStatus; } + + public void setUserStatus(Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/XmlItem.java index 8be5213ca84..69467145249 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/XmlItem.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,122 +31,95 @@ import java.util.List; public class XmlItem { public static final String JSON_PROPERTY_ATTRIBUTE_STRING = "attribute_string"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) private String attributeString; public static final String JSON_PROPERTY_ATTRIBUTE_NUMBER = "attribute_number"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) private BigDecimal attributeNumber; public static final String JSON_PROPERTY_ATTRIBUTE_INTEGER = "attribute_integer"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) private Integer attributeInteger; public static final String JSON_PROPERTY_ATTRIBUTE_BOOLEAN = "attribute_boolean"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) private Boolean attributeBoolean; public static final String JSON_PROPERTY_WRAPPED_ARRAY = "wrapped_array"; - @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) private List wrappedArray = null; public static final String JSON_PROPERTY_NAME_STRING = "name_string"; - @JsonProperty(JSON_PROPERTY_NAME_STRING) private String nameString; public static final String JSON_PROPERTY_NAME_NUMBER = "name_number"; - @JsonProperty(JSON_PROPERTY_NAME_NUMBER) private BigDecimal nameNumber; public static final String JSON_PROPERTY_NAME_INTEGER = "name_integer"; - @JsonProperty(JSON_PROPERTY_NAME_INTEGER) private Integer nameInteger; public static final String JSON_PROPERTY_NAME_BOOLEAN = "name_boolean"; - @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) private Boolean nameBoolean; public static final String JSON_PROPERTY_NAME_ARRAY = "name_array"; - @JsonProperty(JSON_PROPERTY_NAME_ARRAY) private List nameArray = null; public static final String JSON_PROPERTY_NAME_WRAPPED_ARRAY = "name_wrapped_array"; - @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) private List nameWrappedArray = null; public static final String JSON_PROPERTY_PREFIX_STRING = "prefix_string"; - @JsonProperty(JSON_PROPERTY_PREFIX_STRING) private String prefixString; public static final String JSON_PROPERTY_PREFIX_NUMBER = "prefix_number"; - @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) private BigDecimal prefixNumber; public static final String JSON_PROPERTY_PREFIX_INTEGER = "prefix_integer"; - @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) private Integer prefixInteger; public static final String JSON_PROPERTY_PREFIX_BOOLEAN = "prefix_boolean"; - @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) private Boolean prefixBoolean; public static final String JSON_PROPERTY_PREFIX_ARRAY = "prefix_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) private List prefixArray = null; public static final String JSON_PROPERTY_PREFIX_WRAPPED_ARRAY = "prefix_wrapped_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) private List prefixWrappedArray = null; public static final String JSON_PROPERTY_NAMESPACE_STRING = "namespace_string"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) private String namespaceString; public static final String JSON_PROPERTY_NAMESPACE_NUMBER = "namespace_number"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) private BigDecimal namespaceNumber; public static final String JSON_PROPERTY_NAMESPACE_INTEGER = "namespace_integer"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) private Integer namespaceInteger; public static final String JSON_PROPERTY_NAMESPACE_BOOLEAN = "namespace_boolean"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) private Boolean namespaceBoolean; public static final String JSON_PROPERTY_NAMESPACE_ARRAY = "namespace_array"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) private List namespaceArray = null; public static final String JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY = "namespace_wrapped_array"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) private List namespaceWrappedArray = null; public static final String JSON_PROPERTY_PREFIX_NS_STRING = "prefix_ns_string"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) private String prefixNsString; public static final String JSON_PROPERTY_PREFIX_NS_NUMBER = "prefix_ns_number"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) private BigDecimal prefixNsNumber; public static final String JSON_PROPERTY_PREFIX_NS_INTEGER = "prefix_ns_integer"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) private Integer prefixNsInteger; public static final String JSON_PROPERTY_PREFIX_NS_BOOLEAN = "prefix_ns_boolean"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) private Boolean prefixNsBoolean; public static final String JSON_PROPERTY_PREFIX_NS_ARRAY = "prefix_ns_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) private List prefixNsArray = null; public static final String JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY = "prefix_ns_wrapped_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) private List prefixNsWrappedArray = null; + public XmlItem attributeString(String attributeString) { + this.attributeString = attributeString; return this; } @@ -156,15 +130,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getAttributeString() { return attributeString; } + + public void setAttributeString(String attributeString) { this.attributeString = attributeString; } + public XmlItem attributeNumber(BigDecimal attributeNumber) { + this.attributeNumber = attributeNumber; return this; } @@ -175,15 +156,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getAttributeNumber() { return attributeNumber; } + + public void setAttributeNumber(BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } + public XmlItem attributeInteger(Integer attributeInteger) { + this.attributeInteger = attributeInteger; return this; } @@ -194,15 +182,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getAttributeInteger() { return attributeInteger; } + + public void setAttributeInteger(Integer attributeInteger) { this.attributeInteger = attributeInteger; } + public XmlItem attributeBoolean(Boolean attributeBoolean) { + this.attributeBoolean = attributeBoolean; return this; } @@ -213,15 +208,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getAttributeBoolean() { return attributeBoolean; } + + public void setAttributeBoolean(Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } + public XmlItem wrappedArray(List wrappedArray) { + this.wrappedArray = wrappedArray; return this; } @@ -240,15 +242,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getWrappedArray() { return wrappedArray; } + + public void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } + public XmlItem nameString(String nameString) { + this.nameString = nameString; return this; } @@ -259,15 +268,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_NAME_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getNameString() { return nameString; } + + public void setNameString(String nameString) { this.nameString = nameString; } + public XmlItem nameNumber(BigDecimal nameNumber) { + this.nameNumber = nameNumber; return this; } @@ -278,15 +294,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_NAME_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getNameNumber() { return nameNumber; } + + public void setNameNumber(BigDecimal nameNumber) { this.nameNumber = nameNumber; } + public XmlItem nameInteger(Integer nameInteger) { + this.nameInteger = nameInteger; return this; } @@ -297,15 +320,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_NAME_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getNameInteger() { return nameInteger; } + + public void setNameInteger(Integer nameInteger) { this.nameInteger = nameInteger; } + public XmlItem nameBoolean(Boolean nameBoolean) { + this.nameBoolean = nameBoolean; return this; } @@ -316,15 +346,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getNameBoolean() { return nameBoolean; } + + public void setNameBoolean(Boolean nameBoolean) { this.nameBoolean = nameBoolean; } + public XmlItem nameArray(List nameArray) { + this.nameArray = nameArray; return this; } @@ -343,15 +380,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNameArray() { return nameArray; } + + public void setNameArray(List nameArray) { this.nameArray = nameArray; } + public XmlItem nameWrappedArray(List nameWrappedArray) { + this.nameWrappedArray = nameWrappedArray; return this; } @@ -370,15 +414,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNameWrappedArray() { return nameWrappedArray; } + + public void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } + public XmlItem prefixString(String prefixString) { + this.prefixString = prefixString; return this; } @@ -389,15 +440,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPrefixString() { return prefixString; } + + public void setPrefixString(String prefixString) { this.prefixString = prefixString; } + public XmlItem prefixNumber(BigDecimal prefixNumber) { + this.prefixNumber = prefixNumber; return this; } @@ -408,15 +466,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getPrefixNumber() { return prefixNumber; } + + public void setPrefixNumber(BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } + public XmlItem prefixInteger(Integer prefixInteger) { + this.prefixInteger = prefixInteger; return this; } @@ -427,15 +492,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getPrefixInteger() { return prefixInteger; } + + public void setPrefixInteger(Integer prefixInteger) { this.prefixInteger = prefixInteger; } + public XmlItem prefixBoolean(Boolean prefixBoolean) { + this.prefixBoolean = prefixBoolean; return this; } @@ -446,15 +518,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getPrefixBoolean() { return prefixBoolean; } + + public void setPrefixBoolean(Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } + public XmlItem prefixArray(List prefixArray) { + this.prefixArray = prefixArray; return this; } @@ -473,15 +552,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixArray() { return prefixArray; } + + public void setPrefixArray(List prefixArray) { this.prefixArray = prefixArray; } + public XmlItem prefixWrappedArray(List prefixWrappedArray) { + this.prefixWrappedArray = prefixWrappedArray; return this; } @@ -500,15 +586,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixWrappedArray() { return prefixWrappedArray; } + + public void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } + public XmlItem namespaceString(String namespaceString) { + this.namespaceString = namespaceString; return this; } @@ -519,15 +612,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getNamespaceString() { return namespaceString; } + + public void setNamespaceString(String namespaceString) { this.namespaceString = namespaceString; } + public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + this.namespaceNumber = namespaceNumber; return this; } @@ -538,15 +638,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getNamespaceNumber() { return namespaceNumber; } + + public void setNamespaceNumber(BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } + public XmlItem namespaceInteger(Integer namespaceInteger) { + this.namespaceInteger = namespaceInteger; return this; } @@ -557,15 +664,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getNamespaceInteger() { return namespaceInteger; } + + public void setNamespaceInteger(Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } + public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + this.namespaceBoolean = namespaceBoolean; return this; } @@ -576,15 +690,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getNamespaceBoolean() { return namespaceBoolean; } + + public void setNamespaceBoolean(Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } + public XmlItem namespaceArray(List namespaceArray) { + this.namespaceArray = namespaceArray; return this; } @@ -603,15 +724,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNamespaceArray() { return namespaceArray; } + + public void setNamespaceArray(List namespaceArray) { this.namespaceArray = namespaceArray; } + public XmlItem namespaceWrappedArray(List namespaceWrappedArray) { + this.namespaceWrappedArray = namespaceWrappedArray; return this; } @@ -630,15 +758,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNamespaceWrappedArray() { return namespaceWrappedArray; } + + public void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } + public XmlItem prefixNsString(String prefixNsString) { + this.prefixNsString = prefixNsString; return this; } @@ -649,15 +784,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPrefixNsString() { return prefixNsString; } + + public void setPrefixNsString(String prefixNsString) { this.prefixNsString = prefixNsString; } + public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + this.prefixNsNumber = prefixNsNumber; return this; } @@ -668,15 +810,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getPrefixNsNumber() { return prefixNsNumber; } + + public void setPrefixNsNumber(BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } + public XmlItem prefixNsInteger(Integer prefixNsInteger) { + this.prefixNsInteger = prefixNsInteger; return this; } @@ -687,15 +836,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getPrefixNsInteger() { return prefixNsInteger; } + + public void setPrefixNsInteger(Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } + public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + this.prefixNsBoolean = prefixNsBoolean; return this; } @@ -706,15 +862,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getPrefixNsBoolean() { return prefixNsBoolean; } + + public void setPrefixNsBoolean(Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } + public XmlItem prefixNsArray(List prefixNsArray) { + this.prefixNsArray = prefixNsArray; return this; } @@ -733,15 +896,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixNsArray() { return prefixNsArray; } + + public void setPrefixNsArray(List prefixNsArray) { this.prefixNsArray = prefixNsArray; } + public XmlItem prefixNsWrappedArray(List prefixNsWrappedArray) { + this.prefixNsWrappedArray = prefixNsWrappedArray; return this; } @@ -760,10 +930,15 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixNsWrappedArray() { return prefixNsWrappedArray; } + + public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index 6639252ccb3..13e761a8d9c 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -35,7 +35,9 @@ public class AdditionalPropertiesAnyType extends HashMap { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public AdditionalPropertiesAnyType name(String name) { + this.name = name; return this; } @@ -46,10 +48,13 @@ public class AdditionalPropertiesAnyType extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 2c3f2ca0a46..17e320b0a95 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -36,7 +36,9 @@ public class AdditionalPropertiesArray extends HashMap { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public AdditionalPropertiesArray name(String name) { + this.name = name; return this; } @@ -47,10 +49,13 @@ public class AdditionalPropertiesArray extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 7c4a5248c07..8a51fa9f778 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -35,7 +35,9 @@ public class AdditionalPropertiesBoolean extends HashMap { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public AdditionalPropertiesBoolean name(String name) { + this.name = name; return this; } @@ -46,10 +48,13 @@ public class AdditionalPropertiesBoolean extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 58273e62fb0..a4a797bb487 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -67,17 +67,19 @@ public class AdditionalPropertiesClass { public static final String SERIALIZED_NAME_ANYTYPE1 = "anytype_1"; @SerializedName(SERIALIZED_NAME_ANYTYPE1) - private Object anytype1 = null; + private Object anytype1; public static final String SERIALIZED_NAME_ANYTYPE2 = "anytype_2"; @SerializedName(SERIALIZED_NAME_ANYTYPE2) - private Object anytype2 = null; + private Object anytype2; public static final String SERIALIZED_NAME_ANYTYPE3 = "anytype_3"; @SerializedName(SERIALIZED_NAME_ANYTYPE3) - private Object anytype3 = null; + private Object anytype3; + public AdditionalPropertiesClass mapString(Map mapString) { + this.mapString = mapString; return this; } @@ -96,15 +98,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getMapString() { return mapString; } + + public void setMapString(Map mapString) { this.mapString = mapString; } + public AdditionalPropertiesClass mapNumber(Map mapNumber) { + this.mapNumber = mapNumber; return this; } @@ -123,15 +130,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getMapNumber() { return mapNumber; } + + public void setMapNumber(Map mapNumber) { this.mapNumber = mapNumber; } + public AdditionalPropertiesClass mapInteger(Map mapInteger) { + this.mapInteger = mapInteger; return this; } @@ -150,15 +162,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getMapInteger() { return mapInteger; } + + public void setMapInteger(Map mapInteger) { this.mapInteger = mapInteger; } + public AdditionalPropertiesClass mapBoolean(Map mapBoolean) { + this.mapBoolean = mapBoolean; return this; } @@ -177,15 +194,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getMapBoolean() { return mapBoolean; } + + public void setMapBoolean(Map mapBoolean) { this.mapBoolean = mapBoolean; } + public AdditionalPropertiesClass mapArrayInteger(Map> mapArrayInteger) { + this.mapArrayInteger = mapArrayInteger; return this; } @@ -204,15 +226,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map> getMapArrayInteger() { return mapArrayInteger; } + + public void setMapArrayInteger(Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; } + public AdditionalPropertiesClass mapArrayAnytype(Map> mapArrayAnytype) { + this.mapArrayAnytype = mapArrayAnytype; return this; } @@ -231,15 +258,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map> getMapArrayAnytype() { return mapArrayAnytype; } + + public void setMapArrayAnytype(Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; } + public AdditionalPropertiesClass mapMapString(Map> mapMapString) { + this.mapMapString = mapMapString; return this; } @@ -258,15 +290,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map> getMapMapString() { return mapMapString; } + + public void setMapMapString(Map> mapMapString) { this.mapMapString = mapMapString; } + public AdditionalPropertiesClass mapMapAnytype(Map> mapMapAnytype) { + this.mapMapAnytype = mapMapAnytype; return this; } @@ -285,15 +322,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map> getMapMapAnytype() { return mapMapAnytype; } + + public void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } + public AdditionalPropertiesClass anytype1(Object anytype1) { + this.anytype1 = anytype1; return this; } @@ -304,15 +346,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Object getAnytype1() { return anytype1; } + + public void setAnytype1(Object anytype1) { this.anytype1 = anytype1; } + public AdditionalPropertiesClass anytype2(Object anytype2) { + this.anytype2 = anytype2; return this; } @@ -323,15 +370,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Object getAnytype2() { return anytype2; } + + public void setAnytype2(Object anytype2) { this.anytype2 = anytype2; } + public AdditionalPropertiesClass anytype3(Object anytype3) { + this.anytype3 = anytype3; return this; } @@ -342,10 +394,13 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Object getAnytype3() { return anytype3; } + + public void setAnytype3(Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 10df3df74c7..4f2e3ef333e 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -35,7 +35,9 @@ public class AdditionalPropertiesInteger extends HashMap { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public AdditionalPropertiesInteger name(String name) { + this.name = name; return this; } @@ -46,10 +48,13 @@ public class AdditionalPropertiesInteger extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index 33719cab261..80ce73d422b 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -36,7 +36,9 @@ public class AdditionalPropertiesNumber extends HashMap { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public AdditionalPropertiesNumber name(String name) { + this.name = name; return this; } @@ -47,10 +49,13 @@ public class AdditionalPropertiesNumber extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index e37e04b01a6..bc5cc81bf64 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -35,7 +35,9 @@ public class AdditionalPropertiesObject extends HashMap { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public AdditionalPropertiesObject name(String name) { + this.name = name; return this; } @@ -46,10 +48,13 @@ public class AdditionalPropertiesObject extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index cfbf74f5b32..2e9c0c7ffd9 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -35,7 +35,9 @@ public class AdditionalPropertiesString extends HashMap { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public AdditionalPropertiesString name(String name) { + this.name = name; return this; } @@ -46,10 +48,13 @@ public class AdditionalPropertiesString extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Animal.java index 0a02419dbf1..dd6b313c58c 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Animal.java @@ -41,7 +41,9 @@ public class Animal { public Animal() { this.className = this.getClass().getSimpleName(); } + public Animal className(String className) { + this.className = className; return this; } @@ -51,15 +53,20 @@ public class Animal { * @return className **/ @ApiModelProperty(required = true, value = "") + public String getClassName() { return className; } + + public void setClassName(String className) { this.className = className; } + public Animal color(String color) { + this.color = color; return this; } @@ -70,10 +77,13 @@ public class Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getColor() { return color; } + + public void setColor(String color) { this.color = color; } diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index ad0865658ad..1af52a3a988 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -36,7 +36,9 @@ public class ArrayOfArrayOfNumberOnly { @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_NUMBER) private List> arrayArrayNumber = null; + public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + this.arrayArrayNumber = arrayArrayNumber; return this; } @@ -55,10 +57,13 @@ public class ArrayOfArrayOfNumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List> getArrayArrayNumber() { return arrayArrayNumber; } + + public void setArrayArrayNumber(List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 0b30fa73f86..eba8d40a289 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -36,7 +36,9 @@ public class ArrayOfNumberOnly { @SerializedName(SERIALIZED_NAME_ARRAY_NUMBER) private List arrayNumber = null; + public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + this.arrayNumber = arrayNumber; return this; } @@ -55,10 +57,13 @@ public class ArrayOfNumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getArrayNumber() { return arrayNumber; } + + public void setArrayNumber(List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ArrayTest.java index acfcd76498e..7ba0d8b77e0 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -44,7 +44,9 @@ public class ArrayTest { @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_OF_MODEL) private List> arrayArrayOfModel = null; + public ArrayTest arrayOfString(List arrayOfString) { + this.arrayOfString = arrayOfString; return this; } @@ -63,15 +65,20 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getArrayOfString() { return arrayOfString; } + + public void setArrayOfString(List arrayOfString) { this.arrayOfString = arrayOfString; } + public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + this.arrayArrayOfInteger = arrayArrayOfInteger; return this; } @@ -90,15 +97,20 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List> getArrayArrayOfInteger() { return arrayArrayOfInteger; } + + public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } + public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + this.arrayArrayOfModel = arrayArrayOfModel; return this; } @@ -117,10 +129,13 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List> getArrayArrayOfModel() { return arrayArrayOfModel; } + + public void setArrayArrayOfModel(List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Capitalization.java index ef40fe949fd..dc70cf2b597 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Capitalization.java @@ -53,7 +53,9 @@ public class Capitalization { @SerializedName(SERIALIZED_NAME_A_T_T_N_A_M_E) private String ATT_NAME; + public Capitalization smallCamel(String smallCamel) { + this.smallCamel = smallCamel; return this; } @@ -64,15 +66,20 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getSmallCamel() { return smallCamel; } + + public void setSmallCamel(String smallCamel) { this.smallCamel = smallCamel; } + public Capitalization capitalCamel(String capitalCamel) { + this.capitalCamel = capitalCamel; return this; } @@ -83,15 +90,20 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getCapitalCamel() { return capitalCamel; } + + public void setCapitalCamel(String capitalCamel) { this.capitalCamel = capitalCamel; } + public Capitalization smallSnake(String smallSnake) { + this.smallSnake = smallSnake; return this; } @@ -102,15 +114,20 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getSmallSnake() { return smallSnake; } + + public void setSmallSnake(String smallSnake) { this.smallSnake = smallSnake; } + public Capitalization capitalSnake(String capitalSnake) { + this.capitalSnake = capitalSnake; return this; } @@ -121,15 +138,20 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getCapitalSnake() { return capitalSnake; } + + public void setCapitalSnake(String capitalSnake) { this.capitalSnake = capitalSnake; } + public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -140,15 +162,20 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getScAETHFlowPoints() { return scAETHFlowPoints; } + + public void setScAETHFlowPoints(String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } + public Capitalization ATT_NAME(String ATT_NAME) { + this.ATT_NAME = ATT_NAME; return this; } @@ -159,10 +186,13 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "Name of the pet ") + public String getATTNAME() { return ATT_NAME; } + + public void setATTNAME(String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Cat.java index c600502f716..8829c547501 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Cat.java @@ -35,7 +35,9 @@ public class Cat extends Animal { @SerializedName(SERIALIZED_NAME_DECLAWED) private Boolean declawed; + public Cat declawed(Boolean declawed) { + this.declawed = declawed; return this; } @@ -46,10 +48,13 @@ public class Cat extends Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Boolean getDeclawed() { return declawed; } + + public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/CatAllOf.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/CatAllOf.java index 29b3658551e..d20d19aa53f 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/CatAllOf.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/CatAllOf.java @@ -33,7 +33,9 @@ public class CatAllOf { @SerializedName(SERIALIZED_NAME_DECLAWED) private Boolean declawed; + public CatAllOf declawed(Boolean declawed) { + this.declawed = declawed; return this; } @@ -44,10 +46,13 @@ public class CatAllOf { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Boolean getDeclawed() { return declawed; } + + public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Category.java index 1968763722d..f335f0b5217 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Category.java @@ -37,7 +37,9 @@ public class Category { @SerializedName(SERIALIZED_NAME_NAME) private String name = "default-name"; + public Category id(Long id) { + this.id = id; return this; } @@ -48,15 +50,20 @@ public class Category { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Category name(String name) { + this.name = name; return this; } @@ -66,10 +73,13 @@ public class Category { * @return name **/ @ApiModelProperty(required = true, value = "") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ClassModel.java index 52245d70502..83c30b802d4 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ClassModel.java @@ -34,7 +34,9 @@ public class ClassModel { @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) private String propertyClass; + public ClassModel propertyClass(String propertyClass) { + this.propertyClass = propertyClass; return this; } @@ -45,10 +47,13 @@ public class ClassModel { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getPropertyClass() { return propertyClass; } + + public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Client.java index e5ece3536d6..192c0ce6e5b 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Client.java @@ -33,7 +33,9 @@ public class Client { @SerializedName(SERIALIZED_NAME_CLIENT) private String client; + public Client client(String client) { + this.client = client; return this; } @@ -44,10 +46,13 @@ public class Client { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getClient() { return client; } + + public void setClient(String client) { this.client = client; } diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Dog.java index d877eb2f370..2f8a4652247 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Dog.java @@ -35,7 +35,9 @@ public class Dog extends Animal { @SerializedName(SERIALIZED_NAME_BREED) private String breed; + public Dog breed(String breed) { + this.breed = breed; return this; } @@ -46,10 +48,13 @@ public class Dog extends Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getBreed() { return breed; } + + public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/DogAllOf.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/DogAllOf.java index 54483f2227d..96610291473 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/DogAllOf.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/DogAllOf.java @@ -33,7 +33,9 @@ public class DogAllOf { @SerializedName(SERIALIZED_NAME_BREED) private String breed; + public DogAllOf breed(String breed) { + this.breed = breed; return this; } @@ -44,10 +46,13 @@ public class DogAllOf { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getBreed() { return breed; } + + public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/EnumArrays.java index 8d3e9bd58a3..4587357d5b0 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -133,7 +133,9 @@ public class EnumArrays { @SerializedName(SERIALIZED_NAME_ARRAY_ENUM) private List arrayEnum = null; + public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + this.justSymbol = justSymbol; return this; } @@ -144,15 +146,20 @@ public class EnumArrays { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public JustSymbolEnum getJustSymbol() { return justSymbol; } + + public void setJustSymbol(JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } + public EnumArrays arrayEnum(List arrayEnum) { + this.arrayEnum = arrayEnum; return this; } @@ -171,10 +178,13 @@ public class EnumArrays { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getArrayEnum() { return arrayEnum; } + + public void setArrayEnum(List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/EnumTest.java index 679584204fb..34f8781e089 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/EnumTest.java @@ -242,7 +242,9 @@ public class EnumTest { @SerializedName(SERIALIZED_NAME_OUTER_ENUM) private OuterEnum outerEnum; + public EnumTest enumString(EnumStringEnum enumString) { + this.enumString = enumString; return this; } @@ -253,15 +255,20 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public EnumStringEnum getEnumString() { return enumString; } + + public void setEnumString(EnumStringEnum enumString) { this.enumString = enumString; } + public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + this.enumStringRequired = enumStringRequired; return this; } @@ -271,15 +278,20 @@ public class EnumTest { * @return enumStringRequired **/ @ApiModelProperty(required = true, value = "") + public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; } + + public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } + public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + this.enumInteger = enumInteger; return this; } @@ -290,15 +302,20 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public EnumIntegerEnum getEnumInteger() { return enumInteger; } + + public void setEnumInteger(EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } + public EnumTest enumNumber(EnumNumberEnum enumNumber) { + this.enumNumber = enumNumber; return this; } @@ -309,15 +326,20 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public EnumNumberEnum getEnumNumber() { return enumNumber; } + + public void setEnumNumber(EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } + public EnumTest outerEnum(OuterEnum outerEnum) { + this.outerEnum = outerEnum; return this; } @@ -328,10 +350,13 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public OuterEnum getOuterEnum() { return outerEnum; } + + public void setOuterEnum(OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 29fe111764c..45ce4347b2d 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -33,13 +33,15 @@ import java.util.List; public class FileSchemaTestClass { public static final String SERIALIZED_NAME_FILE = "file"; @SerializedName(SERIALIZED_NAME_FILE) - private java.io.File file = null; + private java.io.File file; public static final String SERIALIZED_NAME_FILES = "files"; @SerializedName(SERIALIZED_NAME_FILES) private List files = null; + public FileSchemaTestClass file(java.io.File file) { + this.file = file; return this; } @@ -50,15 +52,20 @@ public class FileSchemaTestClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public java.io.File getFile() { return file; } + + public void setFile(java.io.File file) { this.file = file; } + public FileSchemaTestClass files(List files) { + this.files = files; return this; } @@ -77,10 +84,13 @@ public class FileSchemaTestClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getFiles() { return files; } + + public void setFiles(List files) { this.files = files; } diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/FormatTest.java index 71556d37db1..271e7db17b6 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/FormatTest.java @@ -86,7 +86,9 @@ public class FormatTest { @SerializedName(SERIALIZED_NAME_PASSWORD) private String password; + public FormatTest integer(Integer integer) { + this.integer = integer; return this; } @@ -99,15 +101,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer getInteger() { return integer; } + + public void setInteger(Integer integer) { this.integer = integer; } + public FormatTest int32(Integer int32) { + this.int32 = int32; return this; } @@ -120,15 +127,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer getInt32() { return int32; } + + public void setInt32(Integer int32) { this.int32 = int32; } + public FormatTest int64(Long int64) { + this.int64 = int64; return this; } @@ -139,15 +151,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getInt64() { return int64; } + + public void setInt64(Long int64) { this.int64 = int64; } + public FormatTest number(BigDecimal number) { + this.number = number; return this; } @@ -159,15 +176,20 @@ public class FormatTest { * @return number **/ @ApiModelProperty(required = true, value = "") + public BigDecimal getNumber() { return number; } + + public void setNumber(BigDecimal number) { this.number = number; } + public FormatTest _float(Float _float) { + this._float = _float; return this; } @@ -180,15 +202,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Float getFloat() { return _float; } + + public void setFloat(Float _float) { this._float = _float; } + public FormatTest _double(Double _double) { + this._double = _double; return this; } @@ -201,15 +228,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Double getDouble() { return _double; } + + public void setDouble(Double _double) { this._double = _double; } + public FormatTest string(String string) { + this.string = string; return this; } @@ -220,15 +252,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getString() { return string; } + + public void setString(String string) { this.string = string; } + public FormatTest _byte(byte[] _byte) { + this._byte = _byte; return this; } @@ -238,15 +275,20 @@ public class FormatTest { * @return _byte **/ @ApiModelProperty(required = true, value = "") + public byte[] getByte() { return _byte; } + + public void setByte(byte[] _byte) { this._byte = _byte; } + public FormatTest binary(File binary) { + this.binary = binary; return this; } @@ -257,15 +299,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public File getBinary() { return binary; } + + public void setBinary(File binary) { this.binary = binary; } + public FormatTest date(LocalDate date) { + this.date = date; return this; } @@ -275,15 +322,20 @@ public class FormatTest { * @return date **/ @ApiModelProperty(required = true, value = "") + public LocalDate getDate() { return date; } + + public void setDate(LocalDate date) { this.date = date; } + public FormatTest dateTime(DateTime dateTime) { + this.dateTime = dateTime; return this; } @@ -294,15 +346,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public DateTime getDateTime() { return dateTime; } + + public void setDateTime(DateTime dateTime) { this.dateTime = dateTime; } + public FormatTest uuid(UUID uuid) { + this.uuid = uuid; return this; } @@ -313,15 +370,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + public UUID getUuid() { return uuid; } + + public void setUuid(UUID uuid) { this.uuid = uuid; } + public FormatTest password(String password) { + this.password = password; return this; } @@ -331,10 +393,13 @@ public class FormatTest { * @return password **/ @ApiModelProperty(required = true, value = "") + public String getPassword() { return password; } + + public void setPassword(String password) { this.password = password; } diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 02225d278c4..8fcb2684643 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -37,27 +37,35 @@ public class HasOnlyReadOnly { @SerializedName(SERIALIZED_NAME_FOO) private String foo; + /** * Get bar * @return bar **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getBar() { return bar; } + + + /** * Get foo * @return foo **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getFoo() { return foo; } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/MapTest.java index 60892fc9476..609587e370f 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/MapTest.java @@ -95,7 +95,9 @@ public class MapTest { @SerializedName(SERIALIZED_NAME_INDIRECT_MAP) private Map indirectMap = null; + public MapTest mapMapOfString(Map> mapMapOfString) { + this.mapMapOfString = mapMapOfString; return this; } @@ -114,15 +116,20 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map> getMapMapOfString() { return mapMapOfString; } + + public void setMapMapOfString(Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } + public MapTest mapOfEnumString(Map mapOfEnumString) { + this.mapOfEnumString = mapOfEnumString; return this; } @@ -141,15 +148,20 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getMapOfEnumString() { return mapOfEnumString; } + + public void setMapOfEnumString(Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } + public MapTest directMap(Map directMap) { + this.directMap = directMap; return this; } @@ -168,15 +180,20 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getDirectMap() { return directMap; } + + public void setDirectMap(Map directMap) { this.directMap = directMap; } + public MapTest indirectMap(Map indirectMap) { + this.indirectMap = indirectMap; return this; } @@ -195,10 +212,13 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getIndirectMap() { return indirectMap; } + + public void setIndirectMap(Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 156823a2d23..a9a390d1ffc 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -47,7 +47,9 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @SerializedName(SERIALIZED_NAME_MAP) private Map map = null; + public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + this.uuid = uuid; return this; } @@ -58,15 +60,20 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public UUID getUuid() { return uuid; } + + public void setUuid(UUID uuid) { this.uuid = uuid; } + public MixedPropertiesAndAdditionalPropertiesClass dateTime(DateTime dateTime) { + this.dateTime = dateTime; return this; } @@ -77,15 +84,20 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public DateTime getDateTime() { return dateTime; } + + public void setDateTime(DateTime dateTime) { this.dateTime = dateTime; } + public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + this.map = map; return this; } @@ -104,10 +116,13 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getMap() { return map; } + + public void setMap(Map map) { this.map = map; } diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Model200Response.java index 3167560a9dd..42a61d0d877 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Model200Response.java @@ -38,7 +38,9 @@ public class Model200Response { @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) private String propertyClass; + public Model200Response name(Integer name) { + this.name = name; return this; } @@ -49,15 +51,20 @@ public class Model200Response { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer getName() { return name; } + + public void setName(Integer name) { this.name = name; } + public Model200Response propertyClass(String propertyClass) { + this.propertyClass = propertyClass; return this; } @@ -68,10 +75,13 @@ public class Model200Response { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getPropertyClass() { return propertyClass; } + + public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 84d2fcc4d39..db323b17602 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -41,7 +41,9 @@ public class ModelApiResponse { @SerializedName(SERIALIZED_NAME_MESSAGE) private String message; + public ModelApiResponse code(Integer code) { + this.code = code; return this; } @@ -52,15 +54,20 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer getCode() { return code; } + + public void setCode(Integer code) { this.code = code; } + public ModelApiResponse type(String type) { + this.type = type; return this; } @@ -71,15 +78,20 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } + public ModelApiResponse message(String message) { + this.message = message; return this; } @@ -90,10 +102,13 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ModelReturn.java index c13f1babe59..da9f1a20259 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -34,7 +34,9 @@ public class ModelReturn { @SerializedName(SERIALIZED_NAME_RETURN) private Integer _return; + public ModelReturn _return(Integer _return) { + this._return = _return; return this; } @@ -45,10 +47,13 @@ public class ModelReturn { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer getReturn() { return _return; } + + public void setReturn(Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Name.java index 221821d4e19..f775f97b3f1 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Name.java @@ -46,7 +46,9 @@ public class Name { @SerializedName(SERIALIZED_NAME_123NUMBER) private Integer _123number; + public Name name(Integer name) { + this.name = name; return this; } @@ -56,25 +58,34 @@ public class Name { * @return name **/ @ApiModelProperty(required = true, value = "") + public Integer getName() { return name; } + + public void setName(Integer name) { this.name = name; } + /** * Get snakeCase * @return snakeCase **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer getSnakeCase() { return snakeCase; } + + + public Name property(String property) { + this.property = property; return this; } @@ -85,25 +96,32 @@ public class Name { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getProperty() { return property; } + + public void setProperty(String property) { this.property = property; } + /** * Get _123number * @return _123number **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer get123number() { return _123number; } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/NumberOnly.java index 9a068c2e1ee..1a7bd689645 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -34,7 +34,9 @@ public class NumberOnly { @SerializedName(SERIALIZED_NAME_JUST_NUMBER) private BigDecimal justNumber; + public NumberOnly justNumber(BigDecimal justNumber) { + this.justNumber = justNumber; return this; } @@ -45,10 +47,13 @@ public class NumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public BigDecimal getJustNumber() { return justNumber; } + + public void setJustNumber(BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Order.java index e79f3237204..c23900aa91e 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Order.java @@ -103,7 +103,9 @@ public class Order { @SerializedName(SERIALIZED_NAME_COMPLETE) private Boolean complete = false; + public Order id(Long id) { + this.id = id; return this; } @@ -114,15 +116,20 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Order petId(Long petId) { + this.petId = petId; return this; } @@ -133,15 +140,20 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getPetId() { return petId; } + + public void setPetId(Long petId) { this.petId = petId; } + public Order quantity(Integer quantity) { + this.quantity = quantity; return this; } @@ -152,15 +164,20 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer getQuantity() { return quantity; } + + public void setQuantity(Integer quantity) { this.quantity = quantity; } + public Order shipDate(DateTime shipDate) { + this.shipDate = shipDate; return this; } @@ -171,15 +188,20 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public DateTime getShipDate() { return shipDate; } + + public void setShipDate(DateTime shipDate) { this.shipDate = shipDate; } + public Order status(StatusEnum status) { + this.status = status; return this; } @@ -190,15 +212,20 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "Order Status") + public StatusEnum getStatus() { return status; } + + public void setStatus(StatusEnum status) { this.status = status; } + public Order complete(Boolean complete) { + this.complete = complete; return this; } @@ -209,10 +236,13 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Boolean getComplete() { return complete; } + + public void setComplete(Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/OuterComposite.java index 690b6bde4be..3db0e2e26c9 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -42,7 +42,9 @@ public class OuterComposite { @SerializedName(SERIALIZED_NAME_MY_BOOLEAN) private Boolean myBoolean; + public OuterComposite myNumber(BigDecimal myNumber) { + this.myNumber = myNumber; return this; } @@ -53,15 +55,20 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public BigDecimal getMyNumber() { return myNumber; } + + public void setMyNumber(BigDecimal myNumber) { this.myNumber = myNumber; } + public OuterComposite myString(String myString) { + this.myString = myString; return this; } @@ -72,15 +79,20 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getMyString() { return myString; } + + public void setMyString(String myString) { this.myString = myString; } + public OuterComposite myBoolean(Boolean myBoolean) { + this.myBoolean = myBoolean; return this; } @@ -91,10 +103,13 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Boolean getMyBoolean() { return myBoolean; } + + public void setMyBoolean(Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Pet.java index ae8237d55b9..943b3103f03 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Pet.java @@ -39,7 +39,7 @@ public class Pet { public static final String SERIALIZED_NAME_CATEGORY = "category"; @SerializedName(SERIALIZED_NAME_CATEGORY) - private Category category = null; + private Category category; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -106,7 +106,9 @@ public class Pet { @SerializedName(SERIALIZED_NAME_STATUS) private StatusEnum status; + public Pet id(Long id) { + this.id = id; return this; } @@ -117,15 +119,20 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Pet category(Category category) { + this.category = category; return this; } @@ -136,15 +143,20 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Category getCategory() { return category; } + + public void setCategory(Category category) { this.category = category; } + public Pet name(String name) { + this.name = name; return this; } @@ -154,15 +166,20 @@ public class Pet { * @return name **/ @ApiModelProperty(example = "doggie", required = true, value = "") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public Pet photoUrls(List photoUrls) { + this.photoUrls = photoUrls; return this; } @@ -177,15 +194,20 @@ public class Pet { * @return photoUrls **/ @ApiModelProperty(required = true, value = "") + public List getPhotoUrls() { return photoUrls; } + + public void setPhotoUrls(List photoUrls) { this.photoUrls = photoUrls; } + public Pet tags(List tags) { + this.tags = tags; return this; } @@ -204,15 +226,20 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getTags() { return tags; } + + public void setTags(List tags) { this.tags = tags; } + public Pet status(StatusEnum status) { + this.status = status; return this; } @@ -223,10 +250,13 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "pet status in the store") + public StatusEnum getStatus() { return status; } + + public void setStatus(StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 84780d763a0..2501babb56e 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -37,17 +37,23 @@ public class ReadOnlyFirst { @SerializedName(SERIALIZED_NAME_BAZ) private String baz; + /** * Get bar * @return bar **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getBar() { return bar; } + + + public ReadOnlyFirst baz(String baz) { + this.baz = baz; return this; } @@ -58,10 +64,13 @@ public class ReadOnlyFirst { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getBaz() { return baz; } + + public void setBaz(String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/SpecialModelName.java index c6ccd2c33f6..4ff598a6cfc 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -33,7 +33,9 @@ public class SpecialModelName { @SerializedName(SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME) private Long $specialPropertyName; + public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + this.$specialPropertyName = $specialPropertyName; return this; } @@ -44,10 +46,13 @@ public class SpecialModelName { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long get$SpecialPropertyName() { return $specialPropertyName; } + + public void set$SpecialPropertyName(Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Tag.java index 504c51cc3e5..693247a2fd2 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Tag.java @@ -37,7 +37,9 @@ public class Tag { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public Tag id(Long id) { + this.id = id; return this; } @@ -48,15 +50,20 @@ public class Tag { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Tag name(String name) { + this.name = name; return this; } @@ -67,10 +74,13 @@ public class Tag { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index 8fc321bc0a2..e61b1492abc 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -52,7 +52,9 @@ public class TypeHolderDefault { @SerializedName(SERIALIZED_NAME_ARRAY_ITEM) private List arrayItem = new ArrayList(); + public TypeHolderDefault stringItem(String stringItem) { + this.stringItem = stringItem; return this; } @@ -62,15 +64,20 @@ public class TypeHolderDefault { * @return stringItem **/ @ApiModelProperty(required = true, value = "") + public String getStringItem() { return stringItem; } + + public void setStringItem(String stringItem) { this.stringItem = stringItem; } + public TypeHolderDefault numberItem(BigDecimal numberItem) { + this.numberItem = numberItem; return this; } @@ -80,15 +87,20 @@ public class TypeHolderDefault { * @return numberItem **/ @ApiModelProperty(required = true, value = "") + public BigDecimal getNumberItem() { return numberItem; } + + public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } + public TypeHolderDefault integerItem(Integer integerItem) { + this.integerItem = integerItem; return this; } @@ -98,15 +110,20 @@ public class TypeHolderDefault { * @return integerItem **/ @ApiModelProperty(required = true, value = "") + public Integer getIntegerItem() { return integerItem; } + + public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } + public TypeHolderDefault boolItem(Boolean boolItem) { + this.boolItem = boolItem; return this; } @@ -116,15 +133,20 @@ public class TypeHolderDefault { * @return boolItem **/ @ApiModelProperty(required = true, value = "") + public Boolean getBoolItem() { return boolItem; } + + public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } + public TypeHolderDefault arrayItem(List arrayItem) { + this.arrayItem = arrayItem; return this; } @@ -139,10 +161,13 @@ public class TypeHolderDefault { * @return arrayItem **/ @ApiModelProperty(required = true, value = "") + public List getArrayItem() { return arrayItem; } + + public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/TypeHolderExample.java index d9496cbd790..a0691d38a54 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -52,7 +52,9 @@ public class TypeHolderExample { @SerializedName(SERIALIZED_NAME_ARRAY_ITEM) private List arrayItem = new ArrayList(); + public TypeHolderExample stringItem(String stringItem) { + this.stringItem = stringItem; return this; } @@ -62,15 +64,20 @@ public class TypeHolderExample { * @return stringItem **/ @ApiModelProperty(example = "what", required = true, value = "") + public String getStringItem() { return stringItem; } + + public void setStringItem(String stringItem) { this.stringItem = stringItem; } + public TypeHolderExample numberItem(BigDecimal numberItem) { + this.numberItem = numberItem; return this; } @@ -80,15 +87,20 @@ public class TypeHolderExample { * @return numberItem **/ @ApiModelProperty(example = "1.234", required = true, value = "") + public BigDecimal getNumberItem() { return numberItem; } + + public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } + public TypeHolderExample integerItem(Integer integerItem) { + this.integerItem = integerItem; return this; } @@ -98,15 +110,20 @@ public class TypeHolderExample { * @return integerItem **/ @ApiModelProperty(example = "-2", required = true, value = "") + public Integer getIntegerItem() { return integerItem; } + + public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } + public TypeHolderExample boolItem(Boolean boolItem) { + this.boolItem = boolItem; return this; } @@ -116,15 +133,20 @@ public class TypeHolderExample { * @return boolItem **/ @ApiModelProperty(example = "true", required = true, value = "") + public Boolean getBoolItem() { return boolItem; } + + public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } + public TypeHolderExample arrayItem(List arrayItem) { + this.arrayItem = arrayItem; return this; } @@ -139,10 +161,13 @@ public class TypeHolderExample { * @return arrayItem **/ @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") + public List getArrayItem() { return arrayItem; } + + public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/User.java index 1aedd044b58..3760c07c592 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/User.java @@ -61,7 +61,9 @@ public class User { @SerializedName(SERIALIZED_NAME_USER_STATUS) private Integer userStatus; + public User id(Long id) { + this.id = id; return this; } @@ -72,15 +74,20 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public User username(String username) { + this.username = username; return this; } @@ -91,15 +98,20 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getUsername() { return username; } + + public void setUsername(String username) { this.username = username; } + public User firstName(String firstName) { + this.firstName = firstName; return this; } @@ -110,15 +122,20 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getFirstName() { return firstName; } + + public void setFirstName(String firstName) { this.firstName = firstName; } + public User lastName(String lastName) { + this.lastName = lastName; return this; } @@ -129,15 +146,20 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getLastName() { return lastName; } + + public void setLastName(String lastName) { this.lastName = lastName; } + public User email(String email) { + this.email = email; return this; } @@ -148,15 +170,20 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getEmail() { return email; } + + public void setEmail(String email) { this.email = email; } + public User password(String password) { + this.password = password; return this; } @@ -167,15 +194,20 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getPassword() { return password; } + + public void setPassword(String password) { this.password = password; } + public User phone(String phone) { + this.phone = phone; return this; } @@ -186,15 +218,20 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getPhone() { return phone; } + + public void setPhone(String phone) { this.phone = phone; } + public User userStatus(Integer userStatus) { + this.userStatus = userStatus; return this; } @@ -205,10 +242,13 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "User Status") + public Integer getUserStatus() { return userStatus; } + + public void setUserStatus(Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/XmlItem.java index 21ff0ff8aae..4fce3d5e1c0 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/XmlItem.java @@ -148,7 +148,9 @@ public class XmlItem { @SerializedName(SERIALIZED_NAME_PREFIX_NS_WRAPPED_ARRAY) private List prefixNsWrappedArray = null; + public XmlItem attributeString(String attributeString) { + this.attributeString = attributeString; return this; } @@ -159,15 +161,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + public String getAttributeString() { return attributeString; } + + public void setAttributeString(String attributeString) { this.attributeString = attributeString; } + public XmlItem attributeNumber(BigDecimal attributeNumber) { + this.attributeNumber = attributeNumber; return this; } @@ -178,15 +185,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + public BigDecimal getAttributeNumber() { return attributeNumber; } + + public void setAttributeNumber(BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } + public XmlItem attributeInteger(Integer attributeInteger) { + this.attributeInteger = attributeInteger; return this; } @@ -197,15 +209,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + public Integer getAttributeInteger() { return attributeInteger; } + + public void setAttributeInteger(Integer attributeInteger) { this.attributeInteger = attributeInteger; } + public XmlItem attributeBoolean(Boolean attributeBoolean) { + this.attributeBoolean = attributeBoolean; return this; } @@ -216,15 +233,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + public Boolean getAttributeBoolean() { return attributeBoolean; } + + public void setAttributeBoolean(Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } + public XmlItem wrappedArray(List wrappedArray) { + this.wrappedArray = wrappedArray; return this; } @@ -243,15 +265,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getWrappedArray() { return wrappedArray; } + + public void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } + public XmlItem nameString(String nameString) { + this.nameString = nameString; return this; } @@ -262,15 +289,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + public String getNameString() { return nameString; } + + public void setNameString(String nameString) { this.nameString = nameString; } + public XmlItem nameNumber(BigDecimal nameNumber) { + this.nameNumber = nameNumber; return this; } @@ -281,15 +313,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + public BigDecimal getNameNumber() { return nameNumber; } + + public void setNameNumber(BigDecimal nameNumber) { this.nameNumber = nameNumber; } + public XmlItem nameInteger(Integer nameInteger) { + this.nameInteger = nameInteger; return this; } @@ -300,15 +337,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + public Integer getNameInteger() { return nameInteger; } + + public void setNameInteger(Integer nameInteger) { this.nameInteger = nameInteger; } + public XmlItem nameBoolean(Boolean nameBoolean) { + this.nameBoolean = nameBoolean; return this; } @@ -319,15 +361,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + public Boolean getNameBoolean() { return nameBoolean; } + + public void setNameBoolean(Boolean nameBoolean) { this.nameBoolean = nameBoolean; } + public XmlItem nameArray(List nameArray) { + this.nameArray = nameArray; return this; } @@ -346,15 +393,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getNameArray() { return nameArray; } + + public void setNameArray(List nameArray) { this.nameArray = nameArray; } + public XmlItem nameWrappedArray(List nameWrappedArray) { + this.nameWrappedArray = nameWrappedArray; return this; } @@ -373,15 +425,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getNameWrappedArray() { return nameWrappedArray; } + + public void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } + public XmlItem prefixString(String prefixString) { + this.prefixString = prefixString; return this; } @@ -392,15 +449,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + public String getPrefixString() { return prefixString; } + + public void setPrefixString(String prefixString) { this.prefixString = prefixString; } + public XmlItem prefixNumber(BigDecimal prefixNumber) { + this.prefixNumber = prefixNumber; return this; } @@ -411,15 +473,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + public BigDecimal getPrefixNumber() { return prefixNumber; } + + public void setPrefixNumber(BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } + public XmlItem prefixInteger(Integer prefixInteger) { + this.prefixInteger = prefixInteger; return this; } @@ -430,15 +497,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + public Integer getPrefixInteger() { return prefixInteger; } + + public void setPrefixInteger(Integer prefixInteger) { this.prefixInteger = prefixInteger; } + public XmlItem prefixBoolean(Boolean prefixBoolean) { + this.prefixBoolean = prefixBoolean; return this; } @@ -449,15 +521,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + public Boolean getPrefixBoolean() { return prefixBoolean; } + + public void setPrefixBoolean(Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } + public XmlItem prefixArray(List prefixArray) { + this.prefixArray = prefixArray; return this; } @@ -476,15 +553,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getPrefixArray() { return prefixArray; } + + public void setPrefixArray(List prefixArray) { this.prefixArray = prefixArray; } + public XmlItem prefixWrappedArray(List prefixWrappedArray) { + this.prefixWrappedArray = prefixWrappedArray; return this; } @@ -503,15 +585,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getPrefixWrappedArray() { return prefixWrappedArray; } + + public void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } + public XmlItem namespaceString(String namespaceString) { + this.namespaceString = namespaceString; return this; } @@ -522,15 +609,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + public String getNamespaceString() { return namespaceString; } + + public void setNamespaceString(String namespaceString) { this.namespaceString = namespaceString; } + public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + this.namespaceNumber = namespaceNumber; return this; } @@ -541,15 +633,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + public BigDecimal getNamespaceNumber() { return namespaceNumber; } + + public void setNamespaceNumber(BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } + public XmlItem namespaceInteger(Integer namespaceInteger) { + this.namespaceInteger = namespaceInteger; return this; } @@ -560,15 +657,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + public Integer getNamespaceInteger() { return namespaceInteger; } + + public void setNamespaceInteger(Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } + public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + this.namespaceBoolean = namespaceBoolean; return this; } @@ -579,15 +681,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + public Boolean getNamespaceBoolean() { return namespaceBoolean; } + + public void setNamespaceBoolean(Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } + public XmlItem namespaceArray(List namespaceArray) { + this.namespaceArray = namespaceArray; return this; } @@ -606,15 +713,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getNamespaceArray() { return namespaceArray; } + + public void setNamespaceArray(List namespaceArray) { this.namespaceArray = namespaceArray; } + public XmlItem namespaceWrappedArray(List namespaceWrappedArray) { + this.namespaceWrappedArray = namespaceWrappedArray; return this; } @@ -633,15 +745,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getNamespaceWrappedArray() { return namespaceWrappedArray; } + + public void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } + public XmlItem prefixNsString(String prefixNsString) { + this.prefixNsString = prefixNsString; return this; } @@ -652,15 +769,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + public String getPrefixNsString() { return prefixNsString; } + + public void setPrefixNsString(String prefixNsString) { this.prefixNsString = prefixNsString; } + public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + this.prefixNsNumber = prefixNsNumber; return this; } @@ -671,15 +793,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + public BigDecimal getPrefixNsNumber() { return prefixNsNumber; } + + public void setPrefixNsNumber(BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } + public XmlItem prefixNsInteger(Integer prefixNsInteger) { + this.prefixNsInteger = prefixNsInteger; return this; } @@ -690,15 +817,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + public Integer getPrefixNsInteger() { return prefixNsInteger; } + + public void setPrefixNsInteger(Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } + public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + this.prefixNsBoolean = prefixNsBoolean; return this; } @@ -709,15 +841,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + public Boolean getPrefixNsBoolean() { return prefixNsBoolean; } + + public void setPrefixNsBoolean(Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } + public XmlItem prefixNsArray(List prefixNsArray) { + this.prefixNsArray = prefixNsArray; return this; } @@ -736,15 +873,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getPrefixNsArray() { return prefixNsArray; } + + public void setPrefixNsArray(List prefixNsArray) { this.prefixNsArray = prefixNsArray; } + public XmlItem prefixNsWrappedArray(List prefixNsWrappedArray) { + this.prefixNsWrappedArray = prefixNsWrappedArray; return this; } @@ -763,10 +905,13 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getPrefixNsWrappedArray() { return prefixNsWrappedArray; } + + public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/retrofit2-play24/docs/UserApi.md b/samples/client/petstore/java/retrofit2-play24/docs/UserApi.md index bdf473df90d..d03e871ce01 100644 --- a/samples/client/petstore/java/retrofit2-play24/docs/UserApi.md +++ b/samples/client/petstore/java/retrofit2-play24/docs/UserApi.md @@ -101,7 +101,7 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); UserApi apiInstance = new UserApi(defaultClient); - List body = Arrays.asList(null); // List | List of user object + List body = Arrays.asList(); // List | List of user object try { apiInstance.createUsersWithArrayInput(body); } catch (ApiException e) { @@ -163,7 +163,7 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); UserApi apiInstance = new UserApi(defaultClient); - List body = Arrays.asList(null); // List | List of user object + List body = Arrays.asList(); // List | List of user object try { apiInstance.createUsersWithListInput(body); } catch (ApiException e) { diff --git a/samples/client/petstore/java/retrofit2-play24/pom.xml b/samples/client/petstore/java/retrofit2-play24/pom.xml index 6a8a48bd5a6..66b92273ea7 100644 --- a/samples/client/petstore/java/retrofit2-play24/pom.xml +++ b/samples/client/petstore/java/retrofit2-play24/pom.xml @@ -259,6 +259,11 @@ play-java-ws_2.11 ${play-version} + + org.openapitools + jackson-databind-nullable + ${jackson-databind-nullable-version} + junit @@ -277,6 +282,7 @@ 2.9.9 2.6.6 2.4.11 + 0.2.0 2.5.0 1.0.1 4.12 diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/ApiClient.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/ApiClient.java index 1ba1e8f024c..e4637e68ec4 100644 --- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/ApiClient.java +++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/ApiClient.java @@ -8,6 +8,8 @@ import java.util.*; import retrofit2.Retrofit; import retrofit2.converter.scalars.ScalarsConverterFactory; import retrofit2.converter.jackson.JacksonConverterFactory; +import com.fasterxml.jackson.databind.ObjectMapper; +import org.openapitools.jackson.nullable.JsonNullableModule; import play.libs.Json; import play.libs.ws.WSClient; @@ -68,10 +70,14 @@ public class ApiClient { auth.applyToParams(extraQueryParams, extraHeaders); } + ObjectMapper mapper = Json.mapper(); + JsonNullableModule jnm = new JsonNullableModule(); + mapper.registerModule(jnm); + return new Retrofit.Builder() .baseUrl(basePath) .addConverterFactory(ScalarsConverterFactory.create()) - .addConverterFactory(JacksonConverterFactory.create(Json.mapper())) + .addConverterFactory(JacksonConverterFactory.create(mapper)) .callFactory(new Play24CallFactory(wsClient, extraHeaders, extraQueryParams)) .addCallAdapterFactory(new Play24CallAdapterFactory()) .build() diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index fccdfd9063b..931acb78d02 100644 --- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,10 +32,11 @@ import javax.validation.Valid; public class AdditionalPropertiesAnyType extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesAnyType name(String name) { + this.name = name; return this; } @@ -45,10 +47,15 @@ public class AdditionalPropertiesAnyType extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index ca93793eb92..53a0fa23dc8 100644 --- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -32,10 +33,11 @@ import javax.validation.Valid; public class AdditionalPropertiesArray extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesArray name(String name) { + this.name = name; return this; } @@ -46,10 +48,15 @@ public class AdditionalPropertiesArray extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index bcc0c1468af..f2eb8b16a90 100644 --- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,10 +32,11 @@ import javax.validation.Valid; public class AdditionalPropertiesBoolean extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesBoolean name(String name) { + this.name = name; return this; } @@ -45,10 +47,15 @@ public class AdditionalPropertiesBoolean extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index b496f247edb..fd975cb4322 100644 --- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -33,50 +34,41 @@ import javax.validation.Valid; public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_STRING = "map_string"; - @JsonProperty(JSON_PROPERTY_MAP_STRING) private Map mapString = null; public static final String JSON_PROPERTY_MAP_NUMBER = "map_number"; - @JsonProperty(JSON_PROPERTY_MAP_NUMBER) private Map mapNumber = null; public static final String JSON_PROPERTY_MAP_INTEGER = "map_integer"; - @JsonProperty(JSON_PROPERTY_MAP_INTEGER) private Map mapInteger = null; public static final String JSON_PROPERTY_MAP_BOOLEAN = "map_boolean"; - @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) private Map mapBoolean = null; public static final String JSON_PROPERTY_MAP_ARRAY_INTEGER = "map_array_integer"; - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) private Map> mapArrayInteger = null; public static final String JSON_PROPERTY_MAP_ARRAY_ANYTYPE = "map_array_anytype"; - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) private Map> mapArrayAnytype = null; public static final String JSON_PROPERTY_MAP_MAP_STRING = "map_map_string"; - @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) private Map> mapMapString = null; public static final String JSON_PROPERTY_MAP_MAP_ANYTYPE = "map_map_anytype"; - @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) private Map> mapMapAnytype = null; public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1"; - @JsonProperty(JSON_PROPERTY_ANYTYPE1) - private Object anytype1 = null; + private Object anytype1; public static final String JSON_PROPERTY_ANYTYPE2 = "anytype_2"; - @JsonProperty(JSON_PROPERTY_ANYTYPE2) - private Object anytype2 = null; + private Object anytype2; public static final String JSON_PROPERTY_ANYTYPE3 = "anytype_3"; - @JsonProperty(JSON_PROPERTY_ANYTYPE3) - private Object anytype3 = null; + private Object anytype3; + public AdditionalPropertiesClass mapString(Map mapString) { + this.mapString = mapString; return this; } @@ -95,15 +87,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapString() { return mapString; } + + public void setMapString(Map mapString) { this.mapString = mapString; } + public AdditionalPropertiesClass mapNumber(Map mapNumber) { + this.mapNumber = mapNumber; return this; } @@ -123,15 +122,22 @@ public class AdditionalPropertiesClass { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapNumber() { return mapNumber; } + + public void setMapNumber(Map mapNumber) { this.mapNumber = mapNumber; } + public AdditionalPropertiesClass mapInteger(Map mapInteger) { + this.mapInteger = mapInteger; return this; } @@ -150,15 +156,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapInteger() { return mapInteger; } + + public void setMapInteger(Map mapInteger) { this.mapInteger = mapInteger; } + public AdditionalPropertiesClass mapBoolean(Map mapBoolean) { + this.mapBoolean = mapBoolean; return this; } @@ -177,15 +190,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapBoolean() { return mapBoolean; } + + public void setMapBoolean(Map mapBoolean) { this.mapBoolean = mapBoolean; } + public AdditionalPropertiesClass mapArrayInteger(Map> mapArrayInteger) { + this.mapArrayInteger = mapArrayInteger; return this; } @@ -205,15 +225,22 @@ public class AdditionalPropertiesClass { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapArrayInteger() { return mapArrayInteger; } + + public void setMapArrayInteger(Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; } + public AdditionalPropertiesClass mapArrayAnytype(Map> mapArrayAnytype) { + this.mapArrayAnytype = mapArrayAnytype; return this; } @@ -233,15 +260,22 @@ public class AdditionalPropertiesClass { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapArrayAnytype() { return mapArrayAnytype; } + + public void setMapArrayAnytype(Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; } + public AdditionalPropertiesClass mapMapString(Map> mapMapString) { + this.mapMapString = mapMapString; return this; } @@ -261,15 +295,22 @@ public class AdditionalPropertiesClass { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapMapString() { return mapMapString; } + + public void setMapMapString(Map> mapMapString) { this.mapMapString = mapMapString; } + public AdditionalPropertiesClass mapMapAnytype(Map> mapMapAnytype) { + this.mapMapAnytype = mapMapAnytype; return this; } @@ -289,15 +330,22 @@ public class AdditionalPropertiesClass { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapMapAnytype() { return mapMapAnytype; } + + public void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } + public AdditionalPropertiesClass anytype1(Object anytype1) { + this.anytype1 = anytype1; return this; } @@ -309,15 +357,22 @@ public class AdditionalPropertiesClass { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Object getAnytype1() { return anytype1; } + + public void setAnytype1(Object anytype1) { this.anytype1 = anytype1; } + public AdditionalPropertiesClass anytype2(Object anytype2) { + this.anytype2 = anytype2; return this; } @@ -329,15 +384,22 @@ public class AdditionalPropertiesClass { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ANYTYPE2) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Object getAnytype2() { return anytype2; } + + public void setAnytype2(Object anytype2) { this.anytype2 = anytype2; } + public AdditionalPropertiesClass anytype3(Object anytype3) { + this.anytype3 = anytype3; return this; } @@ -349,10 +411,15 @@ public class AdditionalPropertiesClass { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ANYTYPE3) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Object getAnytype3() { return anytype3; } + + public void setAnytype3(Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 9df2c41186a..eb61f3d19b1 100644 --- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,10 +32,11 @@ import javax.validation.Valid; public class AdditionalPropertiesInteger extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesInteger name(String name) { + this.name = name; return this; } @@ -45,10 +47,15 @@ public class AdditionalPropertiesInteger extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index 9a86f4a655d..bc848dbd7af 100644 --- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -32,10 +33,11 @@ import javax.validation.Valid; public class AdditionalPropertiesNumber extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesNumber name(String name) { + this.name = name; return this; } @@ -46,10 +48,15 @@ public class AdditionalPropertiesNumber extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index d7e32f25cbe..310e15933b9 100644 --- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,10 +32,11 @@ import javax.validation.Valid; public class AdditionalPropertiesObject extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesObject name(String name) { + this.name = name; return this; } @@ -45,10 +47,15 @@ public class AdditionalPropertiesObject extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 600622d7cab..6e8d95c90bb 100644 --- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,10 +32,11 @@ import javax.validation.Valid; public class AdditionalPropertiesString extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesString name(String name) { + this.name = name; return this; } @@ -45,10 +47,15 @@ public class AdditionalPropertiesString extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/Animal.java index a43ceea7064..14f103575f6 100644 --- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/Animal.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; @@ -37,14 +38,14 @@ import javax.validation.Valid; public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; - @JsonProperty(JSON_PROPERTY_CLASS_NAME) private String className; public static final String JSON_PROPERTY_COLOR = "color"; - @JsonProperty(JSON_PROPERTY_COLOR) private String color = "red"; + public Animal className(String className) { + this.className = className; return this; } @@ -55,15 +56,22 @@ public class Animal { **/ @NotNull @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getClassName() { return className; } + + public void setClassName(String className) { this.className = className; } + public Animal color(String color) { + this.color = color; return this; } @@ -74,10 +82,15 @@ public class Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_COLOR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getColor() { return color; } + + public void setColor(String color) { this.color = color; } diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 522aa684b8f..f1d99efbcae 100644 --- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -32,10 +33,11 @@ import javax.validation.Valid; public class ArrayOfArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) private List> arrayArrayNumber = null; + public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + this.arrayArrayNumber = arrayArrayNumber; return this; } @@ -55,10 +57,15 @@ public class ArrayOfArrayOfNumberOnly { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List> getArrayArrayNumber() { return arrayArrayNumber; } + + public void setArrayArrayNumber(List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 129fd212c4e..633405dc643 100644 --- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -32,10 +33,11 @@ import javax.validation.Valid; public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) private List arrayNumber = null; + public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + this.arrayNumber = arrayNumber; return this; } @@ -55,10 +57,15 @@ public class ArrayOfNumberOnly { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArrayNumber() { return arrayNumber; } + + public void setArrayNumber(List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/ArrayTest.java index f013f81ef59..8f970b0de19 100644 --- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -32,18 +33,17 @@ import javax.validation.Valid; public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) private List arrayOfString = null; public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) private List> arrayArrayOfInteger = null; public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) private List> arrayArrayOfModel = null; + public ArrayTest arrayOfString(List arrayOfString) { + this.arrayOfString = arrayOfString; return this; } @@ -62,15 +62,22 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArrayOfString() { return arrayOfString; } + + public void setArrayOfString(List arrayOfString) { this.arrayOfString = arrayOfString; } + public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + this.arrayArrayOfInteger = arrayArrayOfInteger; return this; } @@ -90,15 +97,22 @@ public class ArrayTest { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List> getArrayArrayOfInteger() { return arrayArrayOfInteger; } + + public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } + public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + this.arrayArrayOfModel = arrayArrayOfModel; return this; } @@ -118,10 +132,15 @@ public class ArrayTest { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List> getArrayArrayOfModel() { return arrayArrayOfModel; } + + public void setArrayArrayOfModel(List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/Capitalization.java index 65f5b799d25..184e17e6e33 100644 --- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/Capitalization.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,30 +30,26 @@ import javax.validation.Valid; public class Capitalization { public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) private String smallCamel; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) private String capitalCamel; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) private String smallSnake; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) private String capitalSnake; public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) private String scAETHFlowPoints; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) private String ATT_NAME; + public Capitalization smallCamel(String smallCamel) { + this.smallCamel = smallCamel; return this; } @@ -63,15 +60,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSmallCamel() { return smallCamel; } + + public void setSmallCamel(String smallCamel) { this.smallCamel = smallCamel; } + public Capitalization capitalCamel(String capitalCamel) { + this.capitalCamel = capitalCamel; return this; } @@ -82,15 +86,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getCapitalCamel() { return capitalCamel; } + + public void setCapitalCamel(String capitalCamel) { this.capitalCamel = capitalCamel; } + public Capitalization smallSnake(String smallSnake) { + this.smallSnake = smallSnake; return this; } @@ -101,15 +112,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSmallSnake() { return smallSnake; } + + public void setSmallSnake(String smallSnake) { this.smallSnake = smallSnake; } + public Capitalization capitalSnake(String capitalSnake) { + this.capitalSnake = capitalSnake; return this; } @@ -120,15 +138,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getCapitalSnake() { return capitalSnake; } + + public void setCapitalSnake(String capitalSnake) { this.capitalSnake = capitalSnake; } + public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -139,15 +164,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getScAETHFlowPoints() { return scAETHFlowPoints; } + + public void setScAETHFlowPoints(String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } + public Capitalization ATT_NAME(String ATT_NAME) { + this.ATT_NAME = ATT_NAME; return this; } @@ -158,10 +190,15 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "Name of the pet ") + @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getATTNAME() { return ATT_NAME; } + + public void setATTNAME(String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/Cat.java index d0e872ebd73..be07b377162 100644 --- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/Cat.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,10 +32,11 @@ import javax.validation.Valid; public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; - @JsonProperty(JSON_PROPERTY_DECLAWED) private Boolean declawed; + public Cat declawed(Boolean declawed) { + this.declawed = declawed; return this; } @@ -45,10 +47,15 @@ public class Cat extends Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getDeclawed() { return declawed; } + + public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/CatAllOf.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/CatAllOf.java index e72f96cee93..f151c8dcfa1 100644 --- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/CatAllOf.java +++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/CatAllOf.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import javax.validation.Valid; public class CatAllOf { public static final String JSON_PROPERTY_DECLAWED = "declawed"; - @JsonProperty(JSON_PROPERTY_DECLAWED) private Boolean declawed; + public CatAllOf declawed(Boolean declawed) { + this.declawed = declawed; return this; } @@ -43,10 +45,15 @@ public class CatAllOf { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getDeclawed() { return declawed; } + + public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/Category.java index 4f388371ed5..785168bb3c3 100644 --- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/Category.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,14 +30,14 @@ import javax.validation.Valid; public class Category { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name = "default-name"; + public Category id(Long id) { + this.id = id; return this; } @@ -47,15 +48,22 @@ public class Category { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Category name(String name) { + this.name = name; return this; } @@ -66,10 +74,15 @@ public class Category { **/ @NotNull @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/ClassModel.java index b7b9081f44a..3517965abfd 100644 --- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/ClassModel.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import javax.validation.Valid; public class ClassModel { public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) private String propertyClass; + public ClassModel propertyClass(String propertyClass) { + this.propertyClass = propertyClass; return this; } @@ -44,10 +46,15 @@ public class ClassModel { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPropertyClass() { return propertyClass; } + + public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/Client.java index b0ae0657c79..fffb2327a85 100644 --- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/Client.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import javax.validation.Valid; public class Client { public static final String JSON_PROPERTY_CLIENT = "client"; - @JsonProperty(JSON_PROPERTY_CLIENT) private String client; + public Client client(String client) { + this.client = client; return this; } @@ -43,10 +45,15 @@ public class Client { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getClient() { return client; } + + public void setClient(String client) { this.client = client; } diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/Dog.java index d9656d309a7..1d78edf3271 100644 --- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/Dog.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,10 +32,11 @@ import javax.validation.Valid; public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; - @JsonProperty(JSON_PROPERTY_BREED) private String breed; + public Dog breed(String breed) { + this.breed = breed; return this; } @@ -45,10 +47,15 @@ public class Dog extends Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBreed() { return breed; } + + public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/DogAllOf.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/DogAllOf.java index 500f5a63d0e..b1e62d04ec3 100644 --- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/DogAllOf.java +++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/DogAllOf.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import javax.validation.Valid; public class DogAllOf { public static final String JSON_PROPERTY_BREED = "breed"; - @JsonProperty(JSON_PROPERTY_BREED) private String breed; + public DogAllOf breed(String breed) { + this.breed = breed; return this; } @@ -43,10 +45,15 @@ public class DogAllOf { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBreed() { return breed; } + + public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/EnumArrays.java index 1a36a2872ee..be59e0f13d6 100644 --- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -66,7 +67,6 @@ public class EnumArrays { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) private JustSymbolEnum justSymbol; /** @@ -105,10 +105,11 @@ public class EnumArrays { } public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) private List arrayEnum = null; + public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + this.justSymbol = justSymbol; return this; } @@ -119,15 +120,22 @@ public class EnumArrays { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public JustSymbolEnum getJustSymbol() { return justSymbol; } + + public void setJustSymbol(JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } + public EnumArrays arrayEnum(List arrayEnum) { + this.arrayEnum = arrayEnum; return this; } @@ -146,10 +154,15 @@ public class EnumArrays { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArrayEnum() { return arrayEnum; } + + public void setArrayEnum(List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/EnumTest.java index 7148143b17d..6c085cfd6be 100644 --- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/EnumTest.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -67,7 +68,6 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; - @JsonProperty(JSON_PROPERTY_ENUM_STRING) private EnumStringEnum enumString; /** @@ -108,7 +108,6 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) private EnumStringRequiredEnum enumStringRequired; /** @@ -147,7 +146,6 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) private EnumIntegerEnum enumInteger; /** @@ -186,14 +184,14 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) private OuterEnum outerEnum; + public EnumTest enumString(EnumStringEnum enumString) { + this.enumString = enumString; return this; } @@ -204,15 +202,22 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public EnumStringEnum getEnumString() { return enumString; } + + public void setEnumString(EnumStringEnum enumString) { this.enumString = enumString; } + public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + this.enumStringRequired = enumStringRequired; return this; } @@ -223,15 +228,22 @@ public class EnumTest { **/ @NotNull @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; } + + public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } + public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + this.enumInteger = enumInteger; return this; } @@ -242,15 +254,22 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public EnumIntegerEnum getEnumInteger() { return enumInteger; } + + public void setEnumInteger(EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } + public EnumTest enumNumber(EnumNumberEnum enumNumber) { + this.enumNumber = enumNumber; return this; } @@ -261,15 +280,22 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public EnumNumberEnum getEnumNumber() { return enumNumber; } + + public void setEnumNumber(EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } + public EnumTest outerEnum(OuterEnum outerEnum) { + this.outerEnum = outerEnum; return this; } @@ -281,10 +307,15 @@ public class EnumTest { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OuterEnum getOuterEnum() { return outerEnum; } + + public void setOuterEnum(OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 27c1e54aad8..ad7953eda47 100644 --- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,14 +32,14 @@ import javax.validation.Valid; public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; - @JsonProperty(JSON_PROPERTY_FILE) - private java.io.File file = null; + private java.io.File file; public static final String JSON_PROPERTY_FILES = "files"; - @JsonProperty(JSON_PROPERTY_FILES) private List files = null; + public FileSchemaTestClass file(java.io.File file) { + this.file = file; return this; } @@ -50,15 +51,22 @@ public class FileSchemaTestClass { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FILE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public java.io.File getFile() { return file; } + + public void setFile(java.io.File file) { this.file = file; } + public FileSchemaTestClass files(List files) { + this.files = files; return this; } @@ -78,10 +86,15 @@ public class FileSchemaTestClass { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FILES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getFiles() { return files; } + + public void setFiles(List files) { this.files = files; } diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/FormatTest.java index 28f3431520a..f474c8b9ff2 100644 --- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/FormatTest.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -34,58 +35,47 @@ import javax.validation.Valid; public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; - @JsonProperty(JSON_PROPERTY_INTEGER) private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; - @JsonProperty(JSON_PROPERTY_INT32) private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; - @JsonProperty(JSON_PROPERTY_INT64) private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; - @JsonProperty(JSON_PROPERTY_NUMBER) private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; - @JsonProperty(JSON_PROPERTY_FLOAT) private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; - @JsonProperty(JSON_PROPERTY_DOUBLE) private Double _double; public static final String JSON_PROPERTY_STRING = "string"; - @JsonProperty(JSON_PROPERTY_STRING) private String string; public static final String JSON_PROPERTY_BYTE = "byte"; - @JsonProperty(JSON_PROPERTY_BYTE) private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; - @JsonProperty(JSON_PROPERTY_BINARY) private File binary; public static final String JSON_PROPERTY_DATE = "date"; - @JsonProperty(JSON_PROPERTY_DATE) private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @JsonProperty(JSON_PROPERTY_DATE_TIME) private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; - @JsonProperty(JSON_PROPERTY_UUID) private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; - @JsonProperty(JSON_PROPERTY_PASSWORD) private String password; + public FormatTest integer(Integer integer) { + this.integer = integer; return this; } @@ -98,15 +88,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @Min(10) @Max(100) @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getInteger() { return integer; } + + public void setInteger(Integer integer) { this.integer = integer; } + public FormatTest int32(Integer int32) { + this.int32 = int32; return this; } @@ -119,15 +116,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @Min(20) @Max(200) @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INT32) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getInt32() { return int32; } + + public void setInt32(Integer int32) { this.int32 = int32; } + public FormatTest int64(Long int64) { + this.int64 = int64; return this; } @@ -138,15 +142,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INT64) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getInt64() { return int64; } + + public void setInt64(Long int64) { this.int64 = int64; } + public FormatTest number(BigDecimal number) { + this.number = number; return this; } @@ -160,15 +171,22 @@ public class FormatTest { @NotNull @Valid @DecimalMin("32.1") @DecimalMax("543.2") @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getNumber() { return number; } + + public void setNumber(BigDecimal number) { this.number = number; } + public FormatTest _float(Float _float) { + this._float = _float; return this; } @@ -181,15 +199,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @DecimalMin("54.3") @DecimalMax("987.6") @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Float getFloat() { return _float; } + + public void setFloat(Float _float) { this._float = _float; } + public FormatTest _double(Double _double) { + this._double = _double; return this; } @@ -202,15 +227,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @DecimalMin("67.8") @DecimalMax("123.4") @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Double getDouble() { return _double; } + + public void setDouble(Double _double) { this._double = _double; } + public FormatTest string(String string) { + this.string = string; return this; } @@ -221,15 +253,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @Pattern(regexp="/[a-z]/i") @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getString() { return string; } + + public void setString(String string) { this.string = string; } + public FormatTest _byte(byte[] _byte) { + this._byte = _byte; return this; } @@ -240,15 +279,22 @@ public class FormatTest { **/ @NotNull @Pattern(regexp="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$") @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_BYTE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public byte[] getByte() { return _byte; } + + public void setByte(byte[] _byte) { this._byte = _byte; } + public FormatTest binary(File binary) { + this.binary = binary; return this; } @@ -260,15 +306,22 @@ public class FormatTest { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BINARY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public File getBinary() { return binary; } + + public void setBinary(File binary) { this.binary = binary; } + public FormatTest date(LocalDate date) { + this.date = date; return this; } @@ -280,15 +333,22 @@ public class FormatTest { @NotNull @Valid @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_DATE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public LocalDate getDate() { return date; } + + public void setDate(LocalDate date) { this.date = date; } + public FormatTest dateTime(OffsetDateTime dateTime) { + this.dateTime = dateTime; return this; } @@ -300,15 +360,22 @@ public class FormatTest { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OffsetDateTime getDateTime() { return dateTime; } + + public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } + public FormatTest uuid(UUID uuid) { + this.uuid = uuid; return this; } @@ -320,15 +387,22 @@ public class FormatTest { @javax.annotation.Nullable @Valid @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public UUID getUuid() { return uuid; } + + public void setUuid(UUID uuid) { this.uuid = uuid; } + public FormatTest password(String password) { + this.password = password; return this; } @@ -339,10 +413,15 @@ public class FormatTest { **/ @NotNull @Size(min=10,max=64) @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getPassword() { return password; } + + public void setPassword(String password) { this.password = password; } diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index f2175b7f513..54485f0d5a4 100644 --- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,34 +30,44 @@ import javax.validation.Valid; public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; - @JsonProperty(JSON_PROPERTY_BAR) private String bar; public static final String JSON_PROPERTY_FOO = "foo"; - @JsonProperty(JSON_PROPERTY_FOO) private String foo; + /** * Get bar * @return bar **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BAR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBar() { return bar; } + + + /** * Get foo * @return foo **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FOO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getFoo() { return foo; } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/MapTest.java index 8200c0c437e..d4e9ebd93ee 100644 --- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/MapTest.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -32,7 +33,6 @@ import javax.validation.Valid; public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) private Map> mapMapOfString = null; /** @@ -71,18 +71,17 @@ public class MapTest { } public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) private Map mapOfEnumString = null; public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) private Map directMap = null; public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) private Map indirectMap = null; + public MapTest mapMapOfString(Map> mapMapOfString) { + this.mapMapOfString = mapMapOfString; return this; } @@ -102,15 +101,22 @@ public class MapTest { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapMapOfString() { return mapMapOfString; } + + public void setMapMapOfString(Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } + public MapTest mapOfEnumString(Map mapOfEnumString) { + this.mapOfEnumString = mapOfEnumString; return this; } @@ -129,15 +135,22 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapOfEnumString() { return mapOfEnumString; } + + public void setMapOfEnumString(Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } + public MapTest directMap(Map directMap) { + this.directMap = directMap; return this; } @@ -156,15 +169,22 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getDirectMap() { return directMap; } + + public void setDirectMap(Map directMap) { this.directMap = directMap; } + public MapTest indirectMap(Map indirectMap) { + this.indirectMap = indirectMap; return this; } @@ -183,10 +203,15 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getIndirectMap() { return indirectMap; } + + public void setIndirectMap(Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 452764f0d5e..41c013eb3f7 100644 --- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -35,18 +36,17 @@ import javax.validation.Valid; public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; - @JsonProperty(JSON_PROPERTY_UUID) private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @JsonProperty(JSON_PROPERTY_DATE_TIME) private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; - @JsonProperty(JSON_PROPERTY_MAP) private Map map = null; + public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + this.uuid = uuid; return this; } @@ -58,15 +58,22 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public UUID getUuid() { return uuid; } + + public void setUuid(UUID uuid) { this.uuid = uuid; } + public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + this.dateTime = dateTime; return this; } @@ -78,15 +85,22 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OffsetDateTime getDateTime() { return dateTime; } + + public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } + public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + this.map = map; return this; } @@ -106,10 +120,15 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMap() { return map; } + + public void setMap(Map map) { this.map = map; } diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/Model200Response.java index 8de17e10609..06e57644695 100644 --- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/Model200Response.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,14 +31,14 @@ import javax.validation.Valid; public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) private String propertyClass; + public Model200Response name(Integer name) { + this.name = name; return this; } @@ -48,15 +49,22 @@ public class Model200Response { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getName() { return name; } + + public void setName(Integer name) { this.name = name; } + public Model200Response propertyClass(String propertyClass) { + this.propertyClass = propertyClass; return this; } @@ -67,10 +75,15 @@ public class Model200Response { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPropertyClass() { return propertyClass; } + + public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 874cba97c69..1654198bd9f 100644 --- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,18 +30,17 @@ import javax.validation.Valid; public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; - @JsonProperty(JSON_PROPERTY_CODE) private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; - @JsonProperty(JSON_PROPERTY_TYPE) private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; - @JsonProperty(JSON_PROPERTY_MESSAGE) private String message; + public ModelApiResponse code(Integer code) { + this.code = code; return this; } @@ -51,15 +51,22 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getCode() { return code; } + + public void setCode(Integer code) { this.code = code; } + public ModelApiResponse type(String type) { + this.type = type; return this; } @@ -70,15 +77,22 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getType() { return type; } + + public void setType(String type) { this.type = type; } + public ModelApiResponse message(String message) { + this.message = message; return this; } @@ -89,10 +103,15 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/ModelReturn.java index e606f768eb9..21cb3947f08 100644 --- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import javax.validation.Valid; public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; - @JsonProperty(JSON_PROPERTY_RETURN) private Integer _return; + public ModelReturn _return(Integer _return) { + this._return = _return; return this; } @@ -44,10 +46,15 @@ public class ModelReturn { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_RETURN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getReturn() { return _return; } + + public void setReturn(Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/Name.java index 9dfdb681267..867fb98b6da 100644 --- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/Name.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,22 +31,20 @@ import javax.validation.Valid; public class Name { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; - @JsonProperty(JSON_PROPERTY_PROPERTY) private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; - @JsonProperty(JSON_PROPERTY_123NUMBER) private Integer _123number; + public Name name(Integer name) { + this.name = name; return this; } @@ -56,25 +55,38 @@ public class Name { **/ @NotNull @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getName() { return name; } + + public void setName(Integer name) { this.name = name; } + /** * Get snakeCase * @return snakeCase **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getSnakeCase() { return snakeCase; } + + + public Name property(String property) { + this.property = property; return this; } @@ -85,25 +97,36 @@ public class Name { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getProperty() { return property; } + + public void setProperty(String property) { this.property = property; } + /** * Get _123number * @return _123number **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_123NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer get123number() { return _123number; } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/NumberOnly.java index 7f083e23a3d..bbb8733f792 100644 --- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import javax.validation.Valid; public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) private BigDecimal justNumber; + public NumberOnly justNumber(BigDecimal justNumber) { + this.justNumber = justNumber; return this; } @@ -45,10 +47,15 @@ public class NumberOnly { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getJustNumber() { return justNumber; } + + public void setJustNumber(BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/Order.java index 2c967b37274..46638fc6961 100644 --- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/Order.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,19 +31,15 @@ import javax.validation.Valid; public class Order { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; - @JsonProperty(JSON_PROPERTY_PET_ID) private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; - @JsonProperty(JSON_PROPERTY_QUANTITY) private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; - @JsonProperty(JSON_PROPERTY_SHIP_DATE) private OffsetDateTime shipDate; /** @@ -83,14 +80,14 @@ public class Order { } public static final String JSON_PROPERTY_STATUS = "status"; - @JsonProperty(JSON_PROPERTY_STATUS) private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; - @JsonProperty(JSON_PROPERTY_COMPLETE) private Boolean complete = false; + public Order id(Long id) { + this.id = id; return this; } @@ -101,15 +98,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Order petId(Long petId) { + this.petId = petId; return this; } @@ -120,15 +124,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getPetId() { return petId; } + + public void setPetId(Long petId) { this.petId = petId; } + public Order quantity(Integer quantity) { + this.quantity = quantity; return this; } @@ -139,15 +150,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getQuantity() { return quantity; } + + public void setQuantity(Integer quantity) { this.quantity = quantity; } + public Order shipDate(OffsetDateTime shipDate) { + this.shipDate = shipDate; return this; } @@ -159,15 +177,22 @@ public class Order { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OffsetDateTime getShipDate() { return shipDate; } + + public void setShipDate(OffsetDateTime shipDate) { this.shipDate = shipDate; } + public Order status(StatusEnum status) { + this.status = status; return this; } @@ -178,15 +203,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "Order Status") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public StatusEnum getStatus() { return status; } + + public void setStatus(StatusEnum status) { this.status = status; } + public Order complete(Boolean complete) { + this.complete = complete; return this; } @@ -197,10 +229,15 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getComplete() { return complete; } + + public void setComplete(Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/OuterComposite.java index 17e6de1f014..b955d17740b 100644 --- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,18 +31,17 @@ import javax.validation.Valid; public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; - @JsonProperty(JSON_PROPERTY_MY_NUMBER) private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; - @JsonProperty(JSON_PROPERTY_MY_STRING) private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) private Boolean myBoolean; + public OuterComposite myNumber(BigDecimal myNumber) { + this.myNumber = myNumber; return this; } @@ -53,15 +53,22 @@ public class OuterComposite { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getMyNumber() { return myNumber; } + + public void setMyNumber(BigDecimal myNumber) { this.myNumber = myNumber; } + public OuterComposite myString(String myString) { + this.myString = myString; return this; } @@ -72,15 +79,22 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getMyString() { return myString; } + + public void setMyString(String myString) { this.myString = myString; } + public OuterComposite myBoolean(Boolean myBoolean) { + this.myBoolean = myBoolean; return this; } @@ -91,10 +105,15 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getMyBoolean() { return myBoolean; } + + public void setMyBoolean(Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/Pet.java index 55afa63a409..35504055726 100644 --- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/Pet.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -33,23 +34,18 @@ import javax.validation.Valid; public class Pet { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; - @JsonProperty(JSON_PROPERTY_CATEGORY) - private Category category = null; + private Category category; public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) private List photoUrls = new ArrayList<>(); public static final String JSON_PROPERTY_TAGS = "tags"; - @JsonProperty(JSON_PROPERTY_TAGS) private List tags = null; /** @@ -90,10 +86,11 @@ public class Pet { } public static final String JSON_PROPERTY_STATUS = "status"; - @JsonProperty(JSON_PROPERTY_STATUS) private StatusEnum status; + public Pet id(Long id) { + this.id = id; return this; } @@ -104,15 +101,22 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Pet category(Category category) { + this.category = category; return this; } @@ -124,15 +128,22 @@ public class Pet { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Category getCategory() { return category; } + + public void setCategory(Category category) { this.category = category; } + public Pet name(String name) { + this.name = name; return this; } @@ -143,15 +154,22 @@ public class Pet { **/ @NotNull @ApiModelProperty(example = "doggie", required = true, value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public Pet photoUrls(List photoUrls) { + this.photoUrls = photoUrls; return this; } @@ -167,15 +185,22 @@ public class Pet { **/ @NotNull @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getPhotoUrls() { return photoUrls; } + + public void setPhotoUrls(List photoUrls) { this.photoUrls = photoUrls; } + public Pet tags(List tags) { + this.tags = tags; return this; } @@ -195,15 +220,22 @@ public class Pet { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getTags() { return tags; } + + public void setTags(List tags) { this.tags = tags; } + public Pet status(StatusEnum status) { + this.status = status; return this; } @@ -214,10 +246,15 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "pet status in the store") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public StatusEnum getStatus() { return status; } + + public void setStatus(StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 61b2e2debfd..d5ec6535004 100644 --- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,24 +30,30 @@ import javax.validation.Valid; public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; - @JsonProperty(JSON_PROPERTY_BAR) private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; - @JsonProperty(JSON_PROPERTY_BAZ) private String baz; + /** * Get bar * @return bar **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BAR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBar() { return bar; } + + + public ReadOnlyFirst baz(String baz) { + this.baz = baz; return this; } @@ -57,10 +64,15 @@ public class ReadOnlyFirst { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BAZ) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBaz() { return baz; } + + public void setBaz(String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/SpecialModelName.java index 65fabe673de..57bbc49e653 100644 --- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import javax.validation.Valid; public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) private Long $specialPropertyName; + public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + this.$specialPropertyName = $specialPropertyName; return this; } @@ -43,10 +45,15 @@ public class SpecialModelName { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long get$SpecialPropertyName() { return $specialPropertyName; } + + public void set$SpecialPropertyName(Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/Tag.java index 42f80f36b72..e8c90d390b5 100644 --- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/Tag.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,14 +30,14 @@ import javax.validation.Valid; public class Tag { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public Tag id(Long id) { + this.id = id; return this; } @@ -47,15 +48,22 @@ public class Tag { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Tag name(String name) { + this.name = name; return this; } @@ -66,10 +74,15 @@ public class Tag { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index 0468a2364b1..616ea23cb16 100644 --- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -32,26 +33,23 @@ import javax.validation.Valid; public class TypeHolderDefault { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; - @JsonProperty(JSON_PROPERTY_STRING_ITEM) private String stringItem = "what"; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) private BigDecimal numberItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) private Boolean boolItem = true; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) private List arrayItem = new ArrayList<>(); + public TypeHolderDefault stringItem(String stringItem) { + this.stringItem = stringItem; return this; } @@ -62,15 +60,22 @@ public class TypeHolderDefault { **/ @NotNull @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getStringItem() { return stringItem; } + + public void setStringItem(String stringItem) { this.stringItem = stringItem; } + public TypeHolderDefault numberItem(BigDecimal numberItem) { + this.numberItem = numberItem; return this; } @@ -82,15 +87,22 @@ public class TypeHolderDefault { @NotNull @Valid @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getNumberItem() { return numberItem; } + + public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } + public TypeHolderDefault integerItem(Integer integerItem) { + this.integerItem = integerItem; return this; } @@ -101,15 +113,22 @@ public class TypeHolderDefault { **/ @NotNull @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getIntegerItem() { return integerItem; } + + public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } + public TypeHolderDefault boolItem(Boolean boolItem) { + this.boolItem = boolItem; return this; } @@ -120,15 +139,22 @@ public class TypeHolderDefault { **/ @NotNull @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Boolean getBoolItem() { return boolItem; } + + public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } + public TypeHolderDefault arrayItem(List arrayItem) { + this.arrayItem = arrayItem; return this; } @@ -144,10 +170,15 @@ public class TypeHolderDefault { **/ @NotNull @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getArrayItem() { return arrayItem; } + + public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/TypeHolderExample.java index 2912e8d03e3..1371f92ce05 100644 --- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -32,26 +33,23 @@ import javax.validation.Valid; public class TypeHolderExample { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; - @JsonProperty(JSON_PROPERTY_STRING_ITEM) private String stringItem; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) private BigDecimal numberItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) private Boolean boolItem; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) private List arrayItem = new ArrayList<>(); + public TypeHolderExample stringItem(String stringItem) { + this.stringItem = stringItem; return this; } @@ -62,15 +60,22 @@ public class TypeHolderExample { **/ @NotNull @ApiModelProperty(example = "what", required = true, value = "") + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getStringItem() { return stringItem; } + + public void setStringItem(String stringItem) { this.stringItem = stringItem; } + public TypeHolderExample numberItem(BigDecimal numberItem) { + this.numberItem = numberItem; return this; } @@ -82,15 +87,22 @@ public class TypeHolderExample { @NotNull @Valid @ApiModelProperty(example = "1.234", required = true, value = "") + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getNumberItem() { return numberItem; } + + public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } + public TypeHolderExample integerItem(Integer integerItem) { + this.integerItem = integerItem; return this; } @@ -101,15 +113,22 @@ public class TypeHolderExample { **/ @NotNull @ApiModelProperty(example = "-2", required = true, value = "") + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getIntegerItem() { return integerItem; } + + public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } + public TypeHolderExample boolItem(Boolean boolItem) { + this.boolItem = boolItem; return this; } @@ -120,15 +139,22 @@ public class TypeHolderExample { **/ @NotNull @ApiModelProperty(example = "true", required = true, value = "") + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Boolean getBoolItem() { return boolItem; } + + public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } + public TypeHolderExample arrayItem(List arrayItem) { + this.arrayItem = arrayItem; return this; } @@ -144,10 +170,15 @@ public class TypeHolderExample { **/ @NotNull @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getArrayItem() { return arrayItem; } + + public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/User.java index ebfc1761025..b978f2f9256 100644 --- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/User.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,38 +30,32 @@ import javax.validation.Valid; public class User { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; - @JsonProperty(JSON_PROPERTY_USERNAME) private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; - @JsonProperty(JSON_PROPERTY_FIRST_NAME) private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; - @JsonProperty(JSON_PROPERTY_LAST_NAME) private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; - @JsonProperty(JSON_PROPERTY_EMAIL) private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; - @JsonProperty(JSON_PROPERTY_PASSWORD) private String password; public static final String JSON_PROPERTY_PHONE = "phone"; - @JsonProperty(JSON_PROPERTY_PHONE) private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; - @JsonProperty(JSON_PROPERTY_USER_STATUS) private Integer userStatus; + public User id(Long id) { + this.id = id; return this; } @@ -71,15 +66,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public User username(String username) { + this.username = username; return this; } @@ -90,15 +92,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getUsername() { return username; } + + public void setUsername(String username) { this.username = username; } + public User firstName(String firstName) { + this.firstName = firstName; return this; } @@ -109,15 +118,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getFirstName() { return firstName; } + + public void setFirstName(String firstName) { this.firstName = firstName; } + public User lastName(String lastName) { + this.lastName = lastName; return this; } @@ -128,15 +144,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getLastName() { return lastName; } + + public void setLastName(String lastName) { this.lastName = lastName; } + public User email(String email) { + this.email = email; return this; } @@ -147,15 +170,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getEmail() { return email; } + + public void setEmail(String email) { this.email = email; } + public User password(String password) { + this.password = password; return this; } @@ -166,15 +196,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPassword() { return password; } + + public void setPassword(String password) { this.password = password; } + public User phone(String phone) { + this.phone = phone; return this; } @@ -185,15 +222,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PHONE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPhone() { return phone; } + + public void setPhone(String phone) { this.phone = phone; } + public User userStatus(Integer userStatus) { + this.userStatus = userStatus; return this; } @@ -204,10 +248,15 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "User Status") + @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getUserStatus() { return userStatus; } + + public void setUserStatus(Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/XmlItem.java index faac7f4a60f..5cfa64408e0 100644 --- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/XmlItem.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -32,122 +33,95 @@ import javax.validation.Valid; public class XmlItem { public static final String JSON_PROPERTY_ATTRIBUTE_STRING = "attribute_string"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) private String attributeString; public static final String JSON_PROPERTY_ATTRIBUTE_NUMBER = "attribute_number"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) private BigDecimal attributeNumber; public static final String JSON_PROPERTY_ATTRIBUTE_INTEGER = "attribute_integer"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) private Integer attributeInteger; public static final String JSON_PROPERTY_ATTRIBUTE_BOOLEAN = "attribute_boolean"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) private Boolean attributeBoolean; public static final String JSON_PROPERTY_WRAPPED_ARRAY = "wrapped_array"; - @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) private List wrappedArray = null; public static final String JSON_PROPERTY_NAME_STRING = "name_string"; - @JsonProperty(JSON_PROPERTY_NAME_STRING) private String nameString; public static final String JSON_PROPERTY_NAME_NUMBER = "name_number"; - @JsonProperty(JSON_PROPERTY_NAME_NUMBER) private BigDecimal nameNumber; public static final String JSON_PROPERTY_NAME_INTEGER = "name_integer"; - @JsonProperty(JSON_PROPERTY_NAME_INTEGER) private Integer nameInteger; public static final String JSON_PROPERTY_NAME_BOOLEAN = "name_boolean"; - @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) private Boolean nameBoolean; public static final String JSON_PROPERTY_NAME_ARRAY = "name_array"; - @JsonProperty(JSON_PROPERTY_NAME_ARRAY) private List nameArray = null; public static final String JSON_PROPERTY_NAME_WRAPPED_ARRAY = "name_wrapped_array"; - @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) private List nameWrappedArray = null; public static final String JSON_PROPERTY_PREFIX_STRING = "prefix_string"; - @JsonProperty(JSON_PROPERTY_PREFIX_STRING) private String prefixString; public static final String JSON_PROPERTY_PREFIX_NUMBER = "prefix_number"; - @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) private BigDecimal prefixNumber; public static final String JSON_PROPERTY_PREFIX_INTEGER = "prefix_integer"; - @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) private Integer prefixInteger; public static final String JSON_PROPERTY_PREFIX_BOOLEAN = "prefix_boolean"; - @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) private Boolean prefixBoolean; public static final String JSON_PROPERTY_PREFIX_ARRAY = "prefix_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) private List prefixArray = null; public static final String JSON_PROPERTY_PREFIX_WRAPPED_ARRAY = "prefix_wrapped_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) private List prefixWrappedArray = null; public static final String JSON_PROPERTY_NAMESPACE_STRING = "namespace_string"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) private String namespaceString; public static final String JSON_PROPERTY_NAMESPACE_NUMBER = "namespace_number"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) private BigDecimal namespaceNumber; public static final String JSON_PROPERTY_NAMESPACE_INTEGER = "namespace_integer"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) private Integer namespaceInteger; public static final String JSON_PROPERTY_NAMESPACE_BOOLEAN = "namespace_boolean"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) private Boolean namespaceBoolean; public static final String JSON_PROPERTY_NAMESPACE_ARRAY = "namespace_array"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) private List namespaceArray = null; public static final String JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY = "namespace_wrapped_array"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) private List namespaceWrappedArray = null; public static final String JSON_PROPERTY_PREFIX_NS_STRING = "prefix_ns_string"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) private String prefixNsString; public static final String JSON_PROPERTY_PREFIX_NS_NUMBER = "prefix_ns_number"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) private BigDecimal prefixNsNumber; public static final String JSON_PROPERTY_PREFIX_NS_INTEGER = "prefix_ns_integer"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) private Integer prefixNsInteger; public static final String JSON_PROPERTY_PREFIX_NS_BOOLEAN = "prefix_ns_boolean"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) private Boolean prefixNsBoolean; public static final String JSON_PROPERTY_PREFIX_NS_ARRAY = "prefix_ns_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) private List prefixNsArray = null; public static final String JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY = "prefix_ns_wrapped_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) private List prefixNsWrappedArray = null; + public XmlItem attributeString(String attributeString) { + this.attributeString = attributeString; return this; } @@ -158,15 +132,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getAttributeString() { return attributeString; } + + public void setAttributeString(String attributeString) { this.attributeString = attributeString; } + public XmlItem attributeNumber(BigDecimal attributeNumber) { + this.attributeNumber = attributeNumber; return this; } @@ -178,15 +159,22 @@ public class XmlItem { @javax.annotation.Nullable @Valid @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getAttributeNumber() { return attributeNumber; } + + public void setAttributeNumber(BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } + public XmlItem attributeInteger(Integer attributeInteger) { + this.attributeInteger = attributeInteger; return this; } @@ -197,15 +185,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getAttributeInteger() { return attributeInteger; } + + public void setAttributeInteger(Integer attributeInteger) { this.attributeInteger = attributeInteger; } + public XmlItem attributeBoolean(Boolean attributeBoolean) { + this.attributeBoolean = attributeBoolean; return this; } @@ -216,15 +211,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getAttributeBoolean() { return attributeBoolean; } + + public void setAttributeBoolean(Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } + public XmlItem wrappedArray(List wrappedArray) { + this.wrappedArray = wrappedArray; return this; } @@ -243,15 +245,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getWrappedArray() { return wrappedArray; } + + public void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } + public XmlItem nameString(String nameString) { + this.nameString = nameString; return this; } @@ -262,15 +271,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_NAME_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getNameString() { return nameString; } + + public void setNameString(String nameString) { this.nameString = nameString; } + public XmlItem nameNumber(BigDecimal nameNumber) { + this.nameNumber = nameNumber; return this; } @@ -282,15 +298,22 @@ public class XmlItem { @javax.annotation.Nullable @Valid @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_NAME_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getNameNumber() { return nameNumber; } + + public void setNameNumber(BigDecimal nameNumber) { this.nameNumber = nameNumber; } + public XmlItem nameInteger(Integer nameInteger) { + this.nameInteger = nameInteger; return this; } @@ -301,15 +324,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_NAME_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getNameInteger() { return nameInteger; } + + public void setNameInteger(Integer nameInteger) { this.nameInteger = nameInteger; } + public XmlItem nameBoolean(Boolean nameBoolean) { + this.nameBoolean = nameBoolean; return this; } @@ -320,15 +350,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getNameBoolean() { return nameBoolean; } + + public void setNameBoolean(Boolean nameBoolean) { this.nameBoolean = nameBoolean; } + public XmlItem nameArray(List nameArray) { + this.nameArray = nameArray; return this; } @@ -347,15 +384,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNameArray() { return nameArray; } + + public void setNameArray(List nameArray) { this.nameArray = nameArray; } + public XmlItem nameWrappedArray(List nameWrappedArray) { + this.nameWrappedArray = nameWrappedArray; return this; } @@ -374,15 +418,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNameWrappedArray() { return nameWrappedArray; } + + public void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } + public XmlItem prefixString(String prefixString) { + this.prefixString = prefixString; return this; } @@ -393,15 +444,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPrefixString() { return prefixString; } + + public void setPrefixString(String prefixString) { this.prefixString = prefixString; } + public XmlItem prefixNumber(BigDecimal prefixNumber) { + this.prefixNumber = prefixNumber; return this; } @@ -413,15 +471,22 @@ public class XmlItem { @javax.annotation.Nullable @Valid @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getPrefixNumber() { return prefixNumber; } + + public void setPrefixNumber(BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } + public XmlItem prefixInteger(Integer prefixInteger) { + this.prefixInteger = prefixInteger; return this; } @@ -432,15 +497,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getPrefixInteger() { return prefixInteger; } + + public void setPrefixInteger(Integer prefixInteger) { this.prefixInteger = prefixInteger; } + public XmlItem prefixBoolean(Boolean prefixBoolean) { + this.prefixBoolean = prefixBoolean; return this; } @@ -451,15 +523,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getPrefixBoolean() { return prefixBoolean; } + + public void setPrefixBoolean(Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } + public XmlItem prefixArray(List prefixArray) { + this.prefixArray = prefixArray; return this; } @@ -478,15 +557,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixArray() { return prefixArray; } + + public void setPrefixArray(List prefixArray) { this.prefixArray = prefixArray; } + public XmlItem prefixWrappedArray(List prefixWrappedArray) { + this.prefixWrappedArray = prefixWrappedArray; return this; } @@ -505,15 +591,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixWrappedArray() { return prefixWrappedArray; } + + public void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } + public XmlItem namespaceString(String namespaceString) { + this.namespaceString = namespaceString; return this; } @@ -524,15 +617,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getNamespaceString() { return namespaceString; } + + public void setNamespaceString(String namespaceString) { this.namespaceString = namespaceString; } + public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + this.namespaceNumber = namespaceNumber; return this; } @@ -544,15 +644,22 @@ public class XmlItem { @javax.annotation.Nullable @Valid @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getNamespaceNumber() { return namespaceNumber; } + + public void setNamespaceNumber(BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } + public XmlItem namespaceInteger(Integer namespaceInteger) { + this.namespaceInteger = namespaceInteger; return this; } @@ -563,15 +670,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getNamespaceInteger() { return namespaceInteger; } + + public void setNamespaceInteger(Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } + public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + this.namespaceBoolean = namespaceBoolean; return this; } @@ -582,15 +696,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getNamespaceBoolean() { return namespaceBoolean; } + + public void setNamespaceBoolean(Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } + public XmlItem namespaceArray(List namespaceArray) { + this.namespaceArray = namespaceArray; return this; } @@ -609,15 +730,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNamespaceArray() { return namespaceArray; } + + public void setNamespaceArray(List namespaceArray) { this.namespaceArray = namespaceArray; } + public XmlItem namespaceWrappedArray(List namespaceWrappedArray) { + this.namespaceWrappedArray = namespaceWrappedArray; return this; } @@ -636,15 +764,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNamespaceWrappedArray() { return namespaceWrappedArray; } + + public void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } + public XmlItem prefixNsString(String prefixNsString) { + this.prefixNsString = prefixNsString; return this; } @@ -655,15 +790,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPrefixNsString() { return prefixNsString; } + + public void setPrefixNsString(String prefixNsString) { this.prefixNsString = prefixNsString; } + public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + this.prefixNsNumber = prefixNsNumber; return this; } @@ -675,15 +817,22 @@ public class XmlItem { @javax.annotation.Nullable @Valid @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getPrefixNsNumber() { return prefixNsNumber; } + + public void setPrefixNsNumber(BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } + public XmlItem prefixNsInteger(Integer prefixNsInteger) { + this.prefixNsInteger = prefixNsInteger; return this; } @@ -694,15 +843,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getPrefixNsInteger() { return prefixNsInteger; } + + public void setPrefixNsInteger(Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } + public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + this.prefixNsBoolean = prefixNsBoolean; return this; } @@ -713,15 +869,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getPrefixNsBoolean() { return prefixNsBoolean; } + + public void setPrefixNsBoolean(Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } + public XmlItem prefixNsArray(List prefixNsArray) { + this.prefixNsArray = prefixNsArray; return this; } @@ -740,15 +903,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixNsArray() { return prefixNsArray; } + + public void setPrefixNsArray(List prefixNsArray) { this.prefixNsArray = prefixNsArray; } + public XmlItem prefixNsWrappedArray(List prefixNsWrappedArray) { + this.prefixNsWrappedArray = prefixNsWrappedArray; return this; } @@ -767,10 +937,15 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixNsWrappedArray() { return prefixNsWrappedArray; } + + public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/retrofit2-play25/docs/UserApi.md b/samples/client/petstore/java/retrofit2-play25/docs/UserApi.md index bdf473df90d..d03e871ce01 100644 --- a/samples/client/petstore/java/retrofit2-play25/docs/UserApi.md +++ b/samples/client/petstore/java/retrofit2-play25/docs/UserApi.md @@ -101,7 +101,7 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); UserApi apiInstance = new UserApi(defaultClient); - List body = Arrays.asList(null); // List | List of user object + List body = Arrays.asList(); // List | List of user object try { apiInstance.createUsersWithArrayInput(body); } catch (ApiException e) { @@ -163,7 +163,7 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); UserApi apiInstance = new UserApi(defaultClient); - List body = Arrays.asList(null); // List | List of user object + List body = Arrays.asList(); // List | List of user object try { apiInstance.createUsersWithListInput(body); } catch (ApiException e) { diff --git a/samples/client/petstore/java/retrofit2-play25/pom.xml b/samples/client/petstore/java/retrofit2-play25/pom.xml index e82fe6f2b11..1ee0ac8e916 100644 --- a/samples/client/petstore/java/retrofit2-play25/pom.xml +++ b/samples/client/petstore/java/retrofit2-play25/pom.xml @@ -264,6 +264,11 @@ play-java-ws_2.11 ${play-version} + + org.openapitools + jackson-databind-nullable + ${jackson-databind-nullable-version} + junit @@ -282,6 +287,7 @@ 2.9.9 2.9.9 2.5.15 + 0.2.0 2.5.0 1.3.8 1.0.1 diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/ApiClient.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/ApiClient.java index a5776c695f9..13dfce951a2 100644 --- a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/ApiClient.java +++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/ApiClient.java @@ -8,6 +8,8 @@ import java.util.*; import retrofit2.Retrofit; import retrofit2.converter.scalars.ScalarsConverterFactory; import retrofit2.converter.jackson.JacksonConverterFactory; +import com.fasterxml.jackson.databind.ObjectMapper; +import org.openapitools.jackson.nullable.JsonNullableModule; import play.libs.Json; import play.libs.ws.WSClient; @@ -68,10 +70,14 @@ public class ApiClient { auth.applyToParams(extraQueryParams, extraHeaders); } + ObjectMapper mapper = Json.mapper(); + JsonNullableModule jnm = new JsonNullableModule(); + mapper.registerModule(jnm); + return new Retrofit.Builder() .baseUrl(basePath) .addConverterFactory(ScalarsConverterFactory.create()) - .addConverterFactory(JacksonConverterFactory.create(Json.mapper())) + .addConverterFactory(JacksonConverterFactory.create(mapper)) .callFactory(new Play25CallFactory(wsClient, extraHeaders, extraQueryParams)) .addCallAdapterFactory(new Play25CallAdapterFactory()) .build() diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index fccdfd9063b..931acb78d02 100644 --- a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,10 +32,11 @@ import javax.validation.Valid; public class AdditionalPropertiesAnyType extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesAnyType name(String name) { + this.name = name; return this; } @@ -45,10 +47,15 @@ public class AdditionalPropertiesAnyType extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index ca93793eb92..53a0fa23dc8 100644 --- a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -32,10 +33,11 @@ import javax.validation.Valid; public class AdditionalPropertiesArray extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesArray name(String name) { + this.name = name; return this; } @@ -46,10 +48,15 @@ public class AdditionalPropertiesArray extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index bcc0c1468af..f2eb8b16a90 100644 --- a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,10 +32,11 @@ import javax.validation.Valid; public class AdditionalPropertiesBoolean extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesBoolean name(String name) { + this.name = name; return this; } @@ -45,10 +47,15 @@ public class AdditionalPropertiesBoolean extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index b496f247edb..fd975cb4322 100644 --- a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -33,50 +34,41 @@ import javax.validation.Valid; public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_STRING = "map_string"; - @JsonProperty(JSON_PROPERTY_MAP_STRING) private Map mapString = null; public static final String JSON_PROPERTY_MAP_NUMBER = "map_number"; - @JsonProperty(JSON_PROPERTY_MAP_NUMBER) private Map mapNumber = null; public static final String JSON_PROPERTY_MAP_INTEGER = "map_integer"; - @JsonProperty(JSON_PROPERTY_MAP_INTEGER) private Map mapInteger = null; public static final String JSON_PROPERTY_MAP_BOOLEAN = "map_boolean"; - @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) private Map mapBoolean = null; public static final String JSON_PROPERTY_MAP_ARRAY_INTEGER = "map_array_integer"; - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) private Map> mapArrayInteger = null; public static final String JSON_PROPERTY_MAP_ARRAY_ANYTYPE = "map_array_anytype"; - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) private Map> mapArrayAnytype = null; public static final String JSON_PROPERTY_MAP_MAP_STRING = "map_map_string"; - @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) private Map> mapMapString = null; public static final String JSON_PROPERTY_MAP_MAP_ANYTYPE = "map_map_anytype"; - @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) private Map> mapMapAnytype = null; public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1"; - @JsonProperty(JSON_PROPERTY_ANYTYPE1) - private Object anytype1 = null; + private Object anytype1; public static final String JSON_PROPERTY_ANYTYPE2 = "anytype_2"; - @JsonProperty(JSON_PROPERTY_ANYTYPE2) - private Object anytype2 = null; + private Object anytype2; public static final String JSON_PROPERTY_ANYTYPE3 = "anytype_3"; - @JsonProperty(JSON_PROPERTY_ANYTYPE3) - private Object anytype3 = null; + private Object anytype3; + public AdditionalPropertiesClass mapString(Map mapString) { + this.mapString = mapString; return this; } @@ -95,15 +87,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapString() { return mapString; } + + public void setMapString(Map mapString) { this.mapString = mapString; } + public AdditionalPropertiesClass mapNumber(Map mapNumber) { + this.mapNumber = mapNumber; return this; } @@ -123,15 +122,22 @@ public class AdditionalPropertiesClass { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapNumber() { return mapNumber; } + + public void setMapNumber(Map mapNumber) { this.mapNumber = mapNumber; } + public AdditionalPropertiesClass mapInteger(Map mapInteger) { + this.mapInteger = mapInteger; return this; } @@ -150,15 +156,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapInteger() { return mapInteger; } + + public void setMapInteger(Map mapInteger) { this.mapInteger = mapInteger; } + public AdditionalPropertiesClass mapBoolean(Map mapBoolean) { + this.mapBoolean = mapBoolean; return this; } @@ -177,15 +190,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapBoolean() { return mapBoolean; } + + public void setMapBoolean(Map mapBoolean) { this.mapBoolean = mapBoolean; } + public AdditionalPropertiesClass mapArrayInteger(Map> mapArrayInteger) { + this.mapArrayInteger = mapArrayInteger; return this; } @@ -205,15 +225,22 @@ public class AdditionalPropertiesClass { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapArrayInteger() { return mapArrayInteger; } + + public void setMapArrayInteger(Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; } + public AdditionalPropertiesClass mapArrayAnytype(Map> mapArrayAnytype) { + this.mapArrayAnytype = mapArrayAnytype; return this; } @@ -233,15 +260,22 @@ public class AdditionalPropertiesClass { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapArrayAnytype() { return mapArrayAnytype; } + + public void setMapArrayAnytype(Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; } + public AdditionalPropertiesClass mapMapString(Map> mapMapString) { + this.mapMapString = mapMapString; return this; } @@ -261,15 +295,22 @@ public class AdditionalPropertiesClass { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapMapString() { return mapMapString; } + + public void setMapMapString(Map> mapMapString) { this.mapMapString = mapMapString; } + public AdditionalPropertiesClass mapMapAnytype(Map> mapMapAnytype) { + this.mapMapAnytype = mapMapAnytype; return this; } @@ -289,15 +330,22 @@ public class AdditionalPropertiesClass { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapMapAnytype() { return mapMapAnytype; } + + public void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } + public AdditionalPropertiesClass anytype1(Object anytype1) { + this.anytype1 = anytype1; return this; } @@ -309,15 +357,22 @@ public class AdditionalPropertiesClass { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Object getAnytype1() { return anytype1; } + + public void setAnytype1(Object anytype1) { this.anytype1 = anytype1; } + public AdditionalPropertiesClass anytype2(Object anytype2) { + this.anytype2 = anytype2; return this; } @@ -329,15 +384,22 @@ public class AdditionalPropertiesClass { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ANYTYPE2) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Object getAnytype2() { return anytype2; } + + public void setAnytype2(Object anytype2) { this.anytype2 = anytype2; } + public AdditionalPropertiesClass anytype3(Object anytype3) { + this.anytype3 = anytype3; return this; } @@ -349,10 +411,15 @@ public class AdditionalPropertiesClass { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ANYTYPE3) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Object getAnytype3() { return anytype3; } + + public void setAnytype3(Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 9df2c41186a..eb61f3d19b1 100644 --- a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,10 +32,11 @@ import javax.validation.Valid; public class AdditionalPropertiesInteger extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesInteger name(String name) { + this.name = name; return this; } @@ -45,10 +47,15 @@ public class AdditionalPropertiesInteger extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index 9a86f4a655d..bc848dbd7af 100644 --- a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -32,10 +33,11 @@ import javax.validation.Valid; public class AdditionalPropertiesNumber extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesNumber name(String name) { + this.name = name; return this; } @@ -46,10 +48,15 @@ public class AdditionalPropertiesNumber extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index d7e32f25cbe..310e15933b9 100644 --- a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,10 +32,11 @@ import javax.validation.Valid; public class AdditionalPropertiesObject extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesObject name(String name) { + this.name = name; return this; } @@ -45,10 +47,15 @@ public class AdditionalPropertiesObject extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 600622d7cab..6e8d95c90bb 100644 --- a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,10 +32,11 @@ import javax.validation.Valid; public class AdditionalPropertiesString extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesString name(String name) { + this.name = name; return this; } @@ -45,10 +47,15 @@ public class AdditionalPropertiesString extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/Animal.java index a43ceea7064..14f103575f6 100644 --- a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/Animal.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; @@ -37,14 +38,14 @@ import javax.validation.Valid; public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; - @JsonProperty(JSON_PROPERTY_CLASS_NAME) private String className; public static final String JSON_PROPERTY_COLOR = "color"; - @JsonProperty(JSON_PROPERTY_COLOR) private String color = "red"; + public Animal className(String className) { + this.className = className; return this; } @@ -55,15 +56,22 @@ public class Animal { **/ @NotNull @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getClassName() { return className; } + + public void setClassName(String className) { this.className = className; } + public Animal color(String color) { + this.color = color; return this; } @@ -74,10 +82,15 @@ public class Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_COLOR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getColor() { return color; } + + public void setColor(String color) { this.color = color; } diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 522aa684b8f..f1d99efbcae 100644 --- a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -32,10 +33,11 @@ import javax.validation.Valid; public class ArrayOfArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) private List> arrayArrayNumber = null; + public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + this.arrayArrayNumber = arrayArrayNumber; return this; } @@ -55,10 +57,15 @@ public class ArrayOfArrayOfNumberOnly { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List> getArrayArrayNumber() { return arrayArrayNumber; } + + public void setArrayArrayNumber(List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 129fd212c4e..633405dc643 100644 --- a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -32,10 +33,11 @@ import javax.validation.Valid; public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) private List arrayNumber = null; + public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + this.arrayNumber = arrayNumber; return this; } @@ -55,10 +57,15 @@ public class ArrayOfNumberOnly { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArrayNumber() { return arrayNumber; } + + public void setArrayNumber(List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/ArrayTest.java index f013f81ef59..8f970b0de19 100644 --- a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -32,18 +33,17 @@ import javax.validation.Valid; public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) private List arrayOfString = null; public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) private List> arrayArrayOfInteger = null; public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) private List> arrayArrayOfModel = null; + public ArrayTest arrayOfString(List arrayOfString) { + this.arrayOfString = arrayOfString; return this; } @@ -62,15 +62,22 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArrayOfString() { return arrayOfString; } + + public void setArrayOfString(List arrayOfString) { this.arrayOfString = arrayOfString; } + public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + this.arrayArrayOfInteger = arrayArrayOfInteger; return this; } @@ -90,15 +97,22 @@ public class ArrayTest { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List> getArrayArrayOfInteger() { return arrayArrayOfInteger; } + + public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } + public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + this.arrayArrayOfModel = arrayArrayOfModel; return this; } @@ -118,10 +132,15 @@ public class ArrayTest { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List> getArrayArrayOfModel() { return arrayArrayOfModel; } + + public void setArrayArrayOfModel(List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/Capitalization.java index 65f5b799d25..184e17e6e33 100644 --- a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/Capitalization.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,30 +30,26 @@ import javax.validation.Valid; public class Capitalization { public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) private String smallCamel; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) private String capitalCamel; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) private String smallSnake; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) private String capitalSnake; public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) private String scAETHFlowPoints; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) private String ATT_NAME; + public Capitalization smallCamel(String smallCamel) { + this.smallCamel = smallCamel; return this; } @@ -63,15 +60,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSmallCamel() { return smallCamel; } + + public void setSmallCamel(String smallCamel) { this.smallCamel = smallCamel; } + public Capitalization capitalCamel(String capitalCamel) { + this.capitalCamel = capitalCamel; return this; } @@ -82,15 +86,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getCapitalCamel() { return capitalCamel; } + + public void setCapitalCamel(String capitalCamel) { this.capitalCamel = capitalCamel; } + public Capitalization smallSnake(String smallSnake) { + this.smallSnake = smallSnake; return this; } @@ -101,15 +112,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSmallSnake() { return smallSnake; } + + public void setSmallSnake(String smallSnake) { this.smallSnake = smallSnake; } + public Capitalization capitalSnake(String capitalSnake) { + this.capitalSnake = capitalSnake; return this; } @@ -120,15 +138,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getCapitalSnake() { return capitalSnake; } + + public void setCapitalSnake(String capitalSnake) { this.capitalSnake = capitalSnake; } + public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -139,15 +164,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getScAETHFlowPoints() { return scAETHFlowPoints; } + + public void setScAETHFlowPoints(String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } + public Capitalization ATT_NAME(String ATT_NAME) { + this.ATT_NAME = ATT_NAME; return this; } @@ -158,10 +190,15 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "Name of the pet ") + @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getATTNAME() { return ATT_NAME; } + + public void setATTNAME(String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/Cat.java index d0e872ebd73..be07b377162 100644 --- a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/Cat.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,10 +32,11 @@ import javax.validation.Valid; public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; - @JsonProperty(JSON_PROPERTY_DECLAWED) private Boolean declawed; + public Cat declawed(Boolean declawed) { + this.declawed = declawed; return this; } @@ -45,10 +47,15 @@ public class Cat extends Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getDeclawed() { return declawed; } + + public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/CatAllOf.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/CatAllOf.java index e72f96cee93..f151c8dcfa1 100644 --- a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/CatAllOf.java +++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/CatAllOf.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import javax.validation.Valid; public class CatAllOf { public static final String JSON_PROPERTY_DECLAWED = "declawed"; - @JsonProperty(JSON_PROPERTY_DECLAWED) private Boolean declawed; + public CatAllOf declawed(Boolean declawed) { + this.declawed = declawed; return this; } @@ -43,10 +45,15 @@ public class CatAllOf { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getDeclawed() { return declawed; } + + public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/Category.java index 4f388371ed5..785168bb3c3 100644 --- a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/Category.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,14 +30,14 @@ import javax.validation.Valid; public class Category { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name = "default-name"; + public Category id(Long id) { + this.id = id; return this; } @@ -47,15 +48,22 @@ public class Category { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Category name(String name) { + this.name = name; return this; } @@ -66,10 +74,15 @@ public class Category { **/ @NotNull @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/ClassModel.java index b7b9081f44a..3517965abfd 100644 --- a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/ClassModel.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import javax.validation.Valid; public class ClassModel { public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) private String propertyClass; + public ClassModel propertyClass(String propertyClass) { + this.propertyClass = propertyClass; return this; } @@ -44,10 +46,15 @@ public class ClassModel { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPropertyClass() { return propertyClass; } + + public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/Client.java index b0ae0657c79..fffb2327a85 100644 --- a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/Client.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import javax.validation.Valid; public class Client { public static final String JSON_PROPERTY_CLIENT = "client"; - @JsonProperty(JSON_PROPERTY_CLIENT) private String client; + public Client client(String client) { + this.client = client; return this; } @@ -43,10 +45,15 @@ public class Client { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getClient() { return client; } + + public void setClient(String client) { this.client = client; } diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/Dog.java index d9656d309a7..1d78edf3271 100644 --- a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/Dog.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,10 +32,11 @@ import javax.validation.Valid; public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; - @JsonProperty(JSON_PROPERTY_BREED) private String breed; + public Dog breed(String breed) { + this.breed = breed; return this; } @@ -45,10 +47,15 @@ public class Dog extends Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBreed() { return breed; } + + public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/DogAllOf.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/DogAllOf.java index 500f5a63d0e..b1e62d04ec3 100644 --- a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/DogAllOf.java +++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/DogAllOf.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import javax.validation.Valid; public class DogAllOf { public static final String JSON_PROPERTY_BREED = "breed"; - @JsonProperty(JSON_PROPERTY_BREED) private String breed; + public DogAllOf breed(String breed) { + this.breed = breed; return this; } @@ -43,10 +45,15 @@ public class DogAllOf { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBreed() { return breed; } + + public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/EnumArrays.java index 1a36a2872ee..be59e0f13d6 100644 --- a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -66,7 +67,6 @@ public class EnumArrays { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) private JustSymbolEnum justSymbol; /** @@ -105,10 +105,11 @@ public class EnumArrays { } public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) private List arrayEnum = null; + public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + this.justSymbol = justSymbol; return this; } @@ -119,15 +120,22 @@ public class EnumArrays { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public JustSymbolEnum getJustSymbol() { return justSymbol; } + + public void setJustSymbol(JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } + public EnumArrays arrayEnum(List arrayEnum) { + this.arrayEnum = arrayEnum; return this; } @@ -146,10 +154,15 @@ public class EnumArrays { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArrayEnum() { return arrayEnum; } + + public void setArrayEnum(List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/EnumTest.java index 7148143b17d..6c085cfd6be 100644 --- a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/EnumTest.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -67,7 +68,6 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; - @JsonProperty(JSON_PROPERTY_ENUM_STRING) private EnumStringEnum enumString; /** @@ -108,7 +108,6 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) private EnumStringRequiredEnum enumStringRequired; /** @@ -147,7 +146,6 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) private EnumIntegerEnum enumInteger; /** @@ -186,14 +184,14 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) private OuterEnum outerEnum; + public EnumTest enumString(EnumStringEnum enumString) { + this.enumString = enumString; return this; } @@ -204,15 +202,22 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public EnumStringEnum getEnumString() { return enumString; } + + public void setEnumString(EnumStringEnum enumString) { this.enumString = enumString; } + public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + this.enumStringRequired = enumStringRequired; return this; } @@ -223,15 +228,22 @@ public class EnumTest { **/ @NotNull @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; } + + public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } + public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + this.enumInteger = enumInteger; return this; } @@ -242,15 +254,22 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public EnumIntegerEnum getEnumInteger() { return enumInteger; } + + public void setEnumInteger(EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } + public EnumTest enumNumber(EnumNumberEnum enumNumber) { + this.enumNumber = enumNumber; return this; } @@ -261,15 +280,22 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public EnumNumberEnum getEnumNumber() { return enumNumber; } + + public void setEnumNumber(EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } + public EnumTest outerEnum(OuterEnum outerEnum) { + this.outerEnum = outerEnum; return this; } @@ -281,10 +307,15 @@ public class EnumTest { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OuterEnum getOuterEnum() { return outerEnum; } + + public void setOuterEnum(OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 27c1e54aad8..ad7953eda47 100644 --- a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,14 +32,14 @@ import javax.validation.Valid; public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; - @JsonProperty(JSON_PROPERTY_FILE) - private java.io.File file = null; + private java.io.File file; public static final String JSON_PROPERTY_FILES = "files"; - @JsonProperty(JSON_PROPERTY_FILES) private List files = null; + public FileSchemaTestClass file(java.io.File file) { + this.file = file; return this; } @@ -50,15 +51,22 @@ public class FileSchemaTestClass { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FILE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public java.io.File getFile() { return file; } + + public void setFile(java.io.File file) { this.file = file; } + public FileSchemaTestClass files(List files) { + this.files = files; return this; } @@ -78,10 +86,15 @@ public class FileSchemaTestClass { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FILES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getFiles() { return files; } + + public void setFiles(List files) { this.files = files; } diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/FormatTest.java index f9637c52227..290caa3703b 100644 --- a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/FormatTest.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -34,58 +35,47 @@ import javax.validation.Valid; public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; - @JsonProperty(JSON_PROPERTY_INTEGER) private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; - @JsonProperty(JSON_PROPERTY_INT32) private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; - @JsonProperty(JSON_PROPERTY_INT64) private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; - @JsonProperty(JSON_PROPERTY_NUMBER) private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; - @JsonProperty(JSON_PROPERTY_FLOAT) private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; - @JsonProperty(JSON_PROPERTY_DOUBLE) private Double _double; public static final String JSON_PROPERTY_STRING = "string"; - @JsonProperty(JSON_PROPERTY_STRING) private String string; public static final String JSON_PROPERTY_BYTE = "byte"; - @JsonProperty(JSON_PROPERTY_BYTE) private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; - @JsonProperty(JSON_PROPERTY_BINARY) private File binary; public static final String JSON_PROPERTY_DATE = "date"; - @JsonProperty(JSON_PROPERTY_DATE) private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @JsonProperty(JSON_PROPERTY_DATE_TIME) private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; - @JsonProperty(JSON_PROPERTY_UUID) private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; - @JsonProperty(JSON_PROPERTY_PASSWORD) private String password; + public FormatTest integer(Integer integer) { + this.integer = integer; return this; } @@ -98,15 +88,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @Min(10) @Max(100) @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getInteger() { return integer; } + + public void setInteger(Integer integer) { this.integer = integer; } + public FormatTest int32(Integer int32) { + this.int32 = int32; return this; } @@ -119,15 +116,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @Min(20) @Max(200) @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INT32) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getInt32() { return int32; } + + public void setInt32(Integer int32) { this.int32 = int32; } + public FormatTest int64(Long int64) { + this.int64 = int64; return this; } @@ -138,15 +142,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INT64) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getInt64() { return int64; } + + public void setInt64(Long int64) { this.int64 = int64; } + public FormatTest number(BigDecimal number) { + this.number = number; return this; } @@ -160,15 +171,22 @@ public class FormatTest { @NotNull @Valid @DecimalMin("32.1") @DecimalMax("543.2") @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getNumber() { return number; } + + public void setNumber(BigDecimal number) { this.number = number; } + public FormatTest _float(Float _float) { + this._float = _float; return this; } @@ -181,15 +199,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @DecimalMin("54.3") @DecimalMax("987.6") @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Float getFloat() { return _float; } + + public void setFloat(Float _float) { this._float = _float; } + public FormatTest _double(Double _double) { + this._double = _double; return this; } @@ -202,15 +227,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @DecimalMin("67.8") @DecimalMax("123.4") @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Double getDouble() { return _double; } + + public void setDouble(Double _double) { this._double = _double; } + public FormatTest string(String string) { + this.string = string; return this; } @@ -221,15 +253,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @Pattern(regexp="/[a-z]/i") @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getString() { return string; } + + public void setString(String string) { this.string = string; } + public FormatTest _byte(byte[] _byte) { + this._byte = _byte; return this; } @@ -240,15 +279,22 @@ public class FormatTest { **/ @NotNull @Pattern(regexp="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$") @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_BYTE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public byte[] getByte() { return _byte; } + + public void setByte(byte[] _byte) { this._byte = _byte; } + public FormatTest binary(File binary) { + this.binary = binary; return this; } @@ -260,15 +306,22 @@ public class FormatTest { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BINARY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public File getBinary() { return binary; } + + public void setBinary(File binary) { this.binary = binary; } + public FormatTest date(LocalDate date) { + this.date = date; return this; } @@ -280,15 +333,22 @@ public class FormatTest { @NotNull @Valid @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_DATE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public LocalDate getDate() { return date; } + + public void setDate(LocalDate date) { this.date = date; } + public FormatTest dateTime(OffsetDateTime dateTime) { + this.dateTime = dateTime; return this; } @@ -300,15 +360,22 @@ public class FormatTest { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OffsetDateTime getDateTime() { return dateTime; } + + public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } + public FormatTest uuid(UUID uuid) { + this.uuid = uuid; return this; } @@ -320,15 +387,22 @@ public class FormatTest { @javax.annotation.Nullable @Valid @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public UUID getUuid() { return uuid; } + + public void setUuid(UUID uuid) { this.uuid = uuid; } + public FormatTest password(String password) { + this.password = password; return this; } @@ -339,10 +413,15 @@ public class FormatTest { **/ @NotNull @Size(min=10,max=64) @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getPassword() { return password; } + + public void setPassword(String password) { this.password = password; } diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index f2175b7f513..54485f0d5a4 100644 --- a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,34 +30,44 @@ import javax.validation.Valid; public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; - @JsonProperty(JSON_PROPERTY_BAR) private String bar; public static final String JSON_PROPERTY_FOO = "foo"; - @JsonProperty(JSON_PROPERTY_FOO) private String foo; + /** * Get bar * @return bar **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BAR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBar() { return bar; } + + + /** * Get foo * @return foo **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FOO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getFoo() { return foo; } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/MapTest.java index 8200c0c437e..d4e9ebd93ee 100644 --- a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/MapTest.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -32,7 +33,6 @@ import javax.validation.Valid; public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) private Map> mapMapOfString = null; /** @@ -71,18 +71,17 @@ public class MapTest { } public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) private Map mapOfEnumString = null; public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) private Map directMap = null; public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) private Map indirectMap = null; + public MapTest mapMapOfString(Map> mapMapOfString) { + this.mapMapOfString = mapMapOfString; return this; } @@ -102,15 +101,22 @@ public class MapTest { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapMapOfString() { return mapMapOfString; } + + public void setMapMapOfString(Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } + public MapTest mapOfEnumString(Map mapOfEnumString) { + this.mapOfEnumString = mapOfEnumString; return this; } @@ -129,15 +135,22 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapOfEnumString() { return mapOfEnumString; } + + public void setMapOfEnumString(Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } + public MapTest directMap(Map directMap) { + this.directMap = directMap; return this; } @@ -156,15 +169,22 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getDirectMap() { return directMap; } + + public void setDirectMap(Map directMap) { this.directMap = directMap; } + public MapTest indirectMap(Map indirectMap) { + this.indirectMap = indirectMap; return this; } @@ -183,10 +203,15 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getIndirectMap() { return indirectMap; } + + public void setIndirectMap(Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 05c7fede9f2..1273cc1b262 100644 --- a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -35,18 +36,17 @@ import javax.validation.Valid; public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; - @JsonProperty(JSON_PROPERTY_UUID) private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @JsonProperty(JSON_PROPERTY_DATE_TIME) private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; - @JsonProperty(JSON_PROPERTY_MAP) private Map map = null; + public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + this.uuid = uuid; return this; } @@ -58,15 +58,22 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public UUID getUuid() { return uuid; } + + public void setUuid(UUID uuid) { this.uuid = uuid; } + public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + this.dateTime = dateTime; return this; } @@ -78,15 +85,22 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OffsetDateTime getDateTime() { return dateTime; } + + public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } + public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + this.map = map; return this; } @@ -106,10 +120,15 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMap() { return map; } + + public void setMap(Map map) { this.map = map; } diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/Model200Response.java index 8de17e10609..06e57644695 100644 --- a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/Model200Response.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,14 +31,14 @@ import javax.validation.Valid; public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) private String propertyClass; + public Model200Response name(Integer name) { + this.name = name; return this; } @@ -48,15 +49,22 @@ public class Model200Response { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getName() { return name; } + + public void setName(Integer name) { this.name = name; } + public Model200Response propertyClass(String propertyClass) { + this.propertyClass = propertyClass; return this; } @@ -67,10 +75,15 @@ public class Model200Response { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPropertyClass() { return propertyClass; } + + public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 874cba97c69..1654198bd9f 100644 --- a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,18 +30,17 @@ import javax.validation.Valid; public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; - @JsonProperty(JSON_PROPERTY_CODE) private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; - @JsonProperty(JSON_PROPERTY_TYPE) private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; - @JsonProperty(JSON_PROPERTY_MESSAGE) private String message; + public ModelApiResponse code(Integer code) { + this.code = code; return this; } @@ -51,15 +51,22 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getCode() { return code; } + + public void setCode(Integer code) { this.code = code; } + public ModelApiResponse type(String type) { + this.type = type; return this; } @@ -70,15 +77,22 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getType() { return type; } + + public void setType(String type) { this.type = type; } + public ModelApiResponse message(String message) { + this.message = message; return this; } @@ -89,10 +103,15 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/ModelReturn.java index e606f768eb9..21cb3947f08 100644 --- a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import javax.validation.Valid; public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; - @JsonProperty(JSON_PROPERTY_RETURN) private Integer _return; + public ModelReturn _return(Integer _return) { + this._return = _return; return this; } @@ -44,10 +46,15 @@ public class ModelReturn { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_RETURN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getReturn() { return _return; } + + public void setReturn(Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/Name.java index 9dfdb681267..867fb98b6da 100644 --- a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/Name.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,22 +31,20 @@ import javax.validation.Valid; public class Name { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; - @JsonProperty(JSON_PROPERTY_PROPERTY) private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; - @JsonProperty(JSON_PROPERTY_123NUMBER) private Integer _123number; + public Name name(Integer name) { + this.name = name; return this; } @@ -56,25 +55,38 @@ public class Name { **/ @NotNull @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getName() { return name; } + + public void setName(Integer name) { this.name = name; } + /** * Get snakeCase * @return snakeCase **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getSnakeCase() { return snakeCase; } + + + public Name property(String property) { + this.property = property; return this; } @@ -85,25 +97,36 @@ public class Name { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getProperty() { return property; } + + public void setProperty(String property) { this.property = property; } + /** * Get _123number * @return _123number **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_123NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer get123number() { return _123number; } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/NumberOnly.java index 7f083e23a3d..bbb8733f792 100644 --- a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import javax.validation.Valid; public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) private BigDecimal justNumber; + public NumberOnly justNumber(BigDecimal justNumber) { + this.justNumber = justNumber; return this; } @@ -45,10 +47,15 @@ public class NumberOnly { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getJustNumber() { return justNumber; } + + public void setJustNumber(BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/Order.java index b5aaf42748a..92ef1e3094f 100644 --- a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/Order.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,19 +31,15 @@ import javax.validation.Valid; public class Order { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; - @JsonProperty(JSON_PROPERTY_PET_ID) private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; - @JsonProperty(JSON_PROPERTY_QUANTITY) private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; - @JsonProperty(JSON_PROPERTY_SHIP_DATE) private OffsetDateTime shipDate; /** @@ -83,14 +80,14 @@ public class Order { } public static final String JSON_PROPERTY_STATUS = "status"; - @JsonProperty(JSON_PROPERTY_STATUS) private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; - @JsonProperty(JSON_PROPERTY_COMPLETE) private Boolean complete = false; + public Order id(Long id) { + this.id = id; return this; } @@ -101,15 +98,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Order petId(Long petId) { + this.petId = petId; return this; } @@ -120,15 +124,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getPetId() { return petId; } + + public void setPetId(Long petId) { this.petId = petId; } + public Order quantity(Integer quantity) { + this.quantity = quantity; return this; } @@ -139,15 +150,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getQuantity() { return quantity; } + + public void setQuantity(Integer quantity) { this.quantity = quantity; } + public Order shipDate(OffsetDateTime shipDate) { + this.shipDate = shipDate; return this; } @@ -159,15 +177,22 @@ public class Order { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OffsetDateTime getShipDate() { return shipDate; } + + public void setShipDate(OffsetDateTime shipDate) { this.shipDate = shipDate; } + public Order status(StatusEnum status) { + this.status = status; return this; } @@ -178,15 +203,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "Order Status") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public StatusEnum getStatus() { return status; } + + public void setStatus(StatusEnum status) { this.status = status; } + public Order complete(Boolean complete) { + this.complete = complete; return this; } @@ -197,10 +229,15 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getComplete() { return complete; } + + public void setComplete(Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/OuterComposite.java index 17e6de1f014..b955d17740b 100644 --- a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,18 +31,17 @@ import javax.validation.Valid; public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; - @JsonProperty(JSON_PROPERTY_MY_NUMBER) private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; - @JsonProperty(JSON_PROPERTY_MY_STRING) private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) private Boolean myBoolean; + public OuterComposite myNumber(BigDecimal myNumber) { + this.myNumber = myNumber; return this; } @@ -53,15 +53,22 @@ public class OuterComposite { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getMyNumber() { return myNumber; } + + public void setMyNumber(BigDecimal myNumber) { this.myNumber = myNumber; } + public OuterComposite myString(String myString) { + this.myString = myString; return this; } @@ -72,15 +79,22 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getMyString() { return myString; } + + public void setMyString(String myString) { this.myString = myString; } + public OuterComposite myBoolean(Boolean myBoolean) { + this.myBoolean = myBoolean; return this; } @@ -91,10 +105,15 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getMyBoolean() { return myBoolean; } + + public void setMyBoolean(Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/Pet.java index 55afa63a409..35504055726 100644 --- a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/Pet.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -33,23 +34,18 @@ import javax.validation.Valid; public class Pet { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; - @JsonProperty(JSON_PROPERTY_CATEGORY) - private Category category = null; + private Category category; public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) private List photoUrls = new ArrayList<>(); public static final String JSON_PROPERTY_TAGS = "tags"; - @JsonProperty(JSON_PROPERTY_TAGS) private List tags = null; /** @@ -90,10 +86,11 @@ public class Pet { } public static final String JSON_PROPERTY_STATUS = "status"; - @JsonProperty(JSON_PROPERTY_STATUS) private StatusEnum status; + public Pet id(Long id) { + this.id = id; return this; } @@ -104,15 +101,22 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Pet category(Category category) { + this.category = category; return this; } @@ -124,15 +128,22 @@ public class Pet { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Category getCategory() { return category; } + + public void setCategory(Category category) { this.category = category; } + public Pet name(String name) { + this.name = name; return this; } @@ -143,15 +154,22 @@ public class Pet { **/ @NotNull @ApiModelProperty(example = "doggie", required = true, value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public Pet photoUrls(List photoUrls) { + this.photoUrls = photoUrls; return this; } @@ -167,15 +185,22 @@ public class Pet { **/ @NotNull @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getPhotoUrls() { return photoUrls; } + + public void setPhotoUrls(List photoUrls) { this.photoUrls = photoUrls; } + public Pet tags(List tags) { + this.tags = tags; return this; } @@ -195,15 +220,22 @@ public class Pet { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getTags() { return tags; } + + public void setTags(List tags) { this.tags = tags; } + public Pet status(StatusEnum status) { + this.status = status; return this; } @@ -214,10 +246,15 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "pet status in the store") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public StatusEnum getStatus() { return status; } + + public void setStatus(StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 61b2e2debfd..d5ec6535004 100644 --- a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,24 +30,30 @@ import javax.validation.Valid; public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; - @JsonProperty(JSON_PROPERTY_BAR) private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; - @JsonProperty(JSON_PROPERTY_BAZ) private String baz; + /** * Get bar * @return bar **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BAR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBar() { return bar; } + + + public ReadOnlyFirst baz(String baz) { + this.baz = baz; return this; } @@ -57,10 +64,15 @@ public class ReadOnlyFirst { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BAZ) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBaz() { return baz; } + + public void setBaz(String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/SpecialModelName.java index 65fabe673de..57bbc49e653 100644 --- a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import javax.validation.Valid; public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) private Long $specialPropertyName; + public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + this.$specialPropertyName = $specialPropertyName; return this; } @@ -43,10 +45,15 @@ public class SpecialModelName { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long get$SpecialPropertyName() { return $specialPropertyName; } + + public void set$SpecialPropertyName(Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/Tag.java index 42f80f36b72..e8c90d390b5 100644 --- a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/Tag.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,14 +30,14 @@ import javax.validation.Valid; public class Tag { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public Tag id(Long id) { + this.id = id; return this; } @@ -47,15 +48,22 @@ public class Tag { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Tag name(String name) { + this.name = name; return this; } @@ -66,10 +74,15 @@ public class Tag { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index 0468a2364b1..616ea23cb16 100644 --- a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -32,26 +33,23 @@ import javax.validation.Valid; public class TypeHolderDefault { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; - @JsonProperty(JSON_PROPERTY_STRING_ITEM) private String stringItem = "what"; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) private BigDecimal numberItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) private Boolean boolItem = true; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) private List arrayItem = new ArrayList<>(); + public TypeHolderDefault stringItem(String stringItem) { + this.stringItem = stringItem; return this; } @@ -62,15 +60,22 @@ public class TypeHolderDefault { **/ @NotNull @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getStringItem() { return stringItem; } + + public void setStringItem(String stringItem) { this.stringItem = stringItem; } + public TypeHolderDefault numberItem(BigDecimal numberItem) { + this.numberItem = numberItem; return this; } @@ -82,15 +87,22 @@ public class TypeHolderDefault { @NotNull @Valid @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getNumberItem() { return numberItem; } + + public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } + public TypeHolderDefault integerItem(Integer integerItem) { + this.integerItem = integerItem; return this; } @@ -101,15 +113,22 @@ public class TypeHolderDefault { **/ @NotNull @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getIntegerItem() { return integerItem; } + + public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } + public TypeHolderDefault boolItem(Boolean boolItem) { + this.boolItem = boolItem; return this; } @@ -120,15 +139,22 @@ public class TypeHolderDefault { **/ @NotNull @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Boolean getBoolItem() { return boolItem; } + + public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } + public TypeHolderDefault arrayItem(List arrayItem) { + this.arrayItem = arrayItem; return this; } @@ -144,10 +170,15 @@ public class TypeHolderDefault { **/ @NotNull @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getArrayItem() { return arrayItem; } + + public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/TypeHolderExample.java index 2912e8d03e3..1371f92ce05 100644 --- a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -32,26 +33,23 @@ import javax.validation.Valid; public class TypeHolderExample { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; - @JsonProperty(JSON_PROPERTY_STRING_ITEM) private String stringItem; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) private BigDecimal numberItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) private Boolean boolItem; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) private List arrayItem = new ArrayList<>(); + public TypeHolderExample stringItem(String stringItem) { + this.stringItem = stringItem; return this; } @@ -62,15 +60,22 @@ public class TypeHolderExample { **/ @NotNull @ApiModelProperty(example = "what", required = true, value = "") + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getStringItem() { return stringItem; } + + public void setStringItem(String stringItem) { this.stringItem = stringItem; } + public TypeHolderExample numberItem(BigDecimal numberItem) { + this.numberItem = numberItem; return this; } @@ -82,15 +87,22 @@ public class TypeHolderExample { @NotNull @Valid @ApiModelProperty(example = "1.234", required = true, value = "") + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getNumberItem() { return numberItem; } + + public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } + public TypeHolderExample integerItem(Integer integerItem) { + this.integerItem = integerItem; return this; } @@ -101,15 +113,22 @@ public class TypeHolderExample { **/ @NotNull @ApiModelProperty(example = "-2", required = true, value = "") + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getIntegerItem() { return integerItem; } + + public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } + public TypeHolderExample boolItem(Boolean boolItem) { + this.boolItem = boolItem; return this; } @@ -120,15 +139,22 @@ public class TypeHolderExample { **/ @NotNull @ApiModelProperty(example = "true", required = true, value = "") + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Boolean getBoolItem() { return boolItem; } + + public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } + public TypeHolderExample arrayItem(List arrayItem) { + this.arrayItem = arrayItem; return this; } @@ -144,10 +170,15 @@ public class TypeHolderExample { **/ @NotNull @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getArrayItem() { return arrayItem; } + + public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/User.java index ebfc1761025..b978f2f9256 100644 --- a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/User.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,38 +30,32 @@ import javax.validation.Valid; public class User { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; - @JsonProperty(JSON_PROPERTY_USERNAME) private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; - @JsonProperty(JSON_PROPERTY_FIRST_NAME) private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; - @JsonProperty(JSON_PROPERTY_LAST_NAME) private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; - @JsonProperty(JSON_PROPERTY_EMAIL) private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; - @JsonProperty(JSON_PROPERTY_PASSWORD) private String password; public static final String JSON_PROPERTY_PHONE = "phone"; - @JsonProperty(JSON_PROPERTY_PHONE) private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; - @JsonProperty(JSON_PROPERTY_USER_STATUS) private Integer userStatus; + public User id(Long id) { + this.id = id; return this; } @@ -71,15 +66,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public User username(String username) { + this.username = username; return this; } @@ -90,15 +92,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getUsername() { return username; } + + public void setUsername(String username) { this.username = username; } + public User firstName(String firstName) { + this.firstName = firstName; return this; } @@ -109,15 +118,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getFirstName() { return firstName; } + + public void setFirstName(String firstName) { this.firstName = firstName; } + public User lastName(String lastName) { + this.lastName = lastName; return this; } @@ -128,15 +144,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getLastName() { return lastName; } + + public void setLastName(String lastName) { this.lastName = lastName; } + public User email(String email) { + this.email = email; return this; } @@ -147,15 +170,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getEmail() { return email; } + + public void setEmail(String email) { this.email = email; } + public User password(String password) { + this.password = password; return this; } @@ -166,15 +196,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPassword() { return password; } + + public void setPassword(String password) { this.password = password; } + public User phone(String phone) { + this.phone = phone; return this; } @@ -185,15 +222,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PHONE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPhone() { return phone; } + + public void setPhone(String phone) { this.phone = phone; } + public User userStatus(Integer userStatus) { + this.userStatus = userStatus; return this; } @@ -204,10 +248,15 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "User Status") + @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getUserStatus() { return userStatus; } + + public void setUserStatus(Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/XmlItem.java index faac7f4a60f..5cfa64408e0 100644 --- a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/XmlItem.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -32,122 +33,95 @@ import javax.validation.Valid; public class XmlItem { public static final String JSON_PROPERTY_ATTRIBUTE_STRING = "attribute_string"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) private String attributeString; public static final String JSON_PROPERTY_ATTRIBUTE_NUMBER = "attribute_number"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) private BigDecimal attributeNumber; public static final String JSON_PROPERTY_ATTRIBUTE_INTEGER = "attribute_integer"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) private Integer attributeInteger; public static final String JSON_PROPERTY_ATTRIBUTE_BOOLEAN = "attribute_boolean"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) private Boolean attributeBoolean; public static final String JSON_PROPERTY_WRAPPED_ARRAY = "wrapped_array"; - @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) private List wrappedArray = null; public static final String JSON_PROPERTY_NAME_STRING = "name_string"; - @JsonProperty(JSON_PROPERTY_NAME_STRING) private String nameString; public static final String JSON_PROPERTY_NAME_NUMBER = "name_number"; - @JsonProperty(JSON_PROPERTY_NAME_NUMBER) private BigDecimal nameNumber; public static final String JSON_PROPERTY_NAME_INTEGER = "name_integer"; - @JsonProperty(JSON_PROPERTY_NAME_INTEGER) private Integer nameInteger; public static final String JSON_PROPERTY_NAME_BOOLEAN = "name_boolean"; - @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) private Boolean nameBoolean; public static final String JSON_PROPERTY_NAME_ARRAY = "name_array"; - @JsonProperty(JSON_PROPERTY_NAME_ARRAY) private List nameArray = null; public static final String JSON_PROPERTY_NAME_WRAPPED_ARRAY = "name_wrapped_array"; - @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) private List nameWrappedArray = null; public static final String JSON_PROPERTY_PREFIX_STRING = "prefix_string"; - @JsonProperty(JSON_PROPERTY_PREFIX_STRING) private String prefixString; public static final String JSON_PROPERTY_PREFIX_NUMBER = "prefix_number"; - @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) private BigDecimal prefixNumber; public static final String JSON_PROPERTY_PREFIX_INTEGER = "prefix_integer"; - @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) private Integer prefixInteger; public static final String JSON_PROPERTY_PREFIX_BOOLEAN = "prefix_boolean"; - @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) private Boolean prefixBoolean; public static final String JSON_PROPERTY_PREFIX_ARRAY = "prefix_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) private List prefixArray = null; public static final String JSON_PROPERTY_PREFIX_WRAPPED_ARRAY = "prefix_wrapped_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) private List prefixWrappedArray = null; public static final String JSON_PROPERTY_NAMESPACE_STRING = "namespace_string"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) private String namespaceString; public static final String JSON_PROPERTY_NAMESPACE_NUMBER = "namespace_number"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) private BigDecimal namespaceNumber; public static final String JSON_PROPERTY_NAMESPACE_INTEGER = "namespace_integer"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) private Integer namespaceInteger; public static final String JSON_PROPERTY_NAMESPACE_BOOLEAN = "namespace_boolean"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) private Boolean namespaceBoolean; public static final String JSON_PROPERTY_NAMESPACE_ARRAY = "namespace_array"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) private List namespaceArray = null; public static final String JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY = "namespace_wrapped_array"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) private List namespaceWrappedArray = null; public static final String JSON_PROPERTY_PREFIX_NS_STRING = "prefix_ns_string"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) private String prefixNsString; public static final String JSON_PROPERTY_PREFIX_NS_NUMBER = "prefix_ns_number"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) private BigDecimal prefixNsNumber; public static final String JSON_PROPERTY_PREFIX_NS_INTEGER = "prefix_ns_integer"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) private Integer prefixNsInteger; public static final String JSON_PROPERTY_PREFIX_NS_BOOLEAN = "prefix_ns_boolean"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) private Boolean prefixNsBoolean; public static final String JSON_PROPERTY_PREFIX_NS_ARRAY = "prefix_ns_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) private List prefixNsArray = null; public static final String JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY = "prefix_ns_wrapped_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) private List prefixNsWrappedArray = null; + public XmlItem attributeString(String attributeString) { + this.attributeString = attributeString; return this; } @@ -158,15 +132,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getAttributeString() { return attributeString; } + + public void setAttributeString(String attributeString) { this.attributeString = attributeString; } + public XmlItem attributeNumber(BigDecimal attributeNumber) { + this.attributeNumber = attributeNumber; return this; } @@ -178,15 +159,22 @@ public class XmlItem { @javax.annotation.Nullable @Valid @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getAttributeNumber() { return attributeNumber; } + + public void setAttributeNumber(BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } + public XmlItem attributeInteger(Integer attributeInteger) { + this.attributeInteger = attributeInteger; return this; } @@ -197,15 +185,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getAttributeInteger() { return attributeInteger; } + + public void setAttributeInteger(Integer attributeInteger) { this.attributeInteger = attributeInteger; } + public XmlItem attributeBoolean(Boolean attributeBoolean) { + this.attributeBoolean = attributeBoolean; return this; } @@ -216,15 +211,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getAttributeBoolean() { return attributeBoolean; } + + public void setAttributeBoolean(Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } + public XmlItem wrappedArray(List wrappedArray) { + this.wrappedArray = wrappedArray; return this; } @@ -243,15 +245,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getWrappedArray() { return wrappedArray; } + + public void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } + public XmlItem nameString(String nameString) { + this.nameString = nameString; return this; } @@ -262,15 +271,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_NAME_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getNameString() { return nameString; } + + public void setNameString(String nameString) { this.nameString = nameString; } + public XmlItem nameNumber(BigDecimal nameNumber) { + this.nameNumber = nameNumber; return this; } @@ -282,15 +298,22 @@ public class XmlItem { @javax.annotation.Nullable @Valid @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_NAME_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getNameNumber() { return nameNumber; } + + public void setNameNumber(BigDecimal nameNumber) { this.nameNumber = nameNumber; } + public XmlItem nameInteger(Integer nameInteger) { + this.nameInteger = nameInteger; return this; } @@ -301,15 +324,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_NAME_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getNameInteger() { return nameInteger; } + + public void setNameInteger(Integer nameInteger) { this.nameInteger = nameInteger; } + public XmlItem nameBoolean(Boolean nameBoolean) { + this.nameBoolean = nameBoolean; return this; } @@ -320,15 +350,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getNameBoolean() { return nameBoolean; } + + public void setNameBoolean(Boolean nameBoolean) { this.nameBoolean = nameBoolean; } + public XmlItem nameArray(List nameArray) { + this.nameArray = nameArray; return this; } @@ -347,15 +384,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNameArray() { return nameArray; } + + public void setNameArray(List nameArray) { this.nameArray = nameArray; } + public XmlItem nameWrappedArray(List nameWrappedArray) { + this.nameWrappedArray = nameWrappedArray; return this; } @@ -374,15 +418,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNameWrappedArray() { return nameWrappedArray; } + + public void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } + public XmlItem prefixString(String prefixString) { + this.prefixString = prefixString; return this; } @@ -393,15 +444,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPrefixString() { return prefixString; } + + public void setPrefixString(String prefixString) { this.prefixString = prefixString; } + public XmlItem prefixNumber(BigDecimal prefixNumber) { + this.prefixNumber = prefixNumber; return this; } @@ -413,15 +471,22 @@ public class XmlItem { @javax.annotation.Nullable @Valid @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getPrefixNumber() { return prefixNumber; } + + public void setPrefixNumber(BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } + public XmlItem prefixInteger(Integer prefixInteger) { + this.prefixInteger = prefixInteger; return this; } @@ -432,15 +497,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getPrefixInteger() { return prefixInteger; } + + public void setPrefixInteger(Integer prefixInteger) { this.prefixInteger = prefixInteger; } + public XmlItem prefixBoolean(Boolean prefixBoolean) { + this.prefixBoolean = prefixBoolean; return this; } @@ -451,15 +523,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getPrefixBoolean() { return prefixBoolean; } + + public void setPrefixBoolean(Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } + public XmlItem prefixArray(List prefixArray) { + this.prefixArray = prefixArray; return this; } @@ -478,15 +557,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixArray() { return prefixArray; } + + public void setPrefixArray(List prefixArray) { this.prefixArray = prefixArray; } + public XmlItem prefixWrappedArray(List prefixWrappedArray) { + this.prefixWrappedArray = prefixWrappedArray; return this; } @@ -505,15 +591,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixWrappedArray() { return prefixWrappedArray; } + + public void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } + public XmlItem namespaceString(String namespaceString) { + this.namespaceString = namespaceString; return this; } @@ -524,15 +617,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getNamespaceString() { return namespaceString; } + + public void setNamespaceString(String namespaceString) { this.namespaceString = namespaceString; } + public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + this.namespaceNumber = namespaceNumber; return this; } @@ -544,15 +644,22 @@ public class XmlItem { @javax.annotation.Nullable @Valid @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getNamespaceNumber() { return namespaceNumber; } + + public void setNamespaceNumber(BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } + public XmlItem namespaceInteger(Integer namespaceInteger) { + this.namespaceInteger = namespaceInteger; return this; } @@ -563,15 +670,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getNamespaceInteger() { return namespaceInteger; } + + public void setNamespaceInteger(Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } + public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + this.namespaceBoolean = namespaceBoolean; return this; } @@ -582,15 +696,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getNamespaceBoolean() { return namespaceBoolean; } + + public void setNamespaceBoolean(Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } + public XmlItem namespaceArray(List namespaceArray) { + this.namespaceArray = namespaceArray; return this; } @@ -609,15 +730,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNamespaceArray() { return namespaceArray; } + + public void setNamespaceArray(List namespaceArray) { this.namespaceArray = namespaceArray; } + public XmlItem namespaceWrappedArray(List namespaceWrappedArray) { + this.namespaceWrappedArray = namespaceWrappedArray; return this; } @@ -636,15 +764,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNamespaceWrappedArray() { return namespaceWrappedArray; } + + public void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } + public XmlItem prefixNsString(String prefixNsString) { + this.prefixNsString = prefixNsString; return this; } @@ -655,15 +790,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPrefixNsString() { return prefixNsString; } + + public void setPrefixNsString(String prefixNsString) { this.prefixNsString = prefixNsString; } + public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + this.prefixNsNumber = prefixNsNumber; return this; } @@ -675,15 +817,22 @@ public class XmlItem { @javax.annotation.Nullable @Valid @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getPrefixNsNumber() { return prefixNsNumber; } + + public void setPrefixNsNumber(BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } + public XmlItem prefixNsInteger(Integer prefixNsInteger) { + this.prefixNsInteger = prefixNsInteger; return this; } @@ -694,15 +843,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getPrefixNsInteger() { return prefixNsInteger; } + + public void setPrefixNsInteger(Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } + public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + this.prefixNsBoolean = prefixNsBoolean; return this; } @@ -713,15 +869,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getPrefixNsBoolean() { return prefixNsBoolean; } + + public void setPrefixNsBoolean(Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } + public XmlItem prefixNsArray(List prefixNsArray) { + this.prefixNsArray = prefixNsArray; return this; } @@ -740,15 +903,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixNsArray() { return prefixNsArray; } + + public void setPrefixNsArray(List prefixNsArray) { this.prefixNsArray = prefixNsArray; } + public XmlItem prefixNsWrappedArray(List prefixNsWrappedArray) { + this.prefixNsWrappedArray = prefixNsWrappedArray; return this; } @@ -767,10 +937,15 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixNsWrappedArray() { return prefixNsWrappedArray; } + + public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/retrofit2-play26/docs/UserApi.md b/samples/client/petstore/java/retrofit2-play26/docs/UserApi.md index bdf473df90d..d03e871ce01 100644 --- a/samples/client/petstore/java/retrofit2-play26/docs/UserApi.md +++ b/samples/client/petstore/java/retrofit2-play26/docs/UserApi.md @@ -101,7 +101,7 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); UserApi apiInstance = new UserApi(defaultClient); - List body = Arrays.asList(null); // List | List of user object + List body = Arrays.asList(); // List | List of user object try { apiInstance.createUsersWithArrayInput(body); } catch (ApiException e) { @@ -163,7 +163,7 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); UserApi apiInstance = new UserApi(defaultClient); - List body = Arrays.asList(null); // List | List of user object + List body = Arrays.asList(); // List | List of user object try { apiInstance.createUsersWithListInput(body); } catch (ApiException e) { diff --git a/samples/client/petstore/java/retrofit2-play26/pom.xml b/samples/client/petstore/java/retrofit2-play26/pom.xml index d03f83d54f9..81b82bc2708 100644 --- a/samples/client/petstore/java/retrofit2-play26/pom.xml +++ b/samples/client/petstore/java/retrofit2-play26/pom.xml @@ -269,6 +269,11 @@ validation-api 1.1.0.Final + + org.openapitools + jackson-databind-nullable + ${jackson-databind-nullable-version} + junit @@ -287,6 +292,7 @@ 2.9.9 2.9.9 2.6.7 + 0.2.0 2.5.0 1.3.8 1.0.1 diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/ApiClient.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/ApiClient.java index 6daa98296f7..fdee9f1921f 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/ApiClient.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/ApiClient.java @@ -13,6 +13,7 @@ import retrofit2.Converter; import retrofit2.Retrofit; import retrofit2.converter.scalars.ScalarsConverterFactory; import retrofit2.converter.jackson.JacksonConverterFactory; +import org.openapitools.jackson.nullable.JsonNullableModule; import play.libs.Json; import play.libs.ws.WSClient; @@ -90,6 +91,8 @@ public class ApiClient { } if (defaultMapper == null) { defaultMapper = Json.mapper(); + JsonNullableModule jnm = new JsonNullableModule(); + defaultMapper.registerModule(jnm); } return new Retrofit.Builder() diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index fccdfd9063b..931acb78d02 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,10 +32,11 @@ import javax.validation.Valid; public class AdditionalPropertiesAnyType extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesAnyType name(String name) { + this.name = name; return this; } @@ -45,10 +47,15 @@ public class AdditionalPropertiesAnyType extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(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 ca93793eb92..53a0fa23dc8 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -32,10 +33,11 @@ import javax.validation.Valid; public class AdditionalPropertiesArray extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesArray name(String name) { + this.name = name; return this; } @@ -46,10 +48,15 @@ public class AdditionalPropertiesArray extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(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 bcc0c1468af..f2eb8b16a90 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,10 +32,11 @@ import javax.validation.Valid; public class AdditionalPropertiesBoolean extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesBoolean name(String name) { + this.name = name; return this; } @@ -45,10 +47,15 @@ public class AdditionalPropertiesBoolean extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(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 b496f247edb..fd975cb4322 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -33,50 +34,41 @@ import javax.validation.Valid; public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_STRING = "map_string"; - @JsonProperty(JSON_PROPERTY_MAP_STRING) private Map mapString = null; public static final String JSON_PROPERTY_MAP_NUMBER = "map_number"; - @JsonProperty(JSON_PROPERTY_MAP_NUMBER) private Map mapNumber = null; public static final String JSON_PROPERTY_MAP_INTEGER = "map_integer"; - @JsonProperty(JSON_PROPERTY_MAP_INTEGER) private Map mapInteger = null; public static final String JSON_PROPERTY_MAP_BOOLEAN = "map_boolean"; - @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) private Map mapBoolean = null; public static final String JSON_PROPERTY_MAP_ARRAY_INTEGER = "map_array_integer"; - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) private Map> mapArrayInteger = null; public static final String JSON_PROPERTY_MAP_ARRAY_ANYTYPE = "map_array_anytype"; - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) private Map> mapArrayAnytype = null; public static final String JSON_PROPERTY_MAP_MAP_STRING = "map_map_string"; - @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) private Map> mapMapString = null; public static final String JSON_PROPERTY_MAP_MAP_ANYTYPE = "map_map_anytype"; - @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) private Map> mapMapAnytype = null; public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1"; - @JsonProperty(JSON_PROPERTY_ANYTYPE1) - private Object anytype1 = null; + private Object anytype1; public static final String JSON_PROPERTY_ANYTYPE2 = "anytype_2"; - @JsonProperty(JSON_PROPERTY_ANYTYPE2) - private Object anytype2 = null; + private Object anytype2; public static final String JSON_PROPERTY_ANYTYPE3 = "anytype_3"; - @JsonProperty(JSON_PROPERTY_ANYTYPE3) - private Object anytype3 = null; + private Object anytype3; + public AdditionalPropertiesClass mapString(Map mapString) { + this.mapString = mapString; return this; } @@ -95,15 +87,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapString() { return mapString; } + + public void setMapString(Map mapString) { this.mapString = mapString; } + public AdditionalPropertiesClass mapNumber(Map mapNumber) { + this.mapNumber = mapNumber; return this; } @@ -123,15 +122,22 @@ public class AdditionalPropertiesClass { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapNumber() { return mapNumber; } + + public void setMapNumber(Map mapNumber) { this.mapNumber = mapNumber; } + public AdditionalPropertiesClass mapInteger(Map mapInteger) { + this.mapInteger = mapInteger; return this; } @@ -150,15 +156,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapInteger() { return mapInteger; } + + public void setMapInteger(Map mapInteger) { this.mapInteger = mapInteger; } + public AdditionalPropertiesClass mapBoolean(Map mapBoolean) { + this.mapBoolean = mapBoolean; return this; } @@ -177,15 +190,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapBoolean() { return mapBoolean; } + + public void setMapBoolean(Map mapBoolean) { this.mapBoolean = mapBoolean; } + public AdditionalPropertiesClass mapArrayInteger(Map> mapArrayInteger) { + this.mapArrayInteger = mapArrayInteger; return this; } @@ -205,15 +225,22 @@ public class AdditionalPropertiesClass { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapArrayInteger() { return mapArrayInteger; } + + public void setMapArrayInteger(Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; } + public AdditionalPropertiesClass mapArrayAnytype(Map> mapArrayAnytype) { + this.mapArrayAnytype = mapArrayAnytype; return this; } @@ -233,15 +260,22 @@ public class AdditionalPropertiesClass { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapArrayAnytype() { return mapArrayAnytype; } + + public void setMapArrayAnytype(Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; } + public AdditionalPropertiesClass mapMapString(Map> mapMapString) { + this.mapMapString = mapMapString; return this; } @@ -261,15 +295,22 @@ public class AdditionalPropertiesClass { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapMapString() { return mapMapString; } + + public void setMapMapString(Map> mapMapString) { this.mapMapString = mapMapString; } + public AdditionalPropertiesClass mapMapAnytype(Map> mapMapAnytype) { + this.mapMapAnytype = mapMapAnytype; return this; } @@ -289,15 +330,22 @@ public class AdditionalPropertiesClass { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapMapAnytype() { return mapMapAnytype; } + + public void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } + public AdditionalPropertiesClass anytype1(Object anytype1) { + this.anytype1 = anytype1; return this; } @@ -309,15 +357,22 @@ public class AdditionalPropertiesClass { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Object getAnytype1() { return anytype1; } + + public void setAnytype1(Object anytype1) { this.anytype1 = anytype1; } + public AdditionalPropertiesClass anytype2(Object anytype2) { + this.anytype2 = anytype2; return this; } @@ -329,15 +384,22 @@ public class AdditionalPropertiesClass { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ANYTYPE2) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Object getAnytype2() { return anytype2; } + + public void setAnytype2(Object anytype2) { this.anytype2 = anytype2; } + public AdditionalPropertiesClass anytype3(Object anytype3) { + this.anytype3 = anytype3; return this; } @@ -349,10 +411,15 @@ public class AdditionalPropertiesClass { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ANYTYPE3) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Object getAnytype3() { return anytype3; } + + public void setAnytype3(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 9df2c41186a..eb61f3d19b1 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,10 +32,11 @@ import javax.validation.Valid; public class AdditionalPropertiesInteger extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesInteger name(String name) { + this.name = name; return this; } @@ -45,10 +47,15 @@ public class AdditionalPropertiesInteger extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(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 9a86f4a655d..bc848dbd7af 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -32,10 +33,11 @@ import javax.validation.Valid; public class AdditionalPropertiesNumber extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesNumber name(String name) { + this.name = name; return this; } @@ -46,10 +48,15 @@ public class AdditionalPropertiesNumber extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(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 d7e32f25cbe..310e15933b9 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,10 +32,11 @@ import javax.validation.Valid; public class AdditionalPropertiesObject extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesObject name(String name) { + this.name = name; return this; } @@ -45,10 +47,15 @@ public class AdditionalPropertiesObject extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(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 600622d7cab..6e8d95c90bb 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,10 +32,11 @@ import javax.validation.Valid; public class AdditionalPropertiesString extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesString name(String name) { + this.name = name; return this; } @@ -45,10 +47,15 @@ public class AdditionalPropertiesString extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(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 a43ceea7064..14f103575f6 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; @@ -37,14 +38,14 @@ import javax.validation.Valid; public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; - @JsonProperty(JSON_PROPERTY_CLASS_NAME) private String className; public static final String JSON_PROPERTY_COLOR = "color"; - @JsonProperty(JSON_PROPERTY_COLOR) private String color = "red"; + public Animal className(String className) { + this.className = className; return this; } @@ -55,15 +56,22 @@ public class Animal { **/ @NotNull @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getClassName() { return className; } + + public void setClassName(String className) { this.className = className; } + public Animal color(String color) { + this.color = color; return this; } @@ -74,10 +82,15 @@ public class Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_COLOR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getColor() { return color; } + + public void setColor(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 522aa684b8f..f1d99efbcae 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -32,10 +33,11 @@ import javax.validation.Valid; public class ArrayOfArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) private List> arrayArrayNumber = null; + public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + this.arrayArrayNumber = arrayArrayNumber; return this; } @@ -55,10 +57,15 @@ public class ArrayOfArrayOfNumberOnly { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List> getArrayArrayNumber() { return arrayArrayNumber; } + + public void setArrayArrayNumber(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 129fd212c4e..633405dc643 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -32,10 +33,11 @@ import javax.validation.Valid; public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) private List arrayNumber = null; + public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + this.arrayNumber = arrayNumber; return this; } @@ -55,10 +57,15 @@ public class ArrayOfNumberOnly { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArrayNumber() { return arrayNumber; } + + public void setArrayNumber(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 f013f81ef59..8f970b0de19 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -32,18 +33,17 @@ import javax.validation.Valid; public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) private List arrayOfString = null; public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) private List> arrayArrayOfInteger = null; public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) private List> arrayArrayOfModel = null; + public ArrayTest arrayOfString(List arrayOfString) { + this.arrayOfString = arrayOfString; return this; } @@ -62,15 +62,22 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArrayOfString() { return arrayOfString; } + + public void setArrayOfString(List arrayOfString) { this.arrayOfString = arrayOfString; } + public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + this.arrayArrayOfInteger = arrayArrayOfInteger; return this; } @@ -90,15 +97,22 @@ public class ArrayTest { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List> getArrayArrayOfInteger() { return arrayArrayOfInteger; } + + public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } + public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + this.arrayArrayOfModel = arrayArrayOfModel; return this; } @@ -118,10 +132,15 @@ public class ArrayTest { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List> getArrayArrayOfModel() { return arrayArrayOfModel; } + + public void setArrayArrayOfModel(List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } 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 65f5b799d25..184e17e6e33 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,30 +30,26 @@ import javax.validation.Valid; public class Capitalization { public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) private String smallCamel; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) private String capitalCamel; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) private String smallSnake; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) private String capitalSnake; public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) private String scAETHFlowPoints; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) private String ATT_NAME; + public Capitalization smallCamel(String smallCamel) { + this.smallCamel = smallCamel; return this; } @@ -63,15 +60,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSmallCamel() { return smallCamel; } + + public void setSmallCamel(String smallCamel) { this.smallCamel = smallCamel; } + public Capitalization capitalCamel(String capitalCamel) { + this.capitalCamel = capitalCamel; return this; } @@ -82,15 +86,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getCapitalCamel() { return capitalCamel; } + + public void setCapitalCamel(String capitalCamel) { this.capitalCamel = capitalCamel; } + public Capitalization smallSnake(String smallSnake) { + this.smallSnake = smallSnake; return this; } @@ -101,15 +112,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSmallSnake() { return smallSnake; } + + public void setSmallSnake(String smallSnake) { this.smallSnake = smallSnake; } + public Capitalization capitalSnake(String capitalSnake) { + this.capitalSnake = capitalSnake; return this; } @@ -120,15 +138,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getCapitalSnake() { return capitalSnake; } + + public void setCapitalSnake(String capitalSnake) { this.capitalSnake = capitalSnake; } + public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -139,15 +164,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getScAETHFlowPoints() { return scAETHFlowPoints; } + + public void setScAETHFlowPoints(String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } + public Capitalization ATT_NAME(String ATT_NAME) { + this.ATT_NAME = ATT_NAME; return this; } @@ -158,10 +190,15 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "Name of the pet ") + @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getATTNAME() { return ATT_NAME; } + + public void setATTNAME(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 d0e872ebd73..be07b377162 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,10 +32,11 @@ import javax.validation.Valid; public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; - @JsonProperty(JSON_PROPERTY_DECLAWED) private Boolean declawed; + public Cat declawed(Boolean declawed) { + this.declawed = declawed; return this; } @@ -45,10 +47,15 @@ public class Cat extends Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getDeclawed() { return declawed; } + + public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/CatAllOf.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/CatAllOf.java index e72f96cee93..f151c8dcfa1 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/CatAllOf.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/CatAllOf.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import javax.validation.Valid; public class CatAllOf { public static final String JSON_PROPERTY_DECLAWED = "declawed"; - @JsonProperty(JSON_PROPERTY_DECLAWED) private Boolean declawed; + public CatAllOf declawed(Boolean declawed) { + this.declawed = declawed; return this; } @@ -43,10 +45,15 @@ public class CatAllOf { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getDeclawed() { return declawed; } + + public void setDeclawed(Boolean declawed) { this.declawed = declawed; } 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 4f388371ed5..785168bb3c3 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,14 +30,14 @@ import javax.validation.Valid; public class Category { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name = "default-name"; + public Category id(Long id) { + this.id = id; return this; } @@ -47,15 +48,22 @@ public class Category { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Category name(String name) { + this.name = name; return this; } @@ -66,10 +74,15 @@ public class Category { **/ @NotNull @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getName() { return name; } + + public void setName(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 b7b9081f44a..3517965abfd 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import javax.validation.Valid; public class ClassModel { public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) private String propertyClass; + public ClassModel propertyClass(String propertyClass) { + this.propertyClass = propertyClass; return this; } @@ -44,10 +46,15 @@ public class ClassModel { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPropertyClass() { return propertyClass; } + + public void setPropertyClass(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 b0ae0657c79..fffb2327a85 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import javax.validation.Valid; public class Client { public static final String JSON_PROPERTY_CLIENT = "client"; - @JsonProperty(JSON_PROPERTY_CLIENT) private String client; + public Client client(String client) { + this.client = client; return this; } @@ -43,10 +45,15 @@ public class Client { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getClient() { return client; } + + public void setClient(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 d9656d309a7..1d78edf3271 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,10 +32,11 @@ import javax.validation.Valid; public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; - @JsonProperty(JSON_PROPERTY_BREED) private String breed; + public Dog breed(String breed) { + this.breed = breed; return this; } @@ -45,10 +47,15 @@ public class Dog extends Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBreed() { return breed; } + + public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/DogAllOf.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/DogAllOf.java index 500f5a63d0e..b1e62d04ec3 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/DogAllOf.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/DogAllOf.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import javax.validation.Valid; public class DogAllOf { public static final String JSON_PROPERTY_BREED = "breed"; - @JsonProperty(JSON_PROPERTY_BREED) private String breed; + public DogAllOf breed(String breed) { + this.breed = breed; return this; } @@ -43,10 +45,15 @@ public class DogAllOf { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBreed() { return breed; } + + public void setBreed(String breed) { this.breed = breed; } 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 1a36a2872ee..be59e0f13d6 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -66,7 +67,6 @@ public class EnumArrays { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) private JustSymbolEnum justSymbol; /** @@ -105,10 +105,11 @@ public class EnumArrays { } public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) private List arrayEnum = null; + public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + this.justSymbol = justSymbol; return this; } @@ -119,15 +120,22 @@ public class EnumArrays { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public JustSymbolEnum getJustSymbol() { return justSymbol; } + + public void setJustSymbol(JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } + public EnumArrays arrayEnum(List arrayEnum) { + this.arrayEnum = arrayEnum; return this; } @@ -146,10 +154,15 @@ public class EnumArrays { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArrayEnum() { return arrayEnum; } + + public void setArrayEnum(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 7148143b17d..6c085cfd6be 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -67,7 +68,6 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; - @JsonProperty(JSON_PROPERTY_ENUM_STRING) private EnumStringEnum enumString; /** @@ -108,7 +108,6 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) private EnumStringRequiredEnum enumStringRequired; /** @@ -147,7 +146,6 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) private EnumIntegerEnum enumInteger; /** @@ -186,14 +184,14 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) private OuterEnum outerEnum; + public EnumTest enumString(EnumStringEnum enumString) { + this.enumString = enumString; return this; } @@ -204,15 +202,22 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public EnumStringEnum getEnumString() { return enumString; } + + public void setEnumString(EnumStringEnum enumString) { this.enumString = enumString; } + public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + this.enumStringRequired = enumStringRequired; return this; } @@ -223,15 +228,22 @@ public class EnumTest { **/ @NotNull @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; } + + public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } + public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + this.enumInteger = enumInteger; return this; } @@ -242,15 +254,22 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public EnumIntegerEnum getEnumInteger() { return enumInteger; } + + public void setEnumInteger(EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } + public EnumTest enumNumber(EnumNumberEnum enumNumber) { + this.enumNumber = enumNumber; return this; } @@ -261,15 +280,22 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public EnumNumberEnum getEnumNumber() { return enumNumber; } + + public void setEnumNumber(EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } + public EnumTest outerEnum(OuterEnum outerEnum) { + this.outerEnum = outerEnum; return this; } @@ -281,10 +307,15 @@ public class EnumTest { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OuterEnum getOuterEnum() { return outerEnum; } + + public void setOuterEnum(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 27c1e54aad8..ad7953eda47 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,14 +32,14 @@ import javax.validation.Valid; public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; - @JsonProperty(JSON_PROPERTY_FILE) - private java.io.File file = null; + private java.io.File file; public static final String JSON_PROPERTY_FILES = "files"; - @JsonProperty(JSON_PROPERTY_FILES) private List files = null; + public FileSchemaTestClass file(java.io.File file) { + this.file = file; return this; } @@ -50,15 +51,22 @@ public class FileSchemaTestClass { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FILE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public java.io.File getFile() { return file; } + + public void setFile(java.io.File file) { this.file = file; } + public FileSchemaTestClass files(List files) { + this.files = files; return this; } @@ -78,10 +86,15 @@ public class FileSchemaTestClass { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FILES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getFiles() { return files; } + + public void setFiles(List 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 f9637c52227..290caa3703b 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -34,58 +35,47 @@ import javax.validation.Valid; public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; - @JsonProperty(JSON_PROPERTY_INTEGER) private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; - @JsonProperty(JSON_PROPERTY_INT32) private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; - @JsonProperty(JSON_PROPERTY_INT64) private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; - @JsonProperty(JSON_PROPERTY_NUMBER) private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; - @JsonProperty(JSON_PROPERTY_FLOAT) private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; - @JsonProperty(JSON_PROPERTY_DOUBLE) private Double _double; public static final String JSON_PROPERTY_STRING = "string"; - @JsonProperty(JSON_PROPERTY_STRING) private String string; public static final String JSON_PROPERTY_BYTE = "byte"; - @JsonProperty(JSON_PROPERTY_BYTE) private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; - @JsonProperty(JSON_PROPERTY_BINARY) private File binary; public static final String JSON_PROPERTY_DATE = "date"; - @JsonProperty(JSON_PROPERTY_DATE) private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @JsonProperty(JSON_PROPERTY_DATE_TIME) private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; - @JsonProperty(JSON_PROPERTY_UUID) private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; - @JsonProperty(JSON_PROPERTY_PASSWORD) private String password; + public FormatTest integer(Integer integer) { + this.integer = integer; return this; } @@ -98,15 +88,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @Min(10) @Max(100) @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getInteger() { return integer; } + + public void setInteger(Integer integer) { this.integer = integer; } + public FormatTest int32(Integer int32) { + this.int32 = int32; return this; } @@ -119,15 +116,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @Min(20) @Max(200) @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INT32) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getInt32() { return int32; } + + public void setInt32(Integer int32) { this.int32 = int32; } + public FormatTest int64(Long int64) { + this.int64 = int64; return this; } @@ -138,15 +142,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INT64) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getInt64() { return int64; } + + public void setInt64(Long int64) { this.int64 = int64; } + public FormatTest number(BigDecimal number) { + this.number = number; return this; } @@ -160,15 +171,22 @@ public class FormatTest { @NotNull @Valid @DecimalMin("32.1") @DecimalMax("543.2") @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getNumber() { return number; } + + public void setNumber(BigDecimal number) { this.number = number; } + public FormatTest _float(Float _float) { + this._float = _float; return this; } @@ -181,15 +199,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @DecimalMin("54.3") @DecimalMax("987.6") @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Float getFloat() { return _float; } + + public void setFloat(Float _float) { this._float = _float; } + public FormatTest _double(Double _double) { + this._double = _double; return this; } @@ -202,15 +227,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @DecimalMin("67.8") @DecimalMax("123.4") @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Double getDouble() { return _double; } + + public void setDouble(Double _double) { this._double = _double; } + public FormatTest string(String string) { + this.string = string; return this; } @@ -221,15 +253,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @Pattern(regexp="/[a-z]/i") @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getString() { return string; } + + public void setString(String string) { this.string = string; } + public FormatTest _byte(byte[] _byte) { + this._byte = _byte; return this; } @@ -240,15 +279,22 @@ public class FormatTest { **/ @NotNull @Pattern(regexp="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$") @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_BYTE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public byte[] getByte() { return _byte; } + + public void setByte(byte[] _byte) { this._byte = _byte; } + public FormatTest binary(File binary) { + this.binary = binary; return this; } @@ -260,15 +306,22 @@ public class FormatTest { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BINARY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public File getBinary() { return binary; } + + public void setBinary(File binary) { this.binary = binary; } + public FormatTest date(LocalDate date) { + this.date = date; return this; } @@ -280,15 +333,22 @@ public class FormatTest { @NotNull @Valid @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_DATE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public LocalDate getDate() { return date; } + + public void setDate(LocalDate date) { this.date = date; } + public FormatTest dateTime(OffsetDateTime dateTime) { + this.dateTime = dateTime; return this; } @@ -300,15 +360,22 @@ public class FormatTest { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OffsetDateTime getDateTime() { return dateTime; } + + public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } + public FormatTest uuid(UUID uuid) { + this.uuid = uuid; return this; } @@ -320,15 +387,22 @@ public class FormatTest { @javax.annotation.Nullable @Valid @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public UUID getUuid() { return uuid; } + + public void setUuid(UUID uuid) { this.uuid = uuid; } + public FormatTest password(String password) { + this.password = password; return this; } @@ -339,10 +413,15 @@ public class FormatTest { **/ @NotNull @Size(min=10,max=64) @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getPassword() { return password; } + + public void setPassword(String password) { this.password = password; } 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 f2175b7f513..54485f0d5a4 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,34 +30,44 @@ import javax.validation.Valid; public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; - @JsonProperty(JSON_PROPERTY_BAR) private String bar; public static final String JSON_PROPERTY_FOO = "foo"; - @JsonProperty(JSON_PROPERTY_FOO) private String foo; + /** * Get bar * @return bar **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BAR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBar() { return bar; } + + + /** * Get foo * @return foo **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FOO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getFoo() { return foo; } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { 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 8200c0c437e..d4e9ebd93ee 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -32,7 +33,6 @@ import javax.validation.Valid; public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) private Map> mapMapOfString = null; /** @@ -71,18 +71,17 @@ public class MapTest { } public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) private Map mapOfEnumString = null; public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) private Map directMap = null; public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) private Map indirectMap = null; + public MapTest mapMapOfString(Map> mapMapOfString) { + this.mapMapOfString = mapMapOfString; return this; } @@ -102,15 +101,22 @@ public class MapTest { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapMapOfString() { return mapMapOfString; } + + public void setMapMapOfString(Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } + public MapTest mapOfEnumString(Map mapOfEnumString) { + this.mapOfEnumString = mapOfEnumString; return this; } @@ -129,15 +135,22 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapOfEnumString() { return mapOfEnumString; } + + public void setMapOfEnumString(Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } + public MapTest directMap(Map directMap) { + this.directMap = directMap; return this; } @@ -156,15 +169,22 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getDirectMap() { return directMap; } + + public void setDirectMap(Map directMap) { this.directMap = directMap; } + public MapTest indirectMap(Map indirectMap) { + this.indirectMap = indirectMap; return this; } @@ -183,10 +203,15 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getIndirectMap() { return indirectMap; } + + public void setIndirectMap(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 05c7fede9f2..1273cc1b262 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -35,18 +36,17 @@ import javax.validation.Valid; public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; - @JsonProperty(JSON_PROPERTY_UUID) private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @JsonProperty(JSON_PROPERTY_DATE_TIME) private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; - @JsonProperty(JSON_PROPERTY_MAP) private Map map = null; + public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + this.uuid = uuid; return this; } @@ -58,15 +58,22 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public UUID getUuid() { return uuid; } + + public void setUuid(UUID uuid) { this.uuid = uuid; } + public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + this.dateTime = dateTime; return this; } @@ -78,15 +85,22 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OffsetDateTime getDateTime() { return dateTime; } + + public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } + public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + this.map = map; return this; } @@ -106,10 +120,15 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMap() { return map; } + + public void setMap(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 8de17e10609..06e57644695 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,14 +31,14 @@ import javax.validation.Valid; public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) private String propertyClass; + public Model200Response name(Integer name) { + this.name = name; return this; } @@ -48,15 +49,22 @@ public class Model200Response { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getName() { return name; } + + public void setName(Integer name) { this.name = name; } + public Model200Response propertyClass(String propertyClass) { + this.propertyClass = propertyClass; return this; } @@ -67,10 +75,15 @@ public class Model200Response { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPropertyClass() { return propertyClass; } + + public void setPropertyClass(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 874cba97c69..1654198bd9f 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,18 +30,17 @@ import javax.validation.Valid; public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; - @JsonProperty(JSON_PROPERTY_CODE) private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; - @JsonProperty(JSON_PROPERTY_TYPE) private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; - @JsonProperty(JSON_PROPERTY_MESSAGE) private String message; + public ModelApiResponse code(Integer code) { + this.code = code; return this; } @@ -51,15 +51,22 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getCode() { return code; } + + public void setCode(Integer code) { this.code = code; } + public ModelApiResponse type(String type) { + this.type = type; return this; } @@ -70,15 +77,22 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getType() { return type; } + + public void setType(String type) { this.type = type; } + public ModelApiResponse message(String message) { + this.message = message; return this; } @@ -89,10 +103,15 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } 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 e606f768eb9..21cb3947f08 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import javax.validation.Valid; public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; - @JsonProperty(JSON_PROPERTY_RETURN) private Integer _return; + public ModelReturn _return(Integer _return) { + this._return = _return; return this; } @@ -44,10 +46,15 @@ public class ModelReturn { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_RETURN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getReturn() { return _return; } + + public void setReturn(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 9dfdb681267..867fb98b6da 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,22 +31,20 @@ import javax.validation.Valid; public class Name { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; - @JsonProperty(JSON_PROPERTY_PROPERTY) private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; - @JsonProperty(JSON_PROPERTY_123NUMBER) private Integer _123number; + public Name name(Integer name) { + this.name = name; return this; } @@ -56,25 +55,38 @@ public class Name { **/ @NotNull @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getName() { return name; } + + public void setName(Integer name) { this.name = name; } + /** * Get snakeCase * @return snakeCase **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getSnakeCase() { return snakeCase; } + + + public Name property(String property) { + this.property = property; return this; } @@ -85,25 +97,36 @@ public class Name { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getProperty() { return property; } + + public void setProperty(String property) { this.property = property; } + /** * Get _123number * @return _123number **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_123NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer get123number() { return _123number; } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { 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 7f083e23a3d..bbb8733f792 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import javax.validation.Valid; public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) private BigDecimal justNumber; + public NumberOnly justNumber(BigDecimal justNumber) { + this.justNumber = justNumber; return this; } @@ -45,10 +47,15 @@ public class NumberOnly { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getJustNumber() { return justNumber; } + + public void setJustNumber(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 b5aaf42748a..92ef1e3094f 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,19 +31,15 @@ import javax.validation.Valid; public class Order { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; - @JsonProperty(JSON_PROPERTY_PET_ID) private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; - @JsonProperty(JSON_PROPERTY_QUANTITY) private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; - @JsonProperty(JSON_PROPERTY_SHIP_DATE) private OffsetDateTime shipDate; /** @@ -83,14 +80,14 @@ public class Order { } public static final String JSON_PROPERTY_STATUS = "status"; - @JsonProperty(JSON_PROPERTY_STATUS) private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; - @JsonProperty(JSON_PROPERTY_COMPLETE) private Boolean complete = false; + public Order id(Long id) { + this.id = id; return this; } @@ -101,15 +98,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Order petId(Long petId) { + this.petId = petId; return this; } @@ -120,15 +124,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getPetId() { return petId; } + + public void setPetId(Long petId) { this.petId = petId; } + public Order quantity(Integer quantity) { + this.quantity = quantity; return this; } @@ -139,15 +150,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getQuantity() { return quantity; } + + public void setQuantity(Integer quantity) { this.quantity = quantity; } + public Order shipDate(OffsetDateTime shipDate) { + this.shipDate = shipDate; return this; } @@ -159,15 +177,22 @@ public class Order { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OffsetDateTime getShipDate() { return shipDate; } + + public void setShipDate(OffsetDateTime shipDate) { this.shipDate = shipDate; } + public Order status(StatusEnum status) { + this.status = status; return this; } @@ -178,15 +203,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "Order Status") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public StatusEnum getStatus() { return status; } + + public void setStatus(StatusEnum status) { this.status = status; } + public Order complete(Boolean complete) { + this.complete = complete; return this; } @@ -197,10 +229,15 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getComplete() { return complete; } + + public void setComplete(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 17e6de1f014..b955d17740b 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,18 +31,17 @@ import javax.validation.Valid; public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; - @JsonProperty(JSON_PROPERTY_MY_NUMBER) private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; - @JsonProperty(JSON_PROPERTY_MY_STRING) private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) private Boolean myBoolean; + public OuterComposite myNumber(BigDecimal myNumber) { + this.myNumber = myNumber; return this; } @@ -53,15 +53,22 @@ public class OuterComposite { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getMyNumber() { return myNumber; } + + public void setMyNumber(BigDecimal myNumber) { this.myNumber = myNumber; } + public OuterComposite myString(String myString) { + this.myString = myString; return this; } @@ -72,15 +79,22 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getMyString() { return myString; } + + public void setMyString(String myString) { this.myString = myString; } + public OuterComposite myBoolean(Boolean myBoolean) { + this.myBoolean = myBoolean; return this; } @@ -91,10 +105,15 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getMyBoolean() { return myBoolean; } + + public void setMyBoolean(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 55afa63a409..35504055726 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -33,23 +34,18 @@ import javax.validation.Valid; public class Pet { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; - @JsonProperty(JSON_PROPERTY_CATEGORY) - private Category category = null; + private Category category; public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) private List photoUrls = new ArrayList<>(); public static final String JSON_PROPERTY_TAGS = "tags"; - @JsonProperty(JSON_PROPERTY_TAGS) private List tags = null; /** @@ -90,10 +86,11 @@ public class Pet { } public static final String JSON_PROPERTY_STATUS = "status"; - @JsonProperty(JSON_PROPERTY_STATUS) private StatusEnum status; + public Pet id(Long id) { + this.id = id; return this; } @@ -104,15 +101,22 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Pet category(Category category) { + this.category = category; return this; } @@ -124,15 +128,22 @@ public class Pet { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Category getCategory() { return category; } + + public void setCategory(Category category) { this.category = category; } + public Pet name(String name) { + this.name = name; return this; } @@ -143,15 +154,22 @@ public class Pet { **/ @NotNull @ApiModelProperty(example = "doggie", required = true, value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public Pet photoUrls(List photoUrls) { + this.photoUrls = photoUrls; return this; } @@ -167,15 +185,22 @@ public class Pet { **/ @NotNull @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getPhotoUrls() { return photoUrls; } + + public void setPhotoUrls(List photoUrls) { this.photoUrls = photoUrls; } + public Pet tags(List tags) { + this.tags = tags; return this; } @@ -195,15 +220,22 @@ public class Pet { @javax.annotation.Nullable @Valid @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getTags() { return tags; } + + public void setTags(List tags) { this.tags = tags; } + public Pet status(StatusEnum status) { + this.status = status; return this; } @@ -214,10 +246,15 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "pet status in the store") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public StatusEnum getStatus() { return status; } + + public void setStatus(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 61b2e2debfd..d5ec6535004 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,24 +30,30 @@ import javax.validation.Valid; public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; - @JsonProperty(JSON_PROPERTY_BAR) private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; - @JsonProperty(JSON_PROPERTY_BAZ) private String baz; + /** * Get bar * @return bar **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BAR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBar() { return bar; } + + + public ReadOnlyFirst baz(String baz) { + this.baz = baz; return this; } @@ -57,10 +64,15 @@ public class ReadOnlyFirst { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BAZ) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBaz() { return baz; } + + public void setBaz(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 65fabe673de..57bbc49e653 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import javax.validation.Valid; public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) private Long $specialPropertyName; + public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + this.$specialPropertyName = $specialPropertyName; return this; } @@ -43,10 +45,15 @@ public class SpecialModelName { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long get$SpecialPropertyName() { return $specialPropertyName; } + + public void set$SpecialPropertyName(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 42f80f36b72..e8c90d390b5 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,14 +30,14 @@ import javax.validation.Valid; public class Tag { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public Tag id(Long id) { + this.id = id; return this; } @@ -47,15 +48,22 @@ public class Tag { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Tag name(String name) { + this.name = name; return this; } @@ -66,10 +74,15 @@ public class Tag { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(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 0468a2364b1..616ea23cb16 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -32,26 +33,23 @@ import javax.validation.Valid; public class TypeHolderDefault { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; - @JsonProperty(JSON_PROPERTY_STRING_ITEM) private String stringItem = "what"; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) private BigDecimal numberItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) private Boolean boolItem = true; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) private List arrayItem = new ArrayList<>(); + public TypeHolderDefault stringItem(String stringItem) { + this.stringItem = stringItem; return this; } @@ -62,15 +60,22 @@ public class TypeHolderDefault { **/ @NotNull @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getStringItem() { return stringItem; } + + public void setStringItem(String stringItem) { this.stringItem = stringItem; } + public TypeHolderDefault numberItem(BigDecimal numberItem) { + this.numberItem = numberItem; return this; } @@ -82,15 +87,22 @@ public class TypeHolderDefault { @NotNull @Valid @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getNumberItem() { return numberItem; } + + public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } + public TypeHolderDefault integerItem(Integer integerItem) { + this.integerItem = integerItem; return this; } @@ -101,15 +113,22 @@ public class TypeHolderDefault { **/ @NotNull @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getIntegerItem() { return integerItem; } + + public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } + public TypeHolderDefault boolItem(Boolean boolItem) { + this.boolItem = boolItem; return this; } @@ -120,15 +139,22 @@ public class TypeHolderDefault { **/ @NotNull @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Boolean getBoolItem() { return boolItem; } + + public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } + public TypeHolderDefault arrayItem(List arrayItem) { + this.arrayItem = arrayItem; return this; } @@ -144,10 +170,15 @@ public class TypeHolderDefault { **/ @NotNull @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getArrayItem() { return arrayItem; } + + public void setArrayItem(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 2912e8d03e3..1371f92ce05 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -32,26 +33,23 @@ import javax.validation.Valid; public class TypeHolderExample { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; - @JsonProperty(JSON_PROPERTY_STRING_ITEM) private String stringItem; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) private BigDecimal numberItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) private Boolean boolItem; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) private List arrayItem = new ArrayList<>(); + public TypeHolderExample stringItem(String stringItem) { + this.stringItem = stringItem; return this; } @@ -62,15 +60,22 @@ public class TypeHolderExample { **/ @NotNull @ApiModelProperty(example = "what", required = true, value = "") + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getStringItem() { return stringItem; } + + public void setStringItem(String stringItem) { this.stringItem = stringItem; } + public TypeHolderExample numberItem(BigDecimal numberItem) { + this.numberItem = numberItem; return this; } @@ -82,15 +87,22 @@ public class TypeHolderExample { @NotNull @Valid @ApiModelProperty(example = "1.234", required = true, value = "") + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getNumberItem() { return numberItem; } + + public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } + public TypeHolderExample integerItem(Integer integerItem) { + this.integerItem = integerItem; return this; } @@ -101,15 +113,22 @@ public class TypeHolderExample { **/ @NotNull @ApiModelProperty(example = "-2", required = true, value = "") + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getIntegerItem() { return integerItem; } + + public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } + public TypeHolderExample boolItem(Boolean boolItem) { + this.boolItem = boolItem; return this; } @@ -120,15 +139,22 @@ public class TypeHolderExample { **/ @NotNull @ApiModelProperty(example = "true", required = true, value = "") + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Boolean getBoolItem() { return boolItem; } + + public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } + public TypeHolderExample arrayItem(List arrayItem) { + this.arrayItem = arrayItem; return this; } @@ -144,10 +170,15 @@ public class TypeHolderExample { **/ @NotNull @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getArrayItem() { return arrayItem; } + + public void setArrayItem(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 ebfc1761025..b978f2f9256 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,38 +30,32 @@ import javax.validation.Valid; public class User { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; - @JsonProperty(JSON_PROPERTY_USERNAME) private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; - @JsonProperty(JSON_PROPERTY_FIRST_NAME) private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; - @JsonProperty(JSON_PROPERTY_LAST_NAME) private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; - @JsonProperty(JSON_PROPERTY_EMAIL) private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; - @JsonProperty(JSON_PROPERTY_PASSWORD) private String password; public static final String JSON_PROPERTY_PHONE = "phone"; - @JsonProperty(JSON_PROPERTY_PHONE) private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; - @JsonProperty(JSON_PROPERTY_USER_STATUS) private Integer userStatus; + public User id(Long id) { + this.id = id; return this; } @@ -71,15 +66,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public User username(String username) { + this.username = username; return this; } @@ -90,15 +92,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getUsername() { return username; } + + public void setUsername(String username) { this.username = username; } + public User firstName(String firstName) { + this.firstName = firstName; return this; } @@ -109,15 +118,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getFirstName() { return firstName; } + + public void setFirstName(String firstName) { this.firstName = firstName; } + public User lastName(String lastName) { + this.lastName = lastName; return this; } @@ -128,15 +144,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getLastName() { return lastName; } + + public void setLastName(String lastName) { this.lastName = lastName; } + public User email(String email) { + this.email = email; return this; } @@ -147,15 +170,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getEmail() { return email; } + + public void setEmail(String email) { this.email = email; } + public User password(String password) { + this.password = password; return this; } @@ -166,15 +196,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPassword() { return password; } + + public void setPassword(String password) { this.password = password; } + public User phone(String phone) { + this.phone = phone; return this; } @@ -185,15 +222,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PHONE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPhone() { return phone; } + + public void setPhone(String phone) { this.phone = phone; } + public User userStatus(Integer userStatus) { + this.userStatus = userStatus; return this; } @@ -204,10 +248,15 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "User Status") + @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getUserStatus() { return userStatus; } + + public void setUserStatus(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 faac7f4a60f..5cfa64408e0 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -32,122 +33,95 @@ import javax.validation.Valid; public class XmlItem { public static final String JSON_PROPERTY_ATTRIBUTE_STRING = "attribute_string"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) private String attributeString; public static final String JSON_PROPERTY_ATTRIBUTE_NUMBER = "attribute_number"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) private BigDecimal attributeNumber; public static final String JSON_PROPERTY_ATTRIBUTE_INTEGER = "attribute_integer"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) private Integer attributeInteger; public static final String JSON_PROPERTY_ATTRIBUTE_BOOLEAN = "attribute_boolean"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) private Boolean attributeBoolean; public static final String JSON_PROPERTY_WRAPPED_ARRAY = "wrapped_array"; - @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) private List wrappedArray = null; public static final String JSON_PROPERTY_NAME_STRING = "name_string"; - @JsonProperty(JSON_PROPERTY_NAME_STRING) private String nameString; public static final String JSON_PROPERTY_NAME_NUMBER = "name_number"; - @JsonProperty(JSON_PROPERTY_NAME_NUMBER) private BigDecimal nameNumber; public static final String JSON_PROPERTY_NAME_INTEGER = "name_integer"; - @JsonProperty(JSON_PROPERTY_NAME_INTEGER) private Integer nameInteger; public static final String JSON_PROPERTY_NAME_BOOLEAN = "name_boolean"; - @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) private Boolean nameBoolean; public static final String JSON_PROPERTY_NAME_ARRAY = "name_array"; - @JsonProperty(JSON_PROPERTY_NAME_ARRAY) private List nameArray = null; public static final String JSON_PROPERTY_NAME_WRAPPED_ARRAY = "name_wrapped_array"; - @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) private List nameWrappedArray = null; public static final String JSON_PROPERTY_PREFIX_STRING = "prefix_string"; - @JsonProperty(JSON_PROPERTY_PREFIX_STRING) private String prefixString; public static final String JSON_PROPERTY_PREFIX_NUMBER = "prefix_number"; - @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) private BigDecimal prefixNumber; public static final String JSON_PROPERTY_PREFIX_INTEGER = "prefix_integer"; - @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) private Integer prefixInteger; public static final String JSON_PROPERTY_PREFIX_BOOLEAN = "prefix_boolean"; - @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) private Boolean prefixBoolean; public static final String JSON_PROPERTY_PREFIX_ARRAY = "prefix_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) private List prefixArray = null; public static final String JSON_PROPERTY_PREFIX_WRAPPED_ARRAY = "prefix_wrapped_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) private List prefixWrappedArray = null; public static final String JSON_PROPERTY_NAMESPACE_STRING = "namespace_string"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) private String namespaceString; public static final String JSON_PROPERTY_NAMESPACE_NUMBER = "namespace_number"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) private BigDecimal namespaceNumber; public static final String JSON_PROPERTY_NAMESPACE_INTEGER = "namespace_integer"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) private Integer namespaceInteger; public static final String JSON_PROPERTY_NAMESPACE_BOOLEAN = "namespace_boolean"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) private Boolean namespaceBoolean; public static final String JSON_PROPERTY_NAMESPACE_ARRAY = "namespace_array"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) private List namespaceArray = null; public static final String JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY = "namespace_wrapped_array"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) private List namespaceWrappedArray = null; public static final String JSON_PROPERTY_PREFIX_NS_STRING = "prefix_ns_string"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) private String prefixNsString; public static final String JSON_PROPERTY_PREFIX_NS_NUMBER = "prefix_ns_number"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) private BigDecimal prefixNsNumber; public static final String JSON_PROPERTY_PREFIX_NS_INTEGER = "prefix_ns_integer"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) private Integer prefixNsInteger; public static final String JSON_PROPERTY_PREFIX_NS_BOOLEAN = "prefix_ns_boolean"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) private Boolean prefixNsBoolean; public static final String JSON_PROPERTY_PREFIX_NS_ARRAY = "prefix_ns_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) private List prefixNsArray = null; public static final String JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY = "prefix_ns_wrapped_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) private List prefixNsWrappedArray = null; + public XmlItem attributeString(String attributeString) { + this.attributeString = attributeString; return this; } @@ -158,15 +132,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getAttributeString() { return attributeString; } + + public void setAttributeString(String attributeString) { this.attributeString = attributeString; } + public XmlItem attributeNumber(BigDecimal attributeNumber) { + this.attributeNumber = attributeNumber; return this; } @@ -178,15 +159,22 @@ public class XmlItem { @javax.annotation.Nullable @Valid @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getAttributeNumber() { return attributeNumber; } + + public void setAttributeNumber(BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } + public XmlItem attributeInteger(Integer attributeInteger) { + this.attributeInteger = attributeInteger; return this; } @@ -197,15 +185,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getAttributeInteger() { return attributeInteger; } + + public void setAttributeInteger(Integer attributeInteger) { this.attributeInteger = attributeInteger; } + public XmlItem attributeBoolean(Boolean attributeBoolean) { + this.attributeBoolean = attributeBoolean; return this; } @@ -216,15 +211,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getAttributeBoolean() { return attributeBoolean; } + + public void setAttributeBoolean(Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } + public XmlItem wrappedArray(List wrappedArray) { + this.wrappedArray = wrappedArray; return this; } @@ -243,15 +245,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getWrappedArray() { return wrappedArray; } + + public void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } + public XmlItem nameString(String nameString) { + this.nameString = nameString; return this; } @@ -262,15 +271,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_NAME_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getNameString() { return nameString; } + + public void setNameString(String nameString) { this.nameString = nameString; } + public XmlItem nameNumber(BigDecimal nameNumber) { + this.nameNumber = nameNumber; return this; } @@ -282,15 +298,22 @@ public class XmlItem { @javax.annotation.Nullable @Valid @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_NAME_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getNameNumber() { return nameNumber; } + + public void setNameNumber(BigDecimal nameNumber) { this.nameNumber = nameNumber; } + public XmlItem nameInteger(Integer nameInteger) { + this.nameInteger = nameInteger; return this; } @@ -301,15 +324,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_NAME_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getNameInteger() { return nameInteger; } + + public void setNameInteger(Integer nameInteger) { this.nameInteger = nameInteger; } + public XmlItem nameBoolean(Boolean nameBoolean) { + this.nameBoolean = nameBoolean; return this; } @@ -320,15 +350,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getNameBoolean() { return nameBoolean; } + + public void setNameBoolean(Boolean nameBoolean) { this.nameBoolean = nameBoolean; } + public XmlItem nameArray(List nameArray) { + this.nameArray = nameArray; return this; } @@ -347,15 +384,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNameArray() { return nameArray; } + + public void setNameArray(List nameArray) { this.nameArray = nameArray; } + public XmlItem nameWrappedArray(List nameWrappedArray) { + this.nameWrappedArray = nameWrappedArray; return this; } @@ -374,15 +418,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNameWrappedArray() { return nameWrappedArray; } + + public void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } + public XmlItem prefixString(String prefixString) { + this.prefixString = prefixString; return this; } @@ -393,15 +444,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPrefixString() { return prefixString; } + + public void setPrefixString(String prefixString) { this.prefixString = prefixString; } + public XmlItem prefixNumber(BigDecimal prefixNumber) { + this.prefixNumber = prefixNumber; return this; } @@ -413,15 +471,22 @@ public class XmlItem { @javax.annotation.Nullable @Valid @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getPrefixNumber() { return prefixNumber; } + + public void setPrefixNumber(BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } + public XmlItem prefixInteger(Integer prefixInteger) { + this.prefixInteger = prefixInteger; return this; } @@ -432,15 +497,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getPrefixInteger() { return prefixInteger; } + + public void setPrefixInteger(Integer prefixInteger) { this.prefixInteger = prefixInteger; } + public XmlItem prefixBoolean(Boolean prefixBoolean) { + this.prefixBoolean = prefixBoolean; return this; } @@ -451,15 +523,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getPrefixBoolean() { return prefixBoolean; } + + public void setPrefixBoolean(Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } + public XmlItem prefixArray(List prefixArray) { + this.prefixArray = prefixArray; return this; } @@ -478,15 +557,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixArray() { return prefixArray; } + + public void setPrefixArray(List prefixArray) { this.prefixArray = prefixArray; } + public XmlItem prefixWrappedArray(List prefixWrappedArray) { + this.prefixWrappedArray = prefixWrappedArray; return this; } @@ -505,15 +591,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixWrappedArray() { return prefixWrappedArray; } + + public void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } + public XmlItem namespaceString(String namespaceString) { + this.namespaceString = namespaceString; return this; } @@ -524,15 +617,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getNamespaceString() { return namespaceString; } + + public void setNamespaceString(String namespaceString) { this.namespaceString = namespaceString; } + public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + this.namespaceNumber = namespaceNumber; return this; } @@ -544,15 +644,22 @@ public class XmlItem { @javax.annotation.Nullable @Valid @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getNamespaceNumber() { return namespaceNumber; } + + public void setNamespaceNumber(BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } + public XmlItem namespaceInteger(Integer namespaceInteger) { + this.namespaceInteger = namespaceInteger; return this; } @@ -563,15 +670,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getNamespaceInteger() { return namespaceInteger; } + + public void setNamespaceInteger(Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } + public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + this.namespaceBoolean = namespaceBoolean; return this; } @@ -582,15 +696,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getNamespaceBoolean() { return namespaceBoolean; } + + public void setNamespaceBoolean(Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } + public XmlItem namespaceArray(List namespaceArray) { + this.namespaceArray = namespaceArray; return this; } @@ -609,15 +730,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNamespaceArray() { return namespaceArray; } + + public void setNamespaceArray(List namespaceArray) { this.namespaceArray = namespaceArray; } + public XmlItem namespaceWrappedArray(List namespaceWrappedArray) { + this.namespaceWrappedArray = namespaceWrappedArray; return this; } @@ -636,15 +764,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNamespaceWrappedArray() { return namespaceWrappedArray; } + + public void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } + public XmlItem prefixNsString(String prefixNsString) { + this.prefixNsString = prefixNsString; return this; } @@ -655,15 +790,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPrefixNsString() { return prefixNsString; } + + public void setPrefixNsString(String prefixNsString) { this.prefixNsString = prefixNsString; } + public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + this.prefixNsNumber = prefixNsNumber; return this; } @@ -675,15 +817,22 @@ public class XmlItem { @javax.annotation.Nullable @Valid @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getPrefixNsNumber() { return prefixNsNumber; } + + public void setPrefixNsNumber(BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } + public XmlItem prefixNsInteger(Integer prefixNsInteger) { + this.prefixNsInteger = prefixNsInteger; return this; } @@ -694,15 +843,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getPrefixNsInteger() { return prefixNsInteger; } + + public void setPrefixNsInteger(Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } + public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + this.prefixNsBoolean = prefixNsBoolean; return this; } @@ -713,15 +869,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getPrefixNsBoolean() { return prefixNsBoolean; } + + public void setPrefixNsBoolean(Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } + public XmlItem prefixNsArray(List prefixNsArray) { + this.prefixNsArray = prefixNsArray; return this; } @@ -740,15 +903,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixNsArray() { return prefixNsArray; } + + public void setPrefixNsArray(List prefixNsArray) { this.prefixNsArray = prefixNsArray; } + public XmlItem prefixNsWrappedArray(List prefixNsWrappedArray) { + this.prefixNsWrappedArray = prefixNsWrappedArray; return this; } @@ -767,10 +937,15 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixNsWrappedArray() { return prefixNsWrappedArray; } + + public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/retrofit2/docs/UserApi.md b/samples/client/petstore/java/retrofit2/docs/UserApi.md index bdf473df90d..d03e871ce01 100644 --- a/samples/client/petstore/java/retrofit2/docs/UserApi.md +++ b/samples/client/petstore/java/retrofit2/docs/UserApi.md @@ -101,7 +101,7 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); UserApi apiInstance = new UserApi(defaultClient); - List body = Arrays.asList(null); // List | List of user object + List body = Arrays.asList(); // List | List of user object try { apiInstance.createUsersWithArrayInput(body); } catch (ApiException e) { @@ -163,7 +163,7 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); UserApi apiInstance = new UserApi(defaultClient); - List body = Arrays.asList(null); // List | List of user object + List body = Arrays.asList(); // List | List of user object try { apiInstance.createUsersWithListInput(body); } catch (ApiException e) { 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 6639252ccb3..13e761a8d9c 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 @@ -35,7 +35,9 @@ public class AdditionalPropertiesAnyType extends HashMap { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public AdditionalPropertiesAnyType name(String name) { + this.name = name; return this; } @@ -46,10 +48,13 @@ public class AdditionalPropertiesAnyType extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(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 2c3f2ca0a46..17e320b0a95 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 @@ -36,7 +36,9 @@ public class AdditionalPropertiesArray extends HashMap { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public AdditionalPropertiesArray name(String name) { + this.name = name; return this; } @@ -47,10 +49,13 @@ public class AdditionalPropertiesArray extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(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 7c4a5248c07..8a51fa9f778 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 @@ -35,7 +35,9 @@ public class AdditionalPropertiesBoolean extends HashMap { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public AdditionalPropertiesBoolean name(String name) { + this.name = name; return this; } @@ -46,10 +48,13 @@ public class AdditionalPropertiesBoolean extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(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 58273e62fb0..a4a797bb487 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 @@ -67,17 +67,19 @@ public class AdditionalPropertiesClass { public static final String SERIALIZED_NAME_ANYTYPE1 = "anytype_1"; @SerializedName(SERIALIZED_NAME_ANYTYPE1) - private Object anytype1 = null; + private Object anytype1; public static final String SERIALIZED_NAME_ANYTYPE2 = "anytype_2"; @SerializedName(SERIALIZED_NAME_ANYTYPE2) - private Object anytype2 = null; + private Object anytype2; public static final String SERIALIZED_NAME_ANYTYPE3 = "anytype_3"; @SerializedName(SERIALIZED_NAME_ANYTYPE3) - private Object anytype3 = null; + private Object anytype3; + public AdditionalPropertiesClass mapString(Map mapString) { + this.mapString = mapString; return this; } @@ -96,15 +98,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getMapString() { return mapString; } + + public void setMapString(Map mapString) { this.mapString = mapString; } + public AdditionalPropertiesClass mapNumber(Map mapNumber) { + this.mapNumber = mapNumber; return this; } @@ -123,15 +130,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getMapNumber() { return mapNumber; } + + public void setMapNumber(Map mapNumber) { this.mapNumber = mapNumber; } + public AdditionalPropertiesClass mapInteger(Map mapInteger) { + this.mapInteger = mapInteger; return this; } @@ -150,15 +162,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getMapInteger() { return mapInteger; } + + public void setMapInteger(Map mapInteger) { this.mapInteger = mapInteger; } + public AdditionalPropertiesClass mapBoolean(Map mapBoolean) { + this.mapBoolean = mapBoolean; return this; } @@ -177,15 +194,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getMapBoolean() { return mapBoolean; } + + public void setMapBoolean(Map mapBoolean) { this.mapBoolean = mapBoolean; } + public AdditionalPropertiesClass mapArrayInteger(Map> mapArrayInteger) { + this.mapArrayInteger = mapArrayInteger; return this; } @@ -204,15 +226,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map> getMapArrayInteger() { return mapArrayInteger; } + + public void setMapArrayInteger(Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; } + public AdditionalPropertiesClass mapArrayAnytype(Map> mapArrayAnytype) { + this.mapArrayAnytype = mapArrayAnytype; return this; } @@ -231,15 +258,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map> getMapArrayAnytype() { return mapArrayAnytype; } + + public void setMapArrayAnytype(Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; } + public AdditionalPropertiesClass mapMapString(Map> mapMapString) { + this.mapMapString = mapMapString; return this; } @@ -258,15 +290,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map> getMapMapString() { return mapMapString; } + + public void setMapMapString(Map> mapMapString) { this.mapMapString = mapMapString; } + public AdditionalPropertiesClass mapMapAnytype(Map> mapMapAnytype) { + this.mapMapAnytype = mapMapAnytype; return this; } @@ -285,15 +322,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map> getMapMapAnytype() { return mapMapAnytype; } + + public void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } + public AdditionalPropertiesClass anytype1(Object anytype1) { + this.anytype1 = anytype1; return this; } @@ -304,15 +346,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Object getAnytype1() { return anytype1; } + + public void setAnytype1(Object anytype1) { this.anytype1 = anytype1; } + public AdditionalPropertiesClass anytype2(Object anytype2) { + this.anytype2 = anytype2; return this; } @@ -323,15 +370,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Object getAnytype2() { return anytype2; } + + public void setAnytype2(Object anytype2) { this.anytype2 = anytype2; } + public AdditionalPropertiesClass anytype3(Object anytype3) { + this.anytype3 = anytype3; return this; } @@ -342,10 +394,13 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Object getAnytype3() { return anytype3; } + + public void setAnytype3(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 10df3df74c7..4f2e3ef333e 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 @@ -35,7 +35,9 @@ public class AdditionalPropertiesInteger extends HashMap { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public AdditionalPropertiesInteger name(String name) { + this.name = name; return this; } @@ -46,10 +48,13 @@ public class AdditionalPropertiesInteger extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(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 33719cab261..80ce73d422b 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 @@ -36,7 +36,9 @@ public class AdditionalPropertiesNumber extends HashMap { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public AdditionalPropertiesNumber name(String name) { + this.name = name; return this; } @@ -47,10 +49,13 @@ public class AdditionalPropertiesNumber extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(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 e37e04b01a6..bc5cc81bf64 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 @@ -35,7 +35,9 @@ public class AdditionalPropertiesObject extends HashMap { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public AdditionalPropertiesObject name(String name) { + this.name = name; return this; } @@ -46,10 +48,13 @@ public class AdditionalPropertiesObject extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(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 cfbf74f5b32..2e9c0c7ffd9 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 @@ -35,7 +35,9 @@ public class AdditionalPropertiesString extends HashMap { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public AdditionalPropertiesString name(String name) { + this.name = name; return this; } @@ -46,10 +48,13 @@ public class AdditionalPropertiesString extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(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 0a02419dbf1..dd6b313c58c 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 @@ -41,7 +41,9 @@ public class Animal { public Animal() { this.className = this.getClass().getSimpleName(); } + public Animal className(String className) { + this.className = className; return this; } @@ -51,15 +53,20 @@ public class Animal { * @return className **/ @ApiModelProperty(required = true, value = "") + public String getClassName() { return className; } + + public void setClassName(String className) { this.className = className; } + public Animal color(String color) { + this.color = color; return this; } @@ -70,10 +77,13 @@ public class Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getColor() { return color; } + + public void setColor(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 ad0865658ad..1af52a3a988 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 @@ -36,7 +36,9 @@ public class ArrayOfArrayOfNumberOnly { @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_NUMBER) private List> arrayArrayNumber = null; + public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + this.arrayArrayNumber = arrayArrayNumber; return this; } @@ -55,10 +57,13 @@ public class ArrayOfArrayOfNumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List> getArrayArrayNumber() { return arrayArrayNumber; } + + public void setArrayArrayNumber(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 0b30fa73f86..eba8d40a289 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 @@ -36,7 +36,9 @@ public class ArrayOfNumberOnly { @SerializedName(SERIALIZED_NAME_ARRAY_NUMBER) private List arrayNumber = null; + public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + this.arrayNumber = arrayNumber; return this; } @@ -55,10 +57,13 @@ public class ArrayOfNumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getArrayNumber() { return arrayNumber; } + + public void setArrayNumber(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 acfcd76498e..7ba0d8b77e0 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 @@ -44,7 +44,9 @@ public class ArrayTest { @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_OF_MODEL) private List> arrayArrayOfModel = null; + public ArrayTest arrayOfString(List arrayOfString) { + this.arrayOfString = arrayOfString; return this; } @@ -63,15 +65,20 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getArrayOfString() { return arrayOfString; } + + public void setArrayOfString(List arrayOfString) { this.arrayOfString = arrayOfString; } + public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + this.arrayArrayOfInteger = arrayArrayOfInteger; return this; } @@ -90,15 +97,20 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List> getArrayArrayOfInteger() { return arrayArrayOfInteger; } + + public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } + public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + this.arrayArrayOfModel = arrayArrayOfModel; return this; } @@ -117,10 +129,13 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List> getArrayArrayOfModel() { return arrayArrayOfModel; } + + public void setArrayArrayOfModel(List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } 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 ef40fe949fd..dc70cf2b597 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 @@ -53,7 +53,9 @@ public class Capitalization { @SerializedName(SERIALIZED_NAME_A_T_T_N_A_M_E) private String ATT_NAME; + public Capitalization smallCamel(String smallCamel) { + this.smallCamel = smallCamel; return this; } @@ -64,15 +66,20 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getSmallCamel() { return smallCamel; } + + public void setSmallCamel(String smallCamel) { this.smallCamel = smallCamel; } + public Capitalization capitalCamel(String capitalCamel) { + this.capitalCamel = capitalCamel; return this; } @@ -83,15 +90,20 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getCapitalCamel() { return capitalCamel; } + + public void setCapitalCamel(String capitalCamel) { this.capitalCamel = capitalCamel; } + public Capitalization smallSnake(String smallSnake) { + this.smallSnake = smallSnake; return this; } @@ -102,15 +114,20 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getSmallSnake() { return smallSnake; } + + public void setSmallSnake(String smallSnake) { this.smallSnake = smallSnake; } + public Capitalization capitalSnake(String capitalSnake) { + this.capitalSnake = capitalSnake; return this; } @@ -121,15 +138,20 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getCapitalSnake() { return capitalSnake; } + + public void setCapitalSnake(String capitalSnake) { this.capitalSnake = capitalSnake; } + public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -140,15 +162,20 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getScAETHFlowPoints() { return scAETHFlowPoints; } + + public void setScAETHFlowPoints(String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } + public Capitalization ATT_NAME(String ATT_NAME) { + this.ATT_NAME = ATT_NAME; return this; } @@ -159,10 +186,13 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "Name of the pet ") + public String getATTNAME() { return ATT_NAME; } + + public void setATTNAME(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 c600502f716..8829c547501 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 @@ -35,7 +35,9 @@ public class Cat extends Animal { @SerializedName(SERIALIZED_NAME_DECLAWED) private Boolean declawed; + public Cat declawed(Boolean declawed) { + this.declawed = declawed; return this; } @@ -46,10 +48,13 @@ public class Cat extends Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Boolean getDeclawed() { return declawed; } + + public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/CatAllOf.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/CatAllOf.java index 29b3658551e..d20d19aa53f 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/CatAllOf.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/CatAllOf.java @@ -33,7 +33,9 @@ public class CatAllOf { @SerializedName(SERIALIZED_NAME_DECLAWED) private Boolean declawed; + public CatAllOf declawed(Boolean declawed) { + this.declawed = declawed; return this; } @@ -44,10 +46,13 @@ public class CatAllOf { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Boolean getDeclawed() { return declawed; } + + public void setDeclawed(Boolean declawed) { this.declawed = declawed; } 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 1968763722d..f335f0b5217 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 @@ -37,7 +37,9 @@ public class Category { @SerializedName(SERIALIZED_NAME_NAME) private String name = "default-name"; + public Category id(Long id) { + this.id = id; return this; } @@ -48,15 +50,20 @@ public class Category { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Category name(String name) { + this.name = name; return this; } @@ -66,10 +73,13 @@ public class Category { * @return name **/ @ApiModelProperty(required = true, value = "") + public String getName() { return name; } + + public void setName(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 52245d70502..83c30b802d4 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 @@ -34,7 +34,9 @@ public class ClassModel { @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) private String propertyClass; + public ClassModel propertyClass(String propertyClass) { + this.propertyClass = propertyClass; return this; } @@ -45,10 +47,13 @@ public class ClassModel { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getPropertyClass() { return propertyClass; } + + public void setPropertyClass(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 e5ece3536d6..192c0ce6e5b 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 @@ -33,7 +33,9 @@ public class Client { @SerializedName(SERIALIZED_NAME_CLIENT) private String client; + public Client client(String client) { + this.client = client; return this; } @@ -44,10 +46,13 @@ public class Client { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getClient() { return client; } + + public void setClient(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 d877eb2f370..2f8a4652247 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 @@ -35,7 +35,9 @@ public class Dog extends Animal { @SerializedName(SERIALIZED_NAME_BREED) private String breed; + public Dog breed(String breed) { + this.breed = breed; return this; } @@ -46,10 +48,13 @@ public class Dog extends Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getBreed() { return breed; } + + public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/DogAllOf.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/DogAllOf.java index 54483f2227d..96610291473 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/DogAllOf.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/DogAllOf.java @@ -33,7 +33,9 @@ public class DogAllOf { @SerializedName(SERIALIZED_NAME_BREED) private String breed; + public DogAllOf breed(String breed) { + this.breed = breed; return this; } @@ -44,10 +46,13 @@ public class DogAllOf { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getBreed() { return breed; } + + public void setBreed(String breed) { this.breed = breed; } 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 8d3e9bd58a3..4587357d5b0 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 @@ -133,7 +133,9 @@ public class EnumArrays { @SerializedName(SERIALIZED_NAME_ARRAY_ENUM) private List arrayEnum = null; + public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + this.justSymbol = justSymbol; return this; } @@ -144,15 +146,20 @@ public class EnumArrays { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public JustSymbolEnum getJustSymbol() { return justSymbol; } + + public void setJustSymbol(JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } + public EnumArrays arrayEnum(List arrayEnum) { + this.arrayEnum = arrayEnum; return this; } @@ -171,10 +178,13 @@ public class EnumArrays { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getArrayEnum() { return arrayEnum; } + + public void setArrayEnum(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 679584204fb..34f8781e089 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 @@ -242,7 +242,9 @@ public class EnumTest { @SerializedName(SERIALIZED_NAME_OUTER_ENUM) private OuterEnum outerEnum; + public EnumTest enumString(EnumStringEnum enumString) { + this.enumString = enumString; return this; } @@ -253,15 +255,20 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public EnumStringEnum getEnumString() { return enumString; } + + public void setEnumString(EnumStringEnum enumString) { this.enumString = enumString; } + public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + this.enumStringRequired = enumStringRequired; return this; } @@ -271,15 +278,20 @@ public class EnumTest { * @return enumStringRequired **/ @ApiModelProperty(required = true, value = "") + public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; } + + public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } + public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + this.enumInteger = enumInteger; return this; } @@ -290,15 +302,20 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public EnumIntegerEnum getEnumInteger() { return enumInteger; } + + public void setEnumInteger(EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } + public EnumTest enumNumber(EnumNumberEnum enumNumber) { + this.enumNumber = enumNumber; return this; } @@ -309,15 +326,20 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public EnumNumberEnum getEnumNumber() { return enumNumber; } + + public void setEnumNumber(EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } + public EnumTest outerEnum(OuterEnum outerEnum) { + this.outerEnum = outerEnum; return this; } @@ -328,10 +350,13 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public OuterEnum getOuterEnum() { return outerEnum; } + + public void setOuterEnum(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 29fe111764c..45ce4347b2d 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,13 +33,15 @@ import java.util.List; public class FileSchemaTestClass { public static final String SERIALIZED_NAME_FILE = "file"; @SerializedName(SERIALIZED_NAME_FILE) - private java.io.File file = null; + private java.io.File file; public static final String SERIALIZED_NAME_FILES = "files"; @SerializedName(SERIALIZED_NAME_FILES) private List files = null; + public FileSchemaTestClass file(java.io.File file) { + this.file = file; return this; } @@ -50,15 +52,20 @@ public class FileSchemaTestClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public java.io.File getFile() { return file; } + + public void setFile(java.io.File file) { this.file = file; } + public FileSchemaTestClass files(List files) { + this.files = files; return this; } @@ -77,10 +84,13 @@ public class FileSchemaTestClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getFiles() { return files; } + + public void setFiles(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 583b12a0ebc..36fe5897683 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 @@ -86,7 +86,9 @@ public class FormatTest { @SerializedName(SERIALIZED_NAME_PASSWORD) private String password; + public FormatTest integer(Integer integer) { + this.integer = integer; return this; } @@ -99,15 +101,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer getInteger() { return integer; } + + public void setInteger(Integer integer) { this.integer = integer; } + public FormatTest int32(Integer int32) { + this.int32 = int32; return this; } @@ -120,15 +127,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer getInt32() { return int32; } + + public void setInt32(Integer int32) { this.int32 = int32; } + public FormatTest int64(Long int64) { + this.int64 = int64; return this; } @@ -139,15 +151,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getInt64() { return int64; } + + public void setInt64(Long int64) { this.int64 = int64; } + public FormatTest number(BigDecimal number) { + this.number = number; return this; } @@ -159,15 +176,20 @@ public class FormatTest { * @return number **/ @ApiModelProperty(required = true, value = "") + public BigDecimal getNumber() { return number; } + + public void setNumber(BigDecimal number) { this.number = number; } + public FormatTest _float(Float _float) { + this._float = _float; return this; } @@ -180,15 +202,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Float getFloat() { return _float; } + + public void setFloat(Float _float) { this._float = _float; } + public FormatTest _double(Double _double) { + this._double = _double; return this; } @@ -201,15 +228,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Double getDouble() { return _double; } + + public void setDouble(Double _double) { this._double = _double; } + public FormatTest string(String string) { + this.string = string; return this; } @@ -220,15 +252,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getString() { return string; } + + public void setString(String string) { this.string = string; } + public FormatTest _byte(byte[] _byte) { + this._byte = _byte; return this; } @@ -238,15 +275,20 @@ public class FormatTest { * @return _byte **/ @ApiModelProperty(required = true, value = "") + public byte[] getByte() { return _byte; } + + public void setByte(byte[] _byte) { this._byte = _byte; } + public FormatTest binary(File binary) { + this.binary = binary; return this; } @@ -257,15 +299,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public File getBinary() { return binary; } + + public void setBinary(File binary) { this.binary = binary; } + public FormatTest date(LocalDate date) { + this.date = date; return this; } @@ -275,15 +322,20 @@ public class FormatTest { * @return date **/ @ApiModelProperty(required = true, value = "") + public LocalDate getDate() { return date; } + + public void setDate(LocalDate date) { this.date = date; } + public FormatTest dateTime(OffsetDateTime dateTime) { + this.dateTime = dateTime; return this; } @@ -294,15 +346,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public OffsetDateTime getDateTime() { return dateTime; } + + public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } + public FormatTest uuid(UUID uuid) { + this.uuid = uuid; return this; } @@ -313,15 +370,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + public UUID getUuid() { return uuid; } + + public void setUuid(UUID uuid) { this.uuid = uuid; } + public FormatTest password(String password) { + this.password = password; return this; } @@ -331,10 +393,13 @@ public class FormatTest { * @return password **/ @ApiModelProperty(required = true, value = "") + public String getPassword() { return password; } + + public void setPassword(String password) { this.password = password; } 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 02225d278c4..8fcb2684643 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 @@ -37,27 +37,35 @@ public class HasOnlyReadOnly { @SerializedName(SERIALIZED_NAME_FOO) private String foo; + /** * Get bar * @return bar **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getBar() { return bar; } + + + /** * Get foo * @return foo **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getFoo() { return foo; } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { 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 60892fc9476..609587e370f 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 @@ -95,7 +95,9 @@ public class MapTest { @SerializedName(SERIALIZED_NAME_INDIRECT_MAP) private Map indirectMap = null; + public MapTest mapMapOfString(Map> mapMapOfString) { + this.mapMapOfString = mapMapOfString; return this; } @@ -114,15 +116,20 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map> getMapMapOfString() { return mapMapOfString; } + + public void setMapMapOfString(Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } + public MapTest mapOfEnumString(Map mapOfEnumString) { + this.mapOfEnumString = mapOfEnumString; return this; } @@ -141,15 +148,20 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getMapOfEnumString() { return mapOfEnumString; } + + public void setMapOfEnumString(Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } + public MapTest directMap(Map directMap) { + this.directMap = directMap; return this; } @@ -168,15 +180,20 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getDirectMap() { return directMap; } + + public void setDirectMap(Map directMap) { this.directMap = directMap; } + public MapTest indirectMap(Map indirectMap) { + this.indirectMap = indirectMap; return this; } @@ -195,10 +212,13 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getIndirectMap() { return indirectMap; } + + public void setIndirectMap(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 9cb44786512..815cf8d5e05 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 @@ -47,7 +47,9 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @SerializedName(SERIALIZED_NAME_MAP) private Map map = null; + public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + this.uuid = uuid; return this; } @@ -58,15 +60,20 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public UUID getUuid() { return uuid; } + + public void setUuid(UUID uuid) { this.uuid = uuid; } + public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + this.dateTime = dateTime; return this; } @@ -77,15 +84,20 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public OffsetDateTime getDateTime() { return dateTime; } + + public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } + public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + this.map = map; return this; } @@ -104,10 +116,13 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getMap() { return map; } + + public void setMap(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 3167560a9dd..42a61d0d877 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 @@ -38,7 +38,9 @@ public class Model200Response { @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) private String propertyClass; + public Model200Response name(Integer name) { + this.name = name; return this; } @@ -49,15 +51,20 @@ public class Model200Response { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer getName() { return name; } + + public void setName(Integer name) { this.name = name; } + public Model200Response propertyClass(String propertyClass) { + this.propertyClass = propertyClass; return this; } @@ -68,10 +75,13 @@ public class Model200Response { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getPropertyClass() { return propertyClass; } + + public void setPropertyClass(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 84d2fcc4d39..db323b17602 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 @@ -41,7 +41,9 @@ public class ModelApiResponse { @SerializedName(SERIALIZED_NAME_MESSAGE) private String message; + public ModelApiResponse code(Integer code) { + this.code = code; return this; } @@ -52,15 +54,20 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer getCode() { return code; } + + public void setCode(Integer code) { this.code = code; } + public ModelApiResponse type(String type) { + this.type = type; return this; } @@ -71,15 +78,20 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } + public ModelApiResponse message(String message) { + this.message = message; return this; } @@ -90,10 +102,13 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } 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 c13f1babe59..da9f1a20259 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 @@ -34,7 +34,9 @@ public class ModelReturn { @SerializedName(SERIALIZED_NAME_RETURN) private Integer _return; + public ModelReturn _return(Integer _return) { + this._return = _return; return this; } @@ -45,10 +47,13 @@ public class ModelReturn { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer getReturn() { return _return; } + + public void setReturn(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 221821d4e19..f775f97b3f1 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 @@ -46,7 +46,9 @@ public class Name { @SerializedName(SERIALIZED_NAME_123NUMBER) private Integer _123number; + public Name name(Integer name) { + this.name = name; return this; } @@ -56,25 +58,34 @@ public class Name { * @return name **/ @ApiModelProperty(required = true, value = "") + public Integer getName() { return name; } + + public void setName(Integer name) { this.name = name; } + /** * Get snakeCase * @return snakeCase **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer getSnakeCase() { return snakeCase; } + + + public Name property(String property) { + this.property = property; return this; } @@ -85,25 +96,32 @@ public class Name { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getProperty() { return property; } + + public void setProperty(String property) { this.property = property; } + /** * Get _123number * @return _123number **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer get123number() { return _123number; } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { 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 9a068c2e1ee..1a7bd689645 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 @@ -34,7 +34,9 @@ public class NumberOnly { @SerializedName(SERIALIZED_NAME_JUST_NUMBER) private BigDecimal justNumber; + public NumberOnly justNumber(BigDecimal justNumber) { + this.justNumber = justNumber; return this; } @@ -45,10 +47,13 @@ public class NumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public BigDecimal getJustNumber() { return justNumber; } + + public void setJustNumber(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 9ee41b5b8a9..fe6a60098bf 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 @@ -103,7 +103,9 @@ public class Order { @SerializedName(SERIALIZED_NAME_COMPLETE) private Boolean complete = false; + public Order id(Long id) { + this.id = id; return this; } @@ -114,15 +116,20 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Order petId(Long petId) { + this.petId = petId; return this; } @@ -133,15 +140,20 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getPetId() { return petId; } + + public void setPetId(Long petId) { this.petId = petId; } + public Order quantity(Integer quantity) { + this.quantity = quantity; return this; } @@ -152,15 +164,20 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer getQuantity() { return quantity; } + + public void setQuantity(Integer quantity) { this.quantity = quantity; } + public Order shipDate(OffsetDateTime shipDate) { + this.shipDate = shipDate; return this; } @@ -171,15 +188,20 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public OffsetDateTime getShipDate() { return shipDate; } + + public void setShipDate(OffsetDateTime shipDate) { this.shipDate = shipDate; } + public Order status(StatusEnum status) { + this.status = status; return this; } @@ -190,15 +212,20 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "Order Status") + public StatusEnum getStatus() { return status; } + + public void setStatus(StatusEnum status) { this.status = status; } + public Order complete(Boolean complete) { + this.complete = complete; return this; } @@ -209,10 +236,13 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Boolean getComplete() { return complete; } + + public void setComplete(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 690b6bde4be..3db0e2e26c9 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 @@ -42,7 +42,9 @@ public class OuterComposite { @SerializedName(SERIALIZED_NAME_MY_BOOLEAN) private Boolean myBoolean; + public OuterComposite myNumber(BigDecimal myNumber) { + this.myNumber = myNumber; return this; } @@ -53,15 +55,20 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public BigDecimal getMyNumber() { return myNumber; } + + public void setMyNumber(BigDecimal myNumber) { this.myNumber = myNumber; } + public OuterComposite myString(String myString) { + this.myString = myString; return this; } @@ -72,15 +79,20 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getMyString() { return myString; } + + public void setMyString(String myString) { this.myString = myString; } + public OuterComposite myBoolean(Boolean myBoolean) { + this.myBoolean = myBoolean; return this; } @@ -91,10 +103,13 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Boolean getMyBoolean() { return myBoolean; } + + public void setMyBoolean(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 ae8237d55b9..943b3103f03 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 @@ -39,7 +39,7 @@ public class Pet { public static final String SERIALIZED_NAME_CATEGORY = "category"; @SerializedName(SERIALIZED_NAME_CATEGORY) - private Category category = null; + private Category category; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -106,7 +106,9 @@ public class Pet { @SerializedName(SERIALIZED_NAME_STATUS) private StatusEnum status; + public Pet id(Long id) { + this.id = id; return this; } @@ -117,15 +119,20 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Pet category(Category category) { + this.category = category; return this; } @@ -136,15 +143,20 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Category getCategory() { return category; } + + public void setCategory(Category category) { this.category = category; } + public Pet name(String name) { + this.name = name; return this; } @@ -154,15 +166,20 @@ public class Pet { * @return name **/ @ApiModelProperty(example = "doggie", required = true, value = "") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public Pet photoUrls(List photoUrls) { + this.photoUrls = photoUrls; return this; } @@ -177,15 +194,20 @@ public class Pet { * @return photoUrls **/ @ApiModelProperty(required = true, value = "") + public List getPhotoUrls() { return photoUrls; } + + public void setPhotoUrls(List photoUrls) { this.photoUrls = photoUrls; } + public Pet tags(List tags) { + this.tags = tags; return this; } @@ -204,15 +226,20 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getTags() { return tags; } + + public void setTags(List tags) { this.tags = tags; } + public Pet status(StatusEnum status) { + this.status = status; return this; } @@ -223,10 +250,13 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "pet status in the store") + public StatusEnum getStatus() { return status; } + + public void setStatus(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 84780d763a0..2501babb56e 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 @@ -37,17 +37,23 @@ public class ReadOnlyFirst { @SerializedName(SERIALIZED_NAME_BAZ) private String baz; + /** * Get bar * @return bar **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getBar() { return bar; } + + + public ReadOnlyFirst baz(String baz) { + this.baz = baz; return this; } @@ -58,10 +64,13 @@ public class ReadOnlyFirst { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getBaz() { return baz; } + + public void setBaz(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 c6ccd2c33f6..4ff598a6cfc 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 @@ -33,7 +33,9 @@ public class SpecialModelName { @SerializedName(SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME) private Long $specialPropertyName; + public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + this.$specialPropertyName = $specialPropertyName; return this; } @@ -44,10 +46,13 @@ public class SpecialModelName { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long get$SpecialPropertyName() { return $specialPropertyName; } + + public void set$SpecialPropertyName(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 504c51cc3e5..693247a2fd2 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 @@ -37,7 +37,9 @@ public class Tag { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public Tag id(Long id) { + this.id = id; return this; } @@ -48,15 +50,20 @@ public class Tag { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Tag name(String name) { + this.name = name; return this; } @@ -67,10 +74,13 @@ public class Tag { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(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 8fc321bc0a2..e61b1492abc 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 @@ -52,7 +52,9 @@ public class TypeHolderDefault { @SerializedName(SERIALIZED_NAME_ARRAY_ITEM) private List arrayItem = new ArrayList(); + public TypeHolderDefault stringItem(String stringItem) { + this.stringItem = stringItem; return this; } @@ -62,15 +64,20 @@ public class TypeHolderDefault { * @return stringItem **/ @ApiModelProperty(required = true, value = "") + public String getStringItem() { return stringItem; } + + public void setStringItem(String stringItem) { this.stringItem = stringItem; } + public TypeHolderDefault numberItem(BigDecimal numberItem) { + this.numberItem = numberItem; return this; } @@ -80,15 +87,20 @@ public class TypeHolderDefault { * @return numberItem **/ @ApiModelProperty(required = true, value = "") + public BigDecimal getNumberItem() { return numberItem; } + + public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } + public TypeHolderDefault integerItem(Integer integerItem) { + this.integerItem = integerItem; return this; } @@ -98,15 +110,20 @@ public class TypeHolderDefault { * @return integerItem **/ @ApiModelProperty(required = true, value = "") + public Integer getIntegerItem() { return integerItem; } + + public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } + public TypeHolderDefault boolItem(Boolean boolItem) { + this.boolItem = boolItem; return this; } @@ -116,15 +133,20 @@ public class TypeHolderDefault { * @return boolItem **/ @ApiModelProperty(required = true, value = "") + public Boolean getBoolItem() { return boolItem; } + + public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } + public TypeHolderDefault arrayItem(List arrayItem) { + this.arrayItem = arrayItem; return this; } @@ -139,10 +161,13 @@ public class TypeHolderDefault { * @return arrayItem **/ @ApiModelProperty(required = true, value = "") + public List getArrayItem() { return arrayItem; } + + public void setArrayItem(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 d9496cbd790..a0691d38a54 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 @@ -52,7 +52,9 @@ public class TypeHolderExample { @SerializedName(SERIALIZED_NAME_ARRAY_ITEM) private List arrayItem = new ArrayList(); + public TypeHolderExample stringItem(String stringItem) { + this.stringItem = stringItem; return this; } @@ -62,15 +64,20 @@ public class TypeHolderExample { * @return stringItem **/ @ApiModelProperty(example = "what", required = true, value = "") + public String getStringItem() { return stringItem; } + + public void setStringItem(String stringItem) { this.stringItem = stringItem; } + public TypeHolderExample numberItem(BigDecimal numberItem) { + this.numberItem = numberItem; return this; } @@ -80,15 +87,20 @@ public class TypeHolderExample { * @return numberItem **/ @ApiModelProperty(example = "1.234", required = true, value = "") + public BigDecimal getNumberItem() { return numberItem; } + + public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } + public TypeHolderExample integerItem(Integer integerItem) { + this.integerItem = integerItem; return this; } @@ -98,15 +110,20 @@ public class TypeHolderExample { * @return integerItem **/ @ApiModelProperty(example = "-2", required = true, value = "") + public Integer getIntegerItem() { return integerItem; } + + public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } + public TypeHolderExample boolItem(Boolean boolItem) { + this.boolItem = boolItem; return this; } @@ -116,15 +133,20 @@ public class TypeHolderExample { * @return boolItem **/ @ApiModelProperty(example = "true", required = true, value = "") + public Boolean getBoolItem() { return boolItem; } + + public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } + public TypeHolderExample arrayItem(List arrayItem) { + this.arrayItem = arrayItem; return this; } @@ -139,10 +161,13 @@ public class TypeHolderExample { * @return arrayItem **/ @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") + public List getArrayItem() { return arrayItem; } + + public void setArrayItem(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 1aedd044b58..3760c07c592 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 @@ -61,7 +61,9 @@ public class User { @SerializedName(SERIALIZED_NAME_USER_STATUS) private Integer userStatus; + public User id(Long id) { + this.id = id; return this; } @@ -72,15 +74,20 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public User username(String username) { + this.username = username; return this; } @@ -91,15 +98,20 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getUsername() { return username; } + + public void setUsername(String username) { this.username = username; } + public User firstName(String firstName) { + this.firstName = firstName; return this; } @@ -110,15 +122,20 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getFirstName() { return firstName; } + + public void setFirstName(String firstName) { this.firstName = firstName; } + public User lastName(String lastName) { + this.lastName = lastName; return this; } @@ -129,15 +146,20 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getLastName() { return lastName; } + + public void setLastName(String lastName) { this.lastName = lastName; } + public User email(String email) { + this.email = email; return this; } @@ -148,15 +170,20 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getEmail() { return email; } + + public void setEmail(String email) { this.email = email; } + public User password(String password) { + this.password = password; return this; } @@ -167,15 +194,20 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getPassword() { return password; } + + public void setPassword(String password) { this.password = password; } + public User phone(String phone) { + this.phone = phone; return this; } @@ -186,15 +218,20 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getPhone() { return phone; } + + public void setPhone(String phone) { this.phone = phone; } + public User userStatus(Integer userStatus) { + this.userStatus = userStatus; return this; } @@ -205,10 +242,13 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "User Status") + public Integer getUserStatus() { return userStatus; } + + public void setUserStatus(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 21ff0ff8aae..4fce3d5e1c0 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 @@ -148,7 +148,9 @@ public class XmlItem { @SerializedName(SERIALIZED_NAME_PREFIX_NS_WRAPPED_ARRAY) private List prefixNsWrappedArray = null; + public XmlItem attributeString(String attributeString) { + this.attributeString = attributeString; return this; } @@ -159,15 +161,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + public String getAttributeString() { return attributeString; } + + public void setAttributeString(String attributeString) { this.attributeString = attributeString; } + public XmlItem attributeNumber(BigDecimal attributeNumber) { + this.attributeNumber = attributeNumber; return this; } @@ -178,15 +185,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + public BigDecimal getAttributeNumber() { return attributeNumber; } + + public void setAttributeNumber(BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } + public XmlItem attributeInteger(Integer attributeInteger) { + this.attributeInteger = attributeInteger; return this; } @@ -197,15 +209,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + public Integer getAttributeInteger() { return attributeInteger; } + + public void setAttributeInteger(Integer attributeInteger) { this.attributeInteger = attributeInteger; } + public XmlItem attributeBoolean(Boolean attributeBoolean) { + this.attributeBoolean = attributeBoolean; return this; } @@ -216,15 +233,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + public Boolean getAttributeBoolean() { return attributeBoolean; } + + public void setAttributeBoolean(Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } + public XmlItem wrappedArray(List wrappedArray) { + this.wrappedArray = wrappedArray; return this; } @@ -243,15 +265,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getWrappedArray() { return wrappedArray; } + + public void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } + public XmlItem nameString(String nameString) { + this.nameString = nameString; return this; } @@ -262,15 +289,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + public String getNameString() { return nameString; } + + public void setNameString(String nameString) { this.nameString = nameString; } + public XmlItem nameNumber(BigDecimal nameNumber) { + this.nameNumber = nameNumber; return this; } @@ -281,15 +313,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + public BigDecimal getNameNumber() { return nameNumber; } + + public void setNameNumber(BigDecimal nameNumber) { this.nameNumber = nameNumber; } + public XmlItem nameInteger(Integer nameInteger) { + this.nameInteger = nameInteger; return this; } @@ -300,15 +337,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + public Integer getNameInteger() { return nameInteger; } + + public void setNameInteger(Integer nameInteger) { this.nameInteger = nameInteger; } + public XmlItem nameBoolean(Boolean nameBoolean) { + this.nameBoolean = nameBoolean; return this; } @@ -319,15 +361,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + public Boolean getNameBoolean() { return nameBoolean; } + + public void setNameBoolean(Boolean nameBoolean) { this.nameBoolean = nameBoolean; } + public XmlItem nameArray(List nameArray) { + this.nameArray = nameArray; return this; } @@ -346,15 +393,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getNameArray() { return nameArray; } + + public void setNameArray(List nameArray) { this.nameArray = nameArray; } + public XmlItem nameWrappedArray(List nameWrappedArray) { + this.nameWrappedArray = nameWrappedArray; return this; } @@ -373,15 +425,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getNameWrappedArray() { return nameWrappedArray; } + + public void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } + public XmlItem prefixString(String prefixString) { + this.prefixString = prefixString; return this; } @@ -392,15 +449,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + public String getPrefixString() { return prefixString; } + + public void setPrefixString(String prefixString) { this.prefixString = prefixString; } + public XmlItem prefixNumber(BigDecimal prefixNumber) { + this.prefixNumber = prefixNumber; return this; } @@ -411,15 +473,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + public BigDecimal getPrefixNumber() { return prefixNumber; } + + public void setPrefixNumber(BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } + public XmlItem prefixInteger(Integer prefixInteger) { + this.prefixInteger = prefixInteger; return this; } @@ -430,15 +497,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + public Integer getPrefixInteger() { return prefixInteger; } + + public void setPrefixInteger(Integer prefixInteger) { this.prefixInteger = prefixInteger; } + public XmlItem prefixBoolean(Boolean prefixBoolean) { + this.prefixBoolean = prefixBoolean; return this; } @@ -449,15 +521,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + public Boolean getPrefixBoolean() { return prefixBoolean; } + + public void setPrefixBoolean(Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } + public XmlItem prefixArray(List prefixArray) { + this.prefixArray = prefixArray; return this; } @@ -476,15 +553,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getPrefixArray() { return prefixArray; } + + public void setPrefixArray(List prefixArray) { this.prefixArray = prefixArray; } + public XmlItem prefixWrappedArray(List prefixWrappedArray) { + this.prefixWrappedArray = prefixWrappedArray; return this; } @@ -503,15 +585,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getPrefixWrappedArray() { return prefixWrappedArray; } + + public void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } + public XmlItem namespaceString(String namespaceString) { + this.namespaceString = namespaceString; return this; } @@ -522,15 +609,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + public String getNamespaceString() { return namespaceString; } + + public void setNamespaceString(String namespaceString) { this.namespaceString = namespaceString; } + public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + this.namespaceNumber = namespaceNumber; return this; } @@ -541,15 +633,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + public BigDecimal getNamespaceNumber() { return namespaceNumber; } + + public void setNamespaceNumber(BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } + public XmlItem namespaceInteger(Integer namespaceInteger) { + this.namespaceInteger = namespaceInteger; return this; } @@ -560,15 +657,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + public Integer getNamespaceInteger() { return namespaceInteger; } + + public void setNamespaceInteger(Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } + public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + this.namespaceBoolean = namespaceBoolean; return this; } @@ -579,15 +681,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + public Boolean getNamespaceBoolean() { return namespaceBoolean; } + + public void setNamespaceBoolean(Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } + public XmlItem namespaceArray(List namespaceArray) { + this.namespaceArray = namespaceArray; return this; } @@ -606,15 +713,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getNamespaceArray() { return namespaceArray; } + + public void setNamespaceArray(List namespaceArray) { this.namespaceArray = namespaceArray; } + public XmlItem namespaceWrappedArray(List namespaceWrappedArray) { + this.namespaceWrappedArray = namespaceWrappedArray; return this; } @@ -633,15 +745,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getNamespaceWrappedArray() { return namespaceWrappedArray; } + + public void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } + public XmlItem prefixNsString(String prefixNsString) { + this.prefixNsString = prefixNsString; return this; } @@ -652,15 +769,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + public String getPrefixNsString() { return prefixNsString; } + + public void setPrefixNsString(String prefixNsString) { this.prefixNsString = prefixNsString; } + public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + this.prefixNsNumber = prefixNsNumber; return this; } @@ -671,15 +793,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + public BigDecimal getPrefixNsNumber() { return prefixNsNumber; } + + public void setPrefixNsNumber(BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } + public XmlItem prefixNsInteger(Integer prefixNsInteger) { + this.prefixNsInteger = prefixNsInteger; return this; } @@ -690,15 +817,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + public Integer getPrefixNsInteger() { return prefixNsInteger; } + + public void setPrefixNsInteger(Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } + public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + this.prefixNsBoolean = prefixNsBoolean; return this; } @@ -709,15 +841,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + public Boolean getPrefixNsBoolean() { return prefixNsBoolean; } + + public void setPrefixNsBoolean(Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } + public XmlItem prefixNsArray(List prefixNsArray) { + this.prefixNsArray = prefixNsArray; return this; } @@ -736,15 +873,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getPrefixNsArray() { return prefixNsArray; } + + public void setPrefixNsArray(List prefixNsArray) { this.prefixNsArray = prefixNsArray; } + public XmlItem prefixNsWrappedArray(List prefixNsWrappedArray) { + this.prefixNsWrappedArray = prefixNsWrappedArray; return this; } @@ -763,10 +905,13 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getPrefixNsWrappedArray() { return prefixNsWrappedArray; } + + public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/retrofit2rx/docs/UserApi.md b/samples/client/petstore/java/retrofit2rx/docs/UserApi.md index bdf473df90d..d03e871ce01 100644 --- a/samples/client/petstore/java/retrofit2rx/docs/UserApi.md +++ b/samples/client/petstore/java/retrofit2rx/docs/UserApi.md @@ -101,7 +101,7 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); UserApi apiInstance = new UserApi(defaultClient); - List body = Arrays.asList(null); // List | List of user object + List body = Arrays.asList(); // List | List of user object try { apiInstance.createUsersWithArrayInput(body); } catch (ApiException e) { @@ -163,7 +163,7 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); UserApi apiInstance = new UserApi(defaultClient); - List body = Arrays.asList(null); // List | List of user object + List body = Arrays.asList(); // List | List of user object try { apiInstance.createUsersWithListInput(body); } catch (ApiException e) { diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index 6639252ccb3..13e761a8d9c 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -35,7 +35,9 @@ public class AdditionalPropertiesAnyType extends HashMap { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public AdditionalPropertiesAnyType name(String name) { + this.name = name; return this; } @@ -46,10 +48,13 @@ public class AdditionalPropertiesAnyType extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 2c3f2ca0a46..17e320b0a95 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -36,7 +36,9 @@ public class AdditionalPropertiesArray extends HashMap { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public AdditionalPropertiesArray name(String name) { + this.name = name; return this; } @@ -47,10 +49,13 @@ public class AdditionalPropertiesArray extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 7c4a5248c07..8a51fa9f778 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -35,7 +35,9 @@ public class AdditionalPropertiesBoolean extends HashMap { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public AdditionalPropertiesBoolean name(String name) { + this.name = name; return this; } @@ -46,10 +48,13 @@ public class AdditionalPropertiesBoolean extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 58273e62fb0..a4a797bb487 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -67,17 +67,19 @@ public class AdditionalPropertiesClass { public static final String SERIALIZED_NAME_ANYTYPE1 = "anytype_1"; @SerializedName(SERIALIZED_NAME_ANYTYPE1) - private Object anytype1 = null; + private Object anytype1; public static final String SERIALIZED_NAME_ANYTYPE2 = "anytype_2"; @SerializedName(SERIALIZED_NAME_ANYTYPE2) - private Object anytype2 = null; + private Object anytype2; public static final String SERIALIZED_NAME_ANYTYPE3 = "anytype_3"; @SerializedName(SERIALIZED_NAME_ANYTYPE3) - private Object anytype3 = null; + private Object anytype3; + public AdditionalPropertiesClass mapString(Map mapString) { + this.mapString = mapString; return this; } @@ -96,15 +98,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getMapString() { return mapString; } + + public void setMapString(Map mapString) { this.mapString = mapString; } + public AdditionalPropertiesClass mapNumber(Map mapNumber) { + this.mapNumber = mapNumber; return this; } @@ -123,15 +130,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getMapNumber() { return mapNumber; } + + public void setMapNumber(Map mapNumber) { this.mapNumber = mapNumber; } + public AdditionalPropertiesClass mapInteger(Map mapInteger) { + this.mapInteger = mapInteger; return this; } @@ -150,15 +162,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getMapInteger() { return mapInteger; } + + public void setMapInteger(Map mapInteger) { this.mapInteger = mapInteger; } + public AdditionalPropertiesClass mapBoolean(Map mapBoolean) { + this.mapBoolean = mapBoolean; return this; } @@ -177,15 +194,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getMapBoolean() { return mapBoolean; } + + public void setMapBoolean(Map mapBoolean) { this.mapBoolean = mapBoolean; } + public AdditionalPropertiesClass mapArrayInteger(Map> mapArrayInteger) { + this.mapArrayInteger = mapArrayInteger; return this; } @@ -204,15 +226,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map> getMapArrayInteger() { return mapArrayInteger; } + + public void setMapArrayInteger(Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; } + public AdditionalPropertiesClass mapArrayAnytype(Map> mapArrayAnytype) { + this.mapArrayAnytype = mapArrayAnytype; return this; } @@ -231,15 +258,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map> getMapArrayAnytype() { return mapArrayAnytype; } + + public void setMapArrayAnytype(Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; } + public AdditionalPropertiesClass mapMapString(Map> mapMapString) { + this.mapMapString = mapMapString; return this; } @@ -258,15 +290,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map> getMapMapString() { return mapMapString; } + + public void setMapMapString(Map> mapMapString) { this.mapMapString = mapMapString; } + public AdditionalPropertiesClass mapMapAnytype(Map> mapMapAnytype) { + this.mapMapAnytype = mapMapAnytype; return this; } @@ -285,15 +322,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map> getMapMapAnytype() { return mapMapAnytype; } + + public void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } + public AdditionalPropertiesClass anytype1(Object anytype1) { + this.anytype1 = anytype1; return this; } @@ -304,15 +346,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Object getAnytype1() { return anytype1; } + + public void setAnytype1(Object anytype1) { this.anytype1 = anytype1; } + public AdditionalPropertiesClass anytype2(Object anytype2) { + this.anytype2 = anytype2; return this; } @@ -323,15 +370,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Object getAnytype2() { return anytype2; } + + public void setAnytype2(Object anytype2) { this.anytype2 = anytype2; } + public AdditionalPropertiesClass anytype3(Object anytype3) { + this.anytype3 = anytype3; return this; } @@ -342,10 +394,13 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Object getAnytype3() { return anytype3; } + + public void setAnytype3(Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 10df3df74c7..4f2e3ef333e 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -35,7 +35,9 @@ public class AdditionalPropertiesInteger extends HashMap { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public AdditionalPropertiesInteger name(String name) { + this.name = name; return this; } @@ -46,10 +48,13 @@ public class AdditionalPropertiesInteger extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index 33719cab261..80ce73d422b 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -36,7 +36,9 @@ public class AdditionalPropertiesNumber extends HashMap { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public AdditionalPropertiesNumber name(String name) { + this.name = name; return this; } @@ -47,10 +49,13 @@ public class AdditionalPropertiesNumber extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index e37e04b01a6..bc5cc81bf64 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -35,7 +35,9 @@ public class AdditionalPropertiesObject extends HashMap { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public AdditionalPropertiesObject name(String name) { + this.name = name; return this; } @@ -46,10 +48,13 @@ public class AdditionalPropertiesObject extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index cfbf74f5b32..2e9c0c7ffd9 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -35,7 +35,9 @@ public class AdditionalPropertiesString extends HashMap { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public AdditionalPropertiesString name(String name) { + this.name = name; return this; } @@ -46,10 +48,13 @@ public class AdditionalPropertiesString extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Animal.java index 0a02419dbf1..dd6b313c58c 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Animal.java @@ -41,7 +41,9 @@ public class Animal { public Animal() { this.className = this.getClass().getSimpleName(); } + public Animal className(String className) { + this.className = className; return this; } @@ -51,15 +53,20 @@ public class Animal { * @return className **/ @ApiModelProperty(required = true, value = "") + public String getClassName() { return className; } + + public void setClassName(String className) { this.className = className; } + public Animal color(String color) { + this.color = color; return this; } @@ -70,10 +77,13 @@ public class Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getColor() { return color; } + + public void setColor(String color) { this.color = color; } diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index ad0865658ad..1af52a3a988 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -36,7 +36,9 @@ public class ArrayOfArrayOfNumberOnly { @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_NUMBER) private List> arrayArrayNumber = null; + public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + this.arrayArrayNumber = arrayArrayNumber; return this; } @@ -55,10 +57,13 @@ public class ArrayOfArrayOfNumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List> getArrayArrayNumber() { return arrayArrayNumber; } + + public void setArrayArrayNumber(List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 0b30fa73f86..eba8d40a289 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -36,7 +36,9 @@ public class ArrayOfNumberOnly { @SerializedName(SERIALIZED_NAME_ARRAY_NUMBER) private List arrayNumber = null; + public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + this.arrayNumber = arrayNumber; return this; } @@ -55,10 +57,13 @@ public class ArrayOfNumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getArrayNumber() { return arrayNumber; } + + public void setArrayNumber(List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ArrayTest.java index acfcd76498e..7ba0d8b77e0 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -44,7 +44,9 @@ public class ArrayTest { @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_OF_MODEL) private List> arrayArrayOfModel = null; + public ArrayTest arrayOfString(List arrayOfString) { + this.arrayOfString = arrayOfString; return this; } @@ -63,15 +65,20 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getArrayOfString() { return arrayOfString; } + + public void setArrayOfString(List arrayOfString) { this.arrayOfString = arrayOfString; } + public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + this.arrayArrayOfInteger = arrayArrayOfInteger; return this; } @@ -90,15 +97,20 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List> getArrayArrayOfInteger() { return arrayArrayOfInteger; } + + public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } + public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + this.arrayArrayOfModel = arrayArrayOfModel; return this; } @@ -117,10 +129,13 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List> getArrayArrayOfModel() { return arrayArrayOfModel; } + + public void setArrayArrayOfModel(List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Capitalization.java index ef40fe949fd..dc70cf2b597 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Capitalization.java @@ -53,7 +53,9 @@ public class Capitalization { @SerializedName(SERIALIZED_NAME_A_T_T_N_A_M_E) private String ATT_NAME; + public Capitalization smallCamel(String smallCamel) { + this.smallCamel = smallCamel; return this; } @@ -64,15 +66,20 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getSmallCamel() { return smallCamel; } + + public void setSmallCamel(String smallCamel) { this.smallCamel = smallCamel; } + public Capitalization capitalCamel(String capitalCamel) { + this.capitalCamel = capitalCamel; return this; } @@ -83,15 +90,20 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getCapitalCamel() { return capitalCamel; } + + public void setCapitalCamel(String capitalCamel) { this.capitalCamel = capitalCamel; } + public Capitalization smallSnake(String smallSnake) { + this.smallSnake = smallSnake; return this; } @@ -102,15 +114,20 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getSmallSnake() { return smallSnake; } + + public void setSmallSnake(String smallSnake) { this.smallSnake = smallSnake; } + public Capitalization capitalSnake(String capitalSnake) { + this.capitalSnake = capitalSnake; return this; } @@ -121,15 +138,20 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getCapitalSnake() { return capitalSnake; } + + public void setCapitalSnake(String capitalSnake) { this.capitalSnake = capitalSnake; } + public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -140,15 +162,20 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getScAETHFlowPoints() { return scAETHFlowPoints; } + + public void setScAETHFlowPoints(String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } + public Capitalization ATT_NAME(String ATT_NAME) { + this.ATT_NAME = ATT_NAME; return this; } @@ -159,10 +186,13 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "Name of the pet ") + public String getATTNAME() { return ATT_NAME; } + + public void setATTNAME(String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Cat.java index c600502f716..8829c547501 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Cat.java @@ -35,7 +35,9 @@ public class Cat extends Animal { @SerializedName(SERIALIZED_NAME_DECLAWED) private Boolean declawed; + public Cat declawed(Boolean declawed) { + this.declawed = declawed; return this; } @@ -46,10 +48,13 @@ public class Cat extends Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Boolean getDeclawed() { return declawed; } + + public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/CatAllOf.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/CatAllOf.java index 29b3658551e..d20d19aa53f 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/CatAllOf.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/CatAllOf.java @@ -33,7 +33,9 @@ public class CatAllOf { @SerializedName(SERIALIZED_NAME_DECLAWED) private Boolean declawed; + public CatAllOf declawed(Boolean declawed) { + this.declawed = declawed; return this; } @@ -44,10 +46,13 @@ public class CatAllOf { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Boolean getDeclawed() { return declawed; } + + public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Category.java index 1968763722d..f335f0b5217 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Category.java @@ -37,7 +37,9 @@ public class Category { @SerializedName(SERIALIZED_NAME_NAME) private String name = "default-name"; + public Category id(Long id) { + this.id = id; return this; } @@ -48,15 +50,20 @@ public class Category { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Category name(String name) { + this.name = name; return this; } @@ -66,10 +73,13 @@ public class Category { * @return name **/ @ApiModelProperty(required = true, value = "") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ClassModel.java index 52245d70502..83c30b802d4 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ClassModel.java @@ -34,7 +34,9 @@ public class ClassModel { @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) private String propertyClass; + public ClassModel propertyClass(String propertyClass) { + this.propertyClass = propertyClass; return this; } @@ -45,10 +47,13 @@ public class ClassModel { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getPropertyClass() { return propertyClass; } + + public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Client.java index e5ece3536d6..192c0ce6e5b 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Client.java @@ -33,7 +33,9 @@ public class Client { @SerializedName(SERIALIZED_NAME_CLIENT) private String client; + public Client client(String client) { + this.client = client; return this; } @@ -44,10 +46,13 @@ public class Client { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getClient() { return client; } + + public void setClient(String client) { this.client = client; } diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Dog.java index d877eb2f370..2f8a4652247 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Dog.java @@ -35,7 +35,9 @@ public class Dog extends Animal { @SerializedName(SERIALIZED_NAME_BREED) private String breed; + public Dog breed(String breed) { + this.breed = breed; return this; } @@ -46,10 +48,13 @@ public class Dog extends Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getBreed() { return breed; } + + public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/DogAllOf.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/DogAllOf.java index 54483f2227d..96610291473 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/DogAllOf.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/DogAllOf.java @@ -33,7 +33,9 @@ public class DogAllOf { @SerializedName(SERIALIZED_NAME_BREED) private String breed; + public DogAllOf breed(String breed) { + this.breed = breed; return this; } @@ -44,10 +46,13 @@ public class DogAllOf { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getBreed() { return breed; } + + public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/EnumArrays.java index 8d3e9bd58a3..4587357d5b0 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -133,7 +133,9 @@ public class EnumArrays { @SerializedName(SERIALIZED_NAME_ARRAY_ENUM) private List arrayEnum = null; + public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + this.justSymbol = justSymbol; return this; } @@ -144,15 +146,20 @@ public class EnumArrays { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public JustSymbolEnum getJustSymbol() { return justSymbol; } + + public void setJustSymbol(JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } + public EnumArrays arrayEnum(List arrayEnum) { + this.arrayEnum = arrayEnum; return this; } @@ -171,10 +178,13 @@ public class EnumArrays { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getArrayEnum() { return arrayEnum; } + + public void setArrayEnum(List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/EnumTest.java index 679584204fb..34f8781e089 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/EnumTest.java @@ -242,7 +242,9 @@ public class EnumTest { @SerializedName(SERIALIZED_NAME_OUTER_ENUM) private OuterEnum outerEnum; + public EnumTest enumString(EnumStringEnum enumString) { + this.enumString = enumString; return this; } @@ -253,15 +255,20 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public EnumStringEnum getEnumString() { return enumString; } + + public void setEnumString(EnumStringEnum enumString) { this.enumString = enumString; } + public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + this.enumStringRequired = enumStringRequired; return this; } @@ -271,15 +278,20 @@ public class EnumTest { * @return enumStringRequired **/ @ApiModelProperty(required = true, value = "") + public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; } + + public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } + public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + this.enumInteger = enumInteger; return this; } @@ -290,15 +302,20 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public EnumIntegerEnum getEnumInteger() { return enumInteger; } + + public void setEnumInteger(EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } + public EnumTest enumNumber(EnumNumberEnum enumNumber) { + this.enumNumber = enumNumber; return this; } @@ -309,15 +326,20 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public EnumNumberEnum getEnumNumber() { return enumNumber; } + + public void setEnumNumber(EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } + public EnumTest outerEnum(OuterEnum outerEnum) { + this.outerEnum = outerEnum; return this; } @@ -328,10 +350,13 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public OuterEnum getOuterEnum() { return outerEnum; } + + public void setOuterEnum(OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 29fe111764c..45ce4347b2d 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -33,13 +33,15 @@ import java.util.List; public class FileSchemaTestClass { public static final String SERIALIZED_NAME_FILE = "file"; @SerializedName(SERIALIZED_NAME_FILE) - private java.io.File file = null; + private java.io.File file; public static final String SERIALIZED_NAME_FILES = "files"; @SerializedName(SERIALIZED_NAME_FILES) private List files = null; + public FileSchemaTestClass file(java.io.File file) { + this.file = file; return this; } @@ -50,15 +52,20 @@ public class FileSchemaTestClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public java.io.File getFile() { return file; } + + public void setFile(java.io.File file) { this.file = file; } + public FileSchemaTestClass files(List files) { + this.files = files; return this; } @@ -77,10 +84,13 @@ public class FileSchemaTestClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getFiles() { return files; } + + public void setFiles(List files) { this.files = files; } diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/FormatTest.java index 583b12a0ebc..36fe5897683 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/FormatTest.java @@ -86,7 +86,9 @@ public class FormatTest { @SerializedName(SERIALIZED_NAME_PASSWORD) private String password; + public FormatTest integer(Integer integer) { + this.integer = integer; return this; } @@ -99,15 +101,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer getInteger() { return integer; } + + public void setInteger(Integer integer) { this.integer = integer; } + public FormatTest int32(Integer int32) { + this.int32 = int32; return this; } @@ -120,15 +127,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer getInt32() { return int32; } + + public void setInt32(Integer int32) { this.int32 = int32; } + public FormatTest int64(Long int64) { + this.int64 = int64; return this; } @@ -139,15 +151,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getInt64() { return int64; } + + public void setInt64(Long int64) { this.int64 = int64; } + public FormatTest number(BigDecimal number) { + this.number = number; return this; } @@ -159,15 +176,20 @@ public class FormatTest { * @return number **/ @ApiModelProperty(required = true, value = "") + public BigDecimal getNumber() { return number; } + + public void setNumber(BigDecimal number) { this.number = number; } + public FormatTest _float(Float _float) { + this._float = _float; return this; } @@ -180,15 +202,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Float getFloat() { return _float; } + + public void setFloat(Float _float) { this._float = _float; } + public FormatTest _double(Double _double) { + this._double = _double; return this; } @@ -201,15 +228,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Double getDouble() { return _double; } + + public void setDouble(Double _double) { this._double = _double; } + public FormatTest string(String string) { + this.string = string; return this; } @@ -220,15 +252,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getString() { return string; } + + public void setString(String string) { this.string = string; } + public FormatTest _byte(byte[] _byte) { + this._byte = _byte; return this; } @@ -238,15 +275,20 @@ public class FormatTest { * @return _byte **/ @ApiModelProperty(required = true, value = "") + public byte[] getByte() { return _byte; } + + public void setByte(byte[] _byte) { this._byte = _byte; } + public FormatTest binary(File binary) { + this.binary = binary; return this; } @@ -257,15 +299,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public File getBinary() { return binary; } + + public void setBinary(File binary) { this.binary = binary; } + public FormatTest date(LocalDate date) { + this.date = date; return this; } @@ -275,15 +322,20 @@ public class FormatTest { * @return date **/ @ApiModelProperty(required = true, value = "") + public LocalDate getDate() { return date; } + + public void setDate(LocalDate date) { this.date = date; } + public FormatTest dateTime(OffsetDateTime dateTime) { + this.dateTime = dateTime; return this; } @@ -294,15 +346,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public OffsetDateTime getDateTime() { return dateTime; } + + public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } + public FormatTest uuid(UUID uuid) { + this.uuid = uuid; return this; } @@ -313,15 +370,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + public UUID getUuid() { return uuid; } + + public void setUuid(UUID uuid) { this.uuid = uuid; } + public FormatTest password(String password) { + this.password = password; return this; } @@ -331,10 +393,13 @@ public class FormatTest { * @return password **/ @ApiModelProperty(required = true, value = "") + public String getPassword() { return password; } + + public void setPassword(String password) { this.password = password; } diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 02225d278c4..8fcb2684643 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -37,27 +37,35 @@ public class HasOnlyReadOnly { @SerializedName(SERIALIZED_NAME_FOO) private String foo; + /** * Get bar * @return bar **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getBar() { return bar; } + + + /** * Get foo * @return foo **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getFoo() { return foo; } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/MapTest.java index 60892fc9476..609587e370f 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/MapTest.java @@ -95,7 +95,9 @@ public class MapTest { @SerializedName(SERIALIZED_NAME_INDIRECT_MAP) private Map indirectMap = null; + public MapTest mapMapOfString(Map> mapMapOfString) { + this.mapMapOfString = mapMapOfString; return this; } @@ -114,15 +116,20 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map> getMapMapOfString() { return mapMapOfString; } + + public void setMapMapOfString(Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } + public MapTest mapOfEnumString(Map mapOfEnumString) { + this.mapOfEnumString = mapOfEnumString; return this; } @@ -141,15 +148,20 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getMapOfEnumString() { return mapOfEnumString; } + + public void setMapOfEnumString(Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } + public MapTest directMap(Map directMap) { + this.directMap = directMap; return this; } @@ -168,15 +180,20 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getDirectMap() { return directMap; } + + public void setDirectMap(Map directMap) { this.directMap = directMap; } + public MapTest indirectMap(Map indirectMap) { + this.indirectMap = indirectMap; return this; } @@ -195,10 +212,13 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getIndirectMap() { return indirectMap; } + + public void setIndirectMap(Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 9cb44786512..815cf8d5e05 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -47,7 +47,9 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @SerializedName(SERIALIZED_NAME_MAP) private Map map = null; + public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + this.uuid = uuid; return this; } @@ -58,15 +60,20 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public UUID getUuid() { return uuid; } + + public void setUuid(UUID uuid) { this.uuid = uuid; } + public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + this.dateTime = dateTime; return this; } @@ -77,15 +84,20 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public OffsetDateTime getDateTime() { return dateTime; } + + public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } + public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + this.map = map; return this; } @@ -104,10 +116,13 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getMap() { return map; } + + public void setMap(Map map) { this.map = map; } diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Model200Response.java index 3167560a9dd..42a61d0d877 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Model200Response.java @@ -38,7 +38,9 @@ public class Model200Response { @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) private String propertyClass; + public Model200Response name(Integer name) { + this.name = name; return this; } @@ -49,15 +51,20 @@ public class Model200Response { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer getName() { return name; } + + public void setName(Integer name) { this.name = name; } + public Model200Response propertyClass(String propertyClass) { + this.propertyClass = propertyClass; return this; } @@ -68,10 +75,13 @@ public class Model200Response { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getPropertyClass() { return propertyClass; } + + public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 84d2fcc4d39..db323b17602 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -41,7 +41,9 @@ public class ModelApiResponse { @SerializedName(SERIALIZED_NAME_MESSAGE) private String message; + public ModelApiResponse code(Integer code) { + this.code = code; return this; } @@ -52,15 +54,20 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer getCode() { return code; } + + public void setCode(Integer code) { this.code = code; } + public ModelApiResponse type(String type) { + this.type = type; return this; } @@ -71,15 +78,20 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } + public ModelApiResponse message(String message) { + this.message = message; return this; } @@ -90,10 +102,13 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ModelReturn.java index c13f1babe59..da9f1a20259 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -34,7 +34,9 @@ public class ModelReturn { @SerializedName(SERIALIZED_NAME_RETURN) private Integer _return; + public ModelReturn _return(Integer _return) { + this._return = _return; return this; } @@ -45,10 +47,13 @@ public class ModelReturn { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer getReturn() { return _return; } + + public void setReturn(Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Name.java index 221821d4e19..f775f97b3f1 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Name.java @@ -46,7 +46,9 @@ public class Name { @SerializedName(SERIALIZED_NAME_123NUMBER) private Integer _123number; + public Name name(Integer name) { + this.name = name; return this; } @@ -56,25 +58,34 @@ public class Name { * @return name **/ @ApiModelProperty(required = true, value = "") + public Integer getName() { return name; } + + public void setName(Integer name) { this.name = name; } + /** * Get snakeCase * @return snakeCase **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer getSnakeCase() { return snakeCase; } + + + public Name property(String property) { + this.property = property; return this; } @@ -85,25 +96,32 @@ public class Name { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getProperty() { return property; } + + public void setProperty(String property) { this.property = property; } + /** * Get _123number * @return _123number **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer get123number() { return _123number; } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/NumberOnly.java index 9a068c2e1ee..1a7bd689645 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -34,7 +34,9 @@ public class NumberOnly { @SerializedName(SERIALIZED_NAME_JUST_NUMBER) private BigDecimal justNumber; + public NumberOnly justNumber(BigDecimal justNumber) { + this.justNumber = justNumber; return this; } @@ -45,10 +47,13 @@ public class NumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public BigDecimal getJustNumber() { return justNumber; } + + public void setJustNumber(BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Order.java index 9ee41b5b8a9..fe6a60098bf 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Order.java @@ -103,7 +103,9 @@ public class Order { @SerializedName(SERIALIZED_NAME_COMPLETE) private Boolean complete = false; + public Order id(Long id) { + this.id = id; return this; } @@ -114,15 +116,20 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Order petId(Long petId) { + this.petId = petId; return this; } @@ -133,15 +140,20 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getPetId() { return petId; } + + public void setPetId(Long petId) { this.petId = petId; } + public Order quantity(Integer quantity) { + this.quantity = quantity; return this; } @@ -152,15 +164,20 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer getQuantity() { return quantity; } + + public void setQuantity(Integer quantity) { this.quantity = quantity; } + public Order shipDate(OffsetDateTime shipDate) { + this.shipDate = shipDate; return this; } @@ -171,15 +188,20 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public OffsetDateTime getShipDate() { return shipDate; } + + public void setShipDate(OffsetDateTime shipDate) { this.shipDate = shipDate; } + public Order status(StatusEnum status) { + this.status = status; return this; } @@ -190,15 +212,20 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "Order Status") + public StatusEnum getStatus() { return status; } + + public void setStatus(StatusEnum status) { this.status = status; } + public Order complete(Boolean complete) { + this.complete = complete; return this; } @@ -209,10 +236,13 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Boolean getComplete() { return complete; } + + public void setComplete(Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/OuterComposite.java index 690b6bde4be..3db0e2e26c9 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -42,7 +42,9 @@ public class OuterComposite { @SerializedName(SERIALIZED_NAME_MY_BOOLEAN) private Boolean myBoolean; + public OuterComposite myNumber(BigDecimal myNumber) { + this.myNumber = myNumber; return this; } @@ -53,15 +55,20 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public BigDecimal getMyNumber() { return myNumber; } + + public void setMyNumber(BigDecimal myNumber) { this.myNumber = myNumber; } + public OuterComposite myString(String myString) { + this.myString = myString; return this; } @@ -72,15 +79,20 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getMyString() { return myString; } + + public void setMyString(String myString) { this.myString = myString; } + public OuterComposite myBoolean(Boolean myBoolean) { + this.myBoolean = myBoolean; return this; } @@ -91,10 +103,13 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Boolean getMyBoolean() { return myBoolean; } + + public void setMyBoolean(Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Pet.java index ae8237d55b9..943b3103f03 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Pet.java @@ -39,7 +39,7 @@ public class Pet { public static final String SERIALIZED_NAME_CATEGORY = "category"; @SerializedName(SERIALIZED_NAME_CATEGORY) - private Category category = null; + private Category category; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -106,7 +106,9 @@ public class Pet { @SerializedName(SERIALIZED_NAME_STATUS) private StatusEnum status; + public Pet id(Long id) { + this.id = id; return this; } @@ -117,15 +119,20 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Pet category(Category category) { + this.category = category; return this; } @@ -136,15 +143,20 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Category getCategory() { return category; } + + public void setCategory(Category category) { this.category = category; } + public Pet name(String name) { + this.name = name; return this; } @@ -154,15 +166,20 @@ public class Pet { * @return name **/ @ApiModelProperty(example = "doggie", required = true, value = "") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public Pet photoUrls(List photoUrls) { + this.photoUrls = photoUrls; return this; } @@ -177,15 +194,20 @@ public class Pet { * @return photoUrls **/ @ApiModelProperty(required = true, value = "") + public List getPhotoUrls() { return photoUrls; } + + public void setPhotoUrls(List photoUrls) { this.photoUrls = photoUrls; } + public Pet tags(List tags) { + this.tags = tags; return this; } @@ -204,15 +226,20 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getTags() { return tags; } + + public void setTags(List tags) { this.tags = tags; } + public Pet status(StatusEnum status) { + this.status = status; return this; } @@ -223,10 +250,13 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "pet status in the store") + public StatusEnum getStatus() { return status; } + + public void setStatus(StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 84780d763a0..2501babb56e 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -37,17 +37,23 @@ public class ReadOnlyFirst { @SerializedName(SERIALIZED_NAME_BAZ) private String baz; + /** * Get bar * @return bar **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getBar() { return bar; } + + + public ReadOnlyFirst baz(String baz) { + this.baz = baz; return this; } @@ -58,10 +64,13 @@ public class ReadOnlyFirst { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getBaz() { return baz; } + + public void setBaz(String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/SpecialModelName.java index c6ccd2c33f6..4ff598a6cfc 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -33,7 +33,9 @@ public class SpecialModelName { @SerializedName(SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME) private Long $specialPropertyName; + public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + this.$specialPropertyName = $specialPropertyName; return this; } @@ -44,10 +46,13 @@ public class SpecialModelName { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long get$SpecialPropertyName() { return $specialPropertyName; } + + public void set$SpecialPropertyName(Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Tag.java index 504c51cc3e5..693247a2fd2 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Tag.java @@ -37,7 +37,9 @@ public class Tag { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public Tag id(Long id) { + this.id = id; return this; } @@ -48,15 +50,20 @@ public class Tag { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Tag name(String name) { + this.name = name; return this; } @@ -67,10 +74,13 @@ public class Tag { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index 8fc321bc0a2..e61b1492abc 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -52,7 +52,9 @@ public class TypeHolderDefault { @SerializedName(SERIALIZED_NAME_ARRAY_ITEM) private List arrayItem = new ArrayList(); + public TypeHolderDefault stringItem(String stringItem) { + this.stringItem = stringItem; return this; } @@ -62,15 +64,20 @@ public class TypeHolderDefault { * @return stringItem **/ @ApiModelProperty(required = true, value = "") + public String getStringItem() { return stringItem; } + + public void setStringItem(String stringItem) { this.stringItem = stringItem; } + public TypeHolderDefault numberItem(BigDecimal numberItem) { + this.numberItem = numberItem; return this; } @@ -80,15 +87,20 @@ public class TypeHolderDefault { * @return numberItem **/ @ApiModelProperty(required = true, value = "") + public BigDecimal getNumberItem() { return numberItem; } + + public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } + public TypeHolderDefault integerItem(Integer integerItem) { + this.integerItem = integerItem; return this; } @@ -98,15 +110,20 @@ public class TypeHolderDefault { * @return integerItem **/ @ApiModelProperty(required = true, value = "") + public Integer getIntegerItem() { return integerItem; } + + public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } + public TypeHolderDefault boolItem(Boolean boolItem) { + this.boolItem = boolItem; return this; } @@ -116,15 +133,20 @@ public class TypeHolderDefault { * @return boolItem **/ @ApiModelProperty(required = true, value = "") + public Boolean getBoolItem() { return boolItem; } + + public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } + public TypeHolderDefault arrayItem(List arrayItem) { + this.arrayItem = arrayItem; return this; } @@ -139,10 +161,13 @@ public class TypeHolderDefault { * @return arrayItem **/ @ApiModelProperty(required = true, value = "") + public List getArrayItem() { return arrayItem; } + + public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/TypeHolderExample.java index d9496cbd790..a0691d38a54 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -52,7 +52,9 @@ public class TypeHolderExample { @SerializedName(SERIALIZED_NAME_ARRAY_ITEM) private List arrayItem = new ArrayList(); + public TypeHolderExample stringItem(String stringItem) { + this.stringItem = stringItem; return this; } @@ -62,15 +64,20 @@ public class TypeHolderExample { * @return stringItem **/ @ApiModelProperty(example = "what", required = true, value = "") + public String getStringItem() { return stringItem; } + + public void setStringItem(String stringItem) { this.stringItem = stringItem; } + public TypeHolderExample numberItem(BigDecimal numberItem) { + this.numberItem = numberItem; return this; } @@ -80,15 +87,20 @@ public class TypeHolderExample { * @return numberItem **/ @ApiModelProperty(example = "1.234", required = true, value = "") + public BigDecimal getNumberItem() { return numberItem; } + + public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } + public TypeHolderExample integerItem(Integer integerItem) { + this.integerItem = integerItem; return this; } @@ -98,15 +110,20 @@ public class TypeHolderExample { * @return integerItem **/ @ApiModelProperty(example = "-2", required = true, value = "") + public Integer getIntegerItem() { return integerItem; } + + public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } + public TypeHolderExample boolItem(Boolean boolItem) { + this.boolItem = boolItem; return this; } @@ -116,15 +133,20 @@ public class TypeHolderExample { * @return boolItem **/ @ApiModelProperty(example = "true", required = true, value = "") + public Boolean getBoolItem() { return boolItem; } + + public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } + public TypeHolderExample arrayItem(List arrayItem) { + this.arrayItem = arrayItem; return this; } @@ -139,10 +161,13 @@ public class TypeHolderExample { * @return arrayItem **/ @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") + public List getArrayItem() { return arrayItem; } + + public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/User.java index 1aedd044b58..3760c07c592 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/User.java @@ -61,7 +61,9 @@ public class User { @SerializedName(SERIALIZED_NAME_USER_STATUS) private Integer userStatus; + public User id(Long id) { + this.id = id; return this; } @@ -72,15 +74,20 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public User username(String username) { + this.username = username; return this; } @@ -91,15 +98,20 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getUsername() { return username; } + + public void setUsername(String username) { this.username = username; } + public User firstName(String firstName) { + this.firstName = firstName; return this; } @@ -110,15 +122,20 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getFirstName() { return firstName; } + + public void setFirstName(String firstName) { this.firstName = firstName; } + public User lastName(String lastName) { + this.lastName = lastName; return this; } @@ -129,15 +146,20 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getLastName() { return lastName; } + + public void setLastName(String lastName) { this.lastName = lastName; } + public User email(String email) { + this.email = email; return this; } @@ -148,15 +170,20 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getEmail() { return email; } + + public void setEmail(String email) { this.email = email; } + public User password(String password) { + this.password = password; return this; } @@ -167,15 +194,20 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getPassword() { return password; } + + public void setPassword(String password) { this.password = password; } + public User phone(String phone) { + this.phone = phone; return this; } @@ -186,15 +218,20 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getPhone() { return phone; } + + public void setPhone(String phone) { this.phone = phone; } + public User userStatus(Integer userStatus) { + this.userStatus = userStatus; return this; } @@ -205,10 +242,13 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "User Status") + public Integer getUserStatus() { return userStatus; } + + public void setUserStatus(Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/XmlItem.java index 21ff0ff8aae..4fce3d5e1c0 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/XmlItem.java @@ -148,7 +148,9 @@ public class XmlItem { @SerializedName(SERIALIZED_NAME_PREFIX_NS_WRAPPED_ARRAY) private List prefixNsWrappedArray = null; + public XmlItem attributeString(String attributeString) { + this.attributeString = attributeString; return this; } @@ -159,15 +161,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + public String getAttributeString() { return attributeString; } + + public void setAttributeString(String attributeString) { this.attributeString = attributeString; } + public XmlItem attributeNumber(BigDecimal attributeNumber) { + this.attributeNumber = attributeNumber; return this; } @@ -178,15 +185,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + public BigDecimal getAttributeNumber() { return attributeNumber; } + + public void setAttributeNumber(BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } + public XmlItem attributeInteger(Integer attributeInteger) { + this.attributeInteger = attributeInteger; return this; } @@ -197,15 +209,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + public Integer getAttributeInteger() { return attributeInteger; } + + public void setAttributeInteger(Integer attributeInteger) { this.attributeInteger = attributeInteger; } + public XmlItem attributeBoolean(Boolean attributeBoolean) { + this.attributeBoolean = attributeBoolean; return this; } @@ -216,15 +233,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + public Boolean getAttributeBoolean() { return attributeBoolean; } + + public void setAttributeBoolean(Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } + public XmlItem wrappedArray(List wrappedArray) { + this.wrappedArray = wrappedArray; return this; } @@ -243,15 +265,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getWrappedArray() { return wrappedArray; } + + public void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } + public XmlItem nameString(String nameString) { + this.nameString = nameString; return this; } @@ -262,15 +289,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + public String getNameString() { return nameString; } + + public void setNameString(String nameString) { this.nameString = nameString; } + public XmlItem nameNumber(BigDecimal nameNumber) { + this.nameNumber = nameNumber; return this; } @@ -281,15 +313,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + public BigDecimal getNameNumber() { return nameNumber; } + + public void setNameNumber(BigDecimal nameNumber) { this.nameNumber = nameNumber; } + public XmlItem nameInteger(Integer nameInteger) { + this.nameInteger = nameInteger; return this; } @@ -300,15 +337,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + public Integer getNameInteger() { return nameInteger; } + + public void setNameInteger(Integer nameInteger) { this.nameInteger = nameInteger; } + public XmlItem nameBoolean(Boolean nameBoolean) { + this.nameBoolean = nameBoolean; return this; } @@ -319,15 +361,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + public Boolean getNameBoolean() { return nameBoolean; } + + public void setNameBoolean(Boolean nameBoolean) { this.nameBoolean = nameBoolean; } + public XmlItem nameArray(List nameArray) { + this.nameArray = nameArray; return this; } @@ -346,15 +393,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getNameArray() { return nameArray; } + + public void setNameArray(List nameArray) { this.nameArray = nameArray; } + public XmlItem nameWrappedArray(List nameWrappedArray) { + this.nameWrappedArray = nameWrappedArray; return this; } @@ -373,15 +425,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getNameWrappedArray() { return nameWrappedArray; } + + public void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } + public XmlItem prefixString(String prefixString) { + this.prefixString = prefixString; return this; } @@ -392,15 +449,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + public String getPrefixString() { return prefixString; } + + public void setPrefixString(String prefixString) { this.prefixString = prefixString; } + public XmlItem prefixNumber(BigDecimal prefixNumber) { + this.prefixNumber = prefixNumber; return this; } @@ -411,15 +473,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + public BigDecimal getPrefixNumber() { return prefixNumber; } + + public void setPrefixNumber(BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } + public XmlItem prefixInteger(Integer prefixInteger) { + this.prefixInteger = prefixInteger; return this; } @@ -430,15 +497,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + public Integer getPrefixInteger() { return prefixInteger; } + + public void setPrefixInteger(Integer prefixInteger) { this.prefixInteger = prefixInteger; } + public XmlItem prefixBoolean(Boolean prefixBoolean) { + this.prefixBoolean = prefixBoolean; return this; } @@ -449,15 +521,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + public Boolean getPrefixBoolean() { return prefixBoolean; } + + public void setPrefixBoolean(Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } + public XmlItem prefixArray(List prefixArray) { + this.prefixArray = prefixArray; return this; } @@ -476,15 +553,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getPrefixArray() { return prefixArray; } + + public void setPrefixArray(List prefixArray) { this.prefixArray = prefixArray; } + public XmlItem prefixWrappedArray(List prefixWrappedArray) { + this.prefixWrappedArray = prefixWrappedArray; return this; } @@ -503,15 +585,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getPrefixWrappedArray() { return prefixWrappedArray; } + + public void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } + public XmlItem namespaceString(String namespaceString) { + this.namespaceString = namespaceString; return this; } @@ -522,15 +609,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + public String getNamespaceString() { return namespaceString; } + + public void setNamespaceString(String namespaceString) { this.namespaceString = namespaceString; } + public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + this.namespaceNumber = namespaceNumber; return this; } @@ -541,15 +633,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + public BigDecimal getNamespaceNumber() { return namespaceNumber; } + + public void setNamespaceNumber(BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } + public XmlItem namespaceInteger(Integer namespaceInteger) { + this.namespaceInteger = namespaceInteger; return this; } @@ -560,15 +657,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + public Integer getNamespaceInteger() { return namespaceInteger; } + + public void setNamespaceInteger(Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } + public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + this.namespaceBoolean = namespaceBoolean; return this; } @@ -579,15 +681,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + public Boolean getNamespaceBoolean() { return namespaceBoolean; } + + public void setNamespaceBoolean(Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } + public XmlItem namespaceArray(List namespaceArray) { + this.namespaceArray = namespaceArray; return this; } @@ -606,15 +713,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getNamespaceArray() { return namespaceArray; } + + public void setNamespaceArray(List namespaceArray) { this.namespaceArray = namespaceArray; } + public XmlItem namespaceWrappedArray(List namespaceWrappedArray) { + this.namespaceWrappedArray = namespaceWrappedArray; return this; } @@ -633,15 +745,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getNamespaceWrappedArray() { return namespaceWrappedArray; } + + public void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } + public XmlItem prefixNsString(String prefixNsString) { + this.prefixNsString = prefixNsString; return this; } @@ -652,15 +769,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + public String getPrefixNsString() { return prefixNsString; } + + public void setPrefixNsString(String prefixNsString) { this.prefixNsString = prefixNsString; } + public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + this.prefixNsNumber = prefixNsNumber; return this; } @@ -671,15 +793,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + public BigDecimal getPrefixNsNumber() { return prefixNsNumber; } + + public void setPrefixNsNumber(BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } + public XmlItem prefixNsInteger(Integer prefixNsInteger) { + this.prefixNsInteger = prefixNsInteger; return this; } @@ -690,15 +817,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + public Integer getPrefixNsInteger() { return prefixNsInteger; } + + public void setPrefixNsInteger(Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } + public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + this.prefixNsBoolean = prefixNsBoolean; return this; } @@ -709,15 +841,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + public Boolean getPrefixNsBoolean() { return prefixNsBoolean; } + + public void setPrefixNsBoolean(Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } + public XmlItem prefixNsArray(List prefixNsArray) { + this.prefixNsArray = prefixNsArray; return this; } @@ -736,15 +873,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getPrefixNsArray() { return prefixNsArray; } + + public void setPrefixNsArray(List prefixNsArray) { this.prefixNsArray = prefixNsArray; } + public XmlItem prefixNsWrappedArray(List prefixNsWrappedArray) { + this.prefixNsWrappedArray = prefixNsWrappedArray; return this; } @@ -763,10 +905,13 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getPrefixNsWrappedArray() { return prefixNsWrappedArray; } + + public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/retrofit2rx2/docs/UserApi.md b/samples/client/petstore/java/retrofit2rx2/docs/UserApi.md index bdf473df90d..d03e871ce01 100644 --- a/samples/client/petstore/java/retrofit2rx2/docs/UserApi.md +++ b/samples/client/petstore/java/retrofit2rx2/docs/UserApi.md @@ -101,7 +101,7 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); UserApi apiInstance = new UserApi(defaultClient); - List body = Arrays.asList(null); // List | List of user object + List body = Arrays.asList(); // List | List of user object try { apiInstance.createUsersWithArrayInput(body); } catch (ApiException e) { @@ -163,7 +163,7 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); UserApi apiInstance = new UserApi(defaultClient); - List body = Arrays.asList(null); // List | List of user object + List body = Arrays.asList(); // List | List of user object try { apiInstance.createUsersWithListInput(body); } catch (ApiException e) { 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 6639252ccb3..13e761a8d9c 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 @@ -35,7 +35,9 @@ public class AdditionalPropertiesAnyType extends HashMap { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public AdditionalPropertiesAnyType name(String name) { + this.name = name; return this; } @@ -46,10 +48,13 @@ public class AdditionalPropertiesAnyType extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(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 2c3f2ca0a46..17e320b0a95 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 @@ -36,7 +36,9 @@ public class AdditionalPropertiesArray extends HashMap { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public AdditionalPropertiesArray name(String name) { + this.name = name; return this; } @@ -47,10 +49,13 @@ public class AdditionalPropertiesArray extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(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 7c4a5248c07..8a51fa9f778 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 @@ -35,7 +35,9 @@ public class AdditionalPropertiesBoolean extends HashMap { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public AdditionalPropertiesBoolean name(String name) { + this.name = name; return this; } @@ -46,10 +48,13 @@ public class AdditionalPropertiesBoolean extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(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 58273e62fb0..a4a797bb487 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 @@ -67,17 +67,19 @@ public class AdditionalPropertiesClass { public static final String SERIALIZED_NAME_ANYTYPE1 = "anytype_1"; @SerializedName(SERIALIZED_NAME_ANYTYPE1) - private Object anytype1 = null; + private Object anytype1; public static final String SERIALIZED_NAME_ANYTYPE2 = "anytype_2"; @SerializedName(SERIALIZED_NAME_ANYTYPE2) - private Object anytype2 = null; + private Object anytype2; public static final String SERIALIZED_NAME_ANYTYPE3 = "anytype_3"; @SerializedName(SERIALIZED_NAME_ANYTYPE3) - private Object anytype3 = null; + private Object anytype3; + public AdditionalPropertiesClass mapString(Map mapString) { + this.mapString = mapString; return this; } @@ -96,15 +98,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getMapString() { return mapString; } + + public void setMapString(Map mapString) { this.mapString = mapString; } + public AdditionalPropertiesClass mapNumber(Map mapNumber) { + this.mapNumber = mapNumber; return this; } @@ -123,15 +130,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getMapNumber() { return mapNumber; } + + public void setMapNumber(Map mapNumber) { this.mapNumber = mapNumber; } + public AdditionalPropertiesClass mapInteger(Map mapInteger) { + this.mapInteger = mapInteger; return this; } @@ -150,15 +162,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getMapInteger() { return mapInteger; } + + public void setMapInteger(Map mapInteger) { this.mapInteger = mapInteger; } + public AdditionalPropertiesClass mapBoolean(Map mapBoolean) { + this.mapBoolean = mapBoolean; return this; } @@ -177,15 +194,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getMapBoolean() { return mapBoolean; } + + public void setMapBoolean(Map mapBoolean) { this.mapBoolean = mapBoolean; } + public AdditionalPropertiesClass mapArrayInteger(Map> mapArrayInteger) { + this.mapArrayInteger = mapArrayInteger; return this; } @@ -204,15 +226,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map> getMapArrayInteger() { return mapArrayInteger; } + + public void setMapArrayInteger(Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; } + public AdditionalPropertiesClass mapArrayAnytype(Map> mapArrayAnytype) { + this.mapArrayAnytype = mapArrayAnytype; return this; } @@ -231,15 +258,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map> getMapArrayAnytype() { return mapArrayAnytype; } + + public void setMapArrayAnytype(Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; } + public AdditionalPropertiesClass mapMapString(Map> mapMapString) { + this.mapMapString = mapMapString; return this; } @@ -258,15 +290,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map> getMapMapString() { return mapMapString; } + + public void setMapMapString(Map> mapMapString) { this.mapMapString = mapMapString; } + public AdditionalPropertiesClass mapMapAnytype(Map> mapMapAnytype) { + this.mapMapAnytype = mapMapAnytype; return this; } @@ -285,15 +322,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map> getMapMapAnytype() { return mapMapAnytype; } + + public void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } + public AdditionalPropertiesClass anytype1(Object anytype1) { + this.anytype1 = anytype1; return this; } @@ -304,15 +346,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Object getAnytype1() { return anytype1; } + + public void setAnytype1(Object anytype1) { this.anytype1 = anytype1; } + public AdditionalPropertiesClass anytype2(Object anytype2) { + this.anytype2 = anytype2; return this; } @@ -323,15 +370,20 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Object getAnytype2() { return anytype2; } + + public void setAnytype2(Object anytype2) { this.anytype2 = anytype2; } + public AdditionalPropertiesClass anytype3(Object anytype3) { + this.anytype3 = anytype3; return this; } @@ -342,10 +394,13 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Object getAnytype3() { return anytype3; } + + public void setAnytype3(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 10df3df74c7..4f2e3ef333e 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 @@ -35,7 +35,9 @@ public class AdditionalPropertiesInteger extends HashMap { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public AdditionalPropertiesInteger name(String name) { + this.name = name; return this; } @@ -46,10 +48,13 @@ public class AdditionalPropertiesInteger extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(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 33719cab261..80ce73d422b 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 @@ -36,7 +36,9 @@ public class AdditionalPropertiesNumber extends HashMap { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public AdditionalPropertiesNumber name(String name) { + this.name = name; return this; } @@ -47,10 +49,13 @@ public class AdditionalPropertiesNumber extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(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 e37e04b01a6..bc5cc81bf64 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 @@ -35,7 +35,9 @@ public class AdditionalPropertiesObject extends HashMap { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public AdditionalPropertiesObject name(String name) { + this.name = name; return this; } @@ -46,10 +48,13 @@ public class AdditionalPropertiesObject extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(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 cfbf74f5b32..2e9c0c7ffd9 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 @@ -35,7 +35,9 @@ public class AdditionalPropertiesString extends HashMap { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public AdditionalPropertiesString name(String name) { + this.name = name; return this; } @@ -46,10 +48,13 @@ public class AdditionalPropertiesString extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(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 0a02419dbf1..dd6b313c58c 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 @@ -41,7 +41,9 @@ public class Animal { public Animal() { this.className = this.getClass().getSimpleName(); } + public Animal className(String className) { + this.className = className; return this; } @@ -51,15 +53,20 @@ public class Animal { * @return className **/ @ApiModelProperty(required = true, value = "") + public String getClassName() { return className; } + + public void setClassName(String className) { this.className = className; } + public Animal color(String color) { + this.color = color; return this; } @@ -70,10 +77,13 @@ public class Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getColor() { return color; } + + public void setColor(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 ad0865658ad..1af52a3a988 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 @@ -36,7 +36,9 @@ public class ArrayOfArrayOfNumberOnly { @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_NUMBER) private List> arrayArrayNumber = null; + public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + this.arrayArrayNumber = arrayArrayNumber; return this; } @@ -55,10 +57,13 @@ public class ArrayOfArrayOfNumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List> getArrayArrayNumber() { return arrayArrayNumber; } + + public void setArrayArrayNumber(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 0b30fa73f86..eba8d40a289 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 @@ -36,7 +36,9 @@ public class ArrayOfNumberOnly { @SerializedName(SERIALIZED_NAME_ARRAY_NUMBER) private List arrayNumber = null; + public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + this.arrayNumber = arrayNumber; return this; } @@ -55,10 +57,13 @@ public class ArrayOfNumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getArrayNumber() { return arrayNumber; } + + public void setArrayNumber(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 acfcd76498e..7ba0d8b77e0 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 @@ -44,7 +44,9 @@ public class ArrayTest { @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_OF_MODEL) private List> arrayArrayOfModel = null; + public ArrayTest arrayOfString(List arrayOfString) { + this.arrayOfString = arrayOfString; return this; } @@ -63,15 +65,20 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getArrayOfString() { return arrayOfString; } + + public void setArrayOfString(List arrayOfString) { this.arrayOfString = arrayOfString; } + public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + this.arrayArrayOfInteger = arrayArrayOfInteger; return this; } @@ -90,15 +97,20 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List> getArrayArrayOfInteger() { return arrayArrayOfInteger; } + + public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } + public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + this.arrayArrayOfModel = arrayArrayOfModel; return this; } @@ -117,10 +129,13 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List> getArrayArrayOfModel() { return arrayArrayOfModel; } + + public void setArrayArrayOfModel(List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } 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 ef40fe949fd..dc70cf2b597 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 @@ -53,7 +53,9 @@ public class Capitalization { @SerializedName(SERIALIZED_NAME_A_T_T_N_A_M_E) private String ATT_NAME; + public Capitalization smallCamel(String smallCamel) { + this.smallCamel = smallCamel; return this; } @@ -64,15 +66,20 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getSmallCamel() { return smallCamel; } + + public void setSmallCamel(String smallCamel) { this.smallCamel = smallCamel; } + public Capitalization capitalCamel(String capitalCamel) { + this.capitalCamel = capitalCamel; return this; } @@ -83,15 +90,20 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getCapitalCamel() { return capitalCamel; } + + public void setCapitalCamel(String capitalCamel) { this.capitalCamel = capitalCamel; } + public Capitalization smallSnake(String smallSnake) { + this.smallSnake = smallSnake; return this; } @@ -102,15 +114,20 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getSmallSnake() { return smallSnake; } + + public void setSmallSnake(String smallSnake) { this.smallSnake = smallSnake; } + public Capitalization capitalSnake(String capitalSnake) { + this.capitalSnake = capitalSnake; return this; } @@ -121,15 +138,20 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getCapitalSnake() { return capitalSnake; } + + public void setCapitalSnake(String capitalSnake) { this.capitalSnake = capitalSnake; } + public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -140,15 +162,20 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getScAETHFlowPoints() { return scAETHFlowPoints; } + + public void setScAETHFlowPoints(String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } + public Capitalization ATT_NAME(String ATT_NAME) { + this.ATT_NAME = ATT_NAME; return this; } @@ -159,10 +186,13 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "Name of the pet ") + public String getATTNAME() { return ATT_NAME; } + + public void setATTNAME(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 c600502f716..8829c547501 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 @@ -35,7 +35,9 @@ public class Cat extends Animal { @SerializedName(SERIALIZED_NAME_DECLAWED) private Boolean declawed; + public Cat declawed(Boolean declawed) { + this.declawed = declawed; return this; } @@ -46,10 +48,13 @@ public class Cat extends Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Boolean getDeclawed() { return declawed; } + + public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/CatAllOf.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/CatAllOf.java index 29b3658551e..d20d19aa53f 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/CatAllOf.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/CatAllOf.java @@ -33,7 +33,9 @@ public class CatAllOf { @SerializedName(SERIALIZED_NAME_DECLAWED) private Boolean declawed; + public CatAllOf declawed(Boolean declawed) { + this.declawed = declawed; return this; } @@ -44,10 +46,13 @@ public class CatAllOf { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Boolean getDeclawed() { return declawed; } + + public void setDeclawed(Boolean declawed) { this.declawed = declawed; } 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 1968763722d..f335f0b5217 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 @@ -37,7 +37,9 @@ public class Category { @SerializedName(SERIALIZED_NAME_NAME) private String name = "default-name"; + public Category id(Long id) { + this.id = id; return this; } @@ -48,15 +50,20 @@ public class Category { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Category name(String name) { + this.name = name; return this; } @@ -66,10 +73,13 @@ public class Category { * @return name **/ @ApiModelProperty(required = true, value = "") + public String getName() { return name; } + + public void setName(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 52245d70502..83c30b802d4 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 @@ -34,7 +34,9 @@ public class ClassModel { @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) private String propertyClass; + public ClassModel propertyClass(String propertyClass) { + this.propertyClass = propertyClass; return this; } @@ -45,10 +47,13 @@ public class ClassModel { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getPropertyClass() { return propertyClass; } + + public void setPropertyClass(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 e5ece3536d6..192c0ce6e5b 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 @@ -33,7 +33,9 @@ public class Client { @SerializedName(SERIALIZED_NAME_CLIENT) private String client; + public Client client(String client) { + this.client = client; return this; } @@ -44,10 +46,13 @@ public class Client { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getClient() { return client; } + + public void setClient(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 d877eb2f370..2f8a4652247 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 @@ -35,7 +35,9 @@ public class Dog extends Animal { @SerializedName(SERIALIZED_NAME_BREED) private String breed; + public Dog breed(String breed) { + this.breed = breed; return this; } @@ -46,10 +48,13 @@ public class Dog extends Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getBreed() { return breed; } + + public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/DogAllOf.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/DogAllOf.java index 54483f2227d..96610291473 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/DogAllOf.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/DogAllOf.java @@ -33,7 +33,9 @@ public class DogAllOf { @SerializedName(SERIALIZED_NAME_BREED) private String breed; + public DogAllOf breed(String breed) { + this.breed = breed; return this; } @@ -44,10 +46,13 @@ public class DogAllOf { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getBreed() { return breed; } + + public void setBreed(String breed) { this.breed = breed; } 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 8d3e9bd58a3..4587357d5b0 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 @@ -133,7 +133,9 @@ public class EnumArrays { @SerializedName(SERIALIZED_NAME_ARRAY_ENUM) private List arrayEnum = null; + public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + this.justSymbol = justSymbol; return this; } @@ -144,15 +146,20 @@ public class EnumArrays { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public JustSymbolEnum getJustSymbol() { return justSymbol; } + + public void setJustSymbol(JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } + public EnumArrays arrayEnum(List arrayEnum) { + this.arrayEnum = arrayEnum; return this; } @@ -171,10 +178,13 @@ public class EnumArrays { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getArrayEnum() { return arrayEnum; } + + public void setArrayEnum(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 679584204fb..34f8781e089 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 @@ -242,7 +242,9 @@ public class EnumTest { @SerializedName(SERIALIZED_NAME_OUTER_ENUM) private OuterEnum outerEnum; + public EnumTest enumString(EnumStringEnum enumString) { + this.enumString = enumString; return this; } @@ -253,15 +255,20 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public EnumStringEnum getEnumString() { return enumString; } + + public void setEnumString(EnumStringEnum enumString) { this.enumString = enumString; } + public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + this.enumStringRequired = enumStringRequired; return this; } @@ -271,15 +278,20 @@ public class EnumTest { * @return enumStringRequired **/ @ApiModelProperty(required = true, value = "") + public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; } + + public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } + public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + this.enumInteger = enumInteger; return this; } @@ -290,15 +302,20 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public EnumIntegerEnum getEnumInteger() { return enumInteger; } + + public void setEnumInteger(EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } + public EnumTest enumNumber(EnumNumberEnum enumNumber) { + this.enumNumber = enumNumber; return this; } @@ -309,15 +326,20 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public EnumNumberEnum getEnumNumber() { return enumNumber; } + + public void setEnumNumber(EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } + public EnumTest outerEnum(OuterEnum outerEnum) { + this.outerEnum = outerEnum; return this; } @@ -328,10 +350,13 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public OuterEnum getOuterEnum() { return outerEnum; } + + public void setOuterEnum(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 29fe111764c..45ce4347b2d 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,13 +33,15 @@ import java.util.List; public class FileSchemaTestClass { public static final String SERIALIZED_NAME_FILE = "file"; @SerializedName(SERIALIZED_NAME_FILE) - private java.io.File file = null; + private java.io.File file; public static final String SERIALIZED_NAME_FILES = "files"; @SerializedName(SERIALIZED_NAME_FILES) private List files = null; + public FileSchemaTestClass file(java.io.File file) { + this.file = file; return this; } @@ -50,15 +52,20 @@ public class FileSchemaTestClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public java.io.File getFile() { return file; } + + public void setFile(java.io.File file) { this.file = file; } + public FileSchemaTestClass files(List files) { + this.files = files; return this; } @@ -77,10 +84,13 @@ public class FileSchemaTestClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getFiles() { return files; } + + public void setFiles(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 583b12a0ebc..36fe5897683 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 @@ -86,7 +86,9 @@ public class FormatTest { @SerializedName(SERIALIZED_NAME_PASSWORD) private String password; + public FormatTest integer(Integer integer) { + this.integer = integer; return this; } @@ -99,15 +101,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer getInteger() { return integer; } + + public void setInteger(Integer integer) { this.integer = integer; } + public FormatTest int32(Integer int32) { + this.int32 = int32; return this; } @@ -120,15 +127,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer getInt32() { return int32; } + + public void setInt32(Integer int32) { this.int32 = int32; } + public FormatTest int64(Long int64) { + this.int64 = int64; return this; } @@ -139,15 +151,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getInt64() { return int64; } + + public void setInt64(Long int64) { this.int64 = int64; } + public FormatTest number(BigDecimal number) { + this.number = number; return this; } @@ -159,15 +176,20 @@ public class FormatTest { * @return number **/ @ApiModelProperty(required = true, value = "") + public BigDecimal getNumber() { return number; } + + public void setNumber(BigDecimal number) { this.number = number; } + public FormatTest _float(Float _float) { + this._float = _float; return this; } @@ -180,15 +202,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Float getFloat() { return _float; } + + public void setFloat(Float _float) { this._float = _float; } + public FormatTest _double(Double _double) { + this._double = _double; return this; } @@ -201,15 +228,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Double getDouble() { return _double; } + + public void setDouble(Double _double) { this._double = _double; } + public FormatTest string(String string) { + this.string = string; return this; } @@ -220,15 +252,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getString() { return string; } + + public void setString(String string) { this.string = string; } + public FormatTest _byte(byte[] _byte) { + this._byte = _byte; return this; } @@ -238,15 +275,20 @@ public class FormatTest { * @return _byte **/ @ApiModelProperty(required = true, value = "") + public byte[] getByte() { return _byte; } + + public void setByte(byte[] _byte) { this._byte = _byte; } + public FormatTest binary(File binary) { + this.binary = binary; return this; } @@ -257,15 +299,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public File getBinary() { return binary; } + + public void setBinary(File binary) { this.binary = binary; } + public FormatTest date(LocalDate date) { + this.date = date; return this; } @@ -275,15 +322,20 @@ public class FormatTest { * @return date **/ @ApiModelProperty(required = true, value = "") + public LocalDate getDate() { return date; } + + public void setDate(LocalDate date) { this.date = date; } + public FormatTest dateTime(OffsetDateTime dateTime) { + this.dateTime = dateTime; return this; } @@ -294,15 +346,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public OffsetDateTime getDateTime() { return dateTime; } + + public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } + public FormatTest uuid(UUID uuid) { + this.uuid = uuid; return this; } @@ -313,15 +370,20 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + public UUID getUuid() { return uuid; } + + public void setUuid(UUID uuid) { this.uuid = uuid; } + public FormatTest password(String password) { + this.password = password; return this; } @@ -331,10 +393,13 @@ public class FormatTest { * @return password **/ @ApiModelProperty(required = true, value = "") + public String getPassword() { return password; } + + public void setPassword(String password) { this.password = password; } 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 02225d278c4..8fcb2684643 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 @@ -37,27 +37,35 @@ public class HasOnlyReadOnly { @SerializedName(SERIALIZED_NAME_FOO) private String foo; + /** * Get bar * @return bar **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getBar() { return bar; } + + + /** * Get foo * @return foo **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getFoo() { return foo; } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { 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 60892fc9476..609587e370f 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 @@ -95,7 +95,9 @@ public class MapTest { @SerializedName(SERIALIZED_NAME_INDIRECT_MAP) private Map indirectMap = null; + public MapTest mapMapOfString(Map> mapMapOfString) { + this.mapMapOfString = mapMapOfString; return this; } @@ -114,15 +116,20 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map> getMapMapOfString() { return mapMapOfString; } + + public void setMapMapOfString(Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } + public MapTest mapOfEnumString(Map mapOfEnumString) { + this.mapOfEnumString = mapOfEnumString; return this; } @@ -141,15 +148,20 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getMapOfEnumString() { return mapOfEnumString; } + + public void setMapOfEnumString(Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } + public MapTest directMap(Map directMap) { + this.directMap = directMap; return this; } @@ -168,15 +180,20 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getDirectMap() { return directMap; } + + public void setDirectMap(Map directMap) { this.directMap = directMap; } + public MapTest indirectMap(Map indirectMap) { + this.indirectMap = indirectMap; return this; } @@ -195,10 +212,13 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getIndirectMap() { return indirectMap; } + + public void setIndirectMap(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 9cb44786512..815cf8d5e05 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 @@ -47,7 +47,9 @@ public class MixedPropertiesAndAdditionalPropertiesClass { @SerializedName(SERIALIZED_NAME_MAP) private Map map = null; + public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + this.uuid = uuid; return this; } @@ -58,15 +60,20 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public UUID getUuid() { return uuid; } + + public void setUuid(UUID uuid) { this.uuid = uuid; } + public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + this.dateTime = dateTime; return this; } @@ -77,15 +84,20 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public OffsetDateTime getDateTime() { return dateTime; } + + public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } + public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + this.map = map; return this; } @@ -104,10 +116,13 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getMap() { return map; } + + public void setMap(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 3167560a9dd..42a61d0d877 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 @@ -38,7 +38,9 @@ public class Model200Response { @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) private String propertyClass; + public Model200Response name(Integer name) { + this.name = name; return this; } @@ -49,15 +51,20 @@ public class Model200Response { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer getName() { return name; } + + public void setName(Integer name) { this.name = name; } + public Model200Response propertyClass(String propertyClass) { + this.propertyClass = propertyClass; return this; } @@ -68,10 +75,13 @@ public class Model200Response { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getPropertyClass() { return propertyClass; } + + public void setPropertyClass(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 84d2fcc4d39..db323b17602 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 @@ -41,7 +41,9 @@ public class ModelApiResponse { @SerializedName(SERIALIZED_NAME_MESSAGE) private String message; + public ModelApiResponse code(Integer code) { + this.code = code; return this; } @@ -52,15 +54,20 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer getCode() { return code; } + + public void setCode(Integer code) { this.code = code; } + public ModelApiResponse type(String type) { + this.type = type; return this; } @@ -71,15 +78,20 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } + public ModelApiResponse message(String message) { + this.message = message; return this; } @@ -90,10 +102,13 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } 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 c13f1babe59..da9f1a20259 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 @@ -34,7 +34,9 @@ public class ModelReturn { @SerializedName(SERIALIZED_NAME_RETURN) private Integer _return; + public ModelReturn _return(Integer _return) { + this._return = _return; return this; } @@ -45,10 +47,13 @@ public class ModelReturn { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer getReturn() { return _return; } + + public void setReturn(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 221821d4e19..f775f97b3f1 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 @@ -46,7 +46,9 @@ public class Name { @SerializedName(SERIALIZED_NAME_123NUMBER) private Integer _123number; + public Name name(Integer name) { + this.name = name; return this; } @@ -56,25 +58,34 @@ public class Name { * @return name **/ @ApiModelProperty(required = true, value = "") + public Integer getName() { return name; } + + public void setName(Integer name) { this.name = name; } + /** * Get snakeCase * @return snakeCase **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer getSnakeCase() { return snakeCase; } + + + public Name property(String property) { + this.property = property; return this; } @@ -85,25 +96,32 @@ public class Name { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getProperty() { return property; } + + public void setProperty(String property) { this.property = property; } + /** * Get _123number * @return _123number **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer get123number() { return _123number; } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { 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 9a068c2e1ee..1a7bd689645 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 @@ -34,7 +34,9 @@ public class NumberOnly { @SerializedName(SERIALIZED_NAME_JUST_NUMBER) private BigDecimal justNumber; + public NumberOnly justNumber(BigDecimal justNumber) { + this.justNumber = justNumber; return this; } @@ -45,10 +47,13 @@ public class NumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public BigDecimal getJustNumber() { return justNumber; } + + public void setJustNumber(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 9ee41b5b8a9..fe6a60098bf 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 @@ -103,7 +103,9 @@ public class Order { @SerializedName(SERIALIZED_NAME_COMPLETE) private Boolean complete = false; + public Order id(Long id) { + this.id = id; return this; } @@ -114,15 +116,20 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Order petId(Long petId) { + this.petId = petId; return this; } @@ -133,15 +140,20 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getPetId() { return petId; } + + public void setPetId(Long petId) { this.petId = petId; } + public Order quantity(Integer quantity) { + this.quantity = quantity; return this; } @@ -152,15 +164,20 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Integer getQuantity() { return quantity; } + + public void setQuantity(Integer quantity) { this.quantity = quantity; } + public Order shipDate(OffsetDateTime shipDate) { + this.shipDate = shipDate; return this; } @@ -171,15 +188,20 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public OffsetDateTime getShipDate() { return shipDate; } + + public void setShipDate(OffsetDateTime shipDate) { this.shipDate = shipDate; } + public Order status(StatusEnum status) { + this.status = status; return this; } @@ -190,15 +212,20 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "Order Status") + public StatusEnum getStatus() { return status; } + + public void setStatus(StatusEnum status) { this.status = status; } + public Order complete(Boolean complete) { + this.complete = complete; return this; } @@ -209,10 +236,13 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Boolean getComplete() { return complete; } + + public void setComplete(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 690b6bde4be..3db0e2e26c9 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 @@ -42,7 +42,9 @@ public class OuterComposite { @SerializedName(SERIALIZED_NAME_MY_BOOLEAN) private Boolean myBoolean; + public OuterComposite myNumber(BigDecimal myNumber) { + this.myNumber = myNumber; return this; } @@ -53,15 +55,20 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public BigDecimal getMyNumber() { return myNumber; } + + public void setMyNumber(BigDecimal myNumber) { this.myNumber = myNumber; } + public OuterComposite myString(String myString) { + this.myString = myString; return this; } @@ -72,15 +79,20 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getMyString() { return myString; } + + public void setMyString(String myString) { this.myString = myString; } + public OuterComposite myBoolean(Boolean myBoolean) { + this.myBoolean = myBoolean; return this; } @@ -91,10 +103,13 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Boolean getMyBoolean() { return myBoolean; } + + public void setMyBoolean(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 ae8237d55b9..943b3103f03 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 @@ -39,7 +39,7 @@ public class Pet { public static final String SERIALIZED_NAME_CATEGORY = "category"; @SerializedName(SERIALIZED_NAME_CATEGORY) - private Category category = null; + private Category category; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -106,7 +106,9 @@ public class Pet { @SerializedName(SERIALIZED_NAME_STATUS) private StatusEnum status; + public Pet id(Long id) { + this.id = id; return this; } @@ -117,15 +119,20 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Pet category(Category category) { + this.category = category; return this; } @@ -136,15 +143,20 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Category getCategory() { return category; } + + public void setCategory(Category category) { this.category = category; } + public Pet name(String name) { + this.name = name; return this; } @@ -154,15 +166,20 @@ public class Pet { * @return name **/ @ApiModelProperty(example = "doggie", required = true, value = "") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public Pet photoUrls(List photoUrls) { + this.photoUrls = photoUrls; return this; } @@ -177,15 +194,20 @@ public class Pet { * @return photoUrls **/ @ApiModelProperty(required = true, value = "") + public List getPhotoUrls() { return photoUrls; } + + public void setPhotoUrls(List photoUrls) { this.photoUrls = photoUrls; } + public Pet tags(List tags) { + this.tags = tags; return this; } @@ -204,15 +226,20 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getTags() { return tags; } + + public void setTags(List tags) { this.tags = tags; } + public Pet status(StatusEnum status) { + this.status = status; return this; } @@ -223,10 +250,13 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "pet status in the store") + public StatusEnum getStatus() { return status; } + + public void setStatus(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 84780d763a0..2501babb56e 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 @@ -37,17 +37,23 @@ public class ReadOnlyFirst { @SerializedName(SERIALIZED_NAME_BAZ) private String baz; + /** * Get bar * @return bar **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getBar() { return bar; } + + + public ReadOnlyFirst baz(String baz) { + this.baz = baz; return this; } @@ -58,10 +64,13 @@ public class ReadOnlyFirst { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getBaz() { return baz; } + + public void setBaz(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 c6ccd2c33f6..4ff598a6cfc 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 @@ -33,7 +33,9 @@ public class SpecialModelName { @SerializedName(SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME) private Long $specialPropertyName; + public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + this.$specialPropertyName = $specialPropertyName; return this; } @@ -44,10 +46,13 @@ public class SpecialModelName { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long get$SpecialPropertyName() { return $specialPropertyName; } + + public void set$SpecialPropertyName(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 504c51cc3e5..693247a2fd2 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 @@ -37,7 +37,9 @@ public class Tag { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public Tag id(Long id) { + this.id = id; return this; } @@ -48,15 +50,20 @@ public class Tag { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Tag name(String name) { + this.name = name; return this; } @@ -67,10 +74,13 @@ public class Tag { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getName() { return name; } + + public void setName(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 8fc321bc0a2..e61b1492abc 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 @@ -52,7 +52,9 @@ public class TypeHolderDefault { @SerializedName(SERIALIZED_NAME_ARRAY_ITEM) private List arrayItem = new ArrayList(); + public TypeHolderDefault stringItem(String stringItem) { + this.stringItem = stringItem; return this; } @@ -62,15 +64,20 @@ public class TypeHolderDefault { * @return stringItem **/ @ApiModelProperty(required = true, value = "") + public String getStringItem() { return stringItem; } + + public void setStringItem(String stringItem) { this.stringItem = stringItem; } + public TypeHolderDefault numberItem(BigDecimal numberItem) { + this.numberItem = numberItem; return this; } @@ -80,15 +87,20 @@ public class TypeHolderDefault { * @return numberItem **/ @ApiModelProperty(required = true, value = "") + public BigDecimal getNumberItem() { return numberItem; } + + public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } + public TypeHolderDefault integerItem(Integer integerItem) { + this.integerItem = integerItem; return this; } @@ -98,15 +110,20 @@ public class TypeHolderDefault { * @return integerItem **/ @ApiModelProperty(required = true, value = "") + public Integer getIntegerItem() { return integerItem; } + + public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } + public TypeHolderDefault boolItem(Boolean boolItem) { + this.boolItem = boolItem; return this; } @@ -116,15 +133,20 @@ public class TypeHolderDefault { * @return boolItem **/ @ApiModelProperty(required = true, value = "") + public Boolean getBoolItem() { return boolItem; } + + public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } + public TypeHolderDefault arrayItem(List arrayItem) { + this.arrayItem = arrayItem; return this; } @@ -139,10 +161,13 @@ public class TypeHolderDefault { * @return arrayItem **/ @ApiModelProperty(required = true, value = "") + public List getArrayItem() { return arrayItem; } + + public void setArrayItem(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 d9496cbd790..a0691d38a54 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 @@ -52,7 +52,9 @@ public class TypeHolderExample { @SerializedName(SERIALIZED_NAME_ARRAY_ITEM) private List arrayItem = new ArrayList(); + public TypeHolderExample stringItem(String stringItem) { + this.stringItem = stringItem; return this; } @@ -62,15 +64,20 @@ public class TypeHolderExample { * @return stringItem **/ @ApiModelProperty(example = "what", required = true, value = "") + public String getStringItem() { return stringItem; } + + public void setStringItem(String stringItem) { this.stringItem = stringItem; } + public TypeHolderExample numberItem(BigDecimal numberItem) { + this.numberItem = numberItem; return this; } @@ -80,15 +87,20 @@ public class TypeHolderExample { * @return numberItem **/ @ApiModelProperty(example = "1.234", required = true, value = "") + public BigDecimal getNumberItem() { return numberItem; } + + public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } + public TypeHolderExample integerItem(Integer integerItem) { + this.integerItem = integerItem; return this; } @@ -98,15 +110,20 @@ public class TypeHolderExample { * @return integerItem **/ @ApiModelProperty(example = "-2", required = true, value = "") + public Integer getIntegerItem() { return integerItem; } + + public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } + public TypeHolderExample boolItem(Boolean boolItem) { + this.boolItem = boolItem; return this; } @@ -116,15 +133,20 @@ public class TypeHolderExample { * @return boolItem **/ @ApiModelProperty(example = "true", required = true, value = "") + public Boolean getBoolItem() { return boolItem; } + + public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } + public TypeHolderExample arrayItem(List arrayItem) { + this.arrayItem = arrayItem; return this; } @@ -139,10 +161,13 @@ public class TypeHolderExample { * @return arrayItem **/ @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") + public List getArrayItem() { return arrayItem; } + + public void setArrayItem(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 1aedd044b58..3760c07c592 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 @@ -61,7 +61,9 @@ public class User { @SerializedName(SERIALIZED_NAME_USER_STATUS) private Integer userStatus; + public User id(Long id) { + this.id = id; return this; } @@ -72,15 +74,20 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public User username(String username) { + this.username = username; return this; } @@ -91,15 +98,20 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getUsername() { return username; } + + public void setUsername(String username) { this.username = username; } + public User firstName(String firstName) { + this.firstName = firstName; return this; } @@ -110,15 +122,20 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getFirstName() { return firstName; } + + public void setFirstName(String firstName) { this.firstName = firstName; } + public User lastName(String lastName) { + this.lastName = lastName; return this; } @@ -129,15 +146,20 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getLastName() { return lastName; } + + public void setLastName(String lastName) { this.lastName = lastName; } + public User email(String email) { + this.email = email; return this; } @@ -148,15 +170,20 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getEmail() { return email; } + + public void setEmail(String email) { this.email = email; } + public User password(String password) { + this.password = password; return this; } @@ -167,15 +194,20 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getPassword() { return password; } + + public void setPassword(String password) { this.password = password; } + public User phone(String phone) { + this.phone = phone; return this; } @@ -186,15 +218,20 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getPhone() { return phone; } + + public void setPhone(String phone) { this.phone = phone; } + public User userStatus(Integer userStatus) { + this.userStatus = userStatus; return this; } @@ -205,10 +242,13 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "User Status") + public Integer getUserStatus() { return userStatus; } + + public void setUserStatus(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 21ff0ff8aae..4fce3d5e1c0 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 @@ -148,7 +148,9 @@ public class XmlItem { @SerializedName(SERIALIZED_NAME_PREFIX_NS_WRAPPED_ARRAY) private List prefixNsWrappedArray = null; + public XmlItem attributeString(String attributeString) { + this.attributeString = attributeString; return this; } @@ -159,15 +161,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + public String getAttributeString() { return attributeString; } + + public void setAttributeString(String attributeString) { this.attributeString = attributeString; } + public XmlItem attributeNumber(BigDecimal attributeNumber) { + this.attributeNumber = attributeNumber; return this; } @@ -178,15 +185,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + public BigDecimal getAttributeNumber() { return attributeNumber; } + + public void setAttributeNumber(BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } + public XmlItem attributeInteger(Integer attributeInteger) { + this.attributeInteger = attributeInteger; return this; } @@ -197,15 +209,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + public Integer getAttributeInteger() { return attributeInteger; } + + public void setAttributeInteger(Integer attributeInteger) { this.attributeInteger = attributeInteger; } + public XmlItem attributeBoolean(Boolean attributeBoolean) { + this.attributeBoolean = attributeBoolean; return this; } @@ -216,15 +233,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + public Boolean getAttributeBoolean() { return attributeBoolean; } + + public void setAttributeBoolean(Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } + public XmlItem wrappedArray(List wrappedArray) { + this.wrappedArray = wrappedArray; return this; } @@ -243,15 +265,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getWrappedArray() { return wrappedArray; } + + public void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } + public XmlItem nameString(String nameString) { + this.nameString = nameString; return this; } @@ -262,15 +289,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + public String getNameString() { return nameString; } + + public void setNameString(String nameString) { this.nameString = nameString; } + public XmlItem nameNumber(BigDecimal nameNumber) { + this.nameNumber = nameNumber; return this; } @@ -281,15 +313,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + public BigDecimal getNameNumber() { return nameNumber; } + + public void setNameNumber(BigDecimal nameNumber) { this.nameNumber = nameNumber; } + public XmlItem nameInteger(Integer nameInteger) { + this.nameInteger = nameInteger; return this; } @@ -300,15 +337,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + public Integer getNameInteger() { return nameInteger; } + + public void setNameInteger(Integer nameInteger) { this.nameInteger = nameInteger; } + public XmlItem nameBoolean(Boolean nameBoolean) { + this.nameBoolean = nameBoolean; return this; } @@ -319,15 +361,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + public Boolean getNameBoolean() { return nameBoolean; } + + public void setNameBoolean(Boolean nameBoolean) { this.nameBoolean = nameBoolean; } + public XmlItem nameArray(List nameArray) { + this.nameArray = nameArray; return this; } @@ -346,15 +393,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getNameArray() { return nameArray; } + + public void setNameArray(List nameArray) { this.nameArray = nameArray; } + public XmlItem nameWrappedArray(List nameWrappedArray) { + this.nameWrappedArray = nameWrappedArray; return this; } @@ -373,15 +425,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getNameWrappedArray() { return nameWrappedArray; } + + public void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } + public XmlItem prefixString(String prefixString) { + this.prefixString = prefixString; return this; } @@ -392,15 +449,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + public String getPrefixString() { return prefixString; } + + public void setPrefixString(String prefixString) { this.prefixString = prefixString; } + public XmlItem prefixNumber(BigDecimal prefixNumber) { + this.prefixNumber = prefixNumber; return this; } @@ -411,15 +473,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + public BigDecimal getPrefixNumber() { return prefixNumber; } + + public void setPrefixNumber(BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } + public XmlItem prefixInteger(Integer prefixInteger) { + this.prefixInteger = prefixInteger; return this; } @@ -430,15 +497,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + public Integer getPrefixInteger() { return prefixInteger; } + + public void setPrefixInteger(Integer prefixInteger) { this.prefixInteger = prefixInteger; } + public XmlItem prefixBoolean(Boolean prefixBoolean) { + this.prefixBoolean = prefixBoolean; return this; } @@ -449,15 +521,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + public Boolean getPrefixBoolean() { return prefixBoolean; } + + public void setPrefixBoolean(Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } + public XmlItem prefixArray(List prefixArray) { + this.prefixArray = prefixArray; return this; } @@ -476,15 +553,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getPrefixArray() { return prefixArray; } + + public void setPrefixArray(List prefixArray) { this.prefixArray = prefixArray; } + public XmlItem prefixWrappedArray(List prefixWrappedArray) { + this.prefixWrappedArray = prefixWrappedArray; return this; } @@ -503,15 +585,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getPrefixWrappedArray() { return prefixWrappedArray; } + + public void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } + public XmlItem namespaceString(String namespaceString) { + this.namespaceString = namespaceString; return this; } @@ -522,15 +609,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + public String getNamespaceString() { return namespaceString; } + + public void setNamespaceString(String namespaceString) { this.namespaceString = namespaceString; } + public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + this.namespaceNumber = namespaceNumber; return this; } @@ -541,15 +633,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + public BigDecimal getNamespaceNumber() { return namespaceNumber; } + + public void setNamespaceNumber(BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } + public XmlItem namespaceInteger(Integer namespaceInteger) { + this.namespaceInteger = namespaceInteger; return this; } @@ -560,15 +657,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + public Integer getNamespaceInteger() { return namespaceInteger; } + + public void setNamespaceInteger(Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } + public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + this.namespaceBoolean = namespaceBoolean; return this; } @@ -579,15 +681,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + public Boolean getNamespaceBoolean() { return namespaceBoolean; } + + public void setNamespaceBoolean(Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } + public XmlItem namespaceArray(List namespaceArray) { + this.namespaceArray = namespaceArray; return this; } @@ -606,15 +713,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getNamespaceArray() { return namespaceArray; } + + public void setNamespaceArray(List namespaceArray) { this.namespaceArray = namespaceArray; } + public XmlItem namespaceWrappedArray(List namespaceWrappedArray) { + this.namespaceWrappedArray = namespaceWrappedArray; return this; } @@ -633,15 +745,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getNamespaceWrappedArray() { return namespaceWrappedArray; } + + public void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } + public XmlItem prefixNsString(String prefixNsString) { + this.prefixNsString = prefixNsString; return this; } @@ -652,15 +769,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + public String getPrefixNsString() { return prefixNsString; } + + public void setPrefixNsString(String prefixNsString) { this.prefixNsString = prefixNsString; } + public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + this.prefixNsNumber = prefixNsNumber; return this; } @@ -671,15 +793,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + public BigDecimal getPrefixNsNumber() { return prefixNsNumber; } + + public void setPrefixNsNumber(BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } + public XmlItem prefixNsInteger(Integer prefixNsInteger) { + this.prefixNsInteger = prefixNsInteger; return this; } @@ -690,15 +817,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + public Integer getPrefixNsInteger() { return prefixNsInteger; } + + public void setPrefixNsInteger(Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } + public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + this.prefixNsBoolean = prefixNsBoolean; return this; } @@ -709,15 +841,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + public Boolean getPrefixNsBoolean() { return prefixNsBoolean; } + + public void setPrefixNsBoolean(Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } + public XmlItem prefixNsArray(List prefixNsArray) { + this.prefixNsArray = prefixNsArray; return this; } @@ -736,15 +873,20 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getPrefixNsArray() { return prefixNsArray; } + + public void setPrefixNsArray(List prefixNsArray) { this.prefixNsArray = prefixNsArray; } + public XmlItem prefixNsWrappedArray(List prefixNsWrappedArray) { + this.prefixNsWrappedArray = prefixNsWrappedArray; return this; } @@ -763,10 +905,13 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getPrefixNsWrappedArray() { return prefixNsWrappedArray; } + + public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/vertx/docs/UserApi.md b/samples/client/petstore/java/vertx/docs/UserApi.md index 4154aba4f17..ca9f550c316 100644 --- a/samples/client/petstore/java/vertx/docs/UserApi.md +++ b/samples/client/petstore/java/vertx/docs/UserApi.md @@ -101,7 +101,7 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); UserApi apiInstance = new UserApi(defaultClient); - List body = Arrays.asList(null); // List | List of user object + List body = Arrays.asList(); // List | List of user object try { apiInstance.createUsersWithArrayInput(body); } catch (ApiException e) { @@ -163,7 +163,7 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); UserApi apiInstance = new UserApi(defaultClient); - List body = Arrays.asList(null); // List | List of user object + List body = Arrays.asList(); // List | List of user object try { apiInstance.createUsersWithListInput(body); } catch (ApiException e) { diff --git a/samples/client/petstore/java/vertx/pom.xml b/samples/client/petstore/java/vertx/pom.xml index aa79e5fe409..4602e4c8915 100644 --- a/samples/client/petstore/java/vertx/pom.xml +++ b/samples/client/petstore/java/vertx/pom.xml @@ -235,6 +235,11 @@ com.fasterxml.jackson.core jackson-databind ${jackson-databind} + + + org.openapitools + jackson-databind-nullable + ${jackson-databind-nullable-version} com.fasterxml.jackson.datatype @@ -263,6 +268,7 @@ 1.5.22 2.9.9 2.9.9 + 0.2.0 4.12 diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/ApiClient.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/ApiClient.java index 74c626c9b4c..4555d9a142f 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/ApiClient.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/ApiClient.java @@ -12,6 +12,7 @@ import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.SerializationFeature; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; +import org.openapitools.jackson.nullable.JsonNullableModule; import io.vertx.core.*; import io.vertx.core.buffer.Buffer; import io.vertx.core.file.AsyncFile; @@ -75,6 +76,8 @@ public class ApiClient { this.objectMapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); this.objectMapper.registerModule(new JavaTimeModule()); this.objectMapper.setDateFormat(dateFormat); + JsonNullableModule jnm = new JsonNullableModule(); + this.objectMapper.registerModule(jnm); // Setup authentications (key: authentication name, value: authentication). this.authentications = new HashMap<>(); diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index 0df18c37e39..80e4d937cb7 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesAnyType extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesAnyType name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesAnyType extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 0d9a6b14532..59c845c40ac 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import java.util.Map; public class AdditionalPropertiesArray extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesArray name(String name) { + this.name = name; return this; } @@ -44,10 +46,15 @@ public class AdditionalPropertiesArray extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 8e85a1f2246..c6c2919f37d 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesBoolean extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesBoolean name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesBoolean extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } 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 48fb6a35b5c..1a37edc47bb 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,50 +32,41 @@ import java.util.Map; public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_STRING = "map_string"; - @JsonProperty(JSON_PROPERTY_MAP_STRING) private Map mapString = null; public static final String JSON_PROPERTY_MAP_NUMBER = "map_number"; - @JsonProperty(JSON_PROPERTY_MAP_NUMBER) private Map mapNumber = null; public static final String JSON_PROPERTY_MAP_INTEGER = "map_integer"; - @JsonProperty(JSON_PROPERTY_MAP_INTEGER) private Map mapInteger = null; public static final String JSON_PROPERTY_MAP_BOOLEAN = "map_boolean"; - @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) private Map mapBoolean = null; public static final String JSON_PROPERTY_MAP_ARRAY_INTEGER = "map_array_integer"; - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) private Map> mapArrayInteger = null; public static final String JSON_PROPERTY_MAP_ARRAY_ANYTYPE = "map_array_anytype"; - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) private Map> mapArrayAnytype = null; public static final String JSON_PROPERTY_MAP_MAP_STRING = "map_map_string"; - @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) private Map> mapMapString = null; public static final String JSON_PROPERTY_MAP_MAP_ANYTYPE = "map_map_anytype"; - @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) private Map> mapMapAnytype = null; public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1"; - @JsonProperty(JSON_PROPERTY_ANYTYPE1) - private Object anytype1 = null; + private Object anytype1; public static final String JSON_PROPERTY_ANYTYPE2 = "anytype_2"; - @JsonProperty(JSON_PROPERTY_ANYTYPE2) - private Object anytype2 = null; + private Object anytype2; public static final String JSON_PROPERTY_ANYTYPE3 = "anytype_3"; - @JsonProperty(JSON_PROPERTY_ANYTYPE3) - private Object anytype3 = null; + private Object anytype3; + public AdditionalPropertiesClass mapString(Map mapString) { + this.mapString = mapString; return this; } @@ -93,15 +85,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapString() { return mapString; } + + public void setMapString(Map mapString) { this.mapString = mapString; } + public AdditionalPropertiesClass mapNumber(Map mapNumber) { + this.mapNumber = mapNumber; return this; } @@ -120,15 +119,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapNumber() { return mapNumber; } + + public void setMapNumber(Map mapNumber) { this.mapNumber = mapNumber; } + public AdditionalPropertiesClass mapInteger(Map mapInteger) { + this.mapInteger = mapInteger; return this; } @@ -147,15 +153,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapInteger() { return mapInteger; } + + public void setMapInteger(Map mapInteger) { this.mapInteger = mapInteger; } + public AdditionalPropertiesClass mapBoolean(Map mapBoolean) { + this.mapBoolean = mapBoolean; return this; } @@ -174,15 +187,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapBoolean() { return mapBoolean; } + + public void setMapBoolean(Map mapBoolean) { this.mapBoolean = mapBoolean; } + public AdditionalPropertiesClass mapArrayInteger(Map> mapArrayInteger) { + this.mapArrayInteger = mapArrayInteger; return this; } @@ -201,15 +221,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapArrayInteger() { return mapArrayInteger; } + + public void setMapArrayInteger(Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; } + public AdditionalPropertiesClass mapArrayAnytype(Map> mapArrayAnytype) { + this.mapArrayAnytype = mapArrayAnytype; return this; } @@ -228,15 +255,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapArrayAnytype() { return mapArrayAnytype; } + + public void setMapArrayAnytype(Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; } + public AdditionalPropertiesClass mapMapString(Map> mapMapString) { + this.mapMapString = mapMapString; return this; } @@ -255,15 +289,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapMapString() { return mapMapString; } + + public void setMapMapString(Map> mapMapString) { this.mapMapString = mapMapString; } + public AdditionalPropertiesClass mapMapAnytype(Map> mapMapAnytype) { + this.mapMapAnytype = mapMapAnytype; return this; } @@ -282,15 +323,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapMapAnytype() { return mapMapAnytype; } + + public void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } + public AdditionalPropertiesClass anytype1(Object anytype1) { + this.anytype1 = anytype1; return this; } @@ -301,15 +349,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Object getAnytype1() { return anytype1; } + + public void setAnytype1(Object anytype1) { this.anytype1 = anytype1; } + public AdditionalPropertiesClass anytype2(Object anytype2) { + this.anytype2 = anytype2; return this; } @@ -320,15 +375,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ANYTYPE2) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Object getAnytype2() { return anytype2; } + + public void setAnytype2(Object anytype2) { this.anytype2 = anytype2; } + public AdditionalPropertiesClass anytype3(Object anytype3) { + this.anytype3 = anytype3; return this; } @@ -339,10 +401,15 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ANYTYPE3) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Object getAnytype3() { return anytype3; } + + public void setAnytype3(Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 77388b95d86..3d41e99ac8b 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesInteger extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesInteger name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesInteger extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index f0a3318bca1..799674f1e1b 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import java.util.Map; public class AdditionalPropertiesNumber extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesNumber name(String name) { + this.name = name; return this; } @@ -44,10 +46,15 @@ public class AdditionalPropertiesNumber extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index 19d772f4522..3d5a5c25bfa 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesObject extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesObject name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesObject extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 09e6431c916..d0c854414c3 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesString extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesString name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesString extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } 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 a2d34d82f47..1f548074919 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; @@ -35,14 +36,14 @@ import io.swagger.annotations.ApiModelProperty; public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; - @JsonProperty(JSON_PROPERTY_CLASS_NAME) private String className; public static final String JSON_PROPERTY_COLOR = "color"; - @JsonProperty(JSON_PROPERTY_COLOR) private String color = "red"; + public Animal className(String className) { + this.className = className; return this; } @@ -52,15 +53,22 @@ public class Animal { * @return className **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getClassName() { return className; } + + public void setClassName(String className) { this.className = className; } + public Animal color(String color) { + this.color = color; return this; } @@ -71,10 +79,15 @@ public class Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_COLOR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getColor() { return color; } + + public void setColor(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 4720e6aa390..01187710606 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import java.util.List; public class ArrayOfArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) private List> arrayArrayNumber = null; + public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + this.arrayArrayNumber = arrayArrayNumber; return this; } @@ -52,10 +54,15 @@ public class ArrayOfArrayOfNumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List> getArrayArrayNumber() { return arrayArrayNumber; } + + public void setArrayArrayNumber(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 2eb4ba9e28b..253867634d8 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import java.util.List; public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) private List arrayNumber = null; + public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + this.arrayNumber = arrayNumber; return this; } @@ -52,10 +54,15 @@ public class ArrayOfNumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArrayNumber() { return arrayNumber; } + + public void setArrayNumber(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 8cc6f0ea7a3..a440f0414ba 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,18 +31,17 @@ import org.openapitools.client.model.ReadOnlyFirst; public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) private List arrayOfString = null; public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) private List> arrayArrayOfInteger = null; public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) private List> arrayArrayOfModel = null; + public ArrayTest arrayOfString(List arrayOfString) { + this.arrayOfString = arrayOfString; return this; } @@ -60,15 +60,22 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArrayOfString() { return arrayOfString; } + + public void setArrayOfString(List arrayOfString) { this.arrayOfString = arrayOfString; } + public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + this.arrayArrayOfInteger = arrayArrayOfInteger; return this; } @@ -87,15 +94,22 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List> getArrayArrayOfInteger() { return arrayArrayOfInteger; } + + public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } + public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + this.arrayArrayOfModel = arrayArrayOfModel; return this; } @@ -114,10 +128,15 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List> getArrayArrayOfModel() { return arrayArrayOfModel; } + + public void setArrayArrayOfModel(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 1d4ebff1533..1db509bc7a9 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,30 +28,26 @@ import io.swagger.annotations.ApiModelProperty; public class Capitalization { public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) private String smallCamel; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) private String capitalCamel; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) private String smallSnake; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) private String capitalSnake; public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) private String scAETHFlowPoints; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) private String ATT_NAME; + public Capitalization smallCamel(String smallCamel) { + this.smallCamel = smallCamel; return this; } @@ -61,15 +58,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSmallCamel() { return smallCamel; } + + public void setSmallCamel(String smallCamel) { this.smallCamel = smallCamel; } + public Capitalization capitalCamel(String capitalCamel) { + this.capitalCamel = capitalCamel; return this; } @@ -80,15 +84,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getCapitalCamel() { return capitalCamel; } + + public void setCapitalCamel(String capitalCamel) { this.capitalCamel = capitalCamel; } + public Capitalization smallSnake(String smallSnake) { + this.smallSnake = smallSnake; return this; } @@ -99,15 +110,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSmallSnake() { return smallSnake; } + + public void setSmallSnake(String smallSnake) { this.smallSnake = smallSnake; } + public Capitalization capitalSnake(String capitalSnake) { + this.capitalSnake = capitalSnake; return this; } @@ -118,15 +136,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getCapitalSnake() { return capitalSnake; } + + public void setCapitalSnake(String capitalSnake) { this.capitalSnake = capitalSnake; } + public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -137,15 +162,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getScAETHFlowPoints() { return scAETHFlowPoints; } + + public void setScAETHFlowPoints(String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } + public Capitalization ATT_NAME(String ATT_NAME) { + this.ATT_NAME = ATT_NAME; return this; } @@ -156,10 +188,15 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "Name of the pet ") + @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getATTNAME() { return ATT_NAME; } + + public void setATTNAME(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 11ffa39d982..35f36932606 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import org.openapitools.client.model.CatAllOf; public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; - @JsonProperty(JSON_PROPERTY_DECLAWED) private Boolean declawed; + public Cat declawed(Boolean declawed) { + this.declawed = declawed; return this; } @@ -43,10 +45,15 @@ public class Cat extends Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getDeclawed() { return declawed; } + + public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/CatAllOf.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/CatAllOf.java index 1c12b1972cf..f498096d0bc 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/CatAllOf.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/CatAllOf.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty; public class CatAllOf { public static final String JSON_PROPERTY_DECLAWED = "declawed"; - @JsonProperty(JSON_PROPERTY_DECLAWED) private Boolean declawed; + public CatAllOf declawed(Boolean declawed) { + this.declawed = declawed; return this; } @@ -41,10 +43,15 @@ public class CatAllOf { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getDeclawed() { return declawed; } + + public void setDeclawed(Boolean declawed) { this.declawed = declawed; } 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 652d69552d1..3c4385a7132 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,14 +28,14 @@ import io.swagger.annotations.ApiModelProperty; public class Category { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name = "default-name"; + public Category id(Long id) { + this.id = id; return this; } @@ -45,15 +46,22 @@ public class Category { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Category name(String name) { + this.name = name; return this; } @@ -63,10 +71,15 @@ public class Category { * @return name **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } 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 16036936e7a..47ad8fce655 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,10 +29,11 @@ import io.swagger.annotations.ApiModelProperty; public class ClassModel { public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) private String propertyClass; + public ClassModel propertyClass(String propertyClass) { + this.propertyClass = propertyClass; return this; } @@ -42,10 +44,15 @@ public class ClassModel { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPropertyClass() { return propertyClass; } + + public void setPropertyClass(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 a5c065a1dd0..d325f1378cb 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty; public class Client { public static final String JSON_PROPERTY_CLIENT = "client"; - @JsonProperty(JSON_PROPERTY_CLIENT) private String client; + public Client client(String client) { + this.client = client; return this; } @@ -41,10 +43,15 @@ public class Client { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getClient() { return client; } + + public void setClient(String client) { this.client = client; } 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 7ac3c33202e..cc0acce7049 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import org.openapitools.client.model.DogAllOf; public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; - @JsonProperty(JSON_PROPERTY_BREED) private String breed; + public Dog breed(String breed) { + this.breed = breed; return this; } @@ -43,10 +45,15 @@ public class Dog extends Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBreed() { return breed; } + + public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/DogAllOf.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/DogAllOf.java index b79847a96e4..31d4cc3c80e 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/DogAllOf.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/DogAllOf.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty; public class DogAllOf { public static final String JSON_PROPERTY_BREED = "breed"; - @JsonProperty(JSON_PROPERTY_BREED) private String breed; + public DogAllOf breed(String breed) { + this.breed = breed; return this; } @@ -41,10 +43,15 @@ public class DogAllOf { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBreed() { return breed; } + + public void setBreed(String breed) { this.breed = breed; } 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 fe54ca63d14..116ce3648ac 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -64,7 +65,6 @@ public class EnumArrays { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) private JustSymbolEnum justSymbol; /** @@ -103,10 +103,11 @@ public class EnumArrays { } public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) private List arrayEnum = null; + public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + this.justSymbol = justSymbol; return this; } @@ -117,15 +118,22 @@ public class EnumArrays { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public JustSymbolEnum getJustSymbol() { return justSymbol; } + + public void setJustSymbol(JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } + public EnumArrays arrayEnum(List arrayEnum) { + this.arrayEnum = arrayEnum; return this; } @@ -144,10 +152,15 @@ public class EnumArrays { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArrayEnum() { return arrayEnum; } + + public void setArrayEnum(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 bde85ff2a09..615f4806ebd 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -65,7 +66,6 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; - @JsonProperty(JSON_PROPERTY_ENUM_STRING) private EnumStringEnum enumString; /** @@ -106,7 +106,6 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) private EnumStringRequiredEnum enumStringRequired; /** @@ -145,7 +144,6 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) private EnumIntegerEnum enumInteger; /** @@ -184,14 +182,14 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) private OuterEnum outerEnum; + public EnumTest enumString(EnumStringEnum enumString) { + this.enumString = enumString; return this; } @@ -202,15 +200,22 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public EnumStringEnum getEnumString() { return enumString; } + + public void setEnumString(EnumStringEnum enumString) { this.enumString = enumString; } + public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + this.enumStringRequired = enumStringRequired; return this; } @@ -220,15 +225,22 @@ public class EnumTest { * @return enumStringRequired **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; } + + public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } + public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + this.enumInteger = enumInteger; return this; } @@ -239,15 +251,22 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public EnumIntegerEnum getEnumInteger() { return enumInteger; } + + public void setEnumInteger(EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } + public EnumTest enumNumber(EnumNumberEnum enumNumber) { + this.enumNumber = enumNumber; return this; } @@ -258,15 +277,22 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public EnumNumberEnum getEnumNumber() { return enumNumber; } + + public void setEnumNumber(EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } + public EnumTest outerEnum(OuterEnum outerEnum) { + this.outerEnum = outerEnum; return this; } @@ -277,10 +303,15 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OuterEnum getOuterEnum() { return outerEnum; } + + public void setOuterEnum(OuterEnum outerEnum) { this.outerEnum = outerEnum; } 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 2d510f4342b..e1a6afc0291 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,14 +30,14 @@ import java.util.List; public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; - @JsonProperty(JSON_PROPERTY_FILE) - private java.io.File file = null; + private java.io.File file; public static final String JSON_PROPERTY_FILES = "files"; - @JsonProperty(JSON_PROPERTY_FILES) private List files = null; + public FileSchemaTestClass file(java.io.File file) { + this.file = file; return this; } @@ -47,15 +48,22 @@ public class FileSchemaTestClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FILE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public java.io.File getFile() { return file; } + + public void setFile(java.io.File file) { this.file = file; } + public FileSchemaTestClass files(List files) { + this.files = files; return this; } @@ -74,10 +82,15 @@ public class FileSchemaTestClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FILES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getFiles() { return files; } + + public void setFiles(List files) { this.files = files; } 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 e1795a8bf25..50e7ee5c12c 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -32,58 +33,47 @@ import java.util.UUID; public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; - @JsonProperty(JSON_PROPERTY_INTEGER) private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; - @JsonProperty(JSON_PROPERTY_INT32) private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; - @JsonProperty(JSON_PROPERTY_INT64) private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; - @JsonProperty(JSON_PROPERTY_NUMBER) private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; - @JsonProperty(JSON_PROPERTY_FLOAT) private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; - @JsonProperty(JSON_PROPERTY_DOUBLE) private Double _double; public static final String JSON_PROPERTY_STRING = "string"; - @JsonProperty(JSON_PROPERTY_STRING) private String string; public static final String JSON_PROPERTY_BYTE = "byte"; - @JsonProperty(JSON_PROPERTY_BYTE) private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; - @JsonProperty(JSON_PROPERTY_BINARY) private AsyncFile binary; public static final String JSON_PROPERTY_DATE = "date"; - @JsonProperty(JSON_PROPERTY_DATE) private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @JsonProperty(JSON_PROPERTY_DATE_TIME) private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; - @JsonProperty(JSON_PROPERTY_UUID) private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; - @JsonProperty(JSON_PROPERTY_PASSWORD) private String password; + public FormatTest integer(Integer integer) { + this.integer = integer; return this; } @@ -96,15 +86,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getInteger() { return integer; } + + public void setInteger(Integer integer) { this.integer = integer; } + public FormatTest int32(Integer int32) { + this.int32 = int32; return this; } @@ -117,15 +114,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INT32) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getInt32() { return int32; } + + public void setInt32(Integer int32) { this.int32 = int32; } + public FormatTest int64(Long int64) { + this.int64 = int64; return this; } @@ -136,15 +140,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INT64) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getInt64() { return int64; } + + public void setInt64(Long int64) { this.int64 = int64; } + public FormatTest number(BigDecimal number) { + this.number = number; return this; } @@ -156,15 +167,22 @@ public class FormatTest { * @return number **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getNumber() { return number; } + + public void setNumber(BigDecimal number) { this.number = number; } + public FormatTest _float(Float _float) { + this._float = _float; return this; } @@ -177,15 +195,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Float getFloat() { return _float; } + + public void setFloat(Float _float) { this._float = _float; } + public FormatTest _double(Double _double) { + this._double = _double; return this; } @@ -198,15 +223,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Double getDouble() { return _double; } + + public void setDouble(Double _double) { this._double = _double; } + public FormatTest string(String string) { + this.string = string; return this; } @@ -217,15 +249,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getString() { return string; } + + public void setString(String string) { this.string = string; } + public FormatTest _byte(byte[] _byte) { + this._byte = _byte; return this; } @@ -235,15 +274,22 @@ public class FormatTest { * @return _byte **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_BYTE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public byte[] getByte() { return _byte; } + + public void setByte(byte[] _byte) { this._byte = _byte; } + public FormatTest binary(AsyncFile binary) { + this.binary = binary; return this; } @@ -254,15 +300,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BINARY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public AsyncFile getBinary() { return binary; } + + public void setBinary(AsyncFile binary) { this.binary = binary; } + public FormatTest date(LocalDate date) { + this.date = date; return this; } @@ -272,15 +325,22 @@ public class FormatTest { * @return date **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_DATE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public LocalDate getDate() { return date; } + + public void setDate(LocalDate date) { this.date = date; } + public FormatTest dateTime(OffsetDateTime dateTime) { + this.dateTime = dateTime; return this; } @@ -291,15 +351,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OffsetDateTime getDateTime() { return dateTime; } + + public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } + public FormatTest uuid(UUID uuid) { + this.uuid = uuid; return this; } @@ -310,15 +377,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public UUID getUuid() { return uuid; } + + public void setUuid(UUID uuid) { this.uuid = uuid; } + public FormatTest password(String password) { + this.password = password; return this; } @@ -328,10 +402,15 @@ public class FormatTest { * @return password **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getPassword() { return password; } + + public void setPassword(String password) { this.password = password; } 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 ad6b28d9d1e..9c25eddaa1b 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,34 +28,44 @@ import io.swagger.annotations.ApiModelProperty; public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; - @JsonProperty(JSON_PROPERTY_BAR) private String bar; public static final String JSON_PROPERTY_FOO = "foo"; - @JsonProperty(JSON_PROPERTY_FOO) private String foo; + /** * Get bar * @return bar **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BAR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBar() { return bar; } + + + /** * Get foo * @return foo **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FOO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getFoo() { return foo; } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { 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 1fc9aa22f71..cbdd5db55e5 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,7 +31,6 @@ import java.util.Map; public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) private Map> mapMapOfString = null; /** @@ -69,18 +69,17 @@ public class MapTest { } public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) private Map mapOfEnumString = null; public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) private Map directMap = null; public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) private Map indirectMap = null; + public MapTest mapMapOfString(Map> mapMapOfString) { + this.mapMapOfString = mapMapOfString; return this; } @@ -99,15 +98,22 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapMapOfString() { return mapMapOfString; } + + public void setMapMapOfString(Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } + public MapTest mapOfEnumString(Map mapOfEnumString) { + this.mapOfEnumString = mapOfEnumString; return this; } @@ -126,15 +132,22 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapOfEnumString() { return mapOfEnumString; } + + public void setMapOfEnumString(Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } + public MapTest directMap(Map directMap) { + this.directMap = directMap; return this; } @@ -153,15 +166,22 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getDirectMap() { return directMap; } + + public void setDirectMap(Map directMap) { this.directMap = directMap; } + public MapTest indirectMap(Map indirectMap) { + this.indirectMap = indirectMap; return this; } @@ -180,10 +200,15 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getIndirectMap() { return indirectMap; } + + public void setIndirectMap(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 f538642c886..4dfcdb1ff96 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -33,18 +34,17 @@ import org.openapitools.client.model.Animal; public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; - @JsonProperty(JSON_PROPERTY_UUID) private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @JsonProperty(JSON_PROPERTY_DATE_TIME) private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; - @JsonProperty(JSON_PROPERTY_MAP) private Map map = null; + public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + this.uuid = uuid; return this; } @@ -55,15 +55,22 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public UUID getUuid() { return uuid; } + + public void setUuid(UUID uuid) { this.uuid = uuid; } + public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + this.dateTime = dateTime; return this; } @@ -74,15 +81,22 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OffsetDateTime getDateTime() { return dateTime; } + + public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } + public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + this.map = map; return this; } @@ -101,10 +115,15 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMap() { return map; } + + public void setMap(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 d86df5d7eab..0b39d4177e2 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,14 +29,14 @@ import io.swagger.annotations.ApiModelProperty; public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) private String propertyClass; + public Model200Response name(Integer name) { + this.name = name; return this; } @@ -46,15 +47,22 @@ public class Model200Response { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getName() { return name; } + + public void setName(Integer name) { this.name = name; } + public Model200Response propertyClass(String propertyClass) { + this.propertyClass = propertyClass; return this; } @@ -65,10 +73,15 @@ public class Model200Response { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPropertyClass() { return propertyClass; } + + public void setPropertyClass(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 4c9a7f87b5a..9ca6e78b233 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,18 +28,17 @@ import io.swagger.annotations.ApiModelProperty; public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; - @JsonProperty(JSON_PROPERTY_CODE) private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; - @JsonProperty(JSON_PROPERTY_TYPE) private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; - @JsonProperty(JSON_PROPERTY_MESSAGE) private String message; + public ModelApiResponse code(Integer code) { + this.code = code; return this; } @@ -49,15 +49,22 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getCode() { return code; } + + public void setCode(Integer code) { this.code = code; } + public ModelApiResponse type(String type) { + this.type = type; return this; } @@ -68,15 +75,22 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getType() { return type; } + + public void setType(String type) { this.type = type; } + public ModelApiResponse message(String message) { + this.message = message; return this; } @@ -87,10 +101,15 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } 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 9c9ac21a3fb..300598b5d0b 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,10 +29,11 @@ import io.swagger.annotations.ApiModelProperty; public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; - @JsonProperty(JSON_PROPERTY_RETURN) private Integer _return; + public ModelReturn _return(Integer _return) { + this._return = _return; return this; } @@ -42,10 +44,15 @@ public class ModelReturn { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_RETURN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getReturn() { return _return; } + + public void setReturn(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 47f89c54361..98a92f76c18 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,22 +29,20 @@ import io.swagger.annotations.ApiModelProperty; public class Name { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; - @JsonProperty(JSON_PROPERTY_PROPERTY) private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; - @JsonProperty(JSON_PROPERTY_123NUMBER) private Integer _123number; + public Name name(Integer name) { + this.name = name; return this; } @@ -53,25 +52,38 @@ public class Name { * @return name **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getName() { return name; } + + public void setName(Integer name) { this.name = name; } + /** * Get snakeCase * @return snakeCase **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getSnakeCase() { return snakeCase; } + + + public Name property(String property) { + this.property = property; return this; } @@ -82,25 +94,36 @@ public class Name { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getProperty() { return property; } + + public void setProperty(String property) { this.property = property; } + /** * Get _123number * @return _123number **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_123NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer get123number() { return _123number; } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { 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 f5331da226e..499144e4016 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,10 +29,11 @@ import java.math.BigDecimal; public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) private BigDecimal justNumber; + public NumberOnly justNumber(BigDecimal justNumber) { + this.justNumber = justNumber; return this; } @@ -42,10 +44,15 @@ public class NumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getJustNumber() { return justNumber; } + + public void setJustNumber(BigDecimal justNumber) { this.justNumber = justNumber; } 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 0730133f9cb..20a630250c8 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,19 +29,15 @@ import java.time.OffsetDateTime; public class Order { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; - @JsonProperty(JSON_PROPERTY_PET_ID) private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; - @JsonProperty(JSON_PROPERTY_QUANTITY) private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; - @JsonProperty(JSON_PROPERTY_SHIP_DATE) private OffsetDateTime shipDate; /** @@ -81,14 +78,14 @@ public class Order { } public static final String JSON_PROPERTY_STATUS = "status"; - @JsonProperty(JSON_PROPERTY_STATUS) private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; - @JsonProperty(JSON_PROPERTY_COMPLETE) private Boolean complete = false; + public Order id(Long id) { + this.id = id; return this; } @@ -99,15 +96,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Order petId(Long petId) { + this.petId = petId; return this; } @@ -118,15 +122,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getPetId() { return petId; } + + public void setPetId(Long petId) { this.petId = petId; } + public Order quantity(Integer quantity) { + this.quantity = quantity; return this; } @@ -137,15 +148,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getQuantity() { return quantity; } + + public void setQuantity(Integer quantity) { this.quantity = quantity; } + public Order shipDate(OffsetDateTime shipDate) { + this.shipDate = shipDate; return this; } @@ -156,15 +174,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OffsetDateTime getShipDate() { return shipDate; } + + public void setShipDate(OffsetDateTime shipDate) { this.shipDate = shipDate; } + public Order status(StatusEnum status) { + this.status = status; return this; } @@ -175,15 +200,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "Order Status") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public StatusEnum getStatus() { return status; } + + public void setStatus(StatusEnum status) { this.status = status; } + public Order complete(Boolean complete) { + this.complete = complete; return this; } @@ -194,10 +226,15 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getComplete() { return complete; } + + public void setComplete(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 7193ba2a0c9..dab9d1be3a8 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,18 +29,17 @@ import java.math.BigDecimal; public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; - @JsonProperty(JSON_PROPERTY_MY_NUMBER) private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; - @JsonProperty(JSON_PROPERTY_MY_STRING) private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) private Boolean myBoolean; + public OuterComposite myNumber(BigDecimal myNumber) { + this.myNumber = myNumber; return this; } @@ -50,15 +50,22 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getMyNumber() { return myNumber; } + + public void setMyNumber(BigDecimal myNumber) { this.myNumber = myNumber; } + public OuterComposite myString(String myString) { + this.myString = myString; return this; } @@ -69,15 +76,22 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getMyString() { return myString; } + + public void setMyString(String myString) { this.myString = myString; } + public OuterComposite myBoolean(Boolean myBoolean) { + this.myBoolean = myBoolean; return this; } @@ -88,10 +102,15 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getMyBoolean() { return myBoolean; } + + public void setMyBoolean(Boolean myBoolean) { this.myBoolean = myBoolean; } 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 948cb6b92f9..1d9cdb5ed07 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,23 +32,18 @@ import org.openapitools.client.model.Tag; public class Pet { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; - @JsonProperty(JSON_PROPERTY_CATEGORY) - private Category category = null; + private Category category; public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) private List photoUrls = new ArrayList<>(); public static final String JSON_PROPERTY_TAGS = "tags"; - @JsonProperty(JSON_PROPERTY_TAGS) private List tags = null; /** @@ -88,10 +84,11 @@ public class Pet { } public static final String JSON_PROPERTY_STATUS = "status"; - @JsonProperty(JSON_PROPERTY_STATUS) private StatusEnum status; + public Pet id(Long id) { + this.id = id; return this; } @@ -102,15 +99,22 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Pet category(Category category) { + this.category = category; return this; } @@ -121,15 +125,22 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Category getCategory() { return category; } + + public void setCategory(Category category) { this.category = category; } + public Pet name(String name) { + this.name = name; return this; } @@ -139,15 +150,22 @@ public class Pet { * @return name **/ @ApiModelProperty(example = "doggie", required = true, value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public Pet photoUrls(List photoUrls) { + this.photoUrls = photoUrls; return this; } @@ -162,15 +180,22 @@ public class Pet { * @return photoUrls **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getPhotoUrls() { return photoUrls; } + + public void setPhotoUrls(List photoUrls) { this.photoUrls = photoUrls; } + public Pet tags(List tags) { + this.tags = tags; return this; } @@ -189,15 +214,22 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getTags() { return tags; } + + public void setTags(List tags) { this.tags = tags; } + public Pet status(StatusEnum status) { + this.status = status; return this; } @@ -208,10 +240,15 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "pet status in the store") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public StatusEnum getStatus() { return status; } + + public void setStatus(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 b0949b9e2ea..28901097fa4 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,24 +28,30 @@ import io.swagger.annotations.ApiModelProperty; public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; - @JsonProperty(JSON_PROPERTY_BAR) private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; - @JsonProperty(JSON_PROPERTY_BAZ) private String baz; + /** * Get bar * @return bar **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BAR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBar() { return bar; } + + + public ReadOnlyFirst baz(String baz) { + this.baz = baz; return this; } @@ -55,10 +62,15 @@ public class ReadOnlyFirst { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BAZ) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBaz() { return baz; } + + public void setBaz(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 a9d03234061..c7820abb0fc 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty; public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) private Long $specialPropertyName; + public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + this.$specialPropertyName = $specialPropertyName; return this; } @@ -41,10 +43,15 @@ public class SpecialModelName { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long get$SpecialPropertyName() { return $specialPropertyName; } + + public void set$SpecialPropertyName(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 45f17b22cf3..7e20ebf4a31 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,14 +28,14 @@ import io.swagger.annotations.ApiModelProperty; public class Tag { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public Tag id(Long id) { + this.id = id; return this; } @@ -45,15 +46,22 @@ public class Tag { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Tag name(String name) { + this.name = name; return this; } @@ -64,10 +72,15 @@ public class Tag { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index 3f3030998f1..7b858daccac 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,26 +31,23 @@ import java.util.List; public class TypeHolderDefault { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; - @JsonProperty(JSON_PROPERTY_STRING_ITEM) private String stringItem = "what"; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) private BigDecimal numberItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) private Boolean boolItem = true; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) private List arrayItem = new ArrayList<>(); + public TypeHolderDefault stringItem(String stringItem) { + this.stringItem = stringItem; return this; } @@ -59,15 +57,22 @@ public class TypeHolderDefault { * @return stringItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getStringItem() { return stringItem; } + + public void setStringItem(String stringItem) { this.stringItem = stringItem; } + public TypeHolderDefault numberItem(BigDecimal numberItem) { + this.numberItem = numberItem; return this; } @@ -77,15 +82,22 @@ public class TypeHolderDefault { * @return numberItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getNumberItem() { return numberItem; } + + public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } + public TypeHolderDefault integerItem(Integer integerItem) { + this.integerItem = integerItem; return this; } @@ -95,15 +107,22 @@ public class TypeHolderDefault { * @return integerItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getIntegerItem() { return integerItem; } + + public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } + public TypeHolderDefault boolItem(Boolean boolItem) { + this.boolItem = boolItem; return this; } @@ -113,15 +132,22 @@ public class TypeHolderDefault { * @return boolItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Boolean getBoolItem() { return boolItem; } + + public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } + public TypeHolderDefault arrayItem(List arrayItem) { + this.arrayItem = arrayItem; return this; } @@ -136,10 +162,15 @@ public class TypeHolderDefault { * @return arrayItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getArrayItem() { return arrayItem; } + + public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/TypeHolderExample.java index 99ddaa8d2eb..34406ee33cb 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,26 +31,23 @@ import java.util.List; public class TypeHolderExample { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; - @JsonProperty(JSON_PROPERTY_STRING_ITEM) private String stringItem; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) private BigDecimal numberItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) private Boolean boolItem; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) private List arrayItem = new ArrayList<>(); + public TypeHolderExample stringItem(String stringItem) { + this.stringItem = stringItem; return this; } @@ -59,15 +57,22 @@ public class TypeHolderExample { * @return stringItem **/ @ApiModelProperty(example = "what", required = true, value = "") + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getStringItem() { return stringItem; } + + public void setStringItem(String stringItem) { this.stringItem = stringItem; } + public TypeHolderExample numberItem(BigDecimal numberItem) { + this.numberItem = numberItem; return this; } @@ -77,15 +82,22 @@ public class TypeHolderExample { * @return numberItem **/ @ApiModelProperty(example = "1.234", required = true, value = "") + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getNumberItem() { return numberItem; } + + public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } + public TypeHolderExample integerItem(Integer integerItem) { + this.integerItem = integerItem; return this; } @@ -95,15 +107,22 @@ public class TypeHolderExample { * @return integerItem **/ @ApiModelProperty(example = "-2", required = true, value = "") + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getIntegerItem() { return integerItem; } + + public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } + public TypeHolderExample boolItem(Boolean boolItem) { + this.boolItem = boolItem; return this; } @@ -113,15 +132,22 @@ public class TypeHolderExample { * @return boolItem **/ @ApiModelProperty(example = "true", required = true, value = "") + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Boolean getBoolItem() { return boolItem; } + + public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } + public TypeHolderExample arrayItem(List arrayItem) { + this.arrayItem = arrayItem; return this; } @@ -136,10 +162,15 @@ public class TypeHolderExample { * @return arrayItem **/ @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getArrayItem() { return arrayItem; } + + public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/User.java index 9ce7869e755..b181265d97d 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/User.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,38 +28,32 @@ import io.swagger.annotations.ApiModelProperty; public class User { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; - @JsonProperty(JSON_PROPERTY_USERNAME) private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; - @JsonProperty(JSON_PROPERTY_FIRST_NAME) private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; - @JsonProperty(JSON_PROPERTY_LAST_NAME) private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; - @JsonProperty(JSON_PROPERTY_EMAIL) private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; - @JsonProperty(JSON_PROPERTY_PASSWORD) private String password; public static final String JSON_PROPERTY_PHONE = "phone"; - @JsonProperty(JSON_PROPERTY_PHONE) private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; - @JsonProperty(JSON_PROPERTY_USER_STATUS) private Integer userStatus; + public User id(Long id) { + this.id = id; return this; } @@ -69,15 +64,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public User username(String username) { + this.username = username; return this; } @@ -88,15 +90,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getUsername() { return username; } + + public void setUsername(String username) { this.username = username; } + public User firstName(String firstName) { + this.firstName = firstName; return this; } @@ -107,15 +116,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getFirstName() { return firstName; } + + public void setFirstName(String firstName) { this.firstName = firstName; } + public User lastName(String lastName) { + this.lastName = lastName; return this; } @@ -126,15 +142,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getLastName() { return lastName; } + + public void setLastName(String lastName) { this.lastName = lastName; } + public User email(String email) { + this.email = email; return this; } @@ -145,15 +168,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getEmail() { return email; } + + public void setEmail(String email) { this.email = email; } + public User password(String password) { + this.password = password; return this; } @@ -164,15 +194,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPassword() { return password; } + + public void setPassword(String password) { this.password = password; } + public User phone(String phone) { + this.phone = phone; return this; } @@ -183,15 +220,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PHONE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPhone() { return phone; } + + public void setPhone(String phone) { this.phone = phone; } + public User userStatus(Integer userStatus) { + this.userStatus = userStatus; return this; } @@ -202,10 +246,15 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "User Status") + @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getUserStatus() { return userStatus; } + + public void setUserStatus(Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/XmlItem.java index dc0ad56c1af..b014391d846 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/XmlItem.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,122 +31,95 @@ import java.util.List; public class XmlItem { public static final String JSON_PROPERTY_ATTRIBUTE_STRING = "attribute_string"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) private String attributeString; public static final String JSON_PROPERTY_ATTRIBUTE_NUMBER = "attribute_number"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) private BigDecimal attributeNumber; public static final String JSON_PROPERTY_ATTRIBUTE_INTEGER = "attribute_integer"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) private Integer attributeInteger; public static final String JSON_PROPERTY_ATTRIBUTE_BOOLEAN = "attribute_boolean"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) private Boolean attributeBoolean; public static final String JSON_PROPERTY_WRAPPED_ARRAY = "wrapped_array"; - @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) private List wrappedArray = null; public static final String JSON_PROPERTY_NAME_STRING = "name_string"; - @JsonProperty(JSON_PROPERTY_NAME_STRING) private String nameString; public static final String JSON_PROPERTY_NAME_NUMBER = "name_number"; - @JsonProperty(JSON_PROPERTY_NAME_NUMBER) private BigDecimal nameNumber; public static final String JSON_PROPERTY_NAME_INTEGER = "name_integer"; - @JsonProperty(JSON_PROPERTY_NAME_INTEGER) private Integer nameInteger; public static final String JSON_PROPERTY_NAME_BOOLEAN = "name_boolean"; - @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) private Boolean nameBoolean; public static final String JSON_PROPERTY_NAME_ARRAY = "name_array"; - @JsonProperty(JSON_PROPERTY_NAME_ARRAY) private List nameArray = null; public static final String JSON_PROPERTY_NAME_WRAPPED_ARRAY = "name_wrapped_array"; - @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) private List nameWrappedArray = null; public static final String JSON_PROPERTY_PREFIX_STRING = "prefix_string"; - @JsonProperty(JSON_PROPERTY_PREFIX_STRING) private String prefixString; public static final String JSON_PROPERTY_PREFIX_NUMBER = "prefix_number"; - @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) private BigDecimal prefixNumber; public static final String JSON_PROPERTY_PREFIX_INTEGER = "prefix_integer"; - @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) private Integer prefixInteger; public static final String JSON_PROPERTY_PREFIX_BOOLEAN = "prefix_boolean"; - @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) private Boolean prefixBoolean; public static final String JSON_PROPERTY_PREFIX_ARRAY = "prefix_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) private List prefixArray = null; public static final String JSON_PROPERTY_PREFIX_WRAPPED_ARRAY = "prefix_wrapped_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) private List prefixWrappedArray = null; public static final String JSON_PROPERTY_NAMESPACE_STRING = "namespace_string"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) private String namespaceString; public static final String JSON_PROPERTY_NAMESPACE_NUMBER = "namespace_number"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) private BigDecimal namespaceNumber; public static final String JSON_PROPERTY_NAMESPACE_INTEGER = "namespace_integer"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) private Integer namespaceInteger; public static final String JSON_PROPERTY_NAMESPACE_BOOLEAN = "namespace_boolean"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) private Boolean namespaceBoolean; public static final String JSON_PROPERTY_NAMESPACE_ARRAY = "namespace_array"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) private List namespaceArray = null; public static final String JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY = "namespace_wrapped_array"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) private List namespaceWrappedArray = null; public static final String JSON_PROPERTY_PREFIX_NS_STRING = "prefix_ns_string"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) private String prefixNsString; public static final String JSON_PROPERTY_PREFIX_NS_NUMBER = "prefix_ns_number"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) private BigDecimal prefixNsNumber; public static final String JSON_PROPERTY_PREFIX_NS_INTEGER = "prefix_ns_integer"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) private Integer prefixNsInteger; public static final String JSON_PROPERTY_PREFIX_NS_BOOLEAN = "prefix_ns_boolean"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) private Boolean prefixNsBoolean; public static final String JSON_PROPERTY_PREFIX_NS_ARRAY = "prefix_ns_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) private List prefixNsArray = null; public static final String JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY = "prefix_ns_wrapped_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) private List prefixNsWrappedArray = null; + public XmlItem attributeString(String attributeString) { + this.attributeString = attributeString; return this; } @@ -156,15 +130,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getAttributeString() { return attributeString; } + + public void setAttributeString(String attributeString) { this.attributeString = attributeString; } + public XmlItem attributeNumber(BigDecimal attributeNumber) { + this.attributeNumber = attributeNumber; return this; } @@ -175,15 +156,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getAttributeNumber() { return attributeNumber; } + + public void setAttributeNumber(BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } + public XmlItem attributeInteger(Integer attributeInteger) { + this.attributeInteger = attributeInteger; return this; } @@ -194,15 +182,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getAttributeInteger() { return attributeInteger; } + + public void setAttributeInteger(Integer attributeInteger) { this.attributeInteger = attributeInteger; } + public XmlItem attributeBoolean(Boolean attributeBoolean) { + this.attributeBoolean = attributeBoolean; return this; } @@ -213,15 +208,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getAttributeBoolean() { return attributeBoolean; } + + public void setAttributeBoolean(Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } + public XmlItem wrappedArray(List wrappedArray) { + this.wrappedArray = wrappedArray; return this; } @@ -240,15 +242,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getWrappedArray() { return wrappedArray; } + + public void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } + public XmlItem nameString(String nameString) { + this.nameString = nameString; return this; } @@ -259,15 +268,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_NAME_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getNameString() { return nameString; } + + public void setNameString(String nameString) { this.nameString = nameString; } + public XmlItem nameNumber(BigDecimal nameNumber) { + this.nameNumber = nameNumber; return this; } @@ -278,15 +294,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_NAME_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getNameNumber() { return nameNumber; } + + public void setNameNumber(BigDecimal nameNumber) { this.nameNumber = nameNumber; } + public XmlItem nameInteger(Integer nameInteger) { + this.nameInteger = nameInteger; return this; } @@ -297,15 +320,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_NAME_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getNameInteger() { return nameInteger; } + + public void setNameInteger(Integer nameInteger) { this.nameInteger = nameInteger; } + public XmlItem nameBoolean(Boolean nameBoolean) { + this.nameBoolean = nameBoolean; return this; } @@ -316,15 +346,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getNameBoolean() { return nameBoolean; } + + public void setNameBoolean(Boolean nameBoolean) { this.nameBoolean = nameBoolean; } + public XmlItem nameArray(List nameArray) { + this.nameArray = nameArray; return this; } @@ -343,15 +380,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNameArray() { return nameArray; } + + public void setNameArray(List nameArray) { this.nameArray = nameArray; } + public XmlItem nameWrappedArray(List nameWrappedArray) { + this.nameWrappedArray = nameWrappedArray; return this; } @@ -370,15 +414,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNameWrappedArray() { return nameWrappedArray; } + + public void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } + public XmlItem prefixString(String prefixString) { + this.prefixString = prefixString; return this; } @@ -389,15 +440,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPrefixString() { return prefixString; } + + public void setPrefixString(String prefixString) { this.prefixString = prefixString; } + public XmlItem prefixNumber(BigDecimal prefixNumber) { + this.prefixNumber = prefixNumber; return this; } @@ -408,15 +466,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getPrefixNumber() { return prefixNumber; } + + public void setPrefixNumber(BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } + public XmlItem prefixInteger(Integer prefixInteger) { + this.prefixInteger = prefixInteger; return this; } @@ -427,15 +492,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getPrefixInteger() { return prefixInteger; } + + public void setPrefixInteger(Integer prefixInteger) { this.prefixInteger = prefixInteger; } + public XmlItem prefixBoolean(Boolean prefixBoolean) { + this.prefixBoolean = prefixBoolean; return this; } @@ -446,15 +518,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getPrefixBoolean() { return prefixBoolean; } + + public void setPrefixBoolean(Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } + public XmlItem prefixArray(List prefixArray) { + this.prefixArray = prefixArray; return this; } @@ -473,15 +552,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixArray() { return prefixArray; } + + public void setPrefixArray(List prefixArray) { this.prefixArray = prefixArray; } + public XmlItem prefixWrappedArray(List prefixWrappedArray) { + this.prefixWrappedArray = prefixWrappedArray; return this; } @@ -500,15 +586,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixWrappedArray() { return prefixWrappedArray; } + + public void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } + public XmlItem namespaceString(String namespaceString) { + this.namespaceString = namespaceString; return this; } @@ -519,15 +612,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getNamespaceString() { return namespaceString; } + + public void setNamespaceString(String namespaceString) { this.namespaceString = namespaceString; } + public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + this.namespaceNumber = namespaceNumber; return this; } @@ -538,15 +638,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getNamespaceNumber() { return namespaceNumber; } + + public void setNamespaceNumber(BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } + public XmlItem namespaceInteger(Integer namespaceInteger) { + this.namespaceInteger = namespaceInteger; return this; } @@ -557,15 +664,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getNamespaceInteger() { return namespaceInteger; } + + public void setNamespaceInteger(Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } + public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + this.namespaceBoolean = namespaceBoolean; return this; } @@ -576,15 +690,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getNamespaceBoolean() { return namespaceBoolean; } + + public void setNamespaceBoolean(Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } + public XmlItem namespaceArray(List namespaceArray) { + this.namespaceArray = namespaceArray; return this; } @@ -603,15 +724,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNamespaceArray() { return namespaceArray; } + + public void setNamespaceArray(List namespaceArray) { this.namespaceArray = namespaceArray; } + public XmlItem namespaceWrappedArray(List namespaceWrappedArray) { + this.namespaceWrappedArray = namespaceWrappedArray; return this; } @@ -630,15 +758,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNamespaceWrappedArray() { return namespaceWrappedArray; } + + public void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } + public XmlItem prefixNsString(String prefixNsString) { + this.prefixNsString = prefixNsString; return this; } @@ -649,15 +784,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPrefixNsString() { return prefixNsString; } + + public void setPrefixNsString(String prefixNsString) { this.prefixNsString = prefixNsString; } + public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + this.prefixNsNumber = prefixNsNumber; return this; } @@ -668,15 +810,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getPrefixNsNumber() { return prefixNsNumber; } + + public void setPrefixNsNumber(BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } + public XmlItem prefixNsInteger(Integer prefixNsInteger) { + this.prefixNsInteger = prefixNsInteger; return this; } @@ -687,15 +836,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getPrefixNsInteger() { return prefixNsInteger; } + + public void setPrefixNsInteger(Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } + public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + this.prefixNsBoolean = prefixNsBoolean; return this; } @@ -706,15 +862,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getPrefixNsBoolean() { return prefixNsBoolean; } + + public void setPrefixNsBoolean(Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } + public XmlItem prefixNsArray(List prefixNsArray) { + this.prefixNsArray = prefixNsArray; return this; } @@ -733,15 +896,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixNsArray() { return prefixNsArray; } + + public void setPrefixNsArray(List prefixNsArray) { this.prefixNsArray = prefixNsArray; } + public XmlItem prefixNsWrappedArray(List prefixNsWrappedArray) { + this.prefixNsWrappedArray = prefixNsWrappedArray; return this; } @@ -760,10 +930,15 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixNsWrappedArray() { return prefixNsWrappedArray; } + + public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/webclient/docs/UserApi.md b/samples/client/petstore/java/webclient/docs/UserApi.md index 4154aba4f17..ca9f550c316 100644 --- a/samples/client/petstore/java/webclient/docs/UserApi.md +++ b/samples/client/petstore/java/webclient/docs/UserApi.md @@ -101,7 +101,7 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); UserApi apiInstance = new UserApi(defaultClient); - List body = Arrays.asList(null); // List | List of user object + List body = Arrays.asList(); // List | List of user object try { apiInstance.createUsersWithArrayInput(body); } catch (ApiException e) { @@ -163,7 +163,7 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); UserApi apiInstance = new UserApi(defaultClient); - List body = Arrays.asList(null); // List | List of user object + List body = Arrays.asList(); // List | List of user object try { apiInstance.createUsersWithListInput(body); } catch (ApiException e) { diff --git a/samples/client/petstore/java/webclient/pom.xml b/samples/client/petstore/java/webclient/pom.xml index ee6480dc262..0171470141e 100644 --- a/samples/client/petstore/java/webclient/pom.xml +++ b/samples/client/petstore/java/webclient/pom.xml @@ -98,6 +98,11 @@ jackson-databind ${jackson-databind-version} + + org.openapitools + jackson-databind-nullable + ${jackson-databind-nullable-version} + com.fasterxml.jackson.datatype @@ -119,6 +124,7 @@ 5.0.7.RELEASE 2.9.9 2.9.9 + 0.2.0 4.12 3.1.8.RELEASE 0.7.8.RELEASE diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/ApiClient.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/ApiClient.java index b5cbc8fb9b3..6d7875d1c4a 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/ApiClient.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/ApiClient.java @@ -3,6 +3,7 @@ package org.openapitools.client; import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; +import org.openapitools.jackson.nullable.JsonNullableModule; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.springframework.core.ParameterizedTypeReference; @@ -94,6 +95,8 @@ public class ApiClient { mapper.setDateFormat(dateFormat); mapper.registerModule(new JavaTimeModule()); mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + JsonNullableModule jnm = new JsonNullableModule(); + mapper.registerModule(jnm); this.webClient = buildWebClient(mapper); this.init(); diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index 0df18c37e39..80e4d937cb7 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesAnyType extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesAnyType name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesAnyType extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 0d9a6b14532..59c845c40ac 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import java.util.Map; public class AdditionalPropertiesArray extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesArray name(String name) { + this.name = name; return this; } @@ -44,10 +46,15 @@ public class AdditionalPropertiesArray extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 8e85a1f2246..c6c2919f37d 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesBoolean extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesBoolean name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesBoolean extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 48fb6a35b5c..1a37edc47bb 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,50 +32,41 @@ import java.util.Map; public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_STRING = "map_string"; - @JsonProperty(JSON_PROPERTY_MAP_STRING) private Map mapString = null; public static final String JSON_PROPERTY_MAP_NUMBER = "map_number"; - @JsonProperty(JSON_PROPERTY_MAP_NUMBER) private Map mapNumber = null; public static final String JSON_PROPERTY_MAP_INTEGER = "map_integer"; - @JsonProperty(JSON_PROPERTY_MAP_INTEGER) private Map mapInteger = null; public static final String JSON_PROPERTY_MAP_BOOLEAN = "map_boolean"; - @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) private Map mapBoolean = null; public static final String JSON_PROPERTY_MAP_ARRAY_INTEGER = "map_array_integer"; - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) private Map> mapArrayInteger = null; public static final String JSON_PROPERTY_MAP_ARRAY_ANYTYPE = "map_array_anytype"; - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) private Map> mapArrayAnytype = null; public static final String JSON_PROPERTY_MAP_MAP_STRING = "map_map_string"; - @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) private Map> mapMapString = null; public static final String JSON_PROPERTY_MAP_MAP_ANYTYPE = "map_map_anytype"; - @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) private Map> mapMapAnytype = null; public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1"; - @JsonProperty(JSON_PROPERTY_ANYTYPE1) - private Object anytype1 = null; + private Object anytype1; public static final String JSON_PROPERTY_ANYTYPE2 = "anytype_2"; - @JsonProperty(JSON_PROPERTY_ANYTYPE2) - private Object anytype2 = null; + private Object anytype2; public static final String JSON_PROPERTY_ANYTYPE3 = "anytype_3"; - @JsonProperty(JSON_PROPERTY_ANYTYPE3) - private Object anytype3 = null; + private Object anytype3; + public AdditionalPropertiesClass mapString(Map mapString) { + this.mapString = mapString; return this; } @@ -93,15 +85,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapString() { return mapString; } + + public void setMapString(Map mapString) { this.mapString = mapString; } + public AdditionalPropertiesClass mapNumber(Map mapNumber) { + this.mapNumber = mapNumber; return this; } @@ -120,15 +119,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapNumber() { return mapNumber; } + + public void setMapNumber(Map mapNumber) { this.mapNumber = mapNumber; } + public AdditionalPropertiesClass mapInteger(Map mapInteger) { + this.mapInteger = mapInteger; return this; } @@ -147,15 +153,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapInteger() { return mapInteger; } + + public void setMapInteger(Map mapInteger) { this.mapInteger = mapInteger; } + public AdditionalPropertiesClass mapBoolean(Map mapBoolean) { + this.mapBoolean = mapBoolean; return this; } @@ -174,15 +187,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapBoolean() { return mapBoolean; } + + public void setMapBoolean(Map mapBoolean) { this.mapBoolean = mapBoolean; } + public AdditionalPropertiesClass mapArrayInteger(Map> mapArrayInteger) { + this.mapArrayInteger = mapArrayInteger; return this; } @@ -201,15 +221,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapArrayInteger() { return mapArrayInteger; } + + public void setMapArrayInteger(Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; } + public AdditionalPropertiesClass mapArrayAnytype(Map> mapArrayAnytype) { + this.mapArrayAnytype = mapArrayAnytype; return this; } @@ -228,15 +255,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapArrayAnytype() { return mapArrayAnytype; } + + public void setMapArrayAnytype(Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; } + public AdditionalPropertiesClass mapMapString(Map> mapMapString) { + this.mapMapString = mapMapString; return this; } @@ -255,15 +289,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapMapString() { return mapMapString; } + + public void setMapMapString(Map> mapMapString) { this.mapMapString = mapMapString; } + public AdditionalPropertiesClass mapMapAnytype(Map> mapMapAnytype) { + this.mapMapAnytype = mapMapAnytype; return this; } @@ -282,15 +323,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapMapAnytype() { return mapMapAnytype; } + + public void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } + public AdditionalPropertiesClass anytype1(Object anytype1) { + this.anytype1 = anytype1; return this; } @@ -301,15 +349,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Object getAnytype1() { return anytype1; } + + public void setAnytype1(Object anytype1) { this.anytype1 = anytype1; } + public AdditionalPropertiesClass anytype2(Object anytype2) { + this.anytype2 = anytype2; return this; } @@ -320,15 +375,22 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ANYTYPE2) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Object getAnytype2() { return anytype2; } + + public void setAnytype2(Object anytype2) { this.anytype2 = anytype2; } + public AdditionalPropertiesClass anytype3(Object anytype3) { + this.anytype3 = anytype3; return this; } @@ -339,10 +401,15 @@ public class AdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ANYTYPE3) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Object getAnytype3() { return anytype3; } + + public void setAnytype3(Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 77388b95d86..3d41e99ac8b 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesInteger extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesInteger name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesInteger extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index f0a3318bca1..799674f1e1b 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import java.util.Map; public class AdditionalPropertiesNumber extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesNumber name(String name) { + this.name = name; return this; } @@ -44,10 +46,15 @@ public class AdditionalPropertiesNumber extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index 19d772f4522..3d5a5c25bfa 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesObject extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesObject name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesObject extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 09e6431c916..d0c854414c3 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import java.util.Map; public class AdditionalPropertiesString extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public AdditionalPropertiesString name(String name) { + this.name = name; return this; } @@ -43,10 +45,15 @@ public class AdditionalPropertiesString extends HashMap { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } 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 a2d34d82f47..1f548074919 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; @@ -35,14 +36,14 @@ import io.swagger.annotations.ApiModelProperty; public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; - @JsonProperty(JSON_PROPERTY_CLASS_NAME) private String className; public static final String JSON_PROPERTY_COLOR = "color"; - @JsonProperty(JSON_PROPERTY_COLOR) private String color = "red"; + public Animal className(String className) { + this.className = className; return this; } @@ -52,15 +53,22 @@ public class Animal { * @return className **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getClassName() { return className; } + + public void setClassName(String className) { this.className = className; } + public Animal color(String color) { + this.color = color; return this; } @@ -71,10 +79,15 @@ public class Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_COLOR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getColor() { return color; } + + public void setColor(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 4720e6aa390..01187710606 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import java.util.List; public class ArrayOfArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) private List> arrayArrayNumber = null; + public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { + this.arrayArrayNumber = arrayArrayNumber; return this; } @@ -52,10 +54,15 @@ public class ArrayOfArrayOfNumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List> getArrayArrayNumber() { return arrayArrayNumber; } + + public void setArrayArrayNumber(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 2eb4ba9e28b..253867634d8 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,10 +31,11 @@ import java.util.List; public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) private List arrayNumber = null; + public ArrayOfNumberOnly arrayNumber(List arrayNumber) { + this.arrayNumber = arrayNumber; return this; } @@ -52,10 +54,15 @@ public class ArrayOfNumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArrayNumber() { return arrayNumber; } + + public void setArrayNumber(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 8cc6f0ea7a3..a440f0414ba 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,18 +31,17 @@ import org.openapitools.client.model.ReadOnlyFirst; public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) private List arrayOfString = null; public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) private List> arrayArrayOfInteger = null; public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) private List> arrayArrayOfModel = null; + public ArrayTest arrayOfString(List arrayOfString) { + this.arrayOfString = arrayOfString; return this; } @@ -60,15 +60,22 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArrayOfString() { return arrayOfString; } + + public void setArrayOfString(List arrayOfString) { this.arrayOfString = arrayOfString; } + public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { + this.arrayArrayOfInteger = arrayArrayOfInteger; return this; } @@ -87,15 +94,22 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List> getArrayArrayOfInteger() { return arrayArrayOfInteger; } + + public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } + public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { + this.arrayArrayOfModel = arrayArrayOfModel; return this; } @@ -114,10 +128,15 @@ public class ArrayTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List> getArrayArrayOfModel() { return arrayArrayOfModel; } + + public void setArrayArrayOfModel(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 1d4ebff1533..1db509bc7a9 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,30 +28,26 @@ import io.swagger.annotations.ApiModelProperty; public class Capitalization { public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) private String smallCamel; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) private String capitalCamel; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) private String smallSnake; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) private String capitalSnake; public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) private String scAETHFlowPoints; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) private String ATT_NAME; + public Capitalization smallCamel(String smallCamel) { + this.smallCamel = smallCamel; return this; } @@ -61,15 +58,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSmallCamel() { return smallCamel; } + + public void setSmallCamel(String smallCamel) { this.smallCamel = smallCamel; } + public Capitalization capitalCamel(String capitalCamel) { + this.capitalCamel = capitalCamel; return this; } @@ -80,15 +84,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getCapitalCamel() { return capitalCamel; } + + public void setCapitalCamel(String capitalCamel) { this.capitalCamel = capitalCamel; } + public Capitalization smallSnake(String smallSnake) { + this.smallSnake = smallSnake; return this; } @@ -99,15 +110,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSmallSnake() { return smallSnake; } + + public void setSmallSnake(String smallSnake) { this.smallSnake = smallSnake; } + public Capitalization capitalSnake(String capitalSnake) { + this.capitalSnake = capitalSnake; return this; } @@ -118,15 +136,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getCapitalSnake() { return capitalSnake; } + + public void setCapitalSnake(String capitalSnake) { this.capitalSnake = capitalSnake; } + public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { + this.scAETHFlowPoints = scAETHFlowPoints; return this; } @@ -137,15 +162,22 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getScAETHFlowPoints() { return scAETHFlowPoints; } + + public void setScAETHFlowPoints(String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } + public Capitalization ATT_NAME(String ATT_NAME) { + this.ATT_NAME = ATT_NAME; return this; } @@ -156,10 +188,15 @@ public class Capitalization { **/ @javax.annotation.Nullable @ApiModelProperty(value = "Name of the pet ") + @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getATTNAME() { return ATT_NAME; } + + public void setATTNAME(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 11ffa39d982..35f36932606 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import org.openapitools.client.model.CatAllOf; public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; - @JsonProperty(JSON_PROPERTY_DECLAWED) private Boolean declawed; + public Cat declawed(Boolean declawed) { + this.declawed = declawed; return this; } @@ -43,10 +45,15 @@ public class Cat extends Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getDeclawed() { return declawed; } + + public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/CatAllOf.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/CatAllOf.java index 1c12b1972cf..f498096d0bc 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/CatAllOf.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/CatAllOf.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty; public class CatAllOf { public static final String JSON_PROPERTY_DECLAWED = "declawed"; - @JsonProperty(JSON_PROPERTY_DECLAWED) private Boolean declawed; + public CatAllOf declawed(Boolean declawed) { + this.declawed = declawed; return this; } @@ -41,10 +43,15 @@ public class CatAllOf { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getDeclawed() { return declawed; } + + public void setDeclawed(Boolean declawed) { this.declawed = declawed; } 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 652d69552d1..3c4385a7132 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,14 +28,14 @@ import io.swagger.annotations.ApiModelProperty; public class Category { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name = "default-name"; + public Category id(Long id) { + this.id = id; return this; } @@ -45,15 +46,22 @@ public class Category { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Category name(String name) { + this.name = name; return this; } @@ -63,10 +71,15 @@ public class Category { * @return name **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } 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 16036936e7a..47ad8fce655 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,10 +29,11 @@ import io.swagger.annotations.ApiModelProperty; public class ClassModel { public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) private String propertyClass; + public ClassModel propertyClass(String propertyClass) { + this.propertyClass = propertyClass; return this; } @@ -42,10 +44,15 @@ public class ClassModel { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPropertyClass() { return propertyClass; } + + public void setPropertyClass(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 a5c065a1dd0..d325f1378cb 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty; public class Client { public static final String JSON_PROPERTY_CLIENT = "client"; - @JsonProperty(JSON_PROPERTY_CLIENT) private String client; + public Client client(String client) { + this.client = client; return this; } @@ -41,10 +43,15 @@ public class Client { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getClient() { return client; } + + public void setClient(String client) { this.client = client; } 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 7ac3c33202e..cc0acce7049 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,10 +30,11 @@ import org.openapitools.client.model.DogAllOf; public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; - @JsonProperty(JSON_PROPERTY_BREED) private String breed; + public Dog breed(String breed) { + this.breed = breed; return this; } @@ -43,10 +45,15 @@ public class Dog extends Animal { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBreed() { return breed; } + + public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/DogAllOf.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/DogAllOf.java index b79847a96e4..31d4cc3c80e 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/DogAllOf.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/DogAllOf.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty; public class DogAllOf { public static final String JSON_PROPERTY_BREED = "breed"; - @JsonProperty(JSON_PROPERTY_BREED) private String breed; + public DogAllOf breed(String breed) { + this.breed = breed; return this; } @@ -41,10 +43,15 @@ public class DogAllOf { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBreed() { return breed; } + + public void setBreed(String breed) { this.breed = breed; } 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 fe54ca63d14..116ce3648ac 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -64,7 +65,6 @@ public class EnumArrays { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) private JustSymbolEnum justSymbol; /** @@ -103,10 +103,11 @@ public class EnumArrays { } public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) private List arrayEnum = null; + public EnumArrays justSymbol(JustSymbolEnum justSymbol) { + this.justSymbol = justSymbol; return this; } @@ -117,15 +118,22 @@ public class EnumArrays { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public JustSymbolEnum getJustSymbol() { return justSymbol; } + + public void setJustSymbol(JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } + public EnumArrays arrayEnum(List arrayEnum) { + this.arrayEnum = arrayEnum; return this; } @@ -144,10 +152,15 @@ public class EnumArrays { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getArrayEnum() { return arrayEnum; } + + public void setArrayEnum(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 bde85ff2a09..615f4806ebd 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -65,7 +66,6 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; - @JsonProperty(JSON_PROPERTY_ENUM_STRING) private EnumStringEnum enumString; /** @@ -106,7 +106,6 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) private EnumStringRequiredEnum enumStringRequired; /** @@ -145,7 +144,6 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) private EnumIntegerEnum enumInteger; /** @@ -184,14 +182,14 @@ public class EnumTest { } public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) private OuterEnum outerEnum; + public EnumTest enumString(EnumStringEnum enumString) { + this.enumString = enumString; return this; } @@ -202,15 +200,22 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public EnumStringEnum getEnumString() { return enumString; } + + public void setEnumString(EnumStringEnum enumString) { this.enumString = enumString; } + public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + this.enumStringRequired = enumStringRequired; return this; } @@ -220,15 +225,22 @@ public class EnumTest { * @return enumStringRequired **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; } + + public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } + public EnumTest enumInteger(EnumIntegerEnum enumInteger) { + this.enumInteger = enumInteger; return this; } @@ -239,15 +251,22 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public EnumIntegerEnum getEnumInteger() { return enumInteger; } + + public void setEnumInteger(EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } + public EnumTest enumNumber(EnumNumberEnum enumNumber) { + this.enumNumber = enumNumber; return this; } @@ -258,15 +277,22 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public EnumNumberEnum getEnumNumber() { return enumNumber; } + + public void setEnumNumber(EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } + public EnumTest outerEnum(OuterEnum outerEnum) { + this.outerEnum = outerEnum; return this; } @@ -277,10 +303,15 @@ public class EnumTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OuterEnum getOuterEnum() { return outerEnum; } + + public void setOuterEnum(OuterEnum outerEnum) { this.outerEnum = outerEnum; } 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 2d510f4342b..e1a6afc0291 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -29,14 +30,14 @@ import java.util.List; public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; - @JsonProperty(JSON_PROPERTY_FILE) - private java.io.File file = null; + private java.io.File file; public static final String JSON_PROPERTY_FILES = "files"; - @JsonProperty(JSON_PROPERTY_FILES) private List files = null; + public FileSchemaTestClass file(java.io.File file) { + this.file = file; return this; } @@ -47,15 +48,22 @@ public class FileSchemaTestClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FILE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public java.io.File getFile() { return file; } + + public void setFile(java.io.File file) { this.file = file; } + public FileSchemaTestClass files(List files) { + this.files = files; return this; } @@ -74,10 +82,15 @@ public class FileSchemaTestClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FILES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getFiles() { return files; } + + public void setFiles(List files) { this.files = files; } 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 1b9426d9ab6..6aa78ea7e1e 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -32,58 +33,47 @@ import java.util.UUID; public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; - @JsonProperty(JSON_PROPERTY_INTEGER) private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; - @JsonProperty(JSON_PROPERTY_INT32) private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; - @JsonProperty(JSON_PROPERTY_INT64) private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; - @JsonProperty(JSON_PROPERTY_NUMBER) private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; - @JsonProperty(JSON_PROPERTY_FLOAT) private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; - @JsonProperty(JSON_PROPERTY_DOUBLE) private Double _double; public static final String JSON_PROPERTY_STRING = "string"; - @JsonProperty(JSON_PROPERTY_STRING) private String string; public static final String JSON_PROPERTY_BYTE = "byte"; - @JsonProperty(JSON_PROPERTY_BYTE) private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; - @JsonProperty(JSON_PROPERTY_BINARY) private File binary; public static final String JSON_PROPERTY_DATE = "date"; - @JsonProperty(JSON_PROPERTY_DATE) private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @JsonProperty(JSON_PROPERTY_DATE_TIME) private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; - @JsonProperty(JSON_PROPERTY_UUID) private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; - @JsonProperty(JSON_PROPERTY_PASSWORD) private String password; + public FormatTest integer(Integer integer) { + this.integer = integer; return this; } @@ -96,15 +86,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getInteger() { return integer; } + + public void setInteger(Integer integer) { this.integer = integer; } + public FormatTest int32(Integer int32) { + this.int32 = int32; return this; } @@ -117,15 +114,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INT32) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getInt32() { return int32; } + + public void setInt32(Integer int32) { this.int32 = int32; } + public FormatTest int64(Long int64) { + this.int64 = int64; return this; } @@ -136,15 +140,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INT64) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getInt64() { return int64; } + + public void setInt64(Long int64) { this.int64 = int64; } + public FormatTest number(BigDecimal number) { + this.number = number; return this; } @@ -156,15 +167,22 @@ public class FormatTest { * @return number **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getNumber() { return number; } + + public void setNumber(BigDecimal number) { this.number = number; } + public FormatTest _float(Float _float) { + this._float = _float; return this; } @@ -177,15 +195,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Float getFloat() { return _float; } + + public void setFloat(Float _float) { this._float = _float; } + public FormatTest _double(Double _double) { + this._double = _double; return this; } @@ -198,15 +223,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Double getDouble() { return _double; } + + public void setDouble(Double _double) { this._double = _double; } + public FormatTest string(String string) { + this.string = string; return this; } @@ -217,15 +249,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getString() { return string; } + + public void setString(String string) { this.string = string; } + public FormatTest _byte(byte[] _byte) { + this._byte = _byte; return this; } @@ -235,15 +274,22 @@ public class FormatTest { * @return _byte **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_BYTE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public byte[] getByte() { return _byte; } + + public void setByte(byte[] _byte) { this._byte = _byte; } + public FormatTest binary(File binary) { + this.binary = binary; return this; } @@ -254,15 +300,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BINARY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public File getBinary() { return binary; } + + public void setBinary(File binary) { this.binary = binary; } + public FormatTest date(LocalDate date) { + this.date = date; return this; } @@ -272,15 +325,22 @@ public class FormatTest { * @return date **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_DATE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public LocalDate getDate() { return date; } + + public void setDate(LocalDate date) { this.date = date; } + public FormatTest dateTime(OffsetDateTime dateTime) { + this.dateTime = dateTime; return this; } @@ -291,15 +351,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OffsetDateTime getDateTime() { return dateTime; } + + public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } + public FormatTest uuid(UUID uuid) { + this.uuid = uuid; return this; } @@ -310,15 +377,22 @@ public class FormatTest { **/ @javax.annotation.Nullable @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public UUID getUuid() { return uuid; } + + public void setUuid(UUID uuid) { this.uuid = uuid; } + public FormatTest password(String password) { + this.password = password; return this; } @@ -328,10 +402,15 @@ public class FormatTest { * @return password **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getPassword() { return password; } + + public void setPassword(String password) { this.password = password; } 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 ad6b28d9d1e..9c25eddaa1b 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,34 +28,44 @@ import io.swagger.annotations.ApiModelProperty; public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; - @JsonProperty(JSON_PROPERTY_BAR) private String bar; public static final String JSON_PROPERTY_FOO = "foo"; - @JsonProperty(JSON_PROPERTY_FOO) private String foo; + /** * Get bar * @return bar **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BAR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBar() { return bar; } + + + /** * Get foo * @return foo **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FOO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getFoo() { return foo; } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { 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 1fc9aa22f71..cbdd5db55e5 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,7 +31,6 @@ import java.util.Map; public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) private Map> mapMapOfString = null; /** @@ -69,18 +69,17 @@ public class MapTest { } public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) private Map mapOfEnumString = null; public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) private Map directMap = null; public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) private Map indirectMap = null; + public MapTest mapMapOfString(Map> mapMapOfString) { + this.mapMapOfString = mapMapOfString; return this; } @@ -99,15 +98,22 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getMapMapOfString() { return mapMapOfString; } + + public void setMapMapOfString(Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } + public MapTest mapOfEnumString(Map mapOfEnumString) { + this.mapOfEnumString = mapOfEnumString; return this; } @@ -126,15 +132,22 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMapOfEnumString() { return mapOfEnumString; } + + public void setMapOfEnumString(Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } + public MapTest directMap(Map directMap) { + this.directMap = directMap; return this; } @@ -153,15 +166,22 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getDirectMap() { return directMap; } + + public void setDirectMap(Map directMap) { this.directMap = directMap; } + public MapTest indirectMap(Map indirectMap) { + this.indirectMap = indirectMap; return this; } @@ -180,10 +200,15 @@ public class MapTest { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getIndirectMap() { return indirectMap; } + + public void setIndirectMap(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 f538642c886..4dfcdb1ff96 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -33,18 +34,17 @@ import org.openapitools.client.model.Animal; public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; - @JsonProperty(JSON_PROPERTY_UUID) private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @JsonProperty(JSON_PROPERTY_DATE_TIME) private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; - @JsonProperty(JSON_PROPERTY_MAP) private Map map = null; + public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { + this.uuid = uuid; return this; } @@ -55,15 +55,22 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public UUID getUuid() { return uuid; } + + public void setUuid(UUID uuid) { this.uuid = uuid; } + public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { + this.dateTime = dateTime; return this; } @@ -74,15 +81,22 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OffsetDateTime getDateTime() { return dateTime; } + + public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } + public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { + this.map = map; return this; } @@ -101,10 +115,15 @@ public class MixedPropertiesAndAdditionalPropertiesClass { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMap() { return map; } + + public void setMap(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 d86df5d7eab..0b39d4177e2 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,14 +29,14 @@ import io.swagger.annotations.ApiModelProperty; public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) private String propertyClass; + public Model200Response name(Integer name) { + this.name = name; return this; } @@ -46,15 +47,22 @@ public class Model200Response { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getName() { return name; } + + public void setName(Integer name) { this.name = name; } + public Model200Response propertyClass(String propertyClass) { + this.propertyClass = propertyClass; return this; } @@ -65,10 +73,15 @@ public class Model200Response { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPropertyClass() { return propertyClass; } + + public void setPropertyClass(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 4c9a7f87b5a..9ca6e78b233 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,18 +28,17 @@ import io.swagger.annotations.ApiModelProperty; public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; - @JsonProperty(JSON_PROPERTY_CODE) private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; - @JsonProperty(JSON_PROPERTY_TYPE) private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; - @JsonProperty(JSON_PROPERTY_MESSAGE) private String message; + public ModelApiResponse code(Integer code) { + this.code = code; return this; } @@ -49,15 +49,22 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getCode() { return code; } + + public void setCode(Integer code) { this.code = code; } + public ModelApiResponse type(String type) { + this.type = type; return this; } @@ -68,15 +75,22 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getType() { return type; } + + public void setType(String type) { this.type = type; } + public ModelApiResponse message(String message) { + this.message = message; return this; } @@ -87,10 +101,15 @@ public class ModelApiResponse { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } 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 9c9ac21a3fb..300598b5d0b 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,10 +29,11 @@ import io.swagger.annotations.ApiModelProperty; public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; - @JsonProperty(JSON_PROPERTY_RETURN) private Integer _return; + public ModelReturn _return(Integer _return) { + this._return = _return; return this; } @@ -42,10 +44,15 @@ public class ModelReturn { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_RETURN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getReturn() { return _return; } + + public void setReturn(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 47f89c54361..98a92f76c18 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,22 +29,20 @@ import io.swagger.annotations.ApiModelProperty; public class Name { public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; - @JsonProperty(JSON_PROPERTY_PROPERTY) private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; - @JsonProperty(JSON_PROPERTY_123NUMBER) private Integer _123number; + public Name name(Integer name) { + this.name = name; return this; } @@ -53,25 +52,38 @@ public class Name { * @return name **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getName() { return name; } + + public void setName(Integer name) { this.name = name; } + /** * Get snakeCase * @return snakeCase **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getSnakeCase() { return snakeCase; } + + + public Name property(String property) { + this.property = property; return this; } @@ -82,25 +94,36 @@ public class Name { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getProperty() { return property; } + + public void setProperty(String property) { this.property = property; } + /** * Get _123number * @return _123number **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_123NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer get123number() { return _123number; } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { 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 f5331da226e..499144e4016 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,10 +29,11 @@ import java.math.BigDecimal; public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) private BigDecimal justNumber; + public NumberOnly justNumber(BigDecimal justNumber) { + this.justNumber = justNumber; return this; } @@ -42,10 +44,15 @@ public class NumberOnly { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getJustNumber() { return justNumber; } + + public void setJustNumber(BigDecimal justNumber) { this.justNumber = justNumber; } 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 0730133f9cb..20a630250c8 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,19 +29,15 @@ import java.time.OffsetDateTime; public class Order { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; - @JsonProperty(JSON_PROPERTY_PET_ID) private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; - @JsonProperty(JSON_PROPERTY_QUANTITY) private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; - @JsonProperty(JSON_PROPERTY_SHIP_DATE) private OffsetDateTime shipDate; /** @@ -81,14 +78,14 @@ public class Order { } public static final String JSON_PROPERTY_STATUS = "status"; - @JsonProperty(JSON_PROPERTY_STATUS) private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; - @JsonProperty(JSON_PROPERTY_COMPLETE) private Boolean complete = false; + public Order id(Long id) { + this.id = id; return this; } @@ -99,15 +96,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Order petId(Long petId) { + this.petId = petId; return this; } @@ -118,15 +122,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getPetId() { return petId; } + + public void setPetId(Long petId) { this.petId = petId; } + public Order quantity(Integer quantity) { + this.quantity = quantity; return this; } @@ -137,15 +148,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getQuantity() { return quantity; } + + public void setQuantity(Integer quantity) { this.quantity = quantity; } + public Order shipDate(OffsetDateTime shipDate) { + this.shipDate = shipDate; return this; } @@ -156,15 +174,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OffsetDateTime getShipDate() { return shipDate; } + + public void setShipDate(OffsetDateTime shipDate) { this.shipDate = shipDate; } + public Order status(StatusEnum status) { + this.status = status; return this; } @@ -175,15 +200,22 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "Order Status") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public StatusEnum getStatus() { return status; } + + public void setStatus(StatusEnum status) { this.status = status; } + public Order complete(Boolean complete) { + this.complete = complete; return this; } @@ -194,10 +226,15 @@ public class Order { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getComplete() { return complete; } + + public void setComplete(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 7193ba2a0c9..dab9d1be3a8 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -28,18 +29,17 @@ import java.math.BigDecimal; public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; - @JsonProperty(JSON_PROPERTY_MY_NUMBER) private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; - @JsonProperty(JSON_PROPERTY_MY_STRING) private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) private Boolean myBoolean; + public OuterComposite myNumber(BigDecimal myNumber) { + this.myNumber = myNumber; return this; } @@ -50,15 +50,22 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getMyNumber() { return myNumber; } + + public void setMyNumber(BigDecimal myNumber) { this.myNumber = myNumber; } + public OuterComposite myString(String myString) { + this.myString = myString; return this; } @@ -69,15 +76,22 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getMyString() { return myString; } + + public void setMyString(String myString) { this.myString = myString; } + public OuterComposite myBoolean(Boolean myBoolean) { + this.myBoolean = myBoolean; return this; } @@ -88,10 +102,15 @@ public class OuterComposite { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getMyBoolean() { return myBoolean; } + + public void setMyBoolean(Boolean myBoolean) { this.myBoolean = myBoolean; } 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 948cb6b92f9..1d9cdb5ed07 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -31,23 +32,18 @@ import org.openapitools.client.model.Tag; public class Pet { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; - @JsonProperty(JSON_PROPERTY_CATEGORY) - private Category category = null; + private Category category; public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) private List photoUrls = new ArrayList<>(); public static final String JSON_PROPERTY_TAGS = "tags"; - @JsonProperty(JSON_PROPERTY_TAGS) private List tags = null; /** @@ -88,10 +84,11 @@ public class Pet { } public static final String JSON_PROPERTY_STATUS = "status"; - @JsonProperty(JSON_PROPERTY_STATUS) private StatusEnum status; + public Pet id(Long id) { + this.id = id; return this; } @@ -102,15 +99,22 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Pet category(Category category) { + this.category = category; return this; } @@ -121,15 +125,22 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Category getCategory() { return category; } + + public void setCategory(Category category) { this.category = category; } + public Pet name(String name) { + this.name = name; return this; } @@ -139,15 +150,22 @@ public class Pet { * @return name **/ @ApiModelProperty(example = "doggie", required = true, value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public Pet photoUrls(List photoUrls) { + this.photoUrls = photoUrls; return this; } @@ -162,15 +180,22 @@ public class Pet { * @return photoUrls **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getPhotoUrls() { return photoUrls; } + + public void setPhotoUrls(List photoUrls) { this.photoUrls = photoUrls; } + public Pet tags(List tags) { + this.tags = tags; return this; } @@ -189,15 +214,22 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getTags() { return tags; } + + public void setTags(List tags) { this.tags = tags; } + public Pet status(StatusEnum status) { + this.status = status; return this; } @@ -208,10 +240,15 @@ public class Pet { **/ @javax.annotation.Nullable @ApiModelProperty(value = "pet status in the store") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public StatusEnum getStatus() { return status; } + + public void setStatus(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 b0949b9e2ea..28901097fa4 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,24 +28,30 @@ import io.swagger.annotations.ApiModelProperty; public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; - @JsonProperty(JSON_PROPERTY_BAR) private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; - @JsonProperty(JSON_PROPERTY_BAZ) private String baz; + /** * Get bar * @return bar **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BAR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBar() { return bar; } + + + public ReadOnlyFirst baz(String baz) { + this.baz = baz; return this; } @@ -55,10 +62,15 @@ public class ReadOnlyFirst { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BAZ) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBaz() { return baz; } + + public void setBaz(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 a9d03234061..c7820abb0fc 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty; public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) private Long $specialPropertyName; + public SpecialModelName $specialPropertyName(Long $specialPropertyName) { + this.$specialPropertyName = $specialPropertyName; return this; } @@ -41,10 +43,15 @@ public class SpecialModelName { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long get$SpecialPropertyName() { return $specialPropertyName; } + + public void set$SpecialPropertyName(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 45f17b22cf3..7e20ebf4a31 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 @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,14 +28,14 @@ import io.swagger.annotations.ApiModelProperty; public class Tag { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) private String name; + public Tag id(Long id) { + this.id = id; return this; } @@ -45,15 +46,22 @@ public class Tag { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public Tag name(String name) { + this.name = name; return this; } @@ -64,10 +72,15 @@ public class Tag { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { return name; } + + public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index 3f3030998f1..7b858daccac 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,26 +31,23 @@ import java.util.List; public class TypeHolderDefault { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; - @JsonProperty(JSON_PROPERTY_STRING_ITEM) private String stringItem = "what"; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) private BigDecimal numberItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) private Boolean boolItem = true; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) private List arrayItem = new ArrayList<>(); + public TypeHolderDefault stringItem(String stringItem) { + this.stringItem = stringItem; return this; } @@ -59,15 +57,22 @@ public class TypeHolderDefault { * @return stringItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getStringItem() { return stringItem; } + + public void setStringItem(String stringItem) { this.stringItem = stringItem; } + public TypeHolderDefault numberItem(BigDecimal numberItem) { + this.numberItem = numberItem; return this; } @@ -77,15 +82,22 @@ public class TypeHolderDefault { * @return numberItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getNumberItem() { return numberItem; } + + public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } + public TypeHolderDefault integerItem(Integer integerItem) { + this.integerItem = integerItem; return this; } @@ -95,15 +107,22 @@ public class TypeHolderDefault { * @return integerItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getIntegerItem() { return integerItem; } + + public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } + public TypeHolderDefault boolItem(Boolean boolItem) { + this.boolItem = boolItem; return this; } @@ -113,15 +132,22 @@ public class TypeHolderDefault { * @return boolItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Boolean getBoolItem() { return boolItem; } + + public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } + public TypeHolderDefault arrayItem(List arrayItem) { + this.arrayItem = arrayItem; return this; } @@ -136,10 +162,15 @@ public class TypeHolderDefault { * @return arrayItem **/ @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getArrayItem() { return arrayItem; } + + public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/TypeHolderExample.java index 99ddaa8d2eb..34406ee33cb 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,26 +31,23 @@ import java.util.List; public class TypeHolderExample { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; - @JsonProperty(JSON_PROPERTY_STRING_ITEM) private String stringItem; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) private BigDecimal numberItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) private Boolean boolItem; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) private List arrayItem = new ArrayList<>(); + public TypeHolderExample stringItem(String stringItem) { + this.stringItem = stringItem; return this; } @@ -59,15 +57,22 @@ public class TypeHolderExample { * @return stringItem **/ @ApiModelProperty(example = "what", required = true, value = "") + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getStringItem() { return stringItem; } + + public void setStringItem(String stringItem) { this.stringItem = stringItem; } + public TypeHolderExample numberItem(BigDecimal numberItem) { + this.numberItem = numberItem; return this; } @@ -77,15 +82,22 @@ public class TypeHolderExample { * @return numberItem **/ @ApiModelProperty(example = "1.234", required = true, value = "") + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getNumberItem() { return numberItem; } + + public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } + public TypeHolderExample integerItem(Integer integerItem) { + this.integerItem = integerItem; return this; } @@ -95,15 +107,22 @@ public class TypeHolderExample { * @return integerItem **/ @ApiModelProperty(example = "-2", required = true, value = "") + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getIntegerItem() { return integerItem; } + + public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } + public TypeHolderExample boolItem(Boolean boolItem) { + this.boolItem = boolItem; return this; } @@ -113,15 +132,22 @@ public class TypeHolderExample { * @return boolItem **/ @ApiModelProperty(example = "true", required = true, value = "") + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Boolean getBoolItem() { return boolItem; } + + public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } + public TypeHolderExample arrayItem(List arrayItem) { + this.arrayItem = arrayItem; return this; } @@ -136,10 +162,15 @@ public class TypeHolderExample { * @return arrayItem **/ @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getArrayItem() { return arrayItem; } + + public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/User.java index 9ce7869e755..b181265d97d 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/User.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,38 +28,32 @@ import io.swagger.annotations.ApiModelProperty; public class User { public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; - @JsonProperty(JSON_PROPERTY_USERNAME) private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; - @JsonProperty(JSON_PROPERTY_FIRST_NAME) private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; - @JsonProperty(JSON_PROPERTY_LAST_NAME) private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; - @JsonProperty(JSON_PROPERTY_EMAIL) private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; - @JsonProperty(JSON_PROPERTY_PASSWORD) private String password; public static final String JSON_PROPERTY_PHONE = "phone"; - @JsonProperty(JSON_PROPERTY_PHONE) private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; - @JsonProperty(JSON_PROPERTY_USER_STATUS) private Integer userStatus; + public User id(Long id) { + this.id = id; return this; } @@ -69,15 +64,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getId() { return id; } + + public void setId(Long id) { this.id = id; } + public User username(String username) { + this.username = username; return this; } @@ -88,15 +90,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getUsername() { return username; } + + public void setUsername(String username) { this.username = username; } + public User firstName(String firstName) { + this.firstName = firstName; return this; } @@ -107,15 +116,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getFirstName() { return firstName; } + + public void setFirstName(String firstName) { this.firstName = firstName; } + public User lastName(String lastName) { + this.lastName = lastName; return this; } @@ -126,15 +142,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getLastName() { return lastName; } + + public void setLastName(String lastName) { this.lastName = lastName; } + public User email(String email) { + this.email = email; return this; } @@ -145,15 +168,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getEmail() { return email; } + + public void setEmail(String email) { this.email = email; } + public User password(String password) { + this.password = password; return this; } @@ -164,15 +194,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPassword() { return password; } + + public void setPassword(String password) { this.password = password; } + public User phone(String phone) { + this.phone = phone; return this; } @@ -183,15 +220,22 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PHONE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPhone() { return phone; } + + public void setPhone(String phone) { this.phone = phone; } + public User userStatus(Integer userStatus) { + this.userStatus = userStatus; return this; } @@ -202,10 +246,15 @@ public class User { **/ @javax.annotation.Nullable @ApiModelProperty(value = "User Status") + @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getUserStatus() { return userStatus; } + + public void setUserStatus(Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/XmlItem.java index dc0ad56c1af..b014391d846 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/XmlItem.java @@ -15,6 +15,7 @@ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -30,122 +31,95 @@ import java.util.List; public class XmlItem { public static final String JSON_PROPERTY_ATTRIBUTE_STRING = "attribute_string"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) private String attributeString; public static final String JSON_PROPERTY_ATTRIBUTE_NUMBER = "attribute_number"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) private BigDecimal attributeNumber; public static final String JSON_PROPERTY_ATTRIBUTE_INTEGER = "attribute_integer"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) private Integer attributeInteger; public static final String JSON_PROPERTY_ATTRIBUTE_BOOLEAN = "attribute_boolean"; - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) private Boolean attributeBoolean; public static final String JSON_PROPERTY_WRAPPED_ARRAY = "wrapped_array"; - @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) private List wrappedArray = null; public static final String JSON_PROPERTY_NAME_STRING = "name_string"; - @JsonProperty(JSON_PROPERTY_NAME_STRING) private String nameString; public static final String JSON_PROPERTY_NAME_NUMBER = "name_number"; - @JsonProperty(JSON_PROPERTY_NAME_NUMBER) private BigDecimal nameNumber; public static final String JSON_PROPERTY_NAME_INTEGER = "name_integer"; - @JsonProperty(JSON_PROPERTY_NAME_INTEGER) private Integer nameInteger; public static final String JSON_PROPERTY_NAME_BOOLEAN = "name_boolean"; - @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) private Boolean nameBoolean; public static final String JSON_PROPERTY_NAME_ARRAY = "name_array"; - @JsonProperty(JSON_PROPERTY_NAME_ARRAY) private List nameArray = null; public static final String JSON_PROPERTY_NAME_WRAPPED_ARRAY = "name_wrapped_array"; - @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) private List nameWrappedArray = null; public static final String JSON_PROPERTY_PREFIX_STRING = "prefix_string"; - @JsonProperty(JSON_PROPERTY_PREFIX_STRING) private String prefixString; public static final String JSON_PROPERTY_PREFIX_NUMBER = "prefix_number"; - @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) private BigDecimal prefixNumber; public static final String JSON_PROPERTY_PREFIX_INTEGER = "prefix_integer"; - @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) private Integer prefixInteger; public static final String JSON_PROPERTY_PREFIX_BOOLEAN = "prefix_boolean"; - @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) private Boolean prefixBoolean; public static final String JSON_PROPERTY_PREFIX_ARRAY = "prefix_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) private List prefixArray = null; public static final String JSON_PROPERTY_PREFIX_WRAPPED_ARRAY = "prefix_wrapped_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) private List prefixWrappedArray = null; public static final String JSON_PROPERTY_NAMESPACE_STRING = "namespace_string"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) private String namespaceString; public static final String JSON_PROPERTY_NAMESPACE_NUMBER = "namespace_number"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) private BigDecimal namespaceNumber; public static final String JSON_PROPERTY_NAMESPACE_INTEGER = "namespace_integer"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) private Integer namespaceInteger; public static final String JSON_PROPERTY_NAMESPACE_BOOLEAN = "namespace_boolean"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) private Boolean namespaceBoolean; public static final String JSON_PROPERTY_NAMESPACE_ARRAY = "namespace_array"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) private List namespaceArray = null; public static final String JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY = "namespace_wrapped_array"; - @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) private List namespaceWrappedArray = null; public static final String JSON_PROPERTY_PREFIX_NS_STRING = "prefix_ns_string"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) private String prefixNsString; public static final String JSON_PROPERTY_PREFIX_NS_NUMBER = "prefix_ns_number"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) private BigDecimal prefixNsNumber; public static final String JSON_PROPERTY_PREFIX_NS_INTEGER = "prefix_ns_integer"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) private Integer prefixNsInteger; public static final String JSON_PROPERTY_PREFIX_NS_BOOLEAN = "prefix_ns_boolean"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) private Boolean prefixNsBoolean; public static final String JSON_PROPERTY_PREFIX_NS_ARRAY = "prefix_ns_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) private List prefixNsArray = null; public static final String JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY = "prefix_ns_wrapped_array"; - @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) private List prefixNsWrappedArray = null; + public XmlItem attributeString(String attributeString) { + this.attributeString = attributeString; return this; } @@ -156,15 +130,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getAttributeString() { return attributeString; } + + public void setAttributeString(String attributeString) { this.attributeString = attributeString; } + public XmlItem attributeNumber(BigDecimal attributeNumber) { + this.attributeNumber = attributeNumber; return this; } @@ -175,15 +156,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getAttributeNumber() { return attributeNumber; } + + public void setAttributeNumber(BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } + public XmlItem attributeInteger(Integer attributeInteger) { + this.attributeInteger = attributeInteger; return this; } @@ -194,15 +182,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getAttributeInteger() { return attributeInteger; } + + public void setAttributeInteger(Integer attributeInteger) { this.attributeInteger = attributeInteger; } + public XmlItem attributeBoolean(Boolean attributeBoolean) { + this.attributeBoolean = attributeBoolean; return this; } @@ -213,15 +208,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getAttributeBoolean() { return attributeBoolean; } + + public void setAttributeBoolean(Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } + public XmlItem wrappedArray(List wrappedArray) { + this.wrappedArray = wrappedArray; return this; } @@ -240,15 +242,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getWrappedArray() { return wrappedArray; } + + public void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } + public XmlItem nameString(String nameString) { + this.nameString = nameString; return this; } @@ -259,15 +268,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_NAME_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getNameString() { return nameString; } + + public void setNameString(String nameString) { this.nameString = nameString; } + public XmlItem nameNumber(BigDecimal nameNumber) { + this.nameNumber = nameNumber; return this; } @@ -278,15 +294,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_NAME_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getNameNumber() { return nameNumber; } + + public void setNameNumber(BigDecimal nameNumber) { this.nameNumber = nameNumber; } + public XmlItem nameInteger(Integer nameInteger) { + this.nameInteger = nameInteger; return this; } @@ -297,15 +320,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_NAME_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getNameInteger() { return nameInteger; } + + public void setNameInteger(Integer nameInteger) { this.nameInteger = nameInteger; } + public XmlItem nameBoolean(Boolean nameBoolean) { + this.nameBoolean = nameBoolean; return this; } @@ -316,15 +346,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getNameBoolean() { return nameBoolean; } + + public void setNameBoolean(Boolean nameBoolean) { this.nameBoolean = nameBoolean; } + public XmlItem nameArray(List nameArray) { + this.nameArray = nameArray; return this; } @@ -343,15 +380,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNameArray() { return nameArray; } + + public void setNameArray(List nameArray) { this.nameArray = nameArray; } + public XmlItem nameWrappedArray(List nameWrappedArray) { + this.nameWrappedArray = nameWrappedArray; return this; } @@ -370,15 +414,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNameWrappedArray() { return nameWrappedArray; } + + public void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } + public XmlItem prefixString(String prefixString) { + this.prefixString = prefixString; return this; } @@ -389,15 +440,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPrefixString() { return prefixString; } + + public void setPrefixString(String prefixString) { this.prefixString = prefixString; } + public XmlItem prefixNumber(BigDecimal prefixNumber) { + this.prefixNumber = prefixNumber; return this; } @@ -408,15 +466,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getPrefixNumber() { return prefixNumber; } + + public void setPrefixNumber(BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } + public XmlItem prefixInteger(Integer prefixInteger) { + this.prefixInteger = prefixInteger; return this; } @@ -427,15 +492,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getPrefixInteger() { return prefixInteger; } + + public void setPrefixInteger(Integer prefixInteger) { this.prefixInteger = prefixInteger; } + public XmlItem prefixBoolean(Boolean prefixBoolean) { + this.prefixBoolean = prefixBoolean; return this; } @@ -446,15 +518,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getPrefixBoolean() { return prefixBoolean; } + + public void setPrefixBoolean(Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } + public XmlItem prefixArray(List prefixArray) { + this.prefixArray = prefixArray; return this; } @@ -473,15 +552,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixArray() { return prefixArray; } + + public void setPrefixArray(List prefixArray) { this.prefixArray = prefixArray; } + public XmlItem prefixWrappedArray(List prefixWrappedArray) { + this.prefixWrappedArray = prefixWrappedArray; return this; } @@ -500,15 +586,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixWrappedArray() { return prefixWrappedArray; } + + public void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } + public XmlItem namespaceString(String namespaceString) { + this.namespaceString = namespaceString; return this; } @@ -519,15 +612,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getNamespaceString() { return namespaceString; } + + public void setNamespaceString(String namespaceString) { this.namespaceString = namespaceString; } + public XmlItem namespaceNumber(BigDecimal namespaceNumber) { + this.namespaceNumber = namespaceNumber; return this; } @@ -538,15 +638,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getNamespaceNumber() { return namespaceNumber; } + + public void setNamespaceNumber(BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } + public XmlItem namespaceInteger(Integer namespaceInteger) { + this.namespaceInteger = namespaceInteger; return this; } @@ -557,15 +664,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getNamespaceInteger() { return namespaceInteger; } + + public void setNamespaceInteger(Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } + public XmlItem namespaceBoolean(Boolean namespaceBoolean) { + this.namespaceBoolean = namespaceBoolean; return this; } @@ -576,15 +690,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getNamespaceBoolean() { return namespaceBoolean; } + + public void setNamespaceBoolean(Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } + public XmlItem namespaceArray(List namespaceArray) { + this.namespaceArray = namespaceArray; return this; } @@ -603,15 +724,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNamespaceArray() { return namespaceArray; } + + public void setNamespaceArray(List namespaceArray) { this.namespaceArray = namespaceArray; } + public XmlItem namespaceWrappedArray(List namespaceWrappedArray) { + this.namespaceWrappedArray = namespaceWrappedArray; return this; } @@ -630,15 +758,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNamespaceWrappedArray() { return namespaceWrappedArray; } + + public void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } + public XmlItem prefixNsString(String prefixNsString) { + this.prefixNsString = prefixNsString; return this; } @@ -649,15 +784,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPrefixNsString() { return prefixNsString; } + + public void setPrefixNsString(String prefixNsString) { this.prefixNsString = prefixNsString; } + public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { + this.prefixNsNumber = prefixNsNumber; return this; } @@ -668,15 +810,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getPrefixNsNumber() { return prefixNsNumber; } + + public void setPrefixNsNumber(BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } + public XmlItem prefixNsInteger(Integer prefixNsInteger) { + this.prefixNsInteger = prefixNsInteger; return this; } @@ -687,15 +836,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getPrefixNsInteger() { return prefixNsInteger; } + + public void setPrefixNsInteger(Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } + public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { + this.prefixNsBoolean = prefixNsBoolean; return this; } @@ -706,15 +862,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getPrefixNsBoolean() { return prefixNsBoolean; } + + public void setPrefixNsBoolean(Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } + public XmlItem prefixNsArray(List prefixNsArray) { + this.prefixNsArray = prefixNsArray; return this; } @@ -733,15 +896,22 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixNsArray() { return prefixNsArray; } + + public void setPrefixNsArray(List prefixNsArray) { this.prefixNsArray = prefixNsArray; } + public XmlItem prefixNsWrappedArray(List prefixNsWrappedArray) { + this.prefixNsWrappedArray = prefixNsWrappedArray; return this; } @@ -760,10 +930,15 @@ public class XmlItem { **/ @javax.annotation.Nullable @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getPrefixNsWrappedArray() { return prefixNsWrappedArray; } + + public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } diff --git a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Pet.java b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Pet.java index 20e109b15ca..07001235868 100644 --- a/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Pet.java +++ b/samples/client/petstore/spring-cloud-async/src/main/java/org/openapitools/model/Pet.java @@ -24,7 +24,7 @@ public class Pet { private Long id; @JsonProperty("category") - private Category category = null; + private Category category; @JsonProperty("name") private String name; diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Pet.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Pet.java index 20e109b15ca..07001235868 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Pet.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Pet.java @@ -24,7 +24,7 @@ public class Pet { private Long id; @JsonProperty("category") - private Category category = null; + private Category category; @JsonProperty("name") private String name; diff --git a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Pet.java b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Pet.java index 20e109b15ca..07001235868 100644 --- a/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Pet.java +++ b/samples/client/petstore/spring-stubs/src/main/java/org/openapitools/model/Pet.java @@ -24,7 +24,7 @@ public class Pet { private Long id; @JsonProperty("category") - private Category category = null; + private Category category; @JsonProperty("name") private String name; diff --git a/samples/server/petstore/java-msf4j/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/java-msf4j/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java index 1c30280471c..96555d52a2c 100644 --- a/samples/server/petstore/java-msf4j/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/java-msf4j/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -40,13 +40,13 @@ public class AdditionalPropertiesClass { private Map> mapMapAnytype = null; @JsonProperty("anytype_1") - private Object anytype1 = null; + private Object anytype1; @JsonProperty("anytype_2") - private Object anytype2 = null; + private Object anytype2; @JsonProperty("anytype_3") - private Object anytype3 = null; + private Object anytype3; public AdditionalPropertiesClass mapString(Map mapString) { this.mapString = mapString; diff --git a/samples/server/petstore/java-msf4j/src/gen/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/java-msf4j/src/gen/java/org/openapitools/model/FileSchemaTestClass.java index 4e05197cd03..c5c14ad580d 100644 --- a/samples/server/petstore/java-msf4j/src/gen/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/java-msf4j/src/gen/java/org/openapitools/model/FileSchemaTestClass.java @@ -14,7 +14,7 @@ import java.util.List; public class FileSchemaTestClass { @JsonProperty("file") - private java.io.File file = null; + private java.io.File file; @JsonProperty("files") private List files = null; diff --git a/samples/server/petstore/java-msf4j/src/gen/java/org/openapitools/model/Pet.java b/samples/server/petstore/java-msf4j/src/gen/java/org/openapitools/model/Pet.java index 63975507849..4a45c8ddac2 100644 --- a/samples/server/petstore/java-msf4j/src/gen/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/java-msf4j/src/gen/java/org/openapitools/model/Pet.java @@ -20,7 +20,7 @@ public class Pet { private Long id; @JsonProperty("category") - private Category category = null; + private Category category; @JsonProperty("name") private String name; diff --git a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/org/openapitools/model/Pet.java b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/org/openapitools/model/Pet.java index 66e33710952..6cbeaf81952 100644 --- a/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/jaxrs-cxf-annotated-base-path/src/gen/java/org/openapitools/model/Pet.java @@ -29,7 +29,7 @@ public class Pet { @ApiModelProperty(value = "") @Valid - private Category category = null; + private Category category; @ApiModelProperty(example = "doggie", required = true, value = "") private String name; diff --git a/samples/server/petstore/jaxrs-cxf-cdi/src/gen/java/org/openapitools/model/Pet.java b/samples/server/petstore/jaxrs-cxf-cdi/src/gen/java/org/openapitools/model/Pet.java index 36bd085083e..d193b8aebb0 100644 --- a/samples/server/petstore/jaxrs-cxf-cdi/src/gen/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/jaxrs-cxf-cdi/src/gen/java/org/openapitools/model/Pet.java @@ -24,7 +24,7 @@ public class Pet { private Long id; - private Category category = null; + private Category category; private String name; diff --git a/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/org/openapitools/model/Pet.java b/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/org/openapitools/model/Pet.java index 66e33710952..6cbeaf81952 100644 --- a/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/jaxrs-cxf-non-spring-app/src/gen/java/org/openapitools/model/Pet.java @@ -29,7 +29,7 @@ public class Pet { @ApiModelProperty(value = "") @Valid - private Category category = null; + private Category category; @ApiModelProperty(example = "doggie", required = true, value = "") private String name; diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java index 55d13056399..964f668d2c3 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -50,15 +50,15 @@ public class AdditionalPropertiesClass { @ApiModelProperty(value = "") @Valid - private Object anytype1 = null; + private Object anytype1; @ApiModelProperty(value = "") @Valid - private Object anytype2 = null; + private Object anytype2; @ApiModelProperty(value = "") @Valid - private Object anytype3 = null; + private Object anytype3; /** * Get mapString * @return mapString diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/FileSchemaTestClass.java index 0b513ba821a..50f7d73ed0d 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/FileSchemaTestClass.java @@ -19,7 +19,7 @@ public class FileSchemaTestClass { @ApiModelProperty(value = "") @Valid - private java.io.File file = null; + private java.io.File file; @ApiModelProperty(value = "") @Valid diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/Pet.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/Pet.java index ca8f0a370b3..3042dd05648 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/Pet.java @@ -24,7 +24,7 @@ public class Pet { @ApiModelProperty(value = "") @Valid - private Category category = null; + private Category category; @ApiModelProperty(example = "doggie", required = true, value = "") private String name; diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java index f53002ba085..be4e3b646dd 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -65,15 +65,15 @@ public class AdditionalPropertiesClass implements Serializable { public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1"; @JsonProperty(JSON_PROPERTY_ANYTYPE1) - private Object anytype1 = null; + private Object anytype1; public static final String JSON_PROPERTY_ANYTYPE2 = "anytype_2"; @JsonProperty(JSON_PROPERTY_ANYTYPE2) - private Object anytype2 = null; + private Object anytype2; public static final String JSON_PROPERTY_ANYTYPE3 = "anytype_3"; @JsonProperty(JSON_PROPERTY_ANYTYPE3) - private Object anytype3 = null; + private Object anytype3; public AdditionalPropertiesClass mapString(Map mapString) { this.mapString = mapString; diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/FileSchemaTestClass.java index 3a085b53df3..c06f62c37c3 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/FileSchemaTestClass.java @@ -31,7 +31,7 @@ import javax.validation.Valid; public class FileSchemaTestClass implements Serializable { public static final String JSON_PROPERTY_FILE = "file"; @JsonProperty(JSON_PROPERTY_FILE) - private java.io.File file = null; + private java.io.File file; public static final String JSON_PROPERTY_FILES = "files"; @JsonProperty(JSON_PROPERTY_FILES) diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Pet.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Pet.java index d8bbd3edc3a..4db503ed1b5 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Pet.java @@ -38,7 +38,7 @@ public class Pet implements Serializable { public static final String JSON_PROPERTY_CATEGORY = "category"; @JsonProperty(JSON_PROPERTY_CATEGORY) - private Category category = null; + private Category category; public static final String JSON_PROPERTY_NAME = "name"; @JsonProperty(JSON_PROPERTY_NAME) diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/FileSchemaTestClass.java index 2c86b3fda55..eeebb856af5 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/FileSchemaTestClass.java @@ -30,7 +30,7 @@ import javax.validation.Valid; public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; @JsonProperty(JSON_PROPERTY_FILE) - private java.io.File file = null; + private java.io.File file; public static final String JSON_PROPERTY_FILES = "files"; @JsonProperty(JSON_PROPERTY_FILES) diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/InlineResponseDefault.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/InlineResponseDefault.java index d1a5d14dace..3546f74bf0b 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/InlineResponseDefault.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/InlineResponseDefault.java @@ -29,7 +29,7 @@ import javax.validation.Valid; public class InlineResponseDefault { public static final String JSON_PROPERTY_STRING = "string"; @JsonProperty(JSON_PROPERTY_STRING) - private Foo string = null; + private Foo string; public InlineResponseDefault string(Foo string) { this.string = string; diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Pet.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Pet.java index 086c625aa3b..fedcec583fa 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Pet.java @@ -37,7 +37,7 @@ public class Pet { public static final String JSON_PROPERTY_CATEGORY = "category"; @JsonProperty(JSON_PROPERTY_CATEGORY) - private Category category = null; + private Category category; public static final String JSON_PROPERTY_NAME = "name"; @JsonProperty(JSON_PROPERTY_NAME) diff --git a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/model/Pet.java b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/model/Pet.java index 1c5e279af80..f2cc2bd04df 100644 --- a/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/jaxrs-resteasy/default/src/gen/java/org/openapitools/model/Pet.java @@ -18,7 +18,7 @@ import io.swagger.annotations.*; public class Pet { private Long id; - private Category category = null; + private Category category; private String name; private List photoUrls = new ArrayList(); private List tags = new ArrayList(); diff --git a/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/org/openapitools/model/Pet.java b/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/org/openapitools/model/Pet.java index e232871536e..e83dd5c7d8c 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/jaxrs-resteasy/eap-java8/src/gen/java/org/openapitools/model/Pet.java @@ -20,7 +20,7 @@ public class Pet { private Long id; - private Category category = null; + private Category category; private String name; diff --git a/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/org/openapitools/model/Pet.java b/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/org/openapitools/model/Pet.java index c0281421862..81b8a7ff5a5 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/jaxrs-resteasy/eap-joda/src/gen/java/org/openapitools/model/Pet.java @@ -20,7 +20,7 @@ public class Pet { private Long id; - private Category category = null; + private Category category; private String name; diff --git a/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/org/openapitools/model/Pet.java b/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/org/openapitools/model/Pet.java index c0281421862..81b8a7ff5a5 100644 --- a/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/jaxrs-resteasy/eap/src/gen/java/org/openapitools/model/Pet.java @@ -20,7 +20,7 @@ public class Pet { private Long id; - private Category category = null; + private Category category; private String name; diff --git a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/model/Pet.java b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/model/Pet.java index 1c5e279af80..f2cc2bd04df 100644 --- a/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/org/openapitools/model/Pet.java @@ -18,7 +18,7 @@ import io.swagger.annotations.*; public class Pet { private Long id; - private Category category = null; + private Category category; private String name; private List photoUrls = new ArrayList(); private List tags = new ArrayList(); diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java index 06ef5eeec8f..c70f3d5171d 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -28,9 +28,9 @@ public class AdditionalPropertiesClass implements Serializable { private @Valid Map> mapArrayAnytype = new HashMap>(); private @Valid Map> mapMapString = new HashMap>(); private @Valid Map> mapMapAnytype = new HashMap>(); - private @Valid Object anytype1 = null; - private @Valid Object anytype2 = null; - private @Valid Object anytype3 = null; + private @Valid Object anytype1; + private @Valid Object anytype2; + private @Valid Object anytype3; /** **/ diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/FileSchemaTestClass.java index f40b18f1cbd..e97c11e0df2 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/FileSchemaTestClass.java @@ -18,7 +18,7 @@ import com.fasterxml.jackson.annotation.JsonValue; public class FileSchemaTestClass implements Serializable { - private @Valid java.io.File file = null; + private @Valid java.io.File file; private @Valid List files = new ArrayList(); /** diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Pet.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Pet.java index 5e22807ad68..6718025e692 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Pet.java @@ -21,7 +21,7 @@ import com.fasterxml.jackson.annotation.JsonValue; public class Pet implements Serializable { private @Valid Long id; - private @Valid Category category = null; + private @Valid Category category; private @Valid String name; private @Valid List photoUrls = new ArrayList(); private @Valid List tags = new ArrayList(); diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java index 06ef5eeec8f..c70f3d5171d 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -28,9 +28,9 @@ public class AdditionalPropertiesClass implements Serializable { private @Valid Map> mapArrayAnytype = new HashMap>(); private @Valid Map> mapMapString = new HashMap>(); private @Valid Map> mapMapAnytype = new HashMap>(); - private @Valid Object anytype1 = null; - private @Valid Object anytype2 = null; - private @Valid Object anytype3 = null; + private @Valid Object anytype1; + private @Valid Object anytype2; + private @Valid Object anytype3; /** **/ diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/FileSchemaTestClass.java index f40b18f1cbd..e97c11e0df2 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/FileSchemaTestClass.java @@ -18,7 +18,7 @@ import com.fasterxml.jackson.annotation.JsonValue; public class FileSchemaTestClass implements Serializable { - private @Valid java.io.File file = null; + private @Valid java.io.File file; private @Valid List files = new ArrayList(); /** diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Pet.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Pet.java index 5e22807ad68..6718025e692 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Pet.java @@ -21,7 +21,7 @@ import com.fasterxml.jackson.annotation.JsonValue; public class Pet implements Serializable { private @Valid Long id; - private @Valid Category category = null; + private @Valid Category category; private @Valid String name; private @Valid List photoUrls = new ArrayList(); private @Valid List tags = new ArrayList(); diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java index 76cb99844c9..50bf52fbe9f 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -64,15 +64,15 @@ public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1"; @JsonProperty(JSON_PROPERTY_ANYTYPE1) - private Object anytype1 = null; + private Object anytype1; public static final String JSON_PROPERTY_ANYTYPE2 = "anytype_2"; @JsonProperty(JSON_PROPERTY_ANYTYPE2) - private Object anytype2 = null; + private Object anytype2; public static final String JSON_PROPERTY_ANYTYPE3 = "anytype_3"; @JsonProperty(JSON_PROPERTY_ANYTYPE3) - private Object anytype3 = null; + private Object anytype3; public AdditionalPropertiesClass mapString(Map mapString) { this.mapString = mapString; diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/FileSchemaTestClass.java index 2c86b3fda55..eeebb856af5 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/FileSchemaTestClass.java @@ -30,7 +30,7 @@ import javax.validation.Valid; public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; @JsonProperty(JSON_PROPERTY_FILE) - private java.io.File file = null; + private java.io.File file; public static final String JSON_PROPERTY_FILES = "files"; @JsonProperty(JSON_PROPERTY_FILES) diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/Pet.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/Pet.java index 086c625aa3b..fedcec583fa 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/Pet.java @@ -37,7 +37,7 @@ public class Pet { public static final String JSON_PROPERTY_CATEGORY = "category"; @JsonProperty(JSON_PROPERTY_CATEGORY) - private Category category = null; + private Category category; public static final String JSON_PROPERTY_NAME = "name"; @JsonProperty(JSON_PROPERTY_NAME) diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java index 76cb99844c9..50bf52fbe9f 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -64,15 +64,15 @@ public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1"; @JsonProperty(JSON_PROPERTY_ANYTYPE1) - private Object anytype1 = null; + private Object anytype1; public static final String JSON_PROPERTY_ANYTYPE2 = "anytype_2"; @JsonProperty(JSON_PROPERTY_ANYTYPE2) - private Object anytype2 = null; + private Object anytype2; public static final String JSON_PROPERTY_ANYTYPE3 = "anytype_3"; @JsonProperty(JSON_PROPERTY_ANYTYPE3) - private Object anytype3 = null; + private Object anytype3; public AdditionalPropertiesClass mapString(Map mapString) { this.mapString = mapString; diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/FileSchemaTestClass.java index 2c86b3fda55..eeebb856af5 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/FileSchemaTestClass.java @@ -30,7 +30,7 @@ import javax.validation.Valid; public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; @JsonProperty(JSON_PROPERTY_FILE) - private java.io.File file = null; + private java.io.File file; public static final String JSON_PROPERTY_FILES = "files"; @JsonProperty(JSON_PROPERTY_FILES) diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/Pet.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/Pet.java index 086c625aa3b..fedcec583fa 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/Pet.java @@ -37,7 +37,7 @@ public class Pet { public static final String JSON_PROPERTY_CATEGORY = "category"; @JsonProperty(JSON_PROPERTY_CATEGORY) - private Category category = null; + private Category category; public static final String JSON_PROPERTY_NAME = "name"; @JsonProperty(JSON_PROPERTY_NAME) diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java index 76cb99844c9..50bf52fbe9f 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -64,15 +64,15 @@ public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1"; @JsonProperty(JSON_PROPERTY_ANYTYPE1) - private Object anytype1 = null; + private Object anytype1; public static final String JSON_PROPERTY_ANYTYPE2 = "anytype_2"; @JsonProperty(JSON_PROPERTY_ANYTYPE2) - private Object anytype2 = null; + private Object anytype2; public static final String JSON_PROPERTY_ANYTYPE3 = "anytype_3"; @JsonProperty(JSON_PROPERTY_ANYTYPE3) - private Object anytype3 = null; + private Object anytype3; public AdditionalPropertiesClass mapString(Map mapString) { this.mapString = mapString; diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/FileSchemaTestClass.java index 2c86b3fda55..eeebb856af5 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/FileSchemaTestClass.java @@ -30,7 +30,7 @@ import javax.validation.Valid; public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; @JsonProperty(JSON_PROPERTY_FILE) - private java.io.File file = null; + private java.io.File file; public static final String JSON_PROPERTY_FILES = "files"; @JsonProperty(JSON_PROPERTY_FILES) diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Pet.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Pet.java index 086c625aa3b..fedcec583fa 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Pet.java @@ -37,7 +37,7 @@ public class Pet { public static final String JSON_PROPERTY_CATEGORY = "category"; @JsonProperty(JSON_PROPERTY_CATEGORY) - private Category category = null; + private Category category; public static final String JSON_PROPERTY_NAME = "name"; @JsonProperty(JSON_PROPERTY_NAME) diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java index 76cb99844c9..50bf52fbe9f 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -64,15 +64,15 @@ public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1"; @JsonProperty(JSON_PROPERTY_ANYTYPE1) - private Object anytype1 = null; + private Object anytype1; public static final String JSON_PROPERTY_ANYTYPE2 = "anytype_2"; @JsonProperty(JSON_PROPERTY_ANYTYPE2) - private Object anytype2 = null; + private Object anytype2; public static final String JSON_PROPERTY_ANYTYPE3 = "anytype_3"; @JsonProperty(JSON_PROPERTY_ANYTYPE3) - private Object anytype3 = null; + private Object anytype3; public AdditionalPropertiesClass mapString(Map mapString) { this.mapString = mapString; diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/FileSchemaTestClass.java index 2c86b3fda55..eeebb856af5 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/FileSchemaTestClass.java @@ -30,7 +30,7 @@ import javax.validation.Valid; public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; @JsonProperty(JSON_PROPERTY_FILE) - private java.io.File file = null; + private java.io.File file; public static final String JSON_PROPERTY_FILES = "files"; @JsonProperty(JSON_PROPERTY_FILES) diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Pet.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Pet.java index 086c625aa3b..fedcec583fa 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Pet.java @@ -37,7 +37,7 @@ public class Pet { public static final String JSON_PROPERTY_CATEGORY = "category"; @JsonProperty(JSON_PROPERTY_CATEGORY) - private Category category = null; + private Category category; public static final String JSON_PROPERTY_NAME = "name"; @JsonProperty(JSON_PROPERTY_NAME) diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index f250cd5d254..b7f58b90fa6 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -51,13 +51,13 @@ public class AdditionalPropertiesClass { private Map> mapMapAnytype = null; @JsonProperty("anytype_1") - private Object anytype1 = null; + private Object anytype1; @JsonProperty("anytype_2") - private Object anytype2 = null; + private Object anytype2; @JsonProperty("anytype_3") - private Object anytype3 = null; + private Object anytype3; public AdditionalPropertiesClass mapString(Map mapString) { this.mapString = mapString; diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/FileSchemaTestClass.java index cb144d259ae..2e88258ce75 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -17,7 +17,7 @@ import javax.validation.constraints.*; public class FileSchemaTestClass { @JsonProperty("file") - private java.io.File file = null; + private java.io.File file; @JsonProperty("files") @Valid diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Pet.java index 640c157bbdb..5bea5f27a19 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/Pet.java @@ -23,7 +23,7 @@ public class Pet { private Long id; @JsonProperty("category") - private Category category = null; + private Category category; @JsonProperty("name") private String name; diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index f250cd5d254..b7f58b90fa6 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -51,13 +51,13 @@ public class AdditionalPropertiesClass { private Map> mapMapAnytype = null; @JsonProperty("anytype_1") - private Object anytype1 = null; + private Object anytype1; @JsonProperty("anytype_2") - private Object anytype2 = null; + private Object anytype2; @JsonProperty("anytype_3") - private Object anytype3 = null; + private Object anytype3; public AdditionalPropertiesClass mapString(Map mapString) { this.mapString = mapString; diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/FileSchemaTestClass.java index cb144d259ae..2e88258ce75 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -17,7 +17,7 @@ import javax.validation.constraints.*; public class FileSchemaTestClass { @JsonProperty("file") - private java.io.File file = null; + private java.io.File file; @JsonProperty("files") @Valid diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Pet.java index 640c157bbdb..5bea5f27a19 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/Pet.java @@ -23,7 +23,7 @@ public class Pet { private Long id; @JsonProperty("category") - private Category category = null; + private Category category; @JsonProperty("name") private String name; diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index d3354fa81c8..b9d1c52f961 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -51,13 +51,13 @@ public class AdditionalPropertiesClass { private Map> mapMapAnytype = null; @JsonProperty("anytype_1") - private Object anytype1 = null; + private Object anytype1; @JsonProperty("anytype_2") - private Object anytype2 = null; + private Object anytype2; @JsonProperty("anytype_3") - private Object anytype3 = null; + private Object anytype3; public AdditionalPropertiesClass mapString(Map mapString) { this.mapString = mapString; diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/FileSchemaTestClass.java index edc5d19f57e..ab7b747bf2f 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -17,7 +17,7 @@ import javax.validation.constraints.*; public class FileSchemaTestClass { @JsonProperty("file") - private java.io.File file = null; + private java.io.File file; @JsonProperty("files") @Valid diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Pet.java index c7478568ba5..1fab3a2e123 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/Pet.java @@ -23,7 +23,7 @@ public class Pet { private Long id; @JsonProperty("category") - private Category category = null; + private Category category; @JsonProperty("name") private String name; diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index d3354fa81c8..b9d1c52f961 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -51,13 +51,13 @@ public class AdditionalPropertiesClass { private Map> mapMapAnytype = null; @JsonProperty("anytype_1") - private Object anytype1 = null; + private Object anytype1; @JsonProperty("anytype_2") - private Object anytype2 = null; + private Object anytype2; @JsonProperty("anytype_3") - private Object anytype3 = null; + private Object anytype3; public AdditionalPropertiesClass mapString(Map mapString) { this.mapString = mapString; diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/FileSchemaTestClass.java index edc5d19f57e..ab7b747bf2f 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -17,7 +17,7 @@ import javax.validation.constraints.*; public class FileSchemaTestClass { @JsonProperty("file") - private java.io.File file = null; + private java.io.File file; @JsonProperty("files") @Valid diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Pet.java index c7478568ba5..1fab3a2e123 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/Pet.java @@ -23,7 +23,7 @@ public class Pet { private Long id; @JsonProperty("category") - private Category category = null; + private Category category; @JsonProperty("name") private String name; diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index f250cd5d254..b7f58b90fa6 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -51,13 +51,13 @@ public class AdditionalPropertiesClass { private Map> mapMapAnytype = null; @JsonProperty("anytype_1") - private Object anytype1 = null; + private Object anytype1; @JsonProperty("anytype_2") - private Object anytype2 = null; + private Object anytype2; @JsonProperty("anytype_3") - private Object anytype3 = null; + private Object anytype3; public AdditionalPropertiesClass mapString(Map mapString) { this.mapString = mapString; diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/FileSchemaTestClass.java index cb144d259ae..2e88258ce75 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -17,7 +17,7 @@ import javax.validation.constraints.*; public class FileSchemaTestClass { @JsonProperty("file") - private java.io.File file = null; + private java.io.File file; @JsonProperty("files") @Valid diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Pet.java index 640c157bbdb..5bea5f27a19 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/Pet.java @@ -23,7 +23,7 @@ public class Pet { private Long id; @JsonProperty("category") - private Category category = null; + private Category category; @JsonProperty("name") private String name; diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index d3354fa81c8..b9d1c52f961 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -51,13 +51,13 @@ public class AdditionalPropertiesClass { private Map> mapMapAnytype = null; @JsonProperty("anytype_1") - private Object anytype1 = null; + private Object anytype1; @JsonProperty("anytype_2") - private Object anytype2 = null; + private Object anytype2; @JsonProperty("anytype_3") - private Object anytype3 = null; + private Object anytype3; public AdditionalPropertiesClass mapString(Map mapString) { this.mapString = mapString; diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/FileSchemaTestClass.java index edc5d19f57e..ab7b747bf2f 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -17,7 +17,7 @@ import javax.validation.constraints.*; public class FileSchemaTestClass { @JsonProperty("file") - private java.io.File file = null; + private java.io.File file; @JsonProperty("files") @Valid diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Pet.java index c7478568ba5..1fab3a2e123 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/Pet.java @@ -23,7 +23,7 @@ public class Pet { private Long id; @JsonProperty("category") - private Category category = null; + private Category category; @JsonProperty("name") private String name; diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index f250cd5d254..b7f58b90fa6 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -51,13 +51,13 @@ public class AdditionalPropertiesClass { private Map> mapMapAnytype = null; @JsonProperty("anytype_1") - private Object anytype1 = null; + private Object anytype1; @JsonProperty("anytype_2") - private Object anytype2 = null; + private Object anytype2; @JsonProperty("anytype_3") - private Object anytype3 = null; + private Object anytype3; public AdditionalPropertiesClass mapString(Map mapString) { this.mapString = mapString; diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/FileSchemaTestClass.java index cb144d259ae..2e88258ce75 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -17,7 +17,7 @@ import javax.validation.constraints.*; public class FileSchemaTestClass { @JsonProperty("file") - private java.io.File file = null; + private java.io.File file; @JsonProperty("files") @Valid diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Pet.java index 640c157bbdb..5bea5f27a19 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/Pet.java @@ -23,7 +23,7 @@ public class Pet { private Long id; @JsonProperty("category") - private Category category = null; + private Category category; @JsonProperty("name") private String name; diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index f250cd5d254..b7f58b90fa6 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -51,13 +51,13 @@ public class AdditionalPropertiesClass { private Map> mapMapAnytype = null; @JsonProperty("anytype_1") - private Object anytype1 = null; + private Object anytype1; @JsonProperty("anytype_2") - private Object anytype2 = null; + private Object anytype2; @JsonProperty("anytype_3") - private Object anytype3 = null; + private Object anytype3; public AdditionalPropertiesClass mapString(Map mapString) { this.mapString = mapString; diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/FileSchemaTestClass.java index cb144d259ae..2e88258ce75 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -17,7 +17,7 @@ import javax.validation.constraints.*; public class FileSchemaTestClass { @JsonProperty("file") - private java.io.File file = null; + private java.io.File file; @JsonProperty("files") @Valid diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Pet.java index 640c157bbdb..5bea5f27a19 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/Pet.java @@ -23,7 +23,7 @@ public class Pet { private Long id; @JsonProperty("category") - private Category category = null; + private Category category; @JsonProperty("name") private String name; diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index f250cd5d254..b7f58b90fa6 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -51,13 +51,13 @@ public class AdditionalPropertiesClass { private Map> mapMapAnytype = null; @JsonProperty("anytype_1") - private Object anytype1 = null; + private Object anytype1; @JsonProperty("anytype_2") - private Object anytype2 = null; + private Object anytype2; @JsonProperty("anytype_3") - private Object anytype3 = null; + private Object anytype3; public AdditionalPropertiesClass mapString(Map mapString) { this.mapString = mapString; diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/FileSchemaTestClass.java index cb144d259ae..2e88258ce75 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -17,7 +17,7 @@ import javax.validation.constraints.*; public class FileSchemaTestClass { @JsonProperty("file") - private java.io.File file = null; + private java.io.File file; @JsonProperty("files") @Valid diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Pet.java index 640c157bbdb..5bea5f27a19 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Pet.java @@ -23,7 +23,7 @@ public class Pet { private Long id; @JsonProperty("category") - private Category category = null; + private Category category; @JsonProperty("name") private String name; diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesClass.java index 844aa0f0e41..c74b4c4dc8d 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/AdditionalPropertiesClass.java @@ -51,13 +51,13 @@ public class AdditionalPropertiesClass { private Map> mapMapAnytype = null; @JsonProperty("anytype_1") - private Object anytype1 = null; + private Object anytype1; @JsonProperty("anytype_2") - private Object anytype2 = null; + private Object anytype2; @JsonProperty("anytype_3") - private Object anytype3 = null; + private Object anytype3; public AdditionalPropertiesClass mapString(Map mapString) { this.mapString = mapString; diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/FileSchemaTestClass.java index 9940cdc7798..a3eb0b9febc 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/FileSchemaTestClass.java @@ -17,7 +17,7 @@ import javax.validation.constraints.*; public class FileSchemaTestClass { @JsonProperty("file") - private java.io.File file = null; + private java.io.File file; @JsonProperty("files") @Valid diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Pet.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Pet.java index b08639c80d4..78398cd43a9 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Pet.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/Pet.java @@ -23,7 +23,7 @@ public class Pet { private Long id; @JsonProperty("category") - private Category category = null; + private Category category; @JsonProperty("name") private String name; diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index f250cd5d254..b7f58b90fa6 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -51,13 +51,13 @@ public class AdditionalPropertiesClass { private Map> mapMapAnytype = null; @JsonProperty("anytype_1") - private Object anytype1 = null; + private Object anytype1; @JsonProperty("anytype_2") - private Object anytype2 = null; + private Object anytype2; @JsonProperty("anytype_3") - private Object anytype3 = null; + private Object anytype3; public AdditionalPropertiesClass mapString(Map mapString) { this.mapString = mapString; diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/FileSchemaTestClass.java index cb144d259ae..2e88258ce75 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -17,7 +17,7 @@ import javax.validation.constraints.*; public class FileSchemaTestClass { @JsonProperty("file") - private java.io.File file = null; + private java.io.File file; @JsonProperty("files") @Valid diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Pet.java index 640c157bbdb..5bea5f27a19 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/Pet.java @@ -23,7 +23,7 @@ public class Pet { private Long id; @JsonProperty("category") - private Category category = null; + private Category category; @JsonProperty("name") private String name;