From 18c70159d8d46cf23f9de37cb90939c1db9ca308 Mon Sep 17 00:00:00 2001 From: CREKD <51305570+CREKD127@users.noreply.github.com> Date: Mon, 22 Apr 2024 15:23:09 +0900 Subject: [PATCH 1/5] Update beanValidation.mustache --- .../src/main/resources/JavaJaxRS/beanValidation.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/openapi-generator/src/main/resources/JavaJaxRS/beanValidation.mustache b/modules/openapi-generator/src/main/resources/JavaJaxRS/beanValidation.mustache index 29d193fe3374..04e1c913c209 100644 --- a/modules/openapi-generator/src/main/resources/JavaJaxRS/beanValidation.mustache +++ b/modules/openapi-generator/src/main/resources/JavaJaxRS/beanValidation.mustache @@ -1 +1 @@ -{{#required}}@NotNull {{/required}}{{^isPrimitiveType}}{{^isDate}}{{^isDateTime}}{{^isString}}{{^isFile}}@Valid {{/isFile}}{{/isString}}{{/isDateTime}}{{/isDate}}{{/isPrimitiveType}}{{>beanValidationCore}} \ No newline at end of file +{{#required}}@NotNull {{/required}}{{#isContainer}}{{^isPrimitiveType}}{{^isDate}}{{^isDateTime}}{{^isString}}{{^isFile}}{{^isEnum}}@Valid {{/isEnum}}{{/isFile}}{{/isString}}{{/isDateTime}}{{/isDate}}{{/isPrimitiveType}}{{/isContainer}}{{>beanValidationCore}} From 73ba918d36e55a440da6435392729c1997266863 Mon Sep 17 00:00:00 2001 From: CREKD127 Date: Mon, 22 Apr 2024 16:59:22 +0900 Subject: [PATCH 2/5] step 3 --- docs/generators/fsharp-functions.md | 2 +- docs/generators/fsharp-giraffe-server.md | 2 +- docs/generators/java-inflector.md | 2 +- docs/generators/jaxrs-cxf-client.md | 2 +- docs/generators/swift5.md | 4 +- .../info.md | 1 + .../php-nextgen/.openapi-generator/FILES | 2 +- .../echo_api/php-nextgen/phpunit.xml.dist | 4 +- .../echo_api/r/.openapi-generator/FILES | 2 +- .../R-httr2-wrapper/.openapi-generator/FILES | 2 +- .../petstore/R-httr2/.openapi-generator/FILES | 2 +- .../petstore/R/.openapi-generator/FILES | 2 +- .../.openapi-generator/FILES | 2 +- .../OpenAPIClient-php/phpunit.xml.dist | 4 +- .../.openapi-generator/FILES | 2 +- .../php/psr-18/.openapi-generator/FILES | 2 +- .../Org.OpenAPITools/Controllers/PetApi.cs | 12 ++-- .../Org.OpenAPITools/Controllers/StoreApi.cs | 4 +- .../Org.OpenAPITools/Controllers/UserApi.cs | 2 +- .../Org.OpenAPITools/Controllers/PetApi.cs | 12 ++-- .../Org.OpenAPITools/Controllers/StoreApi.cs | 4 +- .../Org.OpenAPITools/Controllers/UserApi.cs | 2 +- .../Org.OpenAPITools/Controllers/PetApi.cs | 12 ++-- .../Org.OpenAPITools/Controllers/StoreApi.cs | 4 +- .../Org.OpenAPITools/Controllers/UserApi.cs | 2 +- .../Org.OpenAPITools/Controllers/PetApi.cs | 12 ++-- .../Org.OpenAPITools/Controllers/StoreApi.cs | 4 +- .../Org.OpenAPITools/Controllers/UserApi.cs | 2 +- .../Org.OpenAPITools/Controllers/PetApi.cs | 12 ++-- .../Org.OpenAPITools/Controllers/StoreApi.cs | 4 +- .../Org.OpenAPITools/Controllers/UserApi.cs | 2 +- .../Org.OpenAPITools/Controllers/PetApi.cs | 12 ++-- .../Org.OpenAPITools/Controllers/StoreApi.cs | 4 +- .../Org.OpenAPITools/Controllers/UserApi.cs | 2 +- .../Org.OpenAPITools/Controllers/PetApi.cs | 12 ++-- .../Org.OpenAPITools/Controllers/StoreApi.cs | 4 +- .../Org.OpenAPITools/Controllers/UserApi.cs | 2 +- .../Org.OpenAPITools/Controllers/PetApi.cs | 12 ++-- .../Org.OpenAPITools/Controllers/StoreApi.cs | 4 +- .../Org.OpenAPITools/Controllers/UserApi.cs | 2 +- .../Org.OpenAPITools/Controllers/PetApi.cs | 8 +-- .../Org.OpenAPITools/Controllers/StoreApi.cs | 4 +- .../Org.OpenAPITools/Controllers/UserApi.cs | 2 +- .../org/openapitools/api/AnotherFakeApi.java | 3 +- .../java/org/openapitools/api/FakeApi.java | 50 +++++++++---- .../api/FakeClassnameTestApi.java | 3 +- .../gen/java/org/openapitools/api/PetApi.java | 24 ++++--- .../java/org/openapitools/api/StoreApi.java | 9 ++- .../java/org/openapitools/api/UserApi.java | 23 ++++-- .../model/AdditionalPropertiesAnyType.java | 1 + .../model/AdditionalPropertiesArray.java | 1 + .../model/AdditionalPropertiesBoolean.java | 1 + .../model/AdditionalPropertiesClass.java | 11 +++ .../model/AdditionalPropertiesInteger.java | 1 + .../model/AdditionalPropertiesNumber.java | 1 + .../model/AdditionalPropertiesObject.java | 1 + .../model/AdditionalPropertiesString.java | 1 + .../java/org/openapitools/model/Animal.java | 2 + .../model/ArrayOfArrayOfNumberOnly.java | 1 + .../openapitools/model/ArrayOfNumberOnly.java | 1 + .../org/openapitools/model/ArrayTest.java | 3 + .../java/org/openapitools/model/BigCat.java | 1 + .../openapitools/model/Capitalization.java | 6 ++ .../gen/java/org/openapitools/model/Cat.java | 1 + .../java/org/openapitools/model/Category.java | 2 + .../org/openapitools/model/ClassModel.java | 1 + .../java/org/openapitools/model/Client.java | 1 + .../gen/java/org/openapitools/model/Dog.java | 1 + .../org/openapitools/model/EnumArrays.java | 2 + .../java/org/openapitools/model/EnumTest.java | 7 +- .../model/FileSchemaTestClass.java | 4 +- .../org/openapitools/model/FormatTest.java | 18 ++++- .../openapitools/model/HasOnlyReadOnly.java | 2 + .../java/org/openapitools/model/MapTest.java | 4 ++ ...ropertiesAndAdditionalPropertiesClass.java | 3 + .../openapitools/model/Model200Response.java | 2 + .../openapitools/model/ModelApiResponse.java | 3 + .../org/openapitools/model/ModelFile.java | 1 + .../org/openapitools/model/ModelList.java | 1 + .../org/openapitools/model/ModelReturn.java | 1 + .../gen/java/org/openapitools/model/Name.java | 4 ++ .../org/openapitools/model/NumberOnly.java | 3 +- .../java/org/openapitools/model/Order.java | 6 ++ .../openapitools/model/OuterComposite.java | 5 +- .../gen/java/org/openapitools/model/Pet.java | 8 ++- .../org/openapitools/model/ReadOnlyFirst.java | 2 + .../openapitools/model/SpecialModelName.java | 1 + .../gen/java/org/openapitools/model/Tag.java | 2 + .../openapitools/model/TypeHolderDefault.java | 7 +- .../openapitools/model/TypeHolderExample.java | 8 ++- .../gen/java/org/openapitools/model/User.java | 8 +++ .../java/org/openapitools/model/XmlItem.java | 39 ++++++++-- .../org/openapitools/api/AnotherFakeApi.java | 3 +- .../java/org/openapitools/api/FakeApi.java | 72 ++++++++++++++----- .../api/FakeClassnameTestApi.java | 3 +- .../gen/java/org/openapitools/api/PetApi.java | 24 ++++--- .../java/org/openapitools/api/StoreApi.java | 9 ++- .../java/org/openapitools/api/UserApi.java | 23 ++++-- .../model/AdditionalPropertiesClass.java | 2 + .../model/AllOfWithSingleRef.java | 4 +- .../java/org/openapitools/model/Animal.java | 2 + .../model/ArrayOfArrayOfNumberOnly.java | 1 + .../openapitools/model/ArrayOfNumberOnly.java | 1 + .../org/openapitools/model/ArrayTest.java | 3 + .../openapitools/model/Capitalization.java | 6 ++ .../gen/java/org/openapitools/model/Cat.java | 1 + .../java/org/openapitools/model/Category.java | 2 + .../openapitools/model/ChildWithNullable.java | 1 + .../org/openapitools/model/ClassModel.java | 1 + .../java/org/openapitools/model/Client.java | 1 + .../openapitools/model/DeprecatedObject.java | 1 + .../gen/java/org/openapitools/model/Dog.java | 1 + .../org/openapitools/model/EnumArrays.java | 2 + .../java/org/openapitools/model/EnumTest.java | 16 +++-- .../model/FakeBigDecimalMap200Response.java | 4 +- .../model/FileSchemaTestClass.java | 4 +- .../gen/java/org/openapitools/model/Foo.java | 1 + .../model/FooGetDefaultResponse.java | 3 +- .../org/openapitools/model/FormatTest.java | 20 +++++- .../openapitools/model/HasOnlyReadOnly.java | 2 + .../openapitools/model/HealthCheckResult.java | 1 + .../java/org/openapitools/model/MapTest.java | 4 ++ ...ropertiesAndAdditionalPropertiesClass.java | 3 + .../openapitools/model/Model200Response.java | 2 + .../openapitools/model/ModelApiResponse.java | 3 + .../org/openapitools/model/ModelFile.java | 1 + .../org/openapitools/model/ModelList.java | 1 + .../org/openapitools/model/ModelReturn.java | 1 + .../gen/java/org/openapitools/model/Name.java | 4 ++ .../org/openapitools/model/NullableClass.java | 14 +++- .../org/openapitools/model/NumberOnly.java | 3 +- .../model/ObjectWithDeprecatedFields.java | 8 ++- .../java/org/openapitools/model/Order.java | 6 ++ .../openapitools/model/OuterComposite.java | 5 +- .../model/OuterObjectWithEnumProperty.java | 3 +- .../model/ParentWithNullable.java | 2 + .../gen/java/org/openapitools/model/Pet.java | 8 ++- .../org/openapitools/model/ReadOnlyFirst.java | 2 + .../openapitools/model/SpecialModelName.java | 1 + .../gen/java/org/openapitools/model/Tag.java | 2 + ...neFreeformAdditionalPropertiesRequest.java | 1 + .../gen/java/org/openapitools/model/User.java | 8 +++ .../org/openapitools/api/AnotherFakeApi.java | 3 +- .../java/org/openapitools/api/FakeApi.java | 47 ++++++++---- .../api/FakeClassnameTags123Api.java | 3 +- .../gen/java/org/openapitools/api/PetApi.java | 27 ++++--- .../java/org/openapitools/api/StoreApi.java | 9 ++- .../java/org/openapitools/api/UserApi.java | 23 ++++-- .../model/AdditionalPropertiesAnyType.java | 1 + .../model/AdditionalPropertiesArray.java | 1 + .../model/AdditionalPropertiesBoolean.java | 1 + .../model/AdditionalPropertiesClass.java | 11 +++ .../model/AdditionalPropertiesInteger.java | 1 + .../model/AdditionalPropertiesNumber.java | 1 + .../model/AdditionalPropertiesObject.java | 1 + .../model/AdditionalPropertiesString.java | 1 + .../java/org/openapitools/model/Animal.java | 2 + .../model/ArrayOfArrayOfNumberOnly.java | 1 + .../openapitools/model/ArrayOfNumberOnly.java | 1 + .../org/openapitools/model/ArrayTest.java | 3 + .../java/org/openapitools/model/BigCat.java | 1 + .../openapitools/model/Capitalization.java | 6 ++ .../gen/java/org/openapitools/model/Cat.java | 1 + .../java/org/openapitools/model/Category.java | 2 + .../org/openapitools/model/ClassModel.java | 1 + .../java/org/openapitools/model/Client.java | 1 + .../gen/java/org/openapitools/model/Dog.java | 1 + .../org/openapitools/model/EnumArrays.java | 2 + .../java/org/openapitools/model/EnumTest.java | 7 +- .../model/FileSchemaTestClass.java | 4 +- .../org/openapitools/model/FormatTest.java | 18 ++++- .../openapitools/model/HasOnlyReadOnly.java | 2 + .../java/org/openapitools/model/MapTest.java | 4 ++ ...ropertiesAndAdditionalPropertiesClass.java | 3 + .../openapitools/model/Model200Response.java | 2 + .../openapitools/model/ModelApiResponse.java | 3 + .../org/openapitools/model/ModelFile.java | 1 + .../org/openapitools/model/ModelList.java | 1 + .../org/openapitools/model/ModelReturn.java | 1 + .../gen/java/org/openapitools/model/Name.java | 4 ++ .../org/openapitools/model/NumberOnly.java | 3 +- .../java/org/openapitools/model/Order.java | 6 ++ .../openapitools/model/OuterComposite.java | 5 +- .../gen/java/org/openapitools/model/Pet.java | 8 ++- .../org/openapitools/model/ReadOnlyFirst.java | 2 + .../openapitools/model/SpecialModelName.java | 1 + .../gen/java/org/openapitools/model/Tag.java | 2 + .../openapitools/model/TypeHolderDefault.java | 7 +- .../openapitools/model/TypeHolderExample.java | 8 ++- .../gen/java/org/openapitools/model/User.java | 8 +++ .../java/org/openapitools/model/XmlItem.java | 39 ++++++++-- .../org/openapitools/api/AnotherFakeApi.java | 3 +- .../java/org/openapitools/api/FakeApi.java | 50 +++++++++---- .../api/FakeClassnameTestApi.java | 3 +- .../gen/java/org/openapitools/api/PetApi.java | 24 ++++--- .../java/org/openapitools/api/StoreApi.java | 9 ++- .../java/org/openapitools/api/UserApi.java | 23 ++++-- .../model/AdditionalPropertiesAnyType.java | 1 + .../model/AdditionalPropertiesArray.java | 1 + .../model/AdditionalPropertiesBoolean.java | 1 + .../model/AdditionalPropertiesClass.java | 11 +++ .../model/AdditionalPropertiesInteger.java | 1 + .../model/AdditionalPropertiesNumber.java | 1 + .../model/AdditionalPropertiesObject.java | 1 + .../model/AdditionalPropertiesString.java | 1 + .../java/org/openapitools/model/Animal.java | 2 + .../model/ArrayOfArrayOfNumberOnly.java | 1 + .../openapitools/model/ArrayOfNumberOnly.java | 1 + .../org/openapitools/model/ArrayTest.java | 3 + .../java/org/openapitools/model/BigCat.java | 1 + .../openapitools/model/Capitalization.java | 6 ++ .../gen/java/org/openapitools/model/Cat.java | 1 + .../java/org/openapitools/model/Category.java | 2 + .../org/openapitools/model/ClassModel.java | 1 + .../java/org/openapitools/model/Client.java | 1 + .../gen/java/org/openapitools/model/Dog.java | 1 + .../org/openapitools/model/EnumArrays.java | 2 + .../java/org/openapitools/model/EnumTest.java | 7 +- .../model/FileSchemaTestClass.java | 4 +- .../org/openapitools/model/FormatTest.java | 18 ++++- .../openapitools/model/HasOnlyReadOnly.java | 2 + .../java/org/openapitools/model/MapTest.java | 4 ++ ...ropertiesAndAdditionalPropertiesClass.java | 3 + .../openapitools/model/Model200Response.java | 2 + .../openapitools/model/ModelApiResponse.java | 3 + .../org/openapitools/model/ModelFile.java | 1 + .../org/openapitools/model/ModelList.java | 1 + .../org/openapitools/model/ModelReturn.java | 1 + .../gen/java/org/openapitools/model/Name.java | 4 ++ .../org/openapitools/model/NumberOnly.java | 3 +- .../java/org/openapitools/model/Order.java | 6 ++ .../openapitools/model/OuterComposite.java | 5 +- .../gen/java/org/openapitools/model/Pet.java | 8 ++- .../org/openapitools/model/ReadOnlyFirst.java | 2 + .../openapitools/model/SpecialModelName.java | 1 + .../gen/java/org/openapitools/model/Tag.java | 2 + .../openapitools/model/TypeHolderDefault.java | 7 +- .../openapitools/model/TypeHolderExample.java | 8 ++- .../gen/java/org/openapitools/model/User.java | 8 +++ .../java/org/openapitools/model/XmlItem.java | 39 ++++++++-- .../org/openapitools/api/AnotherFakeApi.java | 3 +- .../java/org/openapitools/api/FakeApi.java | 72 ++++++++++++++----- .../api/FakeClassnameTestApi.java | 3 +- .../gen/java/org/openapitools/api/PetApi.java | 24 ++++--- .../java/org/openapitools/api/StoreApi.java | 9 ++- .../java/org/openapitools/api/UserApi.java | 23 ++++-- .../model/AdditionalPropertiesClass.java | 2 + .../model/AllOfWithSingleRef.java | 4 +- .../java/org/openapitools/model/Animal.java | 2 + .../model/ArrayOfArrayOfNumberOnly.java | 1 + .../openapitools/model/ArrayOfNumberOnly.java | 1 + .../org/openapitools/model/ArrayTest.java | 3 + .../openapitools/model/Capitalization.java | 6 ++ .../gen/java/org/openapitools/model/Cat.java | 1 + .../java/org/openapitools/model/Category.java | 2 + .../openapitools/model/ChildWithNullable.java | 1 + .../org/openapitools/model/ClassModel.java | 1 + .../java/org/openapitools/model/Client.java | 1 + .../openapitools/model/DeprecatedObject.java | 1 + .../gen/java/org/openapitools/model/Dog.java | 1 + .../org/openapitools/model/EnumArrays.java | 2 + .../java/org/openapitools/model/EnumTest.java | 16 +++-- .../model/FakeBigDecimalMap200Response.java | 4 +- .../model/FileSchemaTestClass.java | 4 +- .../gen/java/org/openapitools/model/Foo.java | 1 + .../model/FooGetDefaultResponse.java | 3 +- .../org/openapitools/model/FormatTest.java | 20 +++++- .../openapitools/model/HasOnlyReadOnly.java | 2 + .../openapitools/model/HealthCheckResult.java | 1 + .../java/org/openapitools/model/MapTest.java | 4 ++ ...ropertiesAndAdditionalPropertiesClass.java | 3 + .../openapitools/model/Model200Response.java | 2 + .../openapitools/model/ModelApiResponse.java | 3 + .../org/openapitools/model/ModelFile.java | 1 + .../org/openapitools/model/ModelList.java | 1 + .../org/openapitools/model/ModelReturn.java | 1 + .../gen/java/org/openapitools/model/Name.java | 4 ++ .../org/openapitools/model/NullableClass.java | 14 +++- .../org/openapitools/model/NumberOnly.java | 3 +- .../model/ObjectWithDeprecatedFields.java | 8 ++- .../java/org/openapitools/model/Order.java | 6 ++ .../openapitools/model/OuterComposite.java | 5 +- .../model/OuterObjectWithEnumProperty.java | 3 +- .../model/ParentWithNullable.java | 2 + .../gen/java/org/openapitools/model/Pet.java | 8 ++- .../org/openapitools/model/ReadOnlyFirst.java | 2 + .../openapitools/model/SpecialModelName.java | 1 + .../gen/java/org/openapitools/model/Tag.java | 2 + ...neFreeformAdditionalPropertiesRequest.java | 1 + .../gen/java/org/openapitools/model/User.java | 8 +++ 290 files changed, 1310 insertions(+), 350 deletions(-) diff --git a/docs/generators/fsharp-functions.md b/docs/generators/fsharp-functions.md index a20382152aab..33bd1f1c2922 100644 --- a/docs/generators/fsharp-functions.md +++ b/docs/generators/fsharp-functions.md @@ -34,7 +34,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl |prependFormOrBodyParameters|Add form or body parameters to the beginning of the parameter list.| |false| |sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.| |true| |sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.| |true| -|sourceFolder|source folder for generated code| |OpenAPI/src| +|sourceFolder|source folder for generated code| |OpenAPI\src| ## IMPORT MAPPING diff --git a/docs/generators/fsharp-giraffe-server.md b/docs/generators/fsharp-giraffe-server.md index abe079e504fa..fb3e25b3d776 100644 --- a/docs/generators/fsharp-giraffe-server.md +++ b/docs/generators/fsharp-giraffe-server.md @@ -30,7 +30,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl |packageVersion|F# package version.| |1.0.0| |returnICollection|Return ICollection<T> instead of the concrete type.| |false| |sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.| |true| -|sourceFolder|source folder for generated code| |OpenAPI/src| +|sourceFolder|source folder for generated code| |OpenAPI\src| |useCollection|Deserialize array types to Collection<T> instead of List<T>.| |false| |useDateTimeOffset|Use DateTimeOffset to model date-time properties| |false| |useSwashbuckle|Uses the Swashbuckle.AspNetCore NuGet package for documentation.| |false| diff --git a/docs/generators/java-inflector.md b/docs/generators/java-inflector.md index 93bcc5e03d4a..fda615229865 100644 --- a/docs/generators/java-inflector.md +++ b/docs/generators/java-inflector.md @@ -63,7 +63,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl |snapshotVersion|Uses a SNAPSHOT version.|
**true**
Use a SnapShot Version
**false**
Use a Release Version
|null| |sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.| |true| |sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.| |true| -|sourceFolder|source folder for generated code| |src/gen/java| +|sourceFolder|source folder for generated code| |src\gen\java| |testOutput|Set output folder for models and APIs tests| |${project.build.directory}/generated-test-sources/openapi| |useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false| |useOneOfInterfaces|whether to use a java interface to describe a set of oneOf options, where each option is a class that implements the interface| |false| diff --git a/docs/generators/jaxrs-cxf-client.md b/docs/generators/jaxrs-cxf-client.md index 203688c5302a..b76b9bda76fb 100644 --- a/docs/generators/jaxrs-cxf-client.md +++ b/docs/generators/jaxrs-cxf-client.md @@ -63,7 +63,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl |snapshotVersion|Uses a SNAPSHOT version.|
**true**
Use a SnapShot Version
**false**
Use a Release Version
|null| |sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.| |true| |sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.| |true| -|sourceFolder|source folder for generated code| |src/gen/java| +|sourceFolder|source folder for generated code| |src\gen\java| |testOutput|Set output folder for models and APIs tests| |${project.build.directory}/generated-test-sources/openapi| |useAbstractionForFiles|Use alternative types instead of java.io.File to allow passing bytes without a file on disk.| |false| |useBeanValidation|Use BeanValidation API annotations| |false| diff --git a/docs/generators/swift5.md b/docs/generators/swift5.md index 519ad121b837..4bfb9b4d3778 100644 --- a/docs/generators/swift5.md +++ b/docs/generators/swift5.md @@ -48,13 +48,13 @@ These options may be applied as additional-properties (cli) or configOptions (pl |responseAs|Optionally use libraries to manage response. Currently PromiseKit, RxSwift, Result, Combine, AsyncAwait are available.| |null| |sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.| |true| |sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.| |true| -|swiftPackagePath|Set a custom source path instead of OpenAPIClient/Classes/OpenAPIs.| |null| +|swiftPackagePath|Set a custom source path instead of OpenAPIClient\Classes\OpenAPIs.| |null| |swiftUseApiNamespace|Flag to make all the API classes inner-class of {{projectName}}API| |null| |useBacktickEscapes|Escape reserved words using backticks (default: false)| |false| |useClasses|Use final classes for models instead of structs (default: false)| |false| |useCustomDateWithoutTime|Uses a custom type to decode and encode dates without time information to support OpenAPIs date format (default: false)| |false| |useJsonEncodable|Make models conform to JSONEncodable protocol (default: true)| |true| -|useSPMFileStructure|Use SPM file structure and set the source path to Sources/{{projectName}} (default: false).| |null| +|useSPMFileStructure|Use SPM file structure and set the source path to Sources\{{projectName}} (default: false).| |null| |validatable|Make validation rules and validator for model properies (default: true)| |true| ## IMPORT MAPPING diff --git a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/info.md b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/info.md index 792d0e1c1199..5f1571afb2eb 100644 --- a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/info.md +++ b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/info.md @@ -931,6 +931,7 @@ Here are some companies/projects (alphabetical order) using OpenAPI Generator in - 2023-12-10 - [UnityでOpenAPI Generatorを使う](https://www.youtube.com/watch?v=CbNwKVV5LRM) by [Soup Tori](https://www.youtube.com/@souptori8417) - 2024-03-04 - [Generating TypeScript Types with OpenAPI for REST API Consumption](https://www.pullrequest.com/blog/generating-typescript-types-with-openapi-for-rest-api-consumption/) by [PullRequest](https://www.pullrequest.com/) - 2024-03-07 - [Fully typed Web Apps with OpenAPI (Part 1)](https://medium.com/@gfox1984/fully-typed-web-apps-with-openapi-part-1-595d55766670) by [Guillaume Renard](https://medium.com/@gfox1984) +- 2024-03-08 - [Laravel OpenAPIによる "辛くない" スキーマ駆動開発](https://fortee.jp/phperkaigi-2024/proposal/9e2e6c38-d078-4efa-99b4-83ebf9033b34) by [KentarouTakeda](https://twitter.com/KentarouTakeda) ## [6 - About Us](#table-of-contents) diff --git a/samples/client/echo_api/php-nextgen/.openapi-generator/FILES b/samples/client/echo_api/php-nextgen/.openapi-generator/FILES index c51141c743e7..53ad43f78dc2 100644 --- a/samples/client/echo_api/php-nextgen/.openapi-generator/FILES +++ b/samples/client/echo_api/php-nextgen/.openapi-generator/FILES @@ -24,13 +24,13 @@ docs/Model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.md docs/Model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.md git_push.sh phpunit.xml.dist +src/ApiException.php src/Api/AuthApi.php src/Api/BodyApi.php src/Api/FormApi.php src/Api/HeaderApi.php src/Api/PathApi.php src/Api/QueryApi.php -src/ApiException.php src/Configuration.php src/HeaderSelector.php src/Model/Bird.php diff --git a/samples/client/echo_api/php-nextgen/phpunit.xml.dist b/samples/client/echo_api/php-nextgen/phpunit.xml.dist index 1135449a8d9b..cba878f52707 100644 --- a/samples/client/echo_api/php-nextgen/phpunit.xml.dist +++ b/samples/client/echo_api/php-nextgen/phpunit.xml.dist @@ -2,8 +2,8 @@ - ./src/Api - ./src/Model + ./src\/Api + ./src\/Model diff --git a/samples/client/echo_api/r/.openapi-generator/FILES b/samples/client/echo_api/r/.openapi-generator/FILES index cf3034e39d0c..79f7452245e1 100644 --- a/samples/client/echo_api/r/.openapi-generator/FILES +++ b/samples/client/echo_api/r/.openapi-generator/FILES @@ -5,6 +5,7 @@ .travis.yml DESCRIPTION NAMESPACE +README.md R/api_client.R R/api_response.R R/auth_api.R @@ -25,7 +26,6 @@ R/tag.R R/test_form_object_multipart_request_marker.R R/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.R R/test_query_style_form_explode_true_array_string_query_object_parameter.R -README.md docs/AuthApi.md docs/Bird.md docs/BodyApi.md diff --git a/samples/client/petstore/R-httr2-wrapper/.openapi-generator/FILES b/samples/client/petstore/R-httr2-wrapper/.openapi-generator/FILES index 379998b2a2b8..03da4aaacabb 100644 --- a/samples/client/petstore/R-httr2-wrapper/.openapi-generator/FILES +++ b/samples/client/petstore/R-httr2-wrapper/.openapi-generator/FILES @@ -5,6 +5,7 @@ .travis.yml DESCRIPTION NAMESPACE +README.md R/allof_tag_api_response.R R/animal.R R/any_of_pig.R @@ -39,7 +40,6 @@ R/user.R R/user_api.R R/whale.R R/zebra.R -README.md docs/AllofTagApiResponse.md docs/Animal.md docs/AnyOfPig.md diff --git a/samples/client/petstore/R-httr2/.openapi-generator/FILES b/samples/client/petstore/R-httr2/.openapi-generator/FILES index 07243c898d78..af8bc6f011d8 100644 --- a/samples/client/petstore/R-httr2/.openapi-generator/FILES +++ b/samples/client/petstore/R-httr2/.openapi-generator/FILES @@ -5,6 +5,7 @@ .travis.yml DESCRIPTION NAMESPACE +README.md R/allof_tag_api_response.R R/animal.R R/any_of_pig.R @@ -38,7 +39,6 @@ R/user.R R/user_api.R R/whale.R R/zebra.R -README.md docs/AllofTagApiResponse.md docs/Animal.md docs/AnyOfPig.md diff --git a/samples/client/petstore/R/.openapi-generator/FILES b/samples/client/petstore/R/.openapi-generator/FILES index 43681d7ddb2c..d5c00e7a92f3 100644 --- a/samples/client/petstore/R/.openapi-generator/FILES +++ b/samples/client/petstore/R/.openapi-generator/FILES @@ -5,6 +5,7 @@ .travis.yml DESCRIPTION NAMESPACE +README.md R/allof_tag_api_response.R R/animal.R R/any_of_pig.R @@ -38,7 +39,6 @@ R/user.R R/user_api.R R/whale.R R/zebra.R -README.md docs/AllofTagApiResponse.md docs/Animal.md docs/AnyOfPig.md diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/.openapi-generator/FILES b/samples/client/petstore/php-nextgen/OpenAPIClient-php/.openapi-generator/FILES index ec822fdd8838..8d58dbc93e12 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/.openapi-generator/FILES +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/.openapi-generator/FILES @@ -63,6 +63,7 @@ docs/Model/TestInlineFreeformAdditionalPropertiesRequest.md docs/Model/User.md git_push.sh phpunit.xml.dist +src/ApiException.php src/Api/AnotherFakeApi.php src/Api/DefaultApi.php src/Api/FakeApi.php @@ -70,7 +71,6 @@ src/Api/FakeClassnameTags123Api.php src/Api/PetApi.php src/Api/StoreApi.php src/Api/UserApi.php -src/ApiException.php src/Configuration.php src/HeaderSelector.php src/Model/AdditionalPropertiesClass.php diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/phpunit.xml.dist b/samples/client/petstore/php-nextgen/OpenAPIClient-php/phpunit.xml.dist index 1135449a8d9b..cba878f52707 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/phpunit.xml.dist +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/phpunit.xml.dist @@ -2,8 +2,8 @@ - ./src/Api - ./src/Model + ./src\/Api + ./src\/Model diff --git a/samples/client/petstore/php/OpenAPIClient-php/.openapi-generator/FILES b/samples/client/petstore/php/OpenAPIClient-php/.openapi-generator/FILES index 80ecc7a7237f..64737d51568c 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/.openapi-generator/FILES +++ b/samples/client/petstore/php/OpenAPIClient-php/.openapi-generator/FILES @@ -60,6 +60,7 @@ docs/Model/Tag.md docs/Model/TestInlineFreeformAdditionalPropertiesRequest.md docs/Model/User.md git_push.sh +lib/ApiException.php lib/Api/AnotherFakeApi.php lib/Api/DefaultApi.php lib/Api/FakeApi.php @@ -67,7 +68,6 @@ lib/Api/FakeClassnameTags123Api.php lib/Api/PetApi.php lib/Api/StoreApi.php lib/Api/UserApi.php -lib/ApiException.php lib/Configuration.php lib/HeaderSelector.php lib/Model/AdditionalPropertiesClass.php diff --git a/samples/client/petstore/php/psr-18/.openapi-generator/FILES b/samples/client/petstore/php/psr-18/.openapi-generator/FILES index 34aee01b39f6..c3884202a79d 100644 --- a/samples/client/petstore/php/psr-18/.openapi-generator/FILES +++ b/samples/client/petstore/php/psr-18/.openapi-generator/FILES @@ -60,6 +60,7 @@ docs/Model/Tag.md docs/Model/TestInlineFreeformAdditionalPropertiesRequest.md docs/Model/User.md git_push.sh +lib/ApiException.php lib/Api/AnotherFakeApi.php lib/Api/DefaultApi.php lib/Api/FakeApi.php @@ -67,7 +68,6 @@ lib/Api/FakeClassnameTags123Api.php lib/Api/PetApi.php lib/Api/StoreApi.php lib/Api/UserApi.php -lib/ApiException.php lib/Configuration.php lib/DebugPlugin.php lib/HeaderSelector.php diff --git a/samples/server/petstore/aspnetcore-3.0/src/Org.OpenAPITools/Controllers/PetApi.cs b/samples/server/petstore/aspnetcore-3.0/src/Org.OpenAPITools/Controllers/PetApi.cs index 7dded4e0f16a..5a197da3156e 100644 --- a/samples/server/petstore/aspnetcore-3.0/src/Org.OpenAPITools/Controllers/PetApi.cs +++ b/samples/server/petstore/aspnetcore-3.0/src/Org.OpenAPITools/Controllers/PetApi.cs @@ -48,7 +48,7 @@ public virtual IActionResult AddPet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -97,7 +97,7 @@ public virtual IActionResult FindPetsByStatus([FromQuery (Name = "status")][Requ //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; + exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult FindPetsByTags([FromQuery (Name = "tags")][Required //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; + exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -162,7 +162,7 @@ public virtual IActionResult GetPetById([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -198,7 +198,7 @@ public virtual IActionResult UpdatePet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n doggie\n \n aeiou\n \n \n \n aeiou\n"; var example = exampleJson != null @@ -248,7 +248,7 @@ public virtual IActionResult UploadFile([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(200, default(ApiResponse)); string exampleJson = null; - exampleJson = "{\n \"code\" : 0,\n \"type\" : \"type\",\n \"message\" : \"message\"\n}"; + exampleJson = "{\r\n \"code\" : 0,\r\n \"type\" : \"type\",\r\n \"message\" : \"message\"\r\n}"; var example = exampleJson != null ? JsonConvert.DeserializeObject(exampleJson) diff --git a/samples/server/petstore/aspnetcore-3.0/src/Org.OpenAPITools/Controllers/StoreApi.cs b/samples/server/petstore/aspnetcore-3.0/src/Org.OpenAPITools/Controllers/StoreApi.cs index b925426c761d..c57b5fb3bd16 100644 --- a/samples/server/petstore/aspnetcore-3.0/src/Org.OpenAPITools/Controllers/StoreApi.cs +++ b/samples/server/petstore/aspnetcore-3.0/src/Org.OpenAPITools/Controllers/StoreApi.cs @@ -98,7 +98,7 @@ public virtual IActionResult GetOrderById([FromRoute (Name = "orderId")][Require //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; + exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult PlaceOrder([FromBody]Order order) //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; + exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-3.0/src/Org.OpenAPITools/Controllers/UserApi.cs b/samples/server/petstore/aspnetcore-3.0/src/Org.OpenAPITools/Controllers/UserApi.cs index 6d7094c81a9d..3277ae43fcfd 100644 --- a/samples/server/petstore/aspnetcore-3.0/src/Org.OpenAPITools/Controllers/UserApi.cs +++ b/samples/server/petstore/aspnetcore-3.0/src/Org.OpenAPITools/Controllers/UserApi.cs @@ -134,7 +134,7 @@ public virtual IActionResult GetUserByName([FromRoute (Name = "username")][Requi //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"firstName\" : \"firstName\",\n \"lastName\" : \"lastName\",\n \"password\" : \"password\",\n \"userStatus\" : 6,\n \"phone\" : \"phone\",\n \"id\" : 0,\n \"email\" : \"email\",\n \"username\" : \"username\"\n}"; + exampleJson = "{\r\n \"firstName\" : \"firstName\",\r\n \"lastName\" : \"lastName\",\r\n \"password\" : \"password\",\r\n \"userStatus\" : 6,\r\n \"phone\" : \"phone\",\r\n \"id\" : 0,\r\n \"email\" : \"email\",\r\n \"username\" : \"username\"\r\n}"; exampleJson = "\n 123456789\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n 123\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-3.1/src/Org.OpenAPITools/Controllers/PetApi.cs b/samples/server/petstore/aspnetcore-3.1/src/Org.OpenAPITools/Controllers/PetApi.cs index 7dded4e0f16a..5a197da3156e 100644 --- a/samples/server/petstore/aspnetcore-3.1/src/Org.OpenAPITools/Controllers/PetApi.cs +++ b/samples/server/petstore/aspnetcore-3.1/src/Org.OpenAPITools/Controllers/PetApi.cs @@ -48,7 +48,7 @@ public virtual IActionResult AddPet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -97,7 +97,7 @@ public virtual IActionResult FindPetsByStatus([FromQuery (Name = "status")][Requ //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; + exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult FindPetsByTags([FromQuery (Name = "tags")][Required //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; + exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -162,7 +162,7 @@ public virtual IActionResult GetPetById([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -198,7 +198,7 @@ public virtual IActionResult UpdatePet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n doggie\n \n aeiou\n \n \n \n aeiou\n"; var example = exampleJson != null @@ -248,7 +248,7 @@ public virtual IActionResult UploadFile([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(200, default(ApiResponse)); string exampleJson = null; - exampleJson = "{\n \"code\" : 0,\n \"type\" : \"type\",\n \"message\" : \"message\"\n}"; + exampleJson = "{\r\n \"code\" : 0,\r\n \"type\" : \"type\",\r\n \"message\" : \"message\"\r\n}"; var example = exampleJson != null ? JsonConvert.DeserializeObject(exampleJson) diff --git a/samples/server/petstore/aspnetcore-3.1/src/Org.OpenAPITools/Controllers/StoreApi.cs b/samples/server/petstore/aspnetcore-3.1/src/Org.OpenAPITools/Controllers/StoreApi.cs index b925426c761d..c57b5fb3bd16 100644 --- a/samples/server/petstore/aspnetcore-3.1/src/Org.OpenAPITools/Controllers/StoreApi.cs +++ b/samples/server/petstore/aspnetcore-3.1/src/Org.OpenAPITools/Controllers/StoreApi.cs @@ -98,7 +98,7 @@ public virtual IActionResult GetOrderById([FromRoute (Name = "orderId")][Require //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; + exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult PlaceOrder([FromBody]Order order) //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; + exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-3.1/src/Org.OpenAPITools/Controllers/UserApi.cs b/samples/server/petstore/aspnetcore-3.1/src/Org.OpenAPITools/Controllers/UserApi.cs index 6d7094c81a9d..3277ae43fcfd 100644 --- a/samples/server/petstore/aspnetcore-3.1/src/Org.OpenAPITools/Controllers/UserApi.cs +++ b/samples/server/petstore/aspnetcore-3.1/src/Org.OpenAPITools/Controllers/UserApi.cs @@ -134,7 +134,7 @@ public virtual IActionResult GetUserByName([FromRoute (Name = "username")][Requi //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"firstName\" : \"firstName\",\n \"lastName\" : \"lastName\",\n \"password\" : \"password\",\n \"userStatus\" : 6,\n \"phone\" : \"phone\",\n \"id\" : 0,\n \"email\" : \"email\",\n \"username\" : \"username\"\n}"; + exampleJson = "{\r\n \"firstName\" : \"firstName\",\r\n \"lastName\" : \"lastName\",\r\n \"password\" : \"password\",\r\n \"userStatus\" : 6,\r\n \"phone\" : \"phone\",\r\n \"id\" : 0,\r\n \"email\" : \"email\",\r\n \"username\" : \"username\"\r\n}"; exampleJson = "\n 123456789\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n 123\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-5.0/src/Org.OpenAPITools/Controllers/PetApi.cs b/samples/server/petstore/aspnetcore-5.0/src/Org.OpenAPITools/Controllers/PetApi.cs index 7dded4e0f16a..5a197da3156e 100644 --- a/samples/server/petstore/aspnetcore-5.0/src/Org.OpenAPITools/Controllers/PetApi.cs +++ b/samples/server/petstore/aspnetcore-5.0/src/Org.OpenAPITools/Controllers/PetApi.cs @@ -48,7 +48,7 @@ public virtual IActionResult AddPet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -97,7 +97,7 @@ public virtual IActionResult FindPetsByStatus([FromQuery (Name = "status")][Requ //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; + exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult FindPetsByTags([FromQuery (Name = "tags")][Required //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; + exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -162,7 +162,7 @@ public virtual IActionResult GetPetById([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -198,7 +198,7 @@ public virtual IActionResult UpdatePet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n doggie\n \n aeiou\n \n \n \n aeiou\n"; var example = exampleJson != null @@ -248,7 +248,7 @@ public virtual IActionResult UploadFile([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(200, default(ApiResponse)); string exampleJson = null; - exampleJson = "{\n \"code\" : 0,\n \"type\" : \"type\",\n \"message\" : \"message\"\n}"; + exampleJson = "{\r\n \"code\" : 0,\r\n \"type\" : \"type\",\r\n \"message\" : \"message\"\r\n}"; var example = exampleJson != null ? JsonConvert.DeserializeObject(exampleJson) diff --git a/samples/server/petstore/aspnetcore-5.0/src/Org.OpenAPITools/Controllers/StoreApi.cs b/samples/server/petstore/aspnetcore-5.0/src/Org.OpenAPITools/Controllers/StoreApi.cs index b925426c761d..c57b5fb3bd16 100644 --- a/samples/server/petstore/aspnetcore-5.0/src/Org.OpenAPITools/Controllers/StoreApi.cs +++ b/samples/server/petstore/aspnetcore-5.0/src/Org.OpenAPITools/Controllers/StoreApi.cs @@ -98,7 +98,7 @@ public virtual IActionResult GetOrderById([FromRoute (Name = "orderId")][Require //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; + exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult PlaceOrder([FromBody]Order order) //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; + exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-5.0/src/Org.OpenAPITools/Controllers/UserApi.cs b/samples/server/petstore/aspnetcore-5.0/src/Org.OpenAPITools/Controllers/UserApi.cs index 6d7094c81a9d..3277ae43fcfd 100644 --- a/samples/server/petstore/aspnetcore-5.0/src/Org.OpenAPITools/Controllers/UserApi.cs +++ b/samples/server/petstore/aspnetcore-5.0/src/Org.OpenAPITools/Controllers/UserApi.cs @@ -134,7 +134,7 @@ public virtual IActionResult GetUserByName([FromRoute (Name = "username")][Requi //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"firstName\" : \"firstName\",\n \"lastName\" : \"lastName\",\n \"password\" : \"password\",\n \"userStatus\" : 6,\n \"phone\" : \"phone\",\n \"id\" : 0,\n \"email\" : \"email\",\n \"username\" : \"username\"\n}"; + exampleJson = "{\r\n \"firstName\" : \"firstName\",\r\n \"lastName\" : \"lastName\",\r\n \"password\" : \"password\",\r\n \"userStatus\" : 6,\r\n \"phone\" : \"phone\",\r\n \"id\" : 0,\r\n \"email\" : \"email\",\r\n \"username\" : \"username\"\r\n}"; exampleJson = "\n 123456789\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n 123\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/PetApi.cs b/samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/PetApi.cs index d4230ca5a4c5..9aa7c62b8e82 100644 --- a/samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/PetApi.cs +++ b/samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/PetApi.cs @@ -48,7 +48,7 @@ public virtual IActionResult AddPet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -97,7 +97,7 @@ public virtual IActionResult FindPetsByStatus([FromQuery (Name = "status")][Requ //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; + exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult FindPetsByTags([FromQuery (Name = "tags")][Required //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; + exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -162,7 +162,7 @@ public virtual IActionResult GetPetById([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -198,7 +198,7 @@ public virtual IActionResult UpdatePet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n doggie\n \n aeiou\n \n \n \n aeiou\n"; var example = exampleJson != null @@ -248,7 +248,7 @@ public virtual IActionResult UploadFile([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(200, default(ApiResponse)); string exampleJson = null; - exampleJson = "{\n \"code\" : 0,\n \"type\" : \"type\",\n \"message\" : \"message\"\n}"; + exampleJson = "{\r\n \"code\" : 0,\r\n \"type\" : \"type\",\r\n \"message\" : \"message\"\r\n}"; var example = exampleJson != null ? JsonSerializer.Deserialize(exampleJson) diff --git a/samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/StoreApi.cs b/samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/StoreApi.cs index 2c52f026791d..edb6042856df 100644 --- a/samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/StoreApi.cs +++ b/samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/StoreApi.cs @@ -98,7 +98,7 @@ public virtual IActionResult GetOrderById([FromRoute (Name = "orderId")][Require //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; + exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult PlaceOrder([FromBody]Order order) //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; + exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/UserApi.cs b/samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/UserApi.cs index 5a0951513f3d..98e67314721d 100644 --- a/samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/UserApi.cs +++ b/samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/UserApi.cs @@ -134,7 +134,7 @@ public virtual IActionResult GetUserByName([FromRoute (Name = "username")][Requi //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"firstName\" : \"firstName\",\n \"lastName\" : \"lastName\",\n \"password\" : \"password\",\n \"userStatus\" : 6,\n \"phone\" : \"phone\",\n \"id\" : 0,\n \"email\" : \"email\",\n \"username\" : \"username\"\n}"; + exampleJson = "{\r\n \"firstName\" : \"firstName\",\r\n \"lastName\" : \"lastName\",\r\n \"password\" : \"password\",\r\n \"userStatus\" : 6,\r\n \"phone\" : \"phone\",\r\n \"id\" : 0,\r\n \"email\" : \"email\",\r\n \"username\" : \"username\"\r\n}"; exampleJson = "\n 123456789\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n 123\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/PetApi.cs b/samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/PetApi.cs index fae01d29a624..64c652ea1875 100644 --- a/samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/PetApi.cs +++ b/samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/PetApi.cs @@ -48,7 +48,7 @@ public virtual IActionResult AddPet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -97,7 +97,7 @@ public virtual IActionResult FindPetsByStatus([FromQuery (Name = "status")][Requ //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; + exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult FindPetsByTags([FromQuery (Name = "tags")][Required //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; + exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -162,7 +162,7 @@ public virtual IActionResult GetPetById([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -198,7 +198,7 @@ public virtual IActionResult UpdatePet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n doggie\n \n aeiou\n \n \n \n aeiou\n"; var example = exampleJson != null @@ -248,7 +248,7 @@ public virtual IActionResult UploadFile([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(200, default(ApiResponse)); string exampleJson = null; - exampleJson = "{\n \"code\" : 0,\n \"type\" : \"type\",\n \"message\" : \"message\"\n}"; + exampleJson = "{\r\n \"code\" : 0,\r\n \"type\" : \"type\",\r\n \"message\" : \"message\"\r\n}"; var example = exampleJson != null ? JsonConvert.DeserializeObject(exampleJson) diff --git a/samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/StoreApi.cs b/samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/StoreApi.cs index b925426c761d..c57b5fb3bd16 100644 --- a/samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/StoreApi.cs +++ b/samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/StoreApi.cs @@ -98,7 +98,7 @@ public virtual IActionResult GetOrderById([FromRoute (Name = "orderId")][Require //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; + exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult PlaceOrder([FromBody]Order order) //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; + exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/UserApi.cs b/samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/UserApi.cs index 6d7094c81a9d..3277ae43fcfd 100644 --- a/samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/UserApi.cs +++ b/samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/UserApi.cs @@ -134,7 +134,7 @@ public virtual IActionResult GetUserByName([FromRoute (Name = "username")][Requi //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"firstName\" : \"firstName\",\n \"lastName\" : \"lastName\",\n \"password\" : \"password\",\n \"userStatus\" : 6,\n \"phone\" : \"phone\",\n \"id\" : 0,\n \"email\" : \"email\",\n \"username\" : \"username\"\n}"; + exampleJson = "{\r\n \"firstName\" : \"firstName\",\r\n \"lastName\" : \"lastName\",\r\n \"password\" : \"password\",\r\n \"userStatus\" : 6,\r\n \"phone\" : \"phone\",\r\n \"id\" : 0,\r\n \"email\" : \"email\",\r\n \"username\" : \"username\"\r\n}"; exampleJson = "\n 123456789\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n 123\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-6.0-pocoModels/src/Org.OpenAPITools/Controllers/PetApi.cs b/samples/server/petstore/aspnetcore-6.0-pocoModels/src/Org.OpenAPITools/Controllers/PetApi.cs index 7dded4e0f16a..5a197da3156e 100644 --- a/samples/server/petstore/aspnetcore-6.0-pocoModels/src/Org.OpenAPITools/Controllers/PetApi.cs +++ b/samples/server/petstore/aspnetcore-6.0-pocoModels/src/Org.OpenAPITools/Controllers/PetApi.cs @@ -48,7 +48,7 @@ public virtual IActionResult AddPet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -97,7 +97,7 @@ public virtual IActionResult FindPetsByStatus([FromQuery (Name = "status")][Requ //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; + exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult FindPetsByTags([FromQuery (Name = "tags")][Required //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; + exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -162,7 +162,7 @@ public virtual IActionResult GetPetById([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -198,7 +198,7 @@ public virtual IActionResult UpdatePet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n doggie\n \n aeiou\n \n \n \n aeiou\n"; var example = exampleJson != null @@ -248,7 +248,7 @@ public virtual IActionResult UploadFile([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(200, default(ApiResponse)); string exampleJson = null; - exampleJson = "{\n \"code\" : 0,\n \"type\" : \"type\",\n \"message\" : \"message\"\n}"; + exampleJson = "{\r\n \"code\" : 0,\r\n \"type\" : \"type\",\r\n \"message\" : \"message\"\r\n}"; var example = exampleJson != null ? JsonConvert.DeserializeObject(exampleJson) diff --git a/samples/server/petstore/aspnetcore-6.0-pocoModels/src/Org.OpenAPITools/Controllers/StoreApi.cs b/samples/server/petstore/aspnetcore-6.0-pocoModels/src/Org.OpenAPITools/Controllers/StoreApi.cs index b925426c761d..c57b5fb3bd16 100644 --- a/samples/server/petstore/aspnetcore-6.0-pocoModels/src/Org.OpenAPITools/Controllers/StoreApi.cs +++ b/samples/server/petstore/aspnetcore-6.0-pocoModels/src/Org.OpenAPITools/Controllers/StoreApi.cs @@ -98,7 +98,7 @@ public virtual IActionResult GetOrderById([FromRoute (Name = "orderId")][Require //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; + exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult PlaceOrder([FromBody]Order order) //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; + exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-6.0-pocoModels/src/Org.OpenAPITools/Controllers/UserApi.cs b/samples/server/petstore/aspnetcore-6.0-pocoModels/src/Org.OpenAPITools/Controllers/UserApi.cs index 6d7094c81a9d..3277ae43fcfd 100644 --- a/samples/server/petstore/aspnetcore-6.0-pocoModels/src/Org.OpenAPITools/Controllers/UserApi.cs +++ b/samples/server/petstore/aspnetcore-6.0-pocoModels/src/Org.OpenAPITools/Controllers/UserApi.cs @@ -134,7 +134,7 @@ public virtual IActionResult GetUserByName([FromRoute (Name = "username")][Requi //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"firstName\" : \"firstName\",\n \"lastName\" : \"lastName\",\n \"password\" : \"password\",\n \"userStatus\" : 6,\n \"phone\" : \"phone\",\n \"id\" : 0,\n \"email\" : \"email\",\n \"username\" : \"username\"\n}"; + exampleJson = "{\r\n \"firstName\" : \"firstName\",\r\n \"lastName\" : \"lastName\",\r\n \"password\" : \"password\",\r\n \"userStatus\" : 6,\r\n \"phone\" : \"phone\",\r\n \"id\" : 0,\r\n \"email\" : \"email\",\r\n \"username\" : \"username\"\r\n}"; exampleJson = "\n 123456789\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n 123\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-6.0-project4Models/src/Org.OpenAPITools/Controllers/PetApi.cs b/samples/server/petstore/aspnetcore-6.0-project4Models/src/Org.OpenAPITools/Controllers/PetApi.cs index 7dded4e0f16a..5a197da3156e 100644 --- a/samples/server/petstore/aspnetcore-6.0-project4Models/src/Org.OpenAPITools/Controllers/PetApi.cs +++ b/samples/server/petstore/aspnetcore-6.0-project4Models/src/Org.OpenAPITools/Controllers/PetApi.cs @@ -48,7 +48,7 @@ public virtual IActionResult AddPet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -97,7 +97,7 @@ public virtual IActionResult FindPetsByStatus([FromQuery (Name = "status")][Requ //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; + exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult FindPetsByTags([FromQuery (Name = "tags")][Required //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; + exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -162,7 +162,7 @@ public virtual IActionResult GetPetById([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -198,7 +198,7 @@ public virtual IActionResult UpdatePet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n doggie\n \n aeiou\n \n \n \n aeiou\n"; var example = exampleJson != null @@ -248,7 +248,7 @@ public virtual IActionResult UploadFile([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(200, default(ApiResponse)); string exampleJson = null; - exampleJson = "{\n \"code\" : 0,\n \"type\" : \"type\",\n \"message\" : \"message\"\n}"; + exampleJson = "{\r\n \"code\" : 0,\r\n \"type\" : \"type\",\r\n \"message\" : \"message\"\r\n}"; var example = exampleJson != null ? JsonConvert.DeserializeObject(exampleJson) diff --git a/samples/server/petstore/aspnetcore-6.0-project4Models/src/Org.OpenAPITools/Controllers/StoreApi.cs b/samples/server/petstore/aspnetcore-6.0-project4Models/src/Org.OpenAPITools/Controllers/StoreApi.cs index b925426c761d..c57b5fb3bd16 100644 --- a/samples/server/petstore/aspnetcore-6.0-project4Models/src/Org.OpenAPITools/Controllers/StoreApi.cs +++ b/samples/server/petstore/aspnetcore-6.0-project4Models/src/Org.OpenAPITools/Controllers/StoreApi.cs @@ -98,7 +98,7 @@ public virtual IActionResult GetOrderById([FromRoute (Name = "orderId")][Require //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; + exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult PlaceOrder([FromBody]Order order) //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; + exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-6.0-project4Models/src/Org.OpenAPITools/Controllers/UserApi.cs b/samples/server/petstore/aspnetcore-6.0-project4Models/src/Org.OpenAPITools/Controllers/UserApi.cs index 6d7094c81a9d..3277ae43fcfd 100644 --- a/samples/server/petstore/aspnetcore-6.0-project4Models/src/Org.OpenAPITools/Controllers/UserApi.cs +++ b/samples/server/petstore/aspnetcore-6.0-project4Models/src/Org.OpenAPITools/Controllers/UserApi.cs @@ -134,7 +134,7 @@ public virtual IActionResult GetUserByName([FromRoute (Name = "username")][Requi //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"firstName\" : \"firstName\",\n \"lastName\" : \"lastName\",\n \"password\" : \"password\",\n \"userStatus\" : 6,\n \"phone\" : \"phone\",\n \"id\" : 0,\n \"email\" : \"email\",\n \"username\" : \"username\"\n}"; + exampleJson = "{\r\n \"firstName\" : \"firstName\",\r\n \"lastName\" : \"lastName\",\r\n \"password\" : \"password\",\r\n \"userStatus\" : 6,\r\n \"phone\" : \"phone\",\r\n \"id\" : 0,\r\n \"email\" : \"email\",\r\n \"username\" : \"username\"\r\n}"; exampleJson = "\n 123456789\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n 123\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-6.0/src/Org.OpenAPITools/Controllers/PetApi.cs b/samples/server/petstore/aspnetcore-6.0/src/Org.OpenAPITools/Controllers/PetApi.cs index 7dded4e0f16a..5a197da3156e 100644 --- a/samples/server/petstore/aspnetcore-6.0/src/Org.OpenAPITools/Controllers/PetApi.cs +++ b/samples/server/petstore/aspnetcore-6.0/src/Org.OpenAPITools/Controllers/PetApi.cs @@ -48,7 +48,7 @@ public virtual IActionResult AddPet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -97,7 +97,7 @@ public virtual IActionResult FindPetsByStatus([FromQuery (Name = "status")][Requ //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; + exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult FindPetsByTags([FromQuery (Name = "tags")][Required //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; + exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -162,7 +162,7 @@ public virtual IActionResult GetPetById([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -198,7 +198,7 @@ public virtual IActionResult UpdatePet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n doggie\n \n aeiou\n \n \n \n aeiou\n"; var example = exampleJson != null @@ -248,7 +248,7 @@ public virtual IActionResult UploadFile([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(200, default(ApiResponse)); string exampleJson = null; - exampleJson = "{\n \"code\" : 0,\n \"type\" : \"type\",\n \"message\" : \"message\"\n}"; + exampleJson = "{\r\n \"code\" : 0,\r\n \"type\" : \"type\",\r\n \"message\" : \"message\"\r\n}"; var example = exampleJson != null ? JsonConvert.DeserializeObject(exampleJson) diff --git a/samples/server/petstore/aspnetcore-6.0/src/Org.OpenAPITools/Controllers/StoreApi.cs b/samples/server/petstore/aspnetcore-6.0/src/Org.OpenAPITools/Controllers/StoreApi.cs index b925426c761d..c57b5fb3bd16 100644 --- a/samples/server/petstore/aspnetcore-6.0/src/Org.OpenAPITools/Controllers/StoreApi.cs +++ b/samples/server/petstore/aspnetcore-6.0/src/Org.OpenAPITools/Controllers/StoreApi.cs @@ -98,7 +98,7 @@ public virtual IActionResult GetOrderById([FromRoute (Name = "orderId")][Require //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; + exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult PlaceOrder([FromBody]Order order) //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; + exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-6.0/src/Org.OpenAPITools/Controllers/UserApi.cs b/samples/server/petstore/aspnetcore-6.0/src/Org.OpenAPITools/Controllers/UserApi.cs index 6d7094c81a9d..3277ae43fcfd 100644 --- a/samples/server/petstore/aspnetcore-6.0/src/Org.OpenAPITools/Controllers/UserApi.cs +++ b/samples/server/petstore/aspnetcore-6.0/src/Org.OpenAPITools/Controllers/UserApi.cs @@ -134,7 +134,7 @@ public virtual IActionResult GetUserByName([FromRoute (Name = "username")][Requi //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"firstName\" : \"firstName\",\n \"lastName\" : \"lastName\",\n \"password\" : \"password\",\n \"userStatus\" : 6,\n \"phone\" : \"phone\",\n \"id\" : 0,\n \"email\" : \"email\",\n \"username\" : \"username\"\n}"; + exampleJson = "{\r\n \"firstName\" : \"firstName\",\r\n \"lastName\" : \"lastName\",\r\n \"password\" : \"password\",\r\n \"userStatus\" : 6,\r\n \"phone\" : \"phone\",\r\n \"id\" : 0,\r\n \"email\" : \"email\",\r\n \"username\" : \"username\"\r\n}"; exampleJson = "\n 123456789\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n 123\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore/src/Org.OpenAPITools/Controllers/PetApi.cs b/samples/server/petstore/aspnetcore/src/Org.OpenAPITools/Controllers/PetApi.cs index 419bab14d099..562ee1b0ff43 100644 --- a/samples/server/petstore/aspnetcore/src/Org.OpenAPITools/Controllers/PetApi.cs +++ b/samples/server/petstore/aspnetcore/src/Org.OpenAPITools/Controllers/PetApi.cs @@ -86,7 +86,7 @@ public virtual IActionResult FindPetsByStatus([FromQuery (Name = "status")][Requ //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; + exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -117,7 +117,7 @@ public virtual IActionResult FindPetsByTags([FromQuery (Name = "tags")][Required //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; + exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -151,7 +151,7 @@ public virtual IActionResult GetPetById([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -226,7 +226,7 @@ public virtual IActionResult UploadFile([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(200, default(ApiResponse)); string exampleJson = null; - exampleJson = "{\n \"code\" : 0,\n \"type\" : \"type\",\n \"message\" : \"message\"\n}"; + exampleJson = "{\r\n \"code\" : 0,\r\n \"type\" : \"type\",\r\n \"message\" : \"message\"\r\n}"; var example = exampleJson != null ? JsonConvert.DeserializeObject(exampleJson) diff --git a/samples/server/petstore/aspnetcore/src/Org.OpenAPITools/Controllers/StoreApi.cs b/samples/server/petstore/aspnetcore/src/Org.OpenAPITools/Controllers/StoreApi.cs index 8e493e399264..8dc20ddadfc4 100644 --- a/samples/server/petstore/aspnetcore/src/Org.OpenAPITools/Controllers/StoreApi.cs +++ b/samples/server/petstore/aspnetcore/src/Org.OpenAPITools/Controllers/StoreApi.cs @@ -98,7 +98,7 @@ public virtual IActionResult GetOrderById([FromRoute (Name = "orderId")][Require //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; + exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null @@ -127,7 +127,7 @@ public virtual IActionResult PlaceOrder([FromBody]Order body) //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; + exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore/src/Org.OpenAPITools/Controllers/UserApi.cs b/samples/server/petstore/aspnetcore/src/Org.OpenAPITools/Controllers/UserApi.cs index 6669f0418cee..d1d13530b839 100644 --- a/samples/server/petstore/aspnetcore/src/Org.OpenAPITools/Controllers/UserApi.cs +++ b/samples/server/petstore/aspnetcore/src/Org.OpenAPITools/Controllers/UserApi.cs @@ -127,7 +127,7 @@ public virtual IActionResult GetUserByName([FromRoute (Name = "username")][Requi //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"firstName\" : \"firstName\",\n \"lastName\" : \"lastName\",\n \"password\" : \"password\",\n \"userStatus\" : 6,\n \"phone\" : \"phone\",\n \"id\" : 0,\n \"email\" : \"email\",\n \"username\" : \"username\"\n}"; + exampleJson = "{\r\n \"firstName\" : \"firstName\",\r\n \"lastName\" : \"lastName\",\r\n \"password\" : \"password\",\r\n \"userStatus\" : 6,\r\n \"phone\" : \"phone\",\r\n \"id\" : 0,\r\n \"email\" : \"email\",\r\n \"username\" : \"username\"\r\n}"; exampleJson = "\n 123456789\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n 123\n"; var example = exampleJson != null diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/AnotherFakeApi.java index ac8e60cb4568..c5b4111124d7 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/AnotherFakeApi.java @@ -63,7 +63,8 @@ public AnotherFakeApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Response call123testSpecialTags(@ApiParam(value = "to test uuid example value" ,required=true)@HeaderParam("uuid_test") UUID uuidTest,@ApiParam(value = "client model", required = true) @NotNull @Valid Client body,@Context SecurityContext securityContext) + public Response call123testSpecialTags(@ApiParam(value = "to test uuid example value" ,required=true)@HeaderParam("uuid_test") UUID uuidTest,@ApiParam(value = "client model", required = true) @NotNull + Client body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.call123testSpecialTags(uuidTest, body, securityContext); } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeApi.java index c561efc23d80..21e37a51325f 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeApi.java @@ -72,7 +72,8 @@ public FakeApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createXmlItem(@ApiParam(value = "XmlItem Body", required = true) @NotNull @Valid XmlItem xmlItem,@Context SecurityContext securityContext) + public Response createXmlItem(@ApiParam(value = "XmlItem Body", required = true) @NotNull + XmlItem xmlItem,@Context SecurityContext securityContext) throws NotFoundException { return delegate.createXmlItem(xmlItem, securityContext); } @@ -84,7 +85,8 @@ public Response createXmlItem(@ApiParam(value = "XmlItem Body", required = true) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Output boolean", response = Boolean.class) }) - public Response fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body") Boolean body,@Context SecurityContext securityContext) + public Response fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body") + Boolean body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeOuterBooleanSerialize(body, securityContext); } @@ -96,7 +98,8 @@ public Response fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as po @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) - public Response fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body") @Valid OuterComposite body,@Context SecurityContext securityContext) + public Response fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body") + OuterComposite body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeOuterCompositeSerialize(body, securityContext); } @@ -108,7 +111,8 @@ public Response fakeOuterCompositeSerialize(@ApiParam(value = "Input composite a @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Output number", response = BigDecimal.class) }) - public Response fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body") BigDecimal body,@Context SecurityContext securityContext) + public Response fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body") + BigDecimal body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeOuterNumberSerialize(body, securityContext); } @@ -120,7 +124,8 @@ public Response fakeOuterNumberSerialize(@ApiParam(value = "Input number as post @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Output string", response = String.class) }) - public Response fakeOuterStringSerialize(@ApiParam(value = "Input string as post body") String body,@Context SecurityContext securityContext) + public Response fakeOuterStringSerialize(@ApiParam(value = "Input string as post body") + String body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeOuterStringSerialize(body, securityContext); } @@ -132,7 +137,8 @@ public Response fakeOuterStringSerialize(@ApiParam(value = "Input string as post @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Success", response = Void.class) }) - public Response testBodyWithFileSchema(@ApiParam(value = "", required = true) @NotNull @Valid FileSchemaTestClass body,@Context SecurityContext securityContext) + public Response testBodyWithFileSchema(@ApiParam(value = "", required = true) @NotNull + FileSchemaTestClass body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testBodyWithFileSchema(body, securityContext); } @@ -144,7 +150,9 @@ public Response testBodyWithFileSchema(@ApiParam(value = "", required = true) @N @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Success", response = Void.class) }) - public Response testBodyWithQueryParams(@ApiParam(value = "", required = true) @QueryParam("query") @NotNull String query,@ApiParam(value = "", required = true) @NotNull @Valid User body,@Context SecurityContext securityContext) + public Response testBodyWithQueryParams(@ApiParam(value = "", required = true) @QueryParam("query") @NotNull + String query,@ApiParam(value = "", required = true) @NotNull + User body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testBodyWithQueryParams(query, body, securityContext); } @@ -156,7 +164,8 @@ public Response testBodyWithQueryParams(@ApiParam(value = "", required = true) @ @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Response testClientModel(@ApiParam(value = "client model", required = true) @NotNull @Valid Client body,@Context SecurityContext securityContext) + public Response testClientModel(@ApiParam(value = "client model", required = true) @NotNull + Client body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testClientModel(body, securityContext); } @@ -185,7 +194,11 @@ public Response testEndpointParameters(@ApiParam(value = "None", required=true) @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid request", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "Not found", response = Void.class) }) - public Response testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $")@HeaderParam("enum_header_string_array") List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg")@HeaderParam("enum_header_string") String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)") @QueryParam("enum_query_string_array") @Valid List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue = "-efg") @DefaultValue("-efg") @QueryParam("enum_query_string") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1, -2") @QueryParam("enum_query_integer") Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1.1, -1.2") @QueryParam("enum_query_double") Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $", defaultValue="$") @DefaultValue("$") @FormParam("enum_form_string_array") List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @FormParam("enum_form_string") String enumFormString,@Context SecurityContext securityContext) + public Response testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $")@HeaderParam("enum_header_string_array") List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg")@HeaderParam("enum_header_string") String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)") @QueryParam("enum_query_string_array") + List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue = "-efg") @DefaultValue("-efg") @QueryParam("enum_query_string") + String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1, -2") @QueryParam("enum_query_integer") + Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1.1, -1.2") @QueryParam("enum_query_double") + Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $", defaultValue="$") @DefaultValue("$") @FormParam("enum_form_string_array") List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @FormParam("enum_form_string") String enumFormString,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, securityContext); } @@ -197,7 +210,11 @@ public Response testEnumParameters(@ApiParam(value = "Header parameter enum test @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 400, message = "Something wrong", response = Void.class) }) - public Response testGroupParameters(@ApiParam(value = "Required String in group parameters", required = true) @QueryParam("required_string_group") @NotNull Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true)@HeaderParam("required_boolean_group") Boolean requiredBooleanGroup,@ApiParam(value = "Required Integer in group parameters", required = true) @QueryParam("required_int64_group") @NotNull Long requiredInt64Group,@ApiParam(value = "String in group parameters") @QueryParam("string_group") Integer stringGroup,@ApiParam(value = "Boolean in group parameters" )@HeaderParam("boolean_group") Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @QueryParam("int64_group") Long int64Group,@Context SecurityContext securityContext) + public Response testGroupParameters(@ApiParam(value = "Required String in group parameters", required = true) @QueryParam("required_string_group") @NotNull + Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true)@HeaderParam("required_boolean_group") Boolean requiredBooleanGroup,@ApiParam(value = "Required Integer in group parameters", required = true) @QueryParam("required_int64_group") @NotNull + Long requiredInt64Group,@ApiParam(value = "String in group parameters") @QueryParam("string_group") + Integer stringGroup,@ApiParam(value = "Boolean in group parameters" )@HeaderParam("boolean_group") Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @QueryParam("int64_group") + Long int64Group,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, securityContext); } @@ -209,7 +226,8 @@ public Response testGroupParameters(@ApiParam(value = "Required String in group @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response testInlineAdditionalProperties(@ApiParam(value = "request body", required = true) @NotNull @Valid Map param,@Context SecurityContext securityContext) + public Response testInlineAdditionalProperties(@ApiParam(value = "request body", required = true) @NotNull @Valid + Map param,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testInlineAdditionalProperties(param, securityContext); } @@ -233,7 +251,12 @@ public Response testJsonFormData(@ApiParam(value = "field1", required=true) @Fo @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Success", response = Void.class) }) - public Response testQueryParameterCollectionFormat(@ApiParam(value = "", required = true) @QueryParam("pipe") @NotNull @Valid List pipe,@ApiParam(value = "", required = true) @QueryParam("ioutil") @NotNull @Valid List ioutil,@ApiParam(value = "", required = true) @QueryParam("http") @NotNull @Valid List http,@ApiParam(value = "", required = true) @QueryParam("url") @NotNull @Valid List url,@ApiParam(value = "", required = true) @QueryParam("context") @NotNull @Valid List context,@Context SecurityContext securityContext) + public Response testQueryParameterCollectionFormat(@ApiParam(value = "", required = true) @QueryParam("pipe") @NotNull @Valid + List pipe,@ApiParam(value = "", required = true) @QueryParam("ioutil") @NotNull @Valid + List ioutil,@ApiParam(value = "", required = true) @QueryParam("http") @NotNull @Valid + List http,@ApiParam(value = "", required = true) @QueryParam("url") @NotNull @Valid + List url,@ApiParam(value = "", required = true) @QueryParam("context") @NotNull @Valid + List context,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, securityContext); } @@ -250,7 +273,8 @@ public Response testQueryParameterCollectionFormat(@ApiParam(value = "", require @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) - public Response uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathParam("petId") @NotNull Long petId, + public Response uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathParam("petId") @NotNull + Long petId, @FormDataParam("requiredFile") FormDataBodyPart requiredFileBodypart ,@ApiParam(value = "Additional data to pass to server")@FormDataParam("additionalMetadata") String additionalMetadata,@Context SecurityContext securityContext) throws NotFoundException { return delegate.uploadFileWithRequiredFile(petId, requiredFileBodypart, additionalMetadata, securityContext); diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java index 4306f605e46c..93ae57ff3293 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java @@ -64,7 +64,8 @@ public FakeClassnameTestApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Response testClassname(@ApiParam(value = "client model", required = true) @NotNull @Valid Client body,@Context SecurityContext securityContext) + public Response testClassname(@ApiParam(value = "client model", required = true) @NotNull + Client body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testClassname(body, securityContext); } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/PetApi.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/PetApi.java index 5592f807547b..ce57c1eacd2f 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/PetApi.java @@ -71,7 +71,8 @@ public PetApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class), @io.swagger.annotations.ApiResponse(code = 405, message = "Invalid input", response = Void.class) }) - public Response addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull @Valid Pet body,@Context SecurityContext securityContext) + public Response addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull + Pet body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.addPet(body, securityContext); } @@ -89,7 +90,8 @@ public Response addPet(@ApiParam(value = "Pet object that needs to be added to t @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid pet value", response = Void.class) }) - public Response deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathParam("petId") @NotNull Long petId,@ApiParam(value = "" )@HeaderParam("api_key") String apiKey,@Context SecurityContext securityContext) + public Response deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathParam("petId") @NotNull + Long petId,@ApiParam(value = "" )@HeaderParam("api_key") String apiKey,@Context SecurityContext securityContext) throws NotFoundException { return delegate.deletePet(petId, apiKey, securityContext); } @@ -107,7 +109,8 @@ public Response deletePet(@ApiParam(value = "Pet id to delete", required = true) @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid status value", response = Void.class) }) - public Response findPetsByStatus(@ApiParam(value = "Status values that need to be considered for filter", required = true) @QueryParam("status") @NotNull @Valid List status,@Context SecurityContext securityContext) + public Response findPetsByStatus(@ApiParam(value = "Status values that need to be considered for filter", required = true) @QueryParam("status") @NotNull + List status,@Context SecurityContext securityContext) throws NotFoundException { return delegate.findPetsByStatus(status, securityContext); } @@ -125,7 +128,8 @@ public Response findPetsByStatus(@ApiParam(value = "Status values that need to b @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "Set"), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid tag value", response = Void.class) }) - public Response findPetsByTags(@ApiParam(value = "Tags to filter by", required = true) @QueryParam("tags") @NotNull @Valid Set tags,@Context SecurityContext securityContext) + public Response findPetsByTags(@ApiParam(value = "Tags to filter by", required = true) @QueryParam("tags") @NotNull @Valid + Set tags,@Context SecurityContext securityContext) throws NotFoundException { return delegate.findPetsByTags(tags, securityContext); } @@ -141,7 +145,8 @@ public Response findPetsByTags(@ApiParam(value = "Tags to filter by", required = @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid ID supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "Pet not found", response = Void.class) }) - public Response getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathParam("petId") @NotNull Long petId,@Context SecurityContext securityContext) + public Response getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathParam("petId") @NotNull + Long petId,@Context SecurityContext securityContext) throws NotFoundException { return delegate.getPetById(petId, securityContext); } @@ -161,7 +166,8 @@ public Response getPetById(@ApiParam(value = "ID of pet to return", required = t @io.swagger.annotations.ApiResponse(code = 404, message = "Pet not found", response = Void.class), @io.swagger.annotations.ApiResponse(code = 405, message = "Validation exception", response = Void.class) }) - public Response updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull @Valid Pet body,@Context SecurityContext securityContext) + public Response updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull + Pet body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.updatePet(body, securityContext); } @@ -178,7 +184,8 @@ public Response updatePet(@ApiParam(value = "Pet object that needs to be added t @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 405, message = "Invalid input", response = Void.class) }) - public Response updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathParam("petId") @NotNull Long petId,@ApiParam(value = "Updated name of the pet") @FormParam("name") String name,@ApiParam(value = "Updated status of the pet") @FormParam("status") String status,@Context SecurityContext securityContext) + public Response updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathParam("petId") @NotNull + Long petId,@ApiParam(value = "Updated name of the pet") @FormParam("name") String name,@ApiParam(value = "Updated status of the pet") @FormParam("status") String status,@Context SecurityContext securityContext) throws NotFoundException { return delegate.updatePetWithForm(petId, name, status, securityContext); } @@ -195,7 +202,8 @@ public Response updatePetWithForm(@ApiParam(value = "ID of pet that needs to be @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) - public Response uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathParam("petId") @NotNull Long petId,@ApiParam(value = "Additional data to pass to server")@FormDataParam("additionalMetadata") String additionalMetadata, + public Response uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathParam("petId") @NotNull + Long petId,@ApiParam(value = "Additional data to pass to server")@FormDataParam("additionalMetadata") String additionalMetadata, @FormDataParam("file") FormDataBodyPart _fileBodypart ,@Context SecurityContext securityContext) throws NotFoundException { return delegate.uploadFile(petId, additionalMetadata, _fileBodypart, securityContext); diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/StoreApi.java index 4ef38ebed15f..38275029d254 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/StoreApi.java @@ -64,7 +64,8 @@ public StoreApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid ID supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "Order not found", response = Void.class) }) - public Response deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathParam("order_id") @NotNull String orderId,@Context SecurityContext securityContext) + public Response deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathParam("order_id") @NotNull + String orderId,@Context SecurityContext securityContext) throws NotFoundException { return delegate.deleteOrder(orderId, securityContext); } @@ -92,7 +93,8 @@ public Response getInventory(@Context SecurityContext securityContext) @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid ID supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "Order not found", response = Void.class) }) - public Response getOrderById(@ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathParam("order_id") @NotNull @Min(1L) @Max(5L) Long orderId,@Context SecurityContext securityContext) + public Response getOrderById(@ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathParam("order_id") @NotNull @Min(1L) @Max(5L) + Long orderId,@Context SecurityContext securityContext) throws NotFoundException { return delegate.getOrderById(orderId, securityContext); } @@ -105,7 +107,8 @@ public Response getOrderById(@ApiParam(value = "ID of pet that needs to be fetch @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Order.class), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid Order", response = Void.class) }) - public Response placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true) @NotNull @Valid Order body,@Context SecurityContext securityContext) + public Response placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true) @NotNull + Order body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.placeOrder(body, securityContext); } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/UserApi.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/UserApi.java index 74f9e2658acb..6e0927fc95ce 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/UserApi.java @@ -63,7 +63,8 @@ public UserApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUser(@ApiParam(value = "Created user object", required = true) @NotNull @Valid User body,@Context SecurityContext securityContext) + public Response createUser(@ApiParam(value = "Created user object", required = true) @NotNull + User body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.createUser(body, securityContext); } @@ -75,7 +76,8 @@ public Response createUser(@ApiParam(value = "Created user object", required = t @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true) @NotNull @Valid List<@Valid User> body,@Context SecurityContext securityContext) + public Response createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true) @NotNull @Valid + List<@Valid User> body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.createUsersWithArrayInput(body, securityContext); } @@ -87,7 +89,8 @@ public Response createUsersWithArrayInput(@ApiParam(value = "List of user object @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUsersWithListInput(@ApiParam(value = "List of user object", required = true) @NotNull @Valid List<@Valid User> body,@Context SecurityContext securityContext) + public Response createUsersWithListInput(@ApiParam(value = "List of user object", required = true) @NotNull @Valid + List<@Valid User> body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.createUsersWithListInput(body, securityContext); } @@ -100,7 +103,8 @@ public Response createUsersWithListInput(@ApiParam(value = "List of user object" @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid username supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = Void.class) }) - public Response deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathParam("username") @NotNull String username,@Context SecurityContext securityContext) + public Response deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathParam("username") @NotNull + String username,@Context SecurityContext securityContext) throws NotFoundException { return delegate.deleteUser(username, securityContext); } @@ -114,7 +118,8 @@ public Response deleteUser(@ApiParam(value = "The name that needs to be deleted" @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid username supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = Void.class) }) - public Response getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathParam("username") @NotNull String username,@Context SecurityContext securityContext) + public Response getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathParam("username") @NotNull + String username,@Context SecurityContext securityContext) throws NotFoundException { return delegate.getUserByName(username, securityContext); } @@ -127,7 +132,9 @@ public Response getUserByName(@ApiParam(value = "The name that needs to be fetch @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = String.class), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid username/password supplied", response = Void.class) }) - public Response loginUser(@ApiParam(value = "The user name for login", required = true) @QueryParam("username") @NotNull String username,@ApiParam(value = "The password for login in clear text", required = true) @QueryParam("password") @NotNull String password,@Context SecurityContext securityContext) + public Response loginUser(@ApiParam(value = "The user name for login", required = true) @QueryParam("username") @NotNull + String username,@ApiParam(value = "The password for login in clear text", required = true) @QueryParam("password") @NotNull + String password,@Context SecurityContext securityContext) throws NotFoundException { return delegate.loginUser(username, password, securityContext); } @@ -152,7 +159,9 @@ public Response logoutUser(@Context SecurityContext securityContext) @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid user supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = Void.class) }) - public Response updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathParam("username") @NotNull String username,@ApiParam(value = "Updated user object", required = true) @NotNull @Valid User body,@Context SecurityContext securityContext) + public Response updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathParam("username") @NotNull + String username,@ApiParam(value = "Updated user object", required = true) @NotNull + User body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.updateUser(username, body, securityContext); } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesAnyType.java index 389c0e21ff83..bb30b74c4caa 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -49,6 +49,7 @@ public AdditionalPropertiesAnyType name(String name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") + public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesArray.java index 80b5670c5433..87bccd1d609b 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -50,6 +50,7 @@ public AdditionalPropertiesArray name(String name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") + public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesBoolean.java index 3587767b5771..db424d3bd3ee 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -49,6 +49,7 @@ public AdditionalPropertiesBoolean name(String name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") + public String getName() { return 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 2ec3e8b81f6a..1f9b32ab41de 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 @@ -109,6 +109,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt @JsonProperty(value = "map_string") @ApiModelProperty(value = "") + public Map getMapString() { return mapString; } @@ -137,6 +138,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb @JsonProperty(value = "map_number") @ApiModelProperty(value = "") @Valid + public Map getMapNumber() { return mapNumber; } @@ -165,6 +167,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege @JsonProperty(value = "map_integer") @ApiModelProperty(value = "") + public Map getMapInteger() { return mapInteger; } @@ -193,6 +196,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea @JsonProperty(value = "map_boolean") @ApiModelProperty(value = "") + public Map getMapBoolean() { return mapBoolean; } @@ -221,6 +225,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List> getMapArrayInteger() { return mapArrayInteger; } @@ -249,6 +254,7 @@ public AdditionalPropertiesClass putMapArrayAnytypeItem(String key, List @JsonProperty(value = "map_array_anytype") @ApiModelProperty(value = "") @Valid + public Map> getMapArrayAnytype() { return mapArrayAnytype; } @@ -277,6 +283,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map> getMapMapString() { return mapMapString; } @@ -305,6 +312,7 @@ public AdditionalPropertiesClass putMapMapAnytypeItem(String key, Map> getMapMapAnytype() { return mapMapAnytype; } @@ -325,6 +333,7 @@ public AdditionalPropertiesClass anytype1(Object anytype1) { @JsonProperty(value = "anytype_1") @ApiModelProperty(value = "") + public Object getAnytype1() { return anytype1; } @@ -345,6 +354,7 @@ public AdditionalPropertiesClass anytype2(Object anytype2) { @JsonProperty(value = "anytype_2") @ApiModelProperty(value = "") + public Object getAnytype2() { return anytype2; } @@ -365,6 +375,7 @@ public AdditionalPropertiesClass anytype3(Object anytype3) { @JsonProperty(value = "anytype_3") @ApiModelProperty(value = "") + public Object getAnytype3() { return anytype3; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesInteger.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesInteger.java index 227059f924fa..90e7c18a1695 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesInteger.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesInteger.java @@ -49,6 +49,7 @@ public AdditionalPropertiesInteger name(String name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") + public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesNumber.java index 319835332738..313c99540257 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -50,6 +50,7 @@ public AdditionalPropertiesNumber name(String name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") + public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesObject.java index 94372034e344..b0983bdca47d 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -49,6 +49,7 @@ public AdditionalPropertiesObject name(String name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") + public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesString.java index 6e68509c3992..2b12b4bd0101 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesString.java @@ -49,6 +49,7 @@ public AdditionalPropertiesString name(String name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") + public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Animal.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Animal.java index 83adba36e9b4..bad5cbbbea9a 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Animal.java @@ -61,6 +61,7 @@ public Animal className(String className) { @JsonProperty(value = "className") @ApiModelProperty(required = true, value = "") @NotNull + public String getClassName() { return className; } @@ -81,6 +82,7 @@ public Animal color(String color) { @JsonProperty(value = "color") @ApiModelProperty(value = "") + public String getColor() { return color; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index a70ab4a1ddf8..03f797c128e4 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -59,6 +59,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr @JsonProperty(value = "ArrayArrayNumber") @ApiModelProperty(value = "") @Valid + public List> getArrayArrayNumber() { return arrayArrayNumber; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java index 852f3056c249..7b721ce42fff 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -59,6 +59,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { @JsonProperty(value = "ArrayNumber") @ApiModelProperty(value = "") @Valid + public List getArrayNumber() { return arrayNumber; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ArrayTest.java index 9f3628b92fe7..836b6d536ad6 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ArrayTest.java @@ -69,6 +69,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { @JsonProperty(value = "array_of_string") @ApiModelProperty(value = "") + public List getArrayOfString() { return arrayOfString; } @@ -97,6 +98,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) @JsonProperty(value = "array_array_of_integer") @ApiModelProperty(value = "") @Valid + public List> getArrayArrayOfInteger() { return arrayArrayOfInteger; } @@ -125,6 +127,7 @@ public ArrayTest addArrayArrayOfModelItem(List<@Valid ReadOnlyFirst> arrayArrayO @JsonProperty(value = "array_array_of_model") @ApiModelProperty(value = "") @Valid + public List> getArrayArrayOfModel() { return arrayArrayOfModel; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/BigCat.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/BigCat.java index 945203126982..5d0b6ee2a655 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/BigCat.java @@ -84,6 +84,7 @@ public BigCat kind(KindEnum kind) { @JsonProperty(value = "kind") @ApiModelProperty(value = "") + public KindEnum getKind() { return kind; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Capitalization.java index 7290af744173..71c6afe64217 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Capitalization.java @@ -72,6 +72,7 @@ public Capitalization smallCamel(String smallCamel) { @JsonProperty(value = "smallCamel") @ApiModelProperty(value = "") + public String getSmallCamel() { return smallCamel; } @@ -92,6 +93,7 @@ public Capitalization capitalCamel(String capitalCamel) { @JsonProperty(value = "CapitalCamel") @ApiModelProperty(value = "") + public String getCapitalCamel() { return capitalCamel; } @@ -112,6 +114,7 @@ public Capitalization smallSnake(String smallSnake) { @JsonProperty(value = "small_Snake") @ApiModelProperty(value = "") + public String getSmallSnake() { return smallSnake; } @@ -132,6 +135,7 @@ public Capitalization capitalSnake(String capitalSnake) { @JsonProperty(value = "Capital_Snake") @ApiModelProperty(value = "") + public String getCapitalSnake() { return capitalSnake; } @@ -152,6 +156,7 @@ public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { @JsonProperty(value = "SCA_ETH_Flow_Points") @ApiModelProperty(value = "") + public String getScAETHFlowPoints() { return scAETHFlowPoints; } @@ -172,6 +177,7 @@ public Capitalization ATT_NAME(String ATT_NAME) { @JsonProperty(value = "ATT_NAME") @ApiModelProperty(value = "Name of the pet ") + public String getATTNAME() { return ATT_NAME; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Cat.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Cat.java index 6c66e152f038..c0c2cf3c0ab6 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Cat.java @@ -48,6 +48,7 @@ public Cat declawed(Boolean declawed) { @JsonProperty(value = "declawed") @ApiModelProperty(value = "") + public Boolean getDeclawed() { return declawed; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Category.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Category.java index 4e53ccde8c10..db49e0ac0965 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Category.java @@ -52,6 +52,7 @@ public Category id(Long id) { @JsonProperty(value = "id") @ApiModelProperty(value = "") + public Long getId() { return id; } @@ -72,6 +73,7 @@ public Category name(String name) { @JsonProperty(value = "name") @ApiModelProperty(required = true, value = "") @NotNull + public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ClassModel.java index 0f6171583d03..a8565cfa5146 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ClassModel.java @@ -48,6 +48,7 @@ public ClassModel propertyClass(String propertyClass) { @JsonProperty(value = "_class") @ApiModelProperty(value = "") + public String getPropertyClass() { return propertyClass; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Client.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Client.java index 31a1903f5b3e..2ad201d9d760 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Client.java @@ -47,6 +47,7 @@ public Client client(String client) { @JsonProperty(value = "client") @ApiModelProperty(value = "") + public String getClient() { return client; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Dog.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Dog.java index a8bb2f36bbf1..30597c7a9071 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Dog.java @@ -48,6 +48,7 @@ public Dog breed(String breed) { @JsonProperty(value = "breed") @ApiModelProperty(value = "") + public String getBreed() { return breed; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/EnumArrays.java index d3cec42c36dd..a04976752e99 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/EnumArrays.java @@ -118,6 +118,7 @@ public EnumArrays justSymbol(JustSymbolEnum justSymbol) { @JsonProperty(value = "just_symbol") @ApiModelProperty(value = "") + public JustSymbolEnum getJustSymbol() { return justSymbol; } @@ -146,6 +147,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { @JsonProperty(value = "array_enum") @ApiModelProperty(value = "") + public List getArrayEnum() { return arrayEnum; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/EnumTest.java index 2e4561aac1a4..443145f83e83 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/EnumTest.java @@ -198,6 +198,7 @@ public EnumTest enumString(EnumStringEnum enumString) { @JsonProperty(value = "enum_string") @ApiModelProperty(value = "") + public EnumStringEnum getEnumString() { return enumString; } @@ -218,6 +219,7 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { @JsonProperty(value = "enum_string_required") @ApiModelProperty(required = true, value = "") @NotNull + public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; } @@ -238,6 +240,7 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { @JsonProperty(value = "enum_integer") @ApiModelProperty(value = "") + public EnumIntegerEnum getEnumInteger() { return enumInteger; } @@ -258,6 +261,7 @@ public EnumTest enumNumber(EnumNumberEnum enumNumber) { @JsonProperty(value = "enum_number") @ApiModelProperty(value = "") + public EnumNumberEnum getEnumNumber() { return enumNumber; } @@ -277,7 +281,8 @@ public EnumTest outerEnum(OuterEnum outerEnum) { **/ @JsonProperty(value = "outerEnum") @ApiModelProperty(value = "") - @Valid + + public OuterEnum getOuterEnum() { return outerEnum; } 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 e0c7903abc69..c773cb9b6858 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 @@ -55,7 +55,8 @@ public FileSchemaTestClass _file(ModelFile _file) { **/ @JsonProperty(value = "file") @ApiModelProperty(value = "") - @Valid + + public ModelFile getFile() { return _file; } @@ -84,6 +85,7 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { @JsonProperty(value = "files") @ApiModelProperty(value = "") @Valid + public List<@Valid ModelFile> getFiles() { return files; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/FormatTest.java index c358822b7761..39a5706625dd 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/FormatTest.java @@ -120,6 +120,7 @@ public FormatTest integer(Integer integer) { @JsonProperty(value = "integer") @ApiModelProperty(value = "") @Min(10) @Max(100) + public Integer getInteger() { return integer; } @@ -142,6 +143,7 @@ public FormatTest int32(Integer int32) { @JsonProperty(value = "int32") @ApiModelProperty(value = "") @Min(20) @Max(200) + public Integer getInt32() { return int32; } @@ -162,6 +164,7 @@ public FormatTest int64(Long int64) { @JsonProperty(value = "int64") @ApiModelProperty(value = "") + public Long getInt64() { return int64; } @@ -183,7 +186,8 @@ public FormatTest number(BigDecimal number) { **/ @JsonProperty(value = "number") @ApiModelProperty(required = true, value = "") - @NotNull @Valid @DecimalMin("32.1") @DecimalMax("543.2") + @NotNull @DecimalMin("32.1") @DecimalMax("543.2") + public BigDecimal getNumber() { return number; } @@ -206,6 +210,7 @@ public FormatTest _float(Float _float) { @JsonProperty(value = "float") @ApiModelProperty(value = "") @DecimalMin("54.3") @DecimalMax("987.6") + public Float getFloat() { return _float; } @@ -228,6 +233,7 @@ public FormatTest _double(Double _double) { @JsonProperty(value = "double") @ApiModelProperty(value = "") @DecimalMin("67.8") @DecimalMax("123.4") + public Double getDouble() { return _double; } @@ -248,6 +254,7 @@ public FormatTest string(String string) { @JsonProperty(value = "string") @ApiModelProperty(value = "") @Pattern(regexp="/[a-z]/i") + public String getString() { return string; } @@ -268,6 +275,7 @@ public FormatTest _byte(byte[] _byte) { @JsonProperty(value = "byte") @ApiModelProperty(required = true, value = "") @NotNull + public byte[] getByte() { return _byte; } @@ -288,6 +296,7 @@ public FormatTest binary(File binary) { @JsonProperty(value = "binary") @ApiModelProperty(value = "") + public File getBinary() { return binary; } @@ -308,6 +317,7 @@ public FormatTest date(LocalDate date) { @JsonProperty(value = "date") @ApiModelProperty(required = true, value = "") @NotNull + public LocalDate getDate() { return date; } @@ -328,6 +338,7 @@ public FormatTest dateTime(OffsetDateTime dateTime) { @JsonProperty(value = "dateTime") @ApiModelProperty(value = "") + public OffsetDateTime getDateTime() { return dateTime; } @@ -348,6 +359,7 @@ public FormatTest uuid(UUID uuid) { @JsonProperty(value = "uuid") @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + public UUID getUuid() { return uuid; } @@ -368,6 +380,7 @@ public FormatTest password(String password) { @JsonProperty(value = "password") @ApiModelProperty(required = true, value = "") @NotNull @Size(min=10,max=64) + public String getPassword() { return password; } @@ -387,7 +400,8 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { **/ @JsonProperty(value = "BigDecimal") @ApiModelProperty(value = "") - @Valid + + public BigDecimal getBigDecimal() { return bigDecimal; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java index 5874ccd73fe3..26bfd688efaa 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java @@ -53,6 +53,7 @@ public HasOnlyReadOnly bar(String bar) { @JsonProperty(value = "bar", access = JsonProperty.Access.READ_ONLY) @ApiModelProperty(value = "") + public String getBar() { return bar; } @@ -73,6 +74,7 @@ public HasOnlyReadOnly foo(String foo) { @JsonProperty(value = "foo", access = JsonProperty.Access.READ_ONLY) @ApiModelProperty(value = "") + public String getFoo() { return foo; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/MapTest.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/MapTest.java index 5a7bdb19dd91..66a1bf6485b6 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/MapTest.java @@ -104,6 +104,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr @JsonProperty(value = "map_map_of_string") @ApiModelProperty(value = "") @Valid + public Map> getMapMapOfString() { return mapMapOfString; } @@ -132,6 +133,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) @JsonProperty(value = "map_of_enum_string") @ApiModelProperty(value = "") + public Map getMapOfEnumString() { return mapOfEnumString; } @@ -160,6 +162,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { @JsonProperty(value = "direct_map") @ApiModelProperty(value = "") + public Map getDirectMap() { return directMap; } @@ -188,6 +191,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { @JsonProperty(value = "indirect_map") @ApiModelProperty(value = "") + public Map getIndirectMap() { return indirectMap; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index d2995a25fc2d..93c31a518b7a 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -62,6 +62,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { @JsonProperty(value = "uuid") @ApiModelProperty(value = "") + public UUID getUuid() { return uuid; } @@ -82,6 +83,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT @JsonProperty(value = "dateTime") @ApiModelProperty(value = "") + public OffsetDateTime getDateTime() { return dateTime; } @@ -110,6 +112,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal @JsonProperty(value = "map") @ApiModelProperty(value = "") @Valid + public Map getMap() { return map; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Model200Response.java index f5758dfe17e2..92bb1fb1cf5a 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Model200Response.java @@ -54,6 +54,7 @@ public Model200Response name(Integer name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") + public Integer getName() { return name; } @@ -74,6 +75,7 @@ public Model200Response propertyClass(String propertyClass) { @JsonProperty(value = "class") @ApiModelProperty(value = "") + public String getPropertyClass() { return propertyClass; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ModelApiResponse.java index d1645f96e481..a8dfb0d743b1 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ModelApiResponse.java @@ -58,6 +58,7 @@ public ModelApiResponse code(Integer code) { @JsonProperty(value = "code") @ApiModelProperty(value = "") + public Integer getCode() { return code; } @@ -78,6 +79,7 @@ public ModelApiResponse type(String type) { @JsonProperty(value = "type") @ApiModelProperty(value = "") + public String getType() { return type; } @@ -98,6 +100,7 @@ public ModelApiResponse message(String message) { @JsonProperty(value = "message") @ApiModelProperty(value = "") + public String getMessage() { return message; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ModelFile.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ModelFile.java index c4911e68b076..3d3552ee6082 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ModelFile.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ModelFile.java @@ -49,6 +49,7 @@ public ModelFile sourceURI(String sourceURI) { @JsonProperty(value = "sourceURI") @ApiModelProperty(value = "Test capitalization") + public String getSourceURI() { return sourceURI; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ModelList.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ModelList.java index 1c6ab388164e..de2d2aab780a 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ModelList.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ModelList.java @@ -48,6 +48,7 @@ public ModelList _123list(String _123list) { @JsonProperty(value = "123-list") @ApiModelProperty(value = "") + public String get123list() { return _123list; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ModelReturn.java index e51257162438..090f5dab2296 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ModelReturn.java @@ -49,6 +49,7 @@ public ModelReturn _return(Integer _return) { @JsonProperty(value = "return") @ApiModelProperty(value = "") + public Integer getReturn() { return _return; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Name.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Name.java index 9feb66b4213c..d308fe91f7bf 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Name.java @@ -63,6 +63,7 @@ public Name name(Integer name) { @JsonProperty(value = "name") @ApiModelProperty(required = true, value = "") @NotNull + public Integer getName() { return name; } @@ -83,6 +84,7 @@ public Name snakeCase(Integer snakeCase) { @JsonProperty(value = "snake_case", access = JsonProperty.Access.READ_ONLY) @ApiModelProperty(value = "") + public Integer getSnakeCase() { return snakeCase; } @@ -103,6 +105,7 @@ public Name property(String property) { @JsonProperty(value = "property") @ApiModelProperty(value = "") + public String getProperty() { return property; } @@ -123,6 +126,7 @@ public Name _123number(Integer _123number) { @JsonProperty(value = "123Number", access = JsonProperty.Access.READ_ONLY) @ApiModelProperty(value = "") + public Integer get123number() { return _123number; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/NumberOnly.java index 6313a6cdbdcf..114b8ea13685 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/NumberOnly.java @@ -47,7 +47,8 @@ public NumberOnly justNumber(BigDecimal justNumber) { **/ @JsonProperty(value = "JustNumber") @ApiModelProperty(value = "") - @Valid + + public BigDecimal getJustNumber() { return justNumber; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Order.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Order.java index 9e377ac0c956..a82a5100fc3b 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Order.java @@ -107,6 +107,7 @@ public Order id(Long id) { @JsonProperty(value = "id") @ApiModelProperty(value = "") + public Long getId() { return id; } @@ -127,6 +128,7 @@ public Order petId(Long petId) { @JsonProperty(value = "petId") @ApiModelProperty(value = "") + public Long getPetId() { return petId; } @@ -147,6 +149,7 @@ public Order quantity(Integer quantity) { @JsonProperty(value = "quantity") @ApiModelProperty(value = "") + public Integer getQuantity() { return quantity; } @@ -167,6 +170,7 @@ public Order shipDate(OffsetDateTime shipDate) { @JsonProperty(value = "shipDate") @ApiModelProperty(value = "") + public OffsetDateTime getShipDate() { return shipDate; } @@ -187,6 +191,7 @@ public Order status(StatusEnum status) { @JsonProperty(value = "status") @ApiModelProperty(value = "Order Status") + public StatusEnum getStatus() { return status; } @@ -207,6 +212,7 @@ public Order complete(Boolean complete) { @JsonProperty(value = "complete") @ApiModelProperty(value = "") + public Boolean getComplete() { return complete; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/OuterComposite.java index 16d148ad2d65..03f5e8ab67c5 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/OuterComposite.java @@ -57,7 +57,8 @@ public OuterComposite myNumber(BigDecimal myNumber) { **/ @JsonProperty(value = "my_number") @ApiModelProperty(value = "") - @Valid + + public BigDecimal getMyNumber() { return myNumber; } @@ -78,6 +79,7 @@ public OuterComposite myString(String myString) { @JsonProperty(value = "my_string") @ApiModelProperty(value = "") + public String getMyString() { return myString; } @@ -98,6 +100,7 @@ public OuterComposite myBoolean(Boolean myBoolean) { @JsonProperty(value = "my_boolean") @ApiModelProperty(value = "") + public Boolean getMyBoolean() { return myBoolean; } 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 290605a4c8c0..3b9d8cbe0591 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 @@ -114,6 +114,7 @@ public Pet id(Long id) { @JsonProperty(value = "id") @ApiModelProperty(value = "") + public Long getId() { return id; } @@ -133,7 +134,8 @@ public Pet category(Category category) { **/ @JsonProperty(value = "category") @ApiModelProperty(value = "") - @Valid + + public Category getCategory() { return category; } @@ -154,6 +156,7 @@ public Pet name(String name) { @JsonProperty(value = "name") @ApiModelProperty(example = "doggie", required = true, value = "") @NotNull + public String getName() { return name; } @@ -182,6 +185,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { @JsonProperty(value = "photoUrls") @ApiModelProperty(required = true, value = "") @NotNull + public Set getPhotoUrls() { return photoUrls; } @@ -211,6 +215,7 @@ public Pet addTagsItem(Tag tagsItem) { @JsonProperty(value = "tags") @ApiModelProperty(value = "") @Valid + public List<@Valid Tag> getTags() { return tags; } @@ -231,6 +236,7 @@ public Pet status(StatusEnum status) { @JsonProperty(value = "status") @ApiModelProperty(value = "pet status in the store") + public StatusEnum getStatus() { return status; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ReadOnlyFirst.java index cd7bf7bcfd32..fc6d3dffb45f 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ReadOnlyFirst.java @@ -52,6 +52,7 @@ public ReadOnlyFirst bar(String bar) { @JsonProperty(value = "bar", access = JsonProperty.Access.READ_ONLY) @ApiModelProperty(value = "") + public String getBar() { return bar; } @@ -72,6 +73,7 @@ public ReadOnlyFirst baz(String baz) { @JsonProperty(value = "baz") @ApiModelProperty(value = "") + public String getBaz() { return baz; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/SpecialModelName.java index 42a8d87611ed..c1cd5fbfa6d7 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/SpecialModelName.java @@ -48,6 +48,7 @@ public class SpecialModelName implements Serializable { @JsonProperty(value = "$special[property.name]") @ApiModelProperty(value = "") + public Long get$SpecialPropertyName() { return $specialPropertyName; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Tag.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Tag.java index 89ef3064464c..81a72fd97239 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Tag.java @@ -52,6 +52,7 @@ public Tag id(Long id) { @JsonProperty(value = "id") @ApiModelProperty(value = "") + public Long getId() { return id; } @@ -72,6 +73,7 @@ public Tag name(String name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") + public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/TypeHolderDefault.java index f44fc01fe77e..78470ed74abe 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/TypeHolderDefault.java @@ -71,6 +71,7 @@ public TypeHolderDefault stringItem(String stringItem) { @JsonProperty(value = "string_item") @ApiModelProperty(required = true, value = "") @NotNull + public String getStringItem() { return stringItem; } @@ -90,7 +91,8 @@ public TypeHolderDefault numberItem(BigDecimal numberItem) { **/ @JsonProperty(value = "number_item") @ApiModelProperty(required = true, value = "") - @NotNull @Valid + @NotNull + public BigDecimal getNumberItem() { return numberItem; } @@ -111,6 +113,7 @@ public TypeHolderDefault integerItem(Integer integerItem) { @JsonProperty(value = "integer_item") @ApiModelProperty(required = true, value = "") @NotNull + public Integer getIntegerItem() { return integerItem; } @@ -131,6 +134,7 @@ public TypeHolderDefault boolItem(Boolean boolItem) { @JsonProperty(value = "bool_item") @ApiModelProperty(required = true, value = "") @NotNull + public Boolean getBoolItem() { return boolItem; } @@ -159,6 +163,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { @JsonProperty(value = "array_item") @ApiModelProperty(required = true, value = "") @NotNull + public List getArrayItem() { return arrayItem; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/TypeHolderExample.java index d56e08720337..d7225f928be4 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/TypeHolderExample.java @@ -76,6 +76,7 @@ public TypeHolderExample stringItem(String stringItem) { @JsonProperty(value = "string_item") @ApiModelProperty(example = "what", required = true, value = "") @NotNull + public String getStringItem() { return stringItem; } @@ -95,7 +96,8 @@ public TypeHolderExample numberItem(BigDecimal numberItem) { **/ @JsonProperty(value = "number_item") @ApiModelProperty(example = "1.234", required = true, value = "") - @NotNull @Valid + @NotNull + public BigDecimal getNumberItem() { return numberItem; } @@ -116,6 +118,7 @@ public TypeHolderExample floatItem(Float floatItem) { @JsonProperty(value = "float_item") @ApiModelProperty(example = "1.234", required = true, value = "") @NotNull + public Float getFloatItem() { return floatItem; } @@ -136,6 +139,7 @@ public TypeHolderExample integerItem(Integer integerItem) { @JsonProperty(value = "integer_item") @ApiModelProperty(example = "-2", required = true, value = "") @NotNull + public Integer getIntegerItem() { return integerItem; } @@ -156,6 +160,7 @@ public TypeHolderExample boolItem(Boolean boolItem) { @JsonProperty(value = "bool_item") @ApiModelProperty(example = "true", required = true, value = "") @NotNull + public Boolean getBoolItem() { return boolItem; } @@ -184,6 +189,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { @JsonProperty(value = "array_item") @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") @NotNull + public List getArrayItem() { return arrayItem; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/User.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/User.java index 5b3e81d7f625..621023889811 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/User.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/User.java @@ -82,6 +82,7 @@ public User id(Long id) { @JsonProperty(value = "id") @ApiModelProperty(value = "") + public Long getId() { return id; } @@ -102,6 +103,7 @@ public User username(String username) { @JsonProperty(value = "username") @ApiModelProperty(value = "") + public String getUsername() { return username; } @@ -122,6 +124,7 @@ public User firstName(String firstName) { @JsonProperty(value = "firstName") @ApiModelProperty(value = "") + public String getFirstName() { return firstName; } @@ -142,6 +145,7 @@ public User lastName(String lastName) { @JsonProperty(value = "lastName") @ApiModelProperty(value = "") + public String getLastName() { return lastName; } @@ -162,6 +166,7 @@ public User email(String email) { @JsonProperty(value = "email") @ApiModelProperty(value = "") + public String getEmail() { return email; } @@ -182,6 +187,7 @@ public User password(String password) { @JsonProperty(value = "password") @ApiModelProperty(value = "") + public String getPassword() { return password; } @@ -202,6 +208,7 @@ public User phone(String phone) { @JsonProperty(value = "phone") @ApiModelProperty(value = "") + public String getPhone() { return phone; } @@ -222,6 +229,7 @@ public User userStatus(Integer userStatus) { @JsonProperty(value = "userStatus") @ApiModelProperty(value = "User Status") + public Integer getUserStatus() { return userStatus; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/XmlItem.java index 7f2509b22ff1..bc85ac0eb34a 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/XmlItem.java @@ -191,6 +191,7 @@ public XmlItem attributeString(String attributeString) { @JsonProperty(value = "attribute_string") @ApiModelProperty(example = "string", value = "") + public String getAttributeString() { return attributeString; } @@ -210,7 +211,8 @@ public XmlItem attributeNumber(BigDecimal attributeNumber) { **/ @JsonProperty(value = "attribute_number") @ApiModelProperty(example = "1.234", value = "") - @Valid + + public BigDecimal getAttributeNumber() { return attributeNumber; } @@ -231,6 +233,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { @JsonProperty(value = "attribute_integer") @ApiModelProperty(example = "-2", value = "") + public Integer getAttributeInteger() { return attributeInteger; } @@ -251,6 +254,7 @@ public XmlItem attributeBoolean(Boolean attributeBoolean) { @JsonProperty(value = "attribute_boolean") @ApiModelProperty(example = "true", value = "") + public Boolean getAttributeBoolean() { return attributeBoolean; } @@ -279,6 +283,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { @JsonProperty(value = "wrapped_array") @ApiModelProperty(value = "") + public List getWrappedArray() { return wrappedArray; } @@ -299,6 +304,7 @@ public XmlItem nameString(String nameString) { @JsonProperty(value = "name_string") @ApiModelProperty(example = "string", value = "") + public String getNameString() { return nameString; } @@ -318,7 +324,8 @@ public XmlItem nameNumber(BigDecimal nameNumber) { **/ @JsonProperty(value = "name_number") @ApiModelProperty(example = "1.234", value = "") - @Valid + + public BigDecimal getNameNumber() { return nameNumber; } @@ -339,6 +346,7 @@ public XmlItem nameInteger(Integer nameInteger) { @JsonProperty(value = "name_integer") @ApiModelProperty(example = "-2", value = "") + public Integer getNameInteger() { return nameInteger; } @@ -359,6 +367,7 @@ public XmlItem nameBoolean(Boolean nameBoolean) { @JsonProperty(value = "name_boolean") @ApiModelProperty(example = "true", value = "") + public Boolean getNameBoolean() { return nameBoolean; } @@ -387,6 +396,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { @JsonProperty(value = "name_array") @ApiModelProperty(value = "") + public List getNameArray() { return nameArray; } @@ -415,6 +425,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { @JsonProperty(value = "name_wrapped_array") @ApiModelProperty(value = "") + public List getNameWrappedArray() { return nameWrappedArray; } @@ -435,6 +446,7 @@ public XmlItem prefixString(String prefixString) { @JsonProperty(value = "prefix_string") @ApiModelProperty(example = "string", value = "") + public String getPrefixString() { return prefixString; } @@ -454,7 +466,8 @@ public XmlItem prefixNumber(BigDecimal prefixNumber) { **/ @JsonProperty(value = "prefix_number") @ApiModelProperty(example = "1.234", value = "") - @Valid + + public BigDecimal getPrefixNumber() { return prefixNumber; } @@ -475,6 +488,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { @JsonProperty(value = "prefix_integer") @ApiModelProperty(example = "-2", value = "") + public Integer getPrefixInteger() { return prefixInteger; } @@ -495,6 +509,7 @@ public XmlItem prefixBoolean(Boolean prefixBoolean) { @JsonProperty(value = "prefix_boolean") @ApiModelProperty(example = "true", value = "") + public Boolean getPrefixBoolean() { return prefixBoolean; } @@ -523,6 +538,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { @JsonProperty(value = "prefix_array") @ApiModelProperty(value = "") + public List getPrefixArray() { return prefixArray; } @@ -551,6 +567,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { @JsonProperty(value = "prefix_wrapped_array") @ApiModelProperty(value = "") + public List getPrefixWrappedArray() { return prefixWrappedArray; } @@ -571,6 +588,7 @@ public XmlItem namespaceString(String namespaceString) { @JsonProperty(value = "namespace_string") @ApiModelProperty(example = "string", value = "") + public String getNamespaceString() { return namespaceString; } @@ -590,7 +608,8 @@ public XmlItem namespaceNumber(BigDecimal namespaceNumber) { **/ @JsonProperty(value = "namespace_number") @ApiModelProperty(example = "1.234", value = "") - @Valid + + public BigDecimal getNamespaceNumber() { return namespaceNumber; } @@ -611,6 +630,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { @JsonProperty(value = "namespace_integer") @ApiModelProperty(example = "-2", value = "") + public Integer getNamespaceInteger() { return namespaceInteger; } @@ -631,6 +651,7 @@ public XmlItem namespaceBoolean(Boolean namespaceBoolean) { @JsonProperty(value = "namespace_boolean") @ApiModelProperty(example = "true", value = "") + public Boolean getNamespaceBoolean() { return namespaceBoolean; } @@ -659,6 +680,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { @JsonProperty(value = "namespace_array") @ApiModelProperty(value = "") + public List getNamespaceArray() { return namespaceArray; } @@ -687,6 +709,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { @JsonProperty(value = "namespace_wrapped_array") @ApiModelProperty(value = "") + public List getNamespaceWrappedArray() { return namespaceWrappedArray; } @@ -707,6 +730,7 @@ public XmlItem prefixNsString(String prefixNsString) { @JsonProperty(value = "prefix_ns_string") @ApiModelProperty(example = "string", value = "") + public String getPrefixNsString() { return prefixNsString; } @@ -726,7 +750,8 @@ public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { **/ @JsonProperty(value = "prefix_ns_number") @ApiModelProperty(example = "1.234", value = "") - @Valid + + public BigDecimal getPrefixNsNumber() { return prefixNsNumber; } @@ -747,6 +772,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { @JsonProperty(value = "prefix_ns_integer") @ApiModelProperty(example = "-2", value = "") + public Integer getPrefixNsInteger() { return prefixNsInteger; } @@ -767,6 +793,7 @@ public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { @JsonProperty(value = "prefix_ns_boolean") @ApiModelProperty(example = "true", value = "") + public Boolean getPrefixNsBoolean() { return prefixNsBoolean; } @@ -795,6 +822,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { @JsonProperty(value = "prefix_ns_array") @ApiModelProperty(value = "") + public List getPrefixNsArray() { return prefixNsArray; } @@ -823,6 +851,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { @JsonProperty(value = "prefix_ns_wrapped_array") @ApiModelProperty(value = "") + public List getPrefixNsWrappedArray() { return prefixNsWrappedArray; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/AnotherFakeApi.java index 2cc9518351d6..8be8ef2a7c89 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/AnotherFakeApi.java @@ -62,7 +62,8 @@ public AnotherFakeApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Response call123testSpecialTags(@ApiParam(value = "client model", required = true) @NotNull @Valid Client client,@Context SecurityContext securityContext) + public Response call123testSpecialTags(@ApiParam(value = "client model", required = true) @NotNull + Client client,@Context SecurityContext securityContext) throws NotFoundException { return delegate.call123testSpecialTags(client, securityContext); } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/FakeApi.java index ada1d28638af..14268766e911 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/FakeApi.java @@ -103,7 +103,9 @@ public Response fakeHealthGet(@Context SecurityContext securityContext) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "The instance started successfully", response = Void.class) }) - public Response fakeHttpSignatureTest(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull @Valid Pet pet,@ApiParam(value = "query parameter") @QueryParam("query_1") String query1,@ApiParam(value = "header parameter" )@HeaderParam("header_1") String header1,@Context SecurityContext securityContext) + public Response fakeHttpSignatureTest(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull + Pet pet,@ApiParam(value = "query parameter") @QueryParam("query_1") + String query1,@ApiParam(value = "header parameter" )@HeaderParam("header_1") String header1,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeHttpSignatureTest(pet, query1, header1, securityContext); } @@ -115,7 +117,8 @@ public Response fakeHttpSignatureTest(@ApiParam(value = "Pet object that needs t @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Output boolean", response = Boolean.class) }) - public Response fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body") Boolean body,@Context SecurityContext securityContext) + public Response fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body") + Boolean body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeOuterBooleanSerialize(body, securityContext); } @@ -127,7 +130,8 @@ public Response fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as po @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) - public Response fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body") @Valid OuterComposite outerComposite,@Context SecurityContext securityContext) + public Response fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body") + OuterComposite outerComposite,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeOuterCompositeSerialize(outerComposite, securityContext); } @@ -139,7 +143,8 @@ public Response fakeOuterCompositeSerialize(@ApiParam(value = "Input composite a @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Output number", response = BigDecimal.class) }) - public Response fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body") BigDecimal body,@Context SecurityContext securityContext) + public Response fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body") + BigDecimal body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeOuterNumberSerialize(body, securityContext); } @@ -151,7 +156,8 @@ public Response fakeOuterNumberSerialize(@ApiParam(value = "Input number as post @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Output string", response = String.class) }) - public Response fakeOuterStringSerialize(@ApiParam(value = "Input string as post body") String body,@Context SecurityContext securityContext) + public Response fakeOuterStringSerialize(@ApiParam(value = "Input string as post body") + String body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeOuterStringSerialize(body, securityContext); } @@ -163,7 +169,8 @@ public Response fakeOuterStringSerialize(@ApiParam(value = "Input string as post @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Output enum (int)", response = OuterObjectWithEnumProperty.class) }) - public Response fakePropertyEnumIntegerSerialize(@ApiParam(value = "Input enum (int) as post body", required = true) @NotNull @Valid OuterObjectWithEnumProperty outerObjectWithEnumProperty,@Context SecurityContext securityContext) + public Response fakePropertyEnumIntegerSerialize(@ApiParam(value = "Input enum (int) as post body", required = true) @NotNull + OuterObjectWithEnumProperty outerObjectWithEnumProperty,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakePropertyEnumIntegerSerialize(outerObjectWithEnumProperty, securityContext); } @@ -175,7 +182,8 @@ public Response fakePropertyEnumIntegerSerialize(@ApiParam(value = "Input enum ( @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response testAdditionalPropertiesReference(@ApiParam(value = "request body", required = true) @NotNull @Valid Map requestBody,@Context SecurityContext securityContext) + public Response testAdditionalPropertiesReference(@ApiParam(value = "request body", required = true) @NotNull @Valid + Map requestBody,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testAdditionalPropertiesReference(requestBody, securityContext); } @@ -187,7 +195,8 @@ public Response testAdditionalPropertiesReference(@ApiParam(value = "request bod @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Success", response = Void.class) }) - public Response testBodyWithBinary(@ApiParam(value = "image to upload", required = true) @NotNull File body,@Context SecurityContext securityContext) + public Response testBodyWithBinary(@ApiParam(value = "image to upload", required = true) @NotNull + File body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testBodyWithBinary(body, securityContext); } @@ -199,7 +208,8 @@ public Response testBodyWithBinary(@ApiParam(value = "image to upload", required @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Success", response = Void.class) }) - public Response testBodyWithFileSchema(@ApiParam(value = "", required = true) @NotNull @Valid FileSchemaTestClass fileSchemaTestClass,@Context SecurityContext securityContext) + public Response testBodyWithFileSchema(@ApiParam(value = "", required = true) @NotNull + FileSchemaTestClass fileSchemaTestClass,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testBodyWithFileSchema(fileSchemaTestClass, securityContext); } @@ -211,7 +221,9 @@ public Response testBodyWithFileSchema(@ApiParam(value = "", required = true) @N @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Success", response = Void.class) }) - public Response testBodyWithQueryParams(@ApiParam(value = "", required = true) @QueryParam("query") @NotNull String query,@ApiParam(value = "", required = true) @NotNull @Valid User user,@Context SecurityContext securityContext) + public Response testBodyWithQueryParams(@ApiParam(value = "", required = true) @QueryParam("query") @NotNull + String query,@ApiParam(value = "", required = true) @NotNull + User user,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testBodyWithQueryParams(query, user, securityContext); } @@ -223,7 +235,8 @@ public Response testBodyWithQueryParams(@ApiParam(value = "", required = true) @ @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Response testClientModel(@ApiParam(value = "client model", required = true) @NotNull @Valid Client client,@Context SecurityContext securityContext) + public Response testClientModel(@ApiParam(value = "client model", required = true) @NotNull + Client client,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testClientModel(client, securityContext); } @@ -252,7 +265,12 @@ public Response testEndpointParameters(@ApiParam(value = "None", required=true) @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid request", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "Not found", response = Void.class) }) - public Response testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $")@HeaderParam("enum_header_string_array") List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg")@HeaderParam("enum_header_string") String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)") @QueryParam("enum_query_string_array") @Valid List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue = "-efg") @DefaultValue("-efg") @QueryParam("enum_query_string") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1, -2") @QueryParam("enum_query_integer") Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1.1, -1.2") @QueryParam("enum_query_double") Double enumQueryDouble,@ApiParam(value = "") @QueryParam("enum_query_model_array") @Valid List enumQueryModelArray,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $", defaultValue="$") @DefaultValue("$") @FormParam("enum_form_string_array") List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @FormParam("enum_form_string") String enumFormString,@Context SecurityContext securityContext) + public Response testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $")@HeaderParam("enum_header_string_array") List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg")@HeaderParam("enum_header_string") String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)") @QueryParam("enum_query_string_array") + List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue = "-efg") @DefaultValue("-efg") @QueryParam("enum_query_string") + String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1, -2") @QueryParam("enum_query_integer") + Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1.1, -1.2") @QueryParam("enum_query_double") + Double enumQueryDouble,@ApiParam(value = "") @QueryParam("enum_query_model_array") @Valid + List enumQueryModelArray,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $", defaultValue="$") @DefaultValue("$") @FormParam("enum_form_string_array") List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @FormParam("enum_form_string") String enumFormString,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString, securityContext); } @@ -266,7 +284,11 @@ public Response testEnumParameters(@ApiParam(value = "Header parameter enum test @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 400, message = "Something wrong", response = Void.class) }) - public Response testGroupParameters(@ApiParam(value = "Required String in group parameters", required = true) @QueryParam("required_string_group") @NotNull Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true)@HeaderParam("required_boolean_group") Boolean requiredBooleanGroup,@ApiParam(value = "Required Integer in group parameters", required = true) @QueryParam("required_int64_group") @NotNull Long requiredInt64Group,@ApiParam(value = "String in group parameters") @QueryParam("string_group") Integer stringGroup,@ApiParam(value = "Boolean in group parameters" )@HeaderParam("boolean_group") Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @QueryParam("int64_group") Long int64Group,@Context SecurityContext securityContext) + public Response testGroupParameters(@ApiParam(value = "Required String in group parameters", required = true) @QueryParam("required_string_group") @NotNull + Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true)@HeaderParam("required_boolean_group") Boolean requiredBooleanGroup,@ApiParam(value = "Required Integer in group parameters", required = true) @QueryParam("required_int64_group") @NotNull + Long requiredInt64Group,@ApiParam(value = "String in group parameters") @QueryParam("string_group") + Integer stringGroup,@ApiParam(value = "Boolean in group parameters" )@HeaderParam("boolean_group") Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @QueryParam("int64_group") + Long int64Group,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, securityContext); } @@ -278,7 +300,8 @@ public Response testGroupParameters(@ApiParam(value = "Required String in group @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response testInlineAdditionalProperties(@ApiParam(value = "request body", required = true) @NotNull @Valid Map requestBody,@Context SecurityContext securityContext) + public Response testInlineAdditionalProperties(@ApiParam(value = "request body", required = true) @NotNull @Valid + Map requestBody,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testInlineAdditionalProperties(requestBody, securityContext); } @@ -290,7 +313,8 @@ public Response testInlineAdditionalProperties(@ApiParam(value = "request body", @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response testInlineFreeformAdditionalProperties(@ApiParam(value = "request body", required = true) @NotNull @Valid TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest,@Context SecurityContext securityContext) + public Response testInlineFreeformAdditionalProperties(@ApiParam(value = "request body", required = true) @NotNull + TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest, securityContext); } @@ -314,7 +338,8 @@ public Response testJsonFormData(@ApiParam(value = "field1", required=true) @Fo @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response testNullable(@ApiParam(value = "request body", required = true) @NotNull @Valid ChildWithNullable childWithNullable,@Context SecurityContext securityContext) + public Response testNullable(@ApiParam(value = "request body", required = true) @NotNull + ChildWithNullable childWithNullable,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testNullable(childWithNullable, securityContext); } @@ -326,7 +351,14 @@ public Response testNullable(@ApiParam(value = "request body", required = true) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Success", response = Void.class) }) - public Response testQueryParameterCollectionFormat(@ApiParam(value = "", required = true) @QueryParam("pipe") @NotNull @Valid List pipe,@ApiParam(value = "", required = true) @QueryParam("ioutil") @NotNull @Valid List ioutil,@ApiParam(value = "", required = true) @QueryParam("http") @NotNull @Valid List http,@ApiParam(value = "", required = true) @QueryParam("url") @NotNull @Valid List url,@ApiParam(value = "", required = true) @QueryParam("context") @NotNull @Valid List context,@ApiParam(value = "", required = true) @QueryParam("allowEmpty") @NotNull String allowEmpty,@ApiParam(value = "") @QueryParam("language") @Valid Map language,@Context SecurityContext securityContext) + public Response testQueryParameterCollectionFormat(@ApiParam(value = "", required = true) @QueryParam("pipe") @NotNull @Valid + List pipe,@ApiParam(value = "", required = true) @QueryParam("ioutil") @NotNull @Valid + List ioutil,@ApiParam(value = "", required = true) @QueryParam("http") @NotNull @Valid + List http,@ApiParam(value = "", required = true) @QueryParam("url") @NotNull @Valid + List url,@ApiParam(value = "", required = true) @QueryParam("context") @NotNull @Valid + List context,@ApiParam(value = "", required = true) @QueryParam("allowEmpty") @NotNull + String allowEmpty,@ApiParam(value = "") @QueryParam("language") @Valid + Map language,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowEmpty, language, securityContext); } @@ -338,7 +370,8 @@ public Response testQueryParameterCollectionFormat(@ApiParam(value = "", require @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response testStringMapReference(@ApiParam(value = "request body", required = true) @NotNull @Valid Map requestBody,@Context SecurityContext securityContext) + public Response testStringMapReference(@ApiParam(value = "request body", required = true) @NotNull @Valid + Map requestBody,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testStringMapReference(requestBody, securityContext); } @@ -355,7 +388,8 @@ public Response testStringMapReference(@ApiParam(value = "request body", require @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) - public Response uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathParam("petId") @NotNull Long petId, + public Response uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathParam("petId") @NotNull + Long petId, @FormDataParam("requiredFile") FormDataBodyPart requiredFileBodypart ,@ApiParam(value = "Additional data to pass to server")@FormDataParam("additionalMetadata") String additionalMetadata,@Context SecurityContext securityContext) throws NotFoundException { return delegate.uploadFileWithRequiredFile(petId, requiredFileBodypart, additionalMetadata, securityContext); diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java index cae08da10f3a..089cb6c7e7e6 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java @@ -64,7 +64,8 @@ public FakeClassnameTestApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Response testClassname(@ApiParam(value = "client model", required = true) @NotNull @Valid Client client,@Context SecurityContext securityContext) + public Response testClassname(@ApiParam(value = "client model", required = true) @NotNull + Client client,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testClassname(client, securityContext); } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/PetApi.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/PetApi.java index 08cbaad7a95b..e69ed9de75c3 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/PetApi.java @@ -71,7 +71,8 @@ public PetApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponse(code = 200, message = "Successful operation", response = Void.class), @io.swagger.annotations.ApiResponse(code = 405, message = "Invalid input", response = Void.class) }) - public Response addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull @Valid Pet pet,@Context SecurityContext securityContext) + public Response addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull + Pet pet,@Context SecurityContext securityContext) throws NotFoundException { return delegate.addPet(pet, securityContext); } @@ -89,7 +90,8 @@ public Response addPet(@ApiParam(value = "Pet object that needs to be added to t @io.swagger.annotations.ApiResponse(code = 200, message = "Successful operation", response = Void.class), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid pet value", response = Void.class) }) - public Response deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathParam("petId") @NotNull Long petId,@ApiParam(value = "" )@HeaderParam("api_key") String apiKey,@Context SecurityContext securityContext) + public Response deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathParam("petId") @NotNull + Long petId,@ApiParam(value = "" )@HeaderParam("api_key") String apiKey,@Context SecurityContext securityContext) throws NotFoundException { return delegate.deletePet(petId, apiKey, securityContext); } @@ -107,7 +109,8 @@ public Response deletePet(@ApiParam(value = "Pet id to delete", required = true) @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid status value", response = Void.class) }) - public Response findPetsByStatus(@ApiParam(value = "Status values that need to be considered for filter", required = true) @QueryParam("status") @NotNull @Valid List status,@Context SecurityContext securityContext) + public Response findPetsByStatus(@ApiParam(value = "Status values that need to be considered for filter", required = true) @QueryParam("status") @NotNull + List status,@Context SecurityContext securityContext) throws NotFoundException { return delegate.findPetsByStatus(status, securityContext); } @@ -125,7 +128,8 @@ public Response findPetsByStatus(@ApiParam(value = "Status values that need to b @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "Set"), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid tag value", response = Void.class) }) - public Response findPetsByTags(@ApiParam(value = "Tags to filter by", required = true) @QueryParam("tags") @NotNull @Valid Set tags,@Context SecurityContext securityContext) + public Response findPetsByTags(@ApiParam(value = "Tags to filter by", required = true) @QueryParam("tags") @NotNull @Valid + Set tags,@Context SecurityContext securityContext) throws NotFoundException { return delegate.findPetsByTags(tags, securityContext); } @@ -141,7 +145,8 @@ public Response findPetsByTags(@ApiParam(value = "Tags to filter by", required = @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid ID supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "Pet not found", response = Void.class) }) - public Response getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathParam("petId") @NotNull Long petId,@Context SecurityContext securityContext) + public Response getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathParam("petId") @NotNull + Long petId,@Context SecurityContext securityContext) throws NotFoundException { return delegate.getPetById(petId, securityContext); } @@ -161,7 +166,8 @@ public Response getPetById(@ApiParam(value = "ID of pet to return", required = t @io.swagger.annotations.ApiResponse(code = 404, message = "Pet not found", response = Void.class), @io.swagger.annotations.ApiResponse(code = 405, message = "Validation exception", response = Void.class) }) - public Response updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull @Valid Pet pet,@Context SecurityContext securityContext) + public Response updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull + Pet pet,@Context SecurityContext securityContext) throws NotFoundException { return delegate.updatePet(pet, securityContext); } @@ -179,7 +185,8 @@ public Response updatePet(@ApiParam(value = "Pet object that needs to be added t @io.swagger.annotations.ApiResponse(code = 200, message = "Successful operation", response = Void.class), @io.swagger.annotations.ApiResponse(code = 405, message = "Invalid input", response = Void.class) }) - public Response updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathParam("petId") @NotNull Long petId,@ApiParam(value = "Updated name of the pet") @FormParam("name") String name,@ApiParam(value = "Updated status of the pet") @FormParam("status") String status,@Context SecurityContext securityContext) + public Response updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathParam("petId") @NotNull + Long petId,@ApiParam(value = "Updated name of the pet") @FormParam("name") String name,@ApiParam(value = "Updated status of the pet") @FormParam("status") String status,@Context SecurityContext securityContext) throws NotFoundException { return delegate.updatePetWithForm(petId, name, status, securityContext); } @@ -196,7 +203,8 @@ public Response updatePetWithForm(@ApiParam(value = "ID of pet that needs to be @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) - public Response uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathParam("petId") @NotNull Long petId,@ApiParam(value = "Additional data to pass to server")@FormDataParam("additionalMetadata") String additionalMetadata, + public Response uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathParam("petId") @NotNull + Long petId,@ApiParam(value = "Additional data to pass to server")@FormDataParam("additionalMetadata") String additionalMetadata, @FormDataParam("file") FormDataBodyPart _fileBodypart ,@Context SecurityContext securityContext) throws NotFoundException { return delegate.uploadFile(petId, additionalMetadata, _fileBodypart, securityContext); diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/StoreApi.java index 8dab60144f80..3bf30bf5899a 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/StoreApi.java @@ -64,7 +64,8 @@ public StoreApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid ID supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "Order not found", response = Void.class) }) - public Response deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathParam("order_id") @NotNull String orderId,@Context SecurityContext securityContext) + public Response deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathParam("order_id") @NotNull + String orderId,@Context SecurityContext securityContext) throws NotFoundException { return delegate.deleteOrder(orderId, securityContext); } @@ -92,7 +93,8 @@ public Response getInventory(@Context SecurityContext securityContext) @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid ID supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "Order not found", response = Void.class) }) - public Response getOrderById(@ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathParam("order_id") @NotNull @Min(1L) @Max(5L) Long orderId,@Context SecurityContext securityContext) + public Response getOrderById(@ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathParam("order_id") @NotNull @Min(1L) @Max(5L) + Long orderId,@Context SecurityContext securityContext) throws NotFoundException { return delegate.getOrderById(orderId, securityContext); } @@ -105,7 +107,8 @@ public Response getOrderById(@ApiParam(value = "ID of pet that needs to be fetch @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Order.class), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid Order", response = Void.class) }) - public Response placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true) @NotNull @Valid Order order,@Context SecurityContext securityContext) + public Response placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true) @NotNull + Order order,@Context SecurityContext securityContext) throws NotFoundException { return delegate.placeOrder(order, securityContext); } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/UserApi.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/UserApi.java index 167f33a9b032..7472a31d284c 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/UserApi.java @@ -63,7 +63,8 @@ public UserApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUser(@ApiParam(value = "Created user object", required = true) @NotNull @Valid User user,@Context SecurityContext securityContext) + public Response createUser(@ApiParam(value = "Created user object", required = true) @NotNull + User user,@Context SecurityContext securityContext) throws NotFoundException { return delegate.createUser(user, securityContext); } @@ -75,7 +76,8 @@ public Response createUser(@ApiParam(value = "Created user object", required = t @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true) @NotNull @Valid List<@Valid User> user,@Context SecurityContext securityContext) + public Response createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true) @NotNull @Valid + List<@Valid User> user,@Context SecurityContext securityContext) throws NotFoundException { return delegate.createUsersWithArrayInput(user, securityContext); } @@ -87,7 +89,8 @@ public Response createUsersWithArrayInput(@ApiParam(value = "List of user object @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUsersWithListInput(@ApiParam(value = "List of user object", required = true) @NotNull @Valid List<@Valid User> user,@Context SecurityContext securityContext) + public Response createUsersWithListInput(@ApiParam(value = "List of user object", required = true) @NotNull @Valid + List<@Valid User> user,@Context SecurityContext securityContext) throws NotFoundException { return delegate.createUsersWithListInput(user, securityContext); } @@ -100,7 +103,8 @@ public Response createUsersWithListInput(@ApiParam(value = "List of user object" @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid username supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = Void.class) }) - public Response deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathParam("username") @NotNull String username,@Context SecurityContext securityContext) + public Response deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathParam("username") @NotNull + String username,@Context SecurityContext securityContext) throws NotFoundException { return delegate.deleteUser(username, securityContext); } @@ -114,7 +118,8 @@ public Response deleteUser(@ApiParam(value = "The name that needs to be deleted" @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid username supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = Void.class) }) - public Response getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathParam("username") @NotNull String username,@Context SecurityContext securityContext) + public Response getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathParam("username") @NotNull + String username,@Context SecurityContext securityContext) throws NotFoundException { return delegate.getUserByName(username, securityContext); } @@ -127,7 +132,9 @@ public Response getUserByName(@ApiParam(value = "The name that needs to be fetch @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = String.class), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid username/password supplied", response = Void.class) }) - public Response loginUser(@ApiParam(value = "The user name for login", required = true) @QueryParam("username") @NotNull String username,@ApiParam(value = "The password for login in clear text", required = true) @QueryParam("password") @NotNull String password,@Context SecurityContext securityContext) + public Response loginUser(@ApiParam(value = "The user name for login", required = true) @QueryParam("username") @NotNull + String username,@ApiParam(value = "The password for login in clear text", required = true) @QueryParam("password") @NotNull + String password,@Context SecurityContext securityContext) throws NotFoundException { return delegate.loginUser(username, password, securityContext); } @@ -152,7 +159,9 @@ public Response logoutUser(@Context SecurityContext securityContext) @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid user supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = Void.class) }) - public Response updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathParam("username") @NotNull String username,@ApiParam(value = "Updated user object", required = true) @NotNull @Valid User user,@Context SecurityContext securityContext) + public Response updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathParam("username") @NotNull + String username,@ApiParam(value = "Updated user object", required = true) @NotNull + User user,@Context SecurityContext securityContext) throws NotFoundException { return delegate.updateUser(username, user, securityContext); } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java index ca7bf66659bc..cc0ae45a6c62 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -61,6 +61,7 @@ public AdditionalPropertiesClass putMapPropertyItem(String key, String mapProper @JsonProperty(value = "map_property") @ApiModelProperty(value = "") + public Map getMapProperty() { return mapProperty; } @@ -89,6 +90,7 @@ public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map> getMapOfMapProperty() { return mapOfMapProperty; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/AllOfWithSingleRef.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/AllOfWithSingleRef.java index 6477dffc466d..049dc1fdf151 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/AllOfWithSingleRef.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/AllOfWithSingleRef.java @@ -53,6 +53,7 @@ public AllOfWithSingleRef username(String username) { @JsonProperty(value = "username") @ApiModelProperty(value = "") + public String getUsername() { return username; } @@ -72,7 +73,8 @@ public AllOfWithSingleRef singleRefType(SingleRefType singleRefType) { **/ @JsonProperty(value = "SingleRefType") @ApiModelProperty(value = "") - @Valid + + public SingleRefType getSingleRefType() { return singleRefType; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Animal.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Animal.java index 4aa59e528385..f5777d8ef226 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Animal.java @@ -59,6 +59,7 @@ public Animal className(String className) { @JsonProperty(value = "className") @ApiModelProperty(required = true, value = "") @NotNull + public String getClassName() { return className; } @@ -79,6 +80,7 @@ public Animal color(String color) { @JsonProperty(value = "color") @ApiModelProperty(value = "") + public String getColor() { return color; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index 9966007d0f26..e4e04c60bd50 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -58,6 +58,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr @JsonProperty(value = "ArrayArrayNumber") @ApiModelProperty(value = "") @Valid + public List> getArrayArrayNumber() { return arrayArrayNumber; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java index 4da29b36770a..9926c93daf63 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -58,6 +58,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { @JsonProperty(value = "ArrayNumber") @ApiModelProperty(value = "") @Valid + public List getArrayNumber() { return arrayNumber; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ArrayTest.java index 5a4efe451ce4..a5cfbfc253d6 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ArrayTest.java @@ -68,6 +68,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { @JsonProperty(value = "array_of_string") @ApiModelProperty(value = "") @Size(min=0,max=3) + public List getArrayOfString() { return arrayOfString; } @@ -96,6 +97,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) @JsonProperty(value = "array_array_of_integer") @ApiModelProperty(value = "") @Valid + public List> getArrayArrayOfInteger() { return arrayArrayOfInteger; } @@ -124,6 +126,7 @@ public ArrayTest addArrayArrayOfModelItem(List<@Valid ReadOnlyFirst> arrayArrayO @JsonProperty(value = "array_array_of_model") @ApiModelProperty(value = "") @Valid + public List> getArrayArrayOfModel() { return arrayArrayOfModel; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Capitalization.java index 275428ac81a1..064dad69cf29 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Capitalization.java @@ -71,6 +71,7 @@ public Capitalization smallCamel(String smallCamel) { @JsonProperty(value = "smallCamel") @ApiModelProperty(value = "") + public String getSmallCamel() { return smallCamel; } @@ -91,6 +92,7 @@ public Capitalization capitalCamel(String capitalCamel) { @JsonProperty(value = "CapitalCamel") @ApiModelProperty(value = "") + public String getCapitalCamel() { return capitalCamel; } @@ -111,6 +113,7 @@ public Capitalization smallSnake(String smallSnake) { @JsonProperty(value = "small_Snake") @ApiModelProperty(value = "") + public String getSmallSnake() { return smallSnake; } @@ -131,6 +134,7 @@ public Capitalization capitalSnake(String capitalSnake) { @JsonProperty(value = "Capital_Snake") @ApiModelProperty(value = "") + public String getCapitalSnake() { return capitalSnake; } @@ -151,6 +155,7 @@ public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { @JsonProperty(value = "SCA_ETH_Flow_Points") @ApiModelProperty(value = "") + public String getScAETHFlowPoints() { return scAETHFlowPoints; } @@ -171,6 +176,7 @@ public Capitalization ATT_NAME(String ATT_NAME) { @JsonProperty(value = "ATT_NAME") @ApiModelProperty(value = "Name of the pet ") + public String getATTNAME() { return ATT_NAME; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Cat.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Cat.java index 9700c31d1556..b3250b097760 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Cat.java @@ -47,6 +47,7 @@ public Cat declawed(Boolean declawed) { @JsonProperty(value = "declawed") @ApiModelProperty(value = "") + public Boolean getDeclawed() { return declawed; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Category.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Category.java index 94593d27d7d8..10a6a540f280 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Category.java @@ -51,6 +51,7 @@ public Category id(Long id) { @JsonProperty(value = "id") @ApiModelProperty(value = "") + public Long getId() { return id; } @@ -71,6 +72,7 @@ public Category name(String name) { @JsonProperty(value = "name") @ApiModelProperty(required = true, value = "") @NotNull + public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ChildWithNullable.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ChildWithNullable.java index eea257bf3e38..a0f150615987 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ChildWithNullable.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ChildWithNullable.java @@ -48,6 +48,7 @@ public ChildWithNullable otherProperty(String otherProperty) { @JsonProperty(value = "otherProperty") @ApiModelProperty(value = "") + public String getOtherProperty() { return otherProperty; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ClassModel.java index 36bf5159845b..89851c227b4d 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ClassModel.java @@ -47,6 +47,7 @@ public ClassModel propertyClass(String propertyClass) { @JsonProperty(value = "_class") @ApiModelProperty(value = "") + public String getPropertyClass() { return propertyClass; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Client.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Client.java index ff200f04c004..496a4dfc4365 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Client.java @@ -46,6 +46,7 @@ public Client client(String client) { @JsonProperty(value = "client") @ApiModelProperty(value = "") + public String getClient() { return client; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/DeprecatedObject.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/DeprecatedObject.java index 2e2c5c6e352e..099a3d2d1d42 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/DeprecatedObject.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/DeprecatedObject.java @@ -46,6 +46,7 @@ public DeprecatedObject name(String name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") + public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Dog.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Dog.java index d54c50dfcc38..05295558b26c 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Dog.java @@ -47,6 +47,7 @@ public Dog breed(String breed) { @JsonProperty(value = "breed") @ApiModelProperty(value = "") + public String getBreed() { return breed; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/EnumArrays.java index 274fbf027af4..855a9fe8ee2b 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/EnumArrays.java @@ -117,6 +117,7 @@ public EnumArrays justSymbol(JustSymbolEnum justSymbol) { @JsonProperty(value = "just_symbol") @ApiModelProperty(value = "") + public JustSymbolEnum getJustSymbol() { return justSymbol; } @@ -145,6 +146,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { @JsonProperty(value = "array_enum") @ApiModelProperty(value = "") + public List getArrayEnum() { return arrayEnum; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/EnumTest.java index dc9f2eaeac40..3360693a4038 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/EnumTest.java @@ -215,6 +215,7 @@ public EnumTest enumString(EnumStringEnum enumString) { @JsonProperty(value = "enum_string") @ApiModelProperty(value = "") + public EnumStringEnum getEnumString() { return enumString; } @@ -235,6 +236,7 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { @JsonProperty(value = "enum_string_required") @ApiModelProperty(required = true, value = "") @NotNull + public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; } @@ -255,6 +257,7 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { @JsonProperty(value = "enum_integer") @ApiModelProperty(value = "") + public EnumIntegerEnum getEnumInteger() { return enumInteger; } @@ -275,6 +278,7 @@ public EnumTest enumNumber(EnumNumberEnum enumNumber) { @JsonProperty(value = "enum_number") @ApiModelProperty(value = "") + public EnumNumberEnum getEnumNumber() { return enumNumber; } @@ -294,7 +298,8 @@ public EnumTest outerEnum(OuterEnum outerEnum) { **/ @JsonProperty(value = "outerEnum") @ApiModelProperty(value = "") - @Valid + + public OuterEnum getOuterEnum() { return outerEnum; } @@ -314,7 +319,8 @@ public EnumTest outerEnumInteger(OuterEnumInteger outerEnumInteger) { **/ @JsonProperty(value = "outerEnumInteger") @ApiModelProperty(value = "") - @Valid + + public OuterEnumInteger getOuterEnumInteger() { return outerEnumInteger; } @@ -334,7 +340,8 @@ public EnumTest outerEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValu **/ @JsonProperty(value = "outerEnumDefaultValue") @ApiModelProperty(value = "") - @Valid + + public OuterEnumDefaultValue getOuterEnumDefaultValue() { return outerEnumDefaultValue; } @@ -354,7 +361,8 @@ public EnumTest outerEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerE **/ @JsonProperty(value = "outerEnumIntegerDefaultValue") @ApiModelProperty(value = "") - @Valid + + public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { return outerEnumIntegerDefaultValue; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/FakeBigDecimalMap200Response.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/FakeBigDecimalMap200Response.java index 068a6fc14832..13d70c9cc09a 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/FakeBigDecimalMap200Response.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/FakeBigDecimalMap200Response.java @@ -54,7 +54,8 @@ public FakeBigDecimalMap200Response someId(BigDecimal someId) { **/ @JsonProperty(value = "someId") @ApiModelProperty(value = "") - @Valid + + public BigDecimal getSomeId() { return someId; } @@ -83,6 +84,7 @@ public FakeBigDecimalMap200Response putSomeMapItem(String key, BigDecimal someMa @JsonProperty(value = "someMap") @ApiModelProperty(value = "") @Valid + public Map getSomeMap() { return someMap; } 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 ccf6d9e47573..e44539543450 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 @@ -54,7 +54,8 @@ public FileSchemaTestClass _file(ModelFile _file) { **/ @JsonProperty(value = "file") @ApiModelProperty(value = "") - @Valid + + public ModelFile getFile() { return _file; } @@ -83,6 +84,7 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { @JsonProperty(value = "files") @ApiModelProperty(value = "") @Valid + public List<@Valid ModelFile> getFiles() { return files; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Foo.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Foo.java index 8f5f6b1b173e..3b2bc5f45bc8 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Foo.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Foo.java @@ -46,6 +46,7 @@ public Foo bar(String bar) { @JsonProperty(value = "bar") @ApiModelProperty(value = "") + public String getBar() { return bar; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/FooGetDefaultResponse.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/FooGetDefaultResponse.java index 9ce131f43147..2a8cada41a53 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/FooGetDefaultResponse.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/FooGetDefaultResponse.java @@ -47,7 +47,8 @@ public FooGetDefaultResponse string(Foo string) { **/ @JsonProperty(value = "string") @ApiModelProperty(value = "") - @Valid + + public Foo getString() { return string; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/FormatTest.java index 01861aad0745..f9e5128d3af3 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/FormatTest.java @@ -128,6 +128,7 @@ public FormatTest integer(Integer integer) { @JsonProperty(value = "integer") @ApiModelProperty(value = "") @Min(10) @Max(100) + public Integer getInteger() { return integer; } @@ -150,6 +151,7 @@ public FormatTest int32(Integer int32) { @JsonProperty(value = "int32") @ApiModelProperty(value = "") @Min(20) @Max(200) + public Integer getInt32() { return int32; } @@ -170,6 +172,7 @@ public FormatTest int64(Long int64) { @JsonProperty(value = "int64") @ApiModelProperty(value = "") + public Long getInt64() { return int64; } @@ -191,7 +194,8 @@ public FormatTest number(BigDecimal number) { **/ @JsonProperty(value = "number") @ApiModelProperty(required = true, value = "") - @NotNull @Valid @DecimalMin("32.1") @DecimalMax("543.2") + @NotNull @DecimalMin("32.1") @DecimalMax("543.2") + public BigDecimal getNumber() { return number; } @@ -214,6 +218,7 @@ public FormatTest _float(Float _float) { @JsonProperty(value = "float") @ApiModelProperty(value = "") @DecimalMin("54.3") @DecimalMax("987.6") + public Float getFloat() { return _float; } @@ -236,6 +241,7 @@ public FormatTest _double(Double _double) { @JsonProperty(value = "double") @ApiModelProperty(value = "") @DecimalMin("67.8") @DecimalMax("123.4") + public Double getDouble() { return _double; } @@ -255,7 +261,8 @@ public FormatTest decimal(BigDecimal decimal) { **/ @JsonProperty(value = "decimal") @ApiModelProperty(value = "") - @Valid + + public BigDecimal getDecimal() { return decimal; } @@ -276,6 +283,7 @@ public FormatTest string(String string) { @JsonProperty(value = "string") @ApiModelProperty(value = "") @Pattern(regexp="/[a-z]/i") + public String getString() { return string; } @@ -296,6 +304,7 @@ public FormatTest _byte(byte[] _byte) { @JsonProperty(value = "byte") @ApiModelProperty(required = true, value = "") @NotNull + public byte[] getByte() { return _byte; } @@ -316,6 +325,7 @@ public FormatTest binary(File binary) { @JsonProperty(value = "binary") @ApiModelProperty(value = "") + public File getBinary() { return binary; } @@ -336,6 +346,7 @@ public FormatTest date(Date date) { @JsonProperty(value = "date") @ApiModelProperty(required = true, value = "") @NotNull + public Date getDate() { return date; } @@ -356,6 +367,7 @@ public FormatTest dateTime(Date dateTime) { @JsonProperty(value = "dateTime") @ApiModelProperty(value = "") + public Date getDateTime() { return dateTime; } @@ -376,6 +388,7 @@ public FormatTest uuid(UUID uuid) { @JsonProperty(value = "uuid") @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + public UUID getUuid() { return uuid; } @@ -396,6 +409,7 @@ public FormatTest password(String password) { @JsonProperty(value = "password") @ApiModelProperty(required = true, value = "") @NotNull @Size(min=10,max=64) + public String getPassword() { return password; } @@ -416,6 +430,7 @@ public FormatTest patternWithDigits(String patternWithDigits) { @JsonProperty(value = "pattern_with_digits") @ApiModelProperty(value = "A string that is a 10 digit number. Can have leading zeros.") @Pattern(regexp="^\\d{10}$") + public String getPatternWithDigits() { return patternWithDigits; } @@ -436,6 +451,7 @@ public FormatTest patternWithDigitsAndDelimiter(String patternWithDigitsAndDelim @JsonProperty(value = "pattern_with_digits_and_delimiter") @ApiModelProperty(value = "A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.") @Pattern(regexp="/^image_\\d{1,3}$/i") + public String getPatternWithDigitsAndDelimiter() { return patternWithDigitsAndDelimiter; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java index 94885d038dfd..282698898b56 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java @@ -52,6 +52,7 @@ public HasOnlyReadOnly bar(String bar) { @JsonProperty(value = "bar", access = JsonProperty.Access.READ_ONLY) @ApiModelProperty(value = "") + public String getBar() { return bar; } @@ -72,6 +73,7 @@ public HasOnlyReadOnly foo(String foo) { @JsonProperty(value = "foo", access = JsonProperty.Access.READ_ONLY) @ApiModelProperty(value = "") + public String getFoo() { return foo; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/HealthCheckResult.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/HealthCheckResult.java index f7ed32a1a87c..dc3de4d98888 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/HealthCheckResult.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/HealthCheckResult.java @@ -47,6 +47,7 @@ public HealthCheckResult nullableMessage(String nullableMessage) { @JsonProperty(value = "NullableMessage") @ApiModelProperty(value = "") + public String getNullableMessage() { return nullableMessage; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/MapTest.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/MapTest.java index 58aa1713d779..3d58956c233c 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/MapTest.java @@ -103,6 +103,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr @JsonProperty(value = "map_map_of_string") @ApiModelProperty(value = "") @Valid + public Map> getMapMapOfString() { return mapMapOfString; } @@ -131,6 +132,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) @JsonProperty(value = "map_of_enum_string") @ApiModelProperty(value = "") + public Map getMapOfEnumString() { return mapOfEnumString; } @@ -159,6 +161,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { @JsonProperty(value = "direct_map") @ApiModelProperty(value = "") + public Map getDirectMap() { return directMap; } @@ -187,6 +190,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { @JsonProperty(value = "indirect_map") @ApiModelProperty(value = "") + public Map getIndirectMap() { return indirectMap; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index b1c8a828c901..43a6f05b8988 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -61,6 +61,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { @JsonProperty(value = "uuid") @ApiModelProperty(value = "") + public UUID getUuid() { return uuid; } @@ -81,6 +82,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(Date dateTime) { @JsonProperty(value = "dateTime") @ApiModelProperty(value = "") + public Date getDateTime() { return dateTime; } @@ -109,6 +111,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal @JsonProperty(value = "map") @ApiModelProperty(value = "") @Valid + public Map getMap() { return map; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Model200Response.java index 8fa1cf529160..c847fcf9cefc 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Model200Response.java @@ -53,6 +53,7 @@ public Model200Response name(Integer name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") + public Integer getName() { return name; } @@ -73,6 +74,7 @@ public Model200Response propertyClass(String propertyClass) { @JsonProperty(value = "class") @ApiModelProperty(value = "") + public String getPropertyClass() { return propertyClass; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ModelApiResponse.java index 2a0378636c71..7f735683520c 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ModelApiResponse.java @@ -57,6 +57,7 @@ public ModelApiResponse code(Integer code) { @JsonProperty(value = "code") @ApiModelProperty(value = "") + public Integer getCode() { return code; } @@ -77,6 +78,7 @@ public ModelApiResponse type(String type) { @JsonProperty(value = "type") @ApiModelProperty(value = "") + public String getType() { return type; } @@ -97,6 +99,7 @@ public ModelApiResponse message(String message) { @JsonProperty(value = "message") @ApiModelProperty(value = "") + public String getMessage() { return message; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ModelFile.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ModelFile.java index 03301bf2979e..7191a2f0d49f 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ModelFile.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ModelFile.java @@ -48,6 +48,7 @@ public ModelFile sourceURI(String sourceURI) { @JsonProperty(value = "sourceURI") @ApiModelProperty(value = "Test capitalization") + public String getSourceURI() { return sourceURI; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ModelList.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ModelList.java index f74cc7fb21a0..56fdb3189bfe 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ModelList.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ModelList.java @@ -47,6 +47,7 @@ public ModelList _123list(String _123list) { @JsonProperty(value = "123-list") @ApiModelProperty(value = "") + public String get123list() { return _123list; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ModelReturn.java index 89b36d9e2b77..31dd5bb219ab 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ModelReturn.java @@ -48,6 +48,7 @@ public ModelReturn _return(Integer _return) { @JsonProperty(value = "return") @ApiModelProperty(value = "") + public Integer getReturn() { return _return; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Name.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Name.java index 2b0db677d08b..25ae922cb1fa 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Name.java @@ -62,6 +62,7 @@ public Name name(Integer name) { @JsonProperty(value = "name") @ApiModelProperty(required = true, value = "") @NotNull + public Integer getName() { return name; } @@ -82,6 +83,7 @@ public Name snakeCase(Integer snakeCase) { @JsonProperty(value = "snake_case", access = JsonProperty.Access.READ_ONLY) @ApiModelProperty(value = "") + public Integer getSnakeCase() { return snakeCase; } @@ -102,6 +104,7 @@ public Name property(String property) { @JsonProperty(value = "property") @ApiModelProperty(value = "") + public String getProperty() { return property; } @@ -122,6 +125,7 @@ public Name _123number(Integer _123number) { @JsonProperty(value = "123Number", access = JsonProperty.Access.READ_ONLY) @ApiModelProperty(value = "") + public Integer get123number() { return _123number; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/NullableClass.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/NullableClass.java index 364022df2aa1..c10b82cfe392 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/NullableClass.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/NullableClass.java @@ -108,6 +108,7 @@ public NullableClass integerProp(Integer integerProp) { @JsonProperty(value = "integer_prop") @ApiModelProperty(value = "") + public Integer getIntegerProp() { return integerProp; } @@ -127,7 +128,8 @@ public NullableClass numberProp(BigDecimal numberProp) { **/ @JsonProperty(value = "number_prop") @ApiModelProperty(value = "") - @Valid + + public BigDecimal getNumberProp() { return numberProp; } @@ -148,6 +150,7 @@ public NullableClass booleanProp(Boolean booleanProp) { @JsonProperty(value = "boolean_prop") @ApiModelProperty(value = "") + public Boolean getBooleanProp() { return booleanProp; } @@ -168,6 +171,7 @@ public NullableClass stringProp(String stringProp) { @JsonProperty(value = "string_prop") @ApiModelProperty(value = "") + public String getStringProp() { return stringProp; } @@ -188,6 +192,7 @@ public NullableClass dateProp(Date dateProp) { @JsonProperty(value = "date_prop") @ApiModelProperty(value = "") + public Date getDateProp() { return dateProp; } @@ -208,6 +213,7 @@ public NullableClass datetimeProp(Date datetimeProp) { @JsonProperty(value = "datetime_prop") @ApiModelProperty(value = "") + public Date getDatetimeProp() { return datetimeProp; } @@ -236,6 +242,7 @@ public NullableClass addArrayNullablePropItem(Object arrayNullablePropItem) { @JsonProperty(value = "array_nullable_prop") @ApiModelProperty(value = "") + public List getArrayNullableProp() { return arrayNullableProp; } @@ -264,6 +271,7 @@ public NullableClass addArrayAndItemsNullablePropItem(Object arrayAndItemsNullab @JsonProperty(value = "array_and_items_nullable_prop") @ApiModelProperty(value = "") + public List getArrayAndItemsNullableProp() { return arrayAndItemsNullableProp; } @@ -292,6 +300,7 @@ public NullableClass addArrayItemsNullableItem(Object arrayItemsNullableItem) { @JsonProperty(value = "array_items_nullable") @ApiModelProperty(value = "") + public List getArrayItemsNullable() { return arrayItemsNullable; } @@ -320,6 +329,7 @@ public NullableClass putObjectNullablePropItem(String key, Object objectNullable @JsonProperty(value = "object_nullable_prop") @ApiModelProperty(value = "") + public Map getObjectNullableProp() { return objectNullableProp; } @@ -348,6 +358,7 @@ public NullableClass putObjectAndItemsNullablePropItem(String key, Object object @JsonProperty(value = "object_and_items_nullable_prop") @ApiModelProperty(value = "") + public Map getObjectAndItemsNullableProp() { return objectAndItemsNullableProp; } @@ -376,6 +387,7 @@ public NullableClass putObjectItemsNullableItem(String key, Object objectItemsNu @JsonProperty(value = "object_items_nullable") @ApiModelProperty(value = "") + public Map getObjectItemsNullable() { return objectItemsNullable; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/NumberOnly.java index 3a8cec4eb651..9ccd8246ea54 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/NumberOnly.java @@ -46,7 +46,8 @@ public NumberOnly justNumber(BigDecimal justNumber) { **/ @JsonProperty(value = "JustNumber") @ApiModelProperty(value = "") - @Valid + + public BigDecimal getJustNumber() { return justNumber; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ObjectWithDeprecatedFields.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ObjectWithDeprecatedFields.java index e6efa493dc6e..9ccd3e8a92fe 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ObjectWithDeprecatedFields.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ObjectWithDeprecatedFields.java @@ -66,6 +66,7 @@ public ObjectWithDeprecatedFields uuid(String uuid) { @JsonProperty(value = "uuid") @ApiModelProperty(value = "") + public String getUuid() { return uuid; } @@ -85,7 +86,8 @@ public ObjectWithDeprecatedFields id(BigDecimal id) { **/ @JsonProperty(value = "id") @ApiModelProperty(value = "") - @Valid + + public BigDecimal getId() { return id; } @@ -105,7 +107,8 @@ public ObjectWithDeprecatedFields deprecatedRef(DeprecatedObject deprecatedRef) **/ @JsonProperty(value = "deprecatedRef") @ApiModelProperty(value = "") - @Valid + + public DeprecatedObject getDeprecatedRef() { return deprecatedRef; } @@ -134,6 +137,7 @@ public ObjectWithDeprecatedFields addBarsItem(String barsItem) { @JsonProperty(value = "bars") @ApiModelProperty(value = "") + public List getBars() { return bars; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Order.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Order.java index cbdaca28c141..9476af340bb6 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Order.java @@ -106,6 +106,7 @@ public Order id(Long id) { @JsonProperty(value = "id") @ApiModelProperty(value = "") + public Long getId() { return id; } @@ -126,6 +127,7 @@ public Order petId(Long petId) { @JsonProperty(value = "petId") @ApiModelProperty(value = "") + public Long getPetId() { return petId; } @@ -146,6 +148,7 @@ public Order quantity(Integer quantity) { @JsonProperty(value = "quantity") @ApiModelProperty(value = "") + public Integer getQuantity() { return quantity; } @@ -166,6 +169,7 @@ public Order shipDate(Date shipDate) { @JsonProperty(value = "shipDate") @ApiModelProperty(value = "") + public Date getShipDate() { return shipDate; } @@ -186,6 +190,7 @@ public Order status(StatusEnum status) { @JsonProperty(value = "status") @ApiModelProperty(value = "Order Status") + public StatusEnum getStatus() { return status; } @@ -206,6 +211,7 @@ public Order complete(Boolean complete) { @JsonProperty(value = "complete") @ApiModelProperty(value = "") + public Boolean getComplete() { return complete; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/OuterComposite.java index 88c2dc7d476a..d2c7e25c90aa 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/OuterComposite.java @@ -56,7 +56,8 @@ public OuterComposite myNumber(BigDecimal myNumber) { **/ @JsonProperty(value = "my_number") @ApiModelProperty(value = "") - @Valid + + public BigDecimal getMyNumber() { return myNumber; } @@ -77,6 +78,7 @@ public OuterComposite myString(String myString) { @JsonProperty(value = "my_string") @ApiModelProperty(value = "") + public String getMyString() { return myString; } @@ -97,6 +99,7 @@ public OuterComposite myBoolean(Boolean myBoolean) { @JsonProperty(value = "my_boolean") @ApiModelProperty(value = "") + public Boolean getMyBoolean() { return myBoolean; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/OuterObjectWithEnumProperty.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/OuterObjectWithEnumProperty.java index cd6a0022fbfd..6265d25ee79b 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/OuterObjectWithEnumProperty.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/OuterObjectWithEnumProperty.java @@ -47,7 +47,8 @@ public OuterObjectWithEnumProperty value(OuterEnumInteger value) { **/ @JsonProperty(value = "value") @ApiModelProperty(required = true, value = "") - @NotNull @Valid + @NotNull + public OuterEnumInteger getValue() { return value; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ParentWithNullable.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ParentWithNullable.java index ea64a9001ab1..a6fb0146b669 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ParentWithNullable.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ParentWithNullable.java @@ -88,6 +88,7 @@ public ParentWithNullable type(TypeEnum type) { @JsonProperty(value = "type") @ApiModelProperty(value = "") + public TypeEnum getType() { return type; } @@ -108,6 +109,7 @@ public ParentWithNullable nullableProperty(String nullableProperty) { @JsonProperty(value = "nullableProperty") @ApiModelProperty(value = "") + public String getNullableProperty() { return nullableProperty; } 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 76f6a5be1ff5..727e3a781927 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 @@ -113,6 +113,7 @@ public Pet id(Long id) { @JsonProperty(value = "id") @ApiModelProperty(value = "") + public Long getId() { return id; } @@ -132,7 +133,8 @@ public Pet category(Category category) { **/ @JsonProperty(value = "category") @ApiModelProperty(value = "") - @Valid + + public Category getCategory() { return category; } @@ -153,6 +155,7 @@ public Pet name(String name) { @JsonProperty(value = "name") @ApiModelProperty(example = "doggie", required = true, value = "") @NotNull + public String getName() { return name; } @@ -181,6 +184,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { @JsonProperty(value = "photoUrls") @ApiModelProperty(required = true, value = "") @NotNull + public Set getPhotoUrls() { return photoUrls; } @@ -210,6 +214,7 @@ public Pet addTagsItem(Tag tagsItem) { @JsonProperty(value = "tags") @ApiModelProperty(value = "") @Valid + public List<@Valid Tag> getTags() { return tags; } @@ -230,6 +235,7 @@ public Pet status(StatusEnum status) { @JsonProperty(value = "status") @ApiModelProperty(value = "pet status in the store") + public StatusEnum getStatus() { return status; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ReadOnlyFirst.java index fe0280ecec42..e3c3744d4e20 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ReadOnlyFirst.java @@ -51,6 +51,7 @@ public ReadOnlyFirst bar(String bar) { @JsonProperty(value = "bar", access = JsonProperty.Access.READ_ONLY) @ApiModelProperty(value = "") + public String getBar() { return bar; } @@ -71,6 +72,7 @@ public ReadOnlyFirst baz(String baz) { @JsonProperty(value = "baz") @ApiModelProperty(value = "") + public String getBaz() { return baz; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/SpecialModelName.java index 15c724a14b45..b01d1fcaac8c 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/SpecialModelName.java @@ -47,6 +47,7 @@ public class SpecialModelName { @JsonProperty(value = "$special[property.name]") @ApiModelProperty(value = "") + public Long get$SpecialPropertyName() { return $specialPropertyName; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Tag.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Tag.java index e560173bdf2f..e08351bc708d 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Tag.java @@ -51,6 +51,7 @@ public Tag id(Long id) { @JsonProperty(value = "id") @ApiModelProperty(value = "") + public Long getId() { return id; } @@ -71,6 +72,7 @@ public Tag name(String name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") + public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/TestInlineFreeformAdditionalPropertiesRequest.java index f9421ca07ac9..d2125ec3fb8a 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -49,6 +49,7 @@ public TestInlineFreeformAdditionalPropertiesRequest someProperty(String somePro @JsonProperty(value = "someProperty") @ApiModelProperty(value = "") + public String getSomeProperty() { return someProperty; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/User.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/User.java index b437f3504e22..85810b74832f 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/User.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/User.java @@ -81,6 +81,7 @@ public User id(Long id) { @JsonProperty(value = "id") @ApiModelProperty(value = "") + public Long getId() { return id; } @@ -101,6 +102,7 @@ public User username(String username) { @JsonProperty(value = "username") @ApiModelProperty(value = "") + public String getUsername() { return username; } @@ -121,6 +123,7 @@ public User firstName(String firstName) { @JsonProperty(value = "firstName") @ApiModelProperty(value = "") + public String getFirstName() { return firstName; } @@ -141,6 +144,7 @@ public User lastName(String lastName) { @JsonProperty(value = "lastName") @ApiModelProperty(value = "") + public String getLastName() { return lastName; } @@ -161,6 +165,7 @@ public User email(String email) { @JsonProperty(value = "email") @ApiModelProperty(value = "") + public String getEmail() { return email; } @@ -181,6 +186,7 @@ public User password(String password) { @JsonProperty(value = "password") @ApiModelProperty(value = "") + public String getPassword() { return password; } @@ -201,6 +207,7 @@ public User phone(String phone) { @JsonProperty(value = "phone") @ApiModelProperty(value = "") + public String getPhone() { return phone; } @@ -221,6 +228,7 @@ public User userStatus(Integer userStatus) { @JsonProperty(value = "userStatus") @ApiModelProperty(value = "User Status") + public Integer getUserStatus() { return userStatus; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/AnotherFakeApi.java index f58c037de3be..c3877c899634 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/AnotherFakeApi.java @@ -63,7 +63,8 @@ public AnotherFakeApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Response call123testSpecialTags(@ApiParam(value = "to test uuid example value" ,required=true)@HeaderParam("uuid_test") UUID uuidTest,@ApiParam(value = "client model", required = true) @NotNull @Valid Client body,@Context SecurityContext securityContext) + public Response call123testSpecialTags(@ApiParam(value = "to test uuid example value" ,required=true)@HeaderParam("uuid_test") UUID uuidTest,@ApiParam(value = "client model", required = true) @NotNull + Client body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.call123testSpecialTags(uuidTest, body, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeApi.java index a70e4b27570a..10df5102d62b 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeApi.java @@ -70,7 +70,8 @@ public FakeApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createXmlItem(@ApiParam(value = "XmlItem Body", required = true) @NotNull @Valid XmlItem xmlItem,@Context SecurityContext securityContext) + public Response createXmlItem(@ApiParam(value = "XmlItem Body", required = true) @NotNull + XmlItem xmlItem,@Context SecurityContext securityContext) throws NotFoundException { return delegate.createXmlItem(xmlItem, securityContext); } @@ -82,7 +83,8 @@ public Response createXmlItem(@ApiParam(value = "XmlItem Body", required = true) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Output boolean", response = Boolean.class) }) - public Response fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body") Boolean body,@Context SecurityContext securityContext) + public Response fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body") + Boolean body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeOuterBooleanSerialize(body, securityContext); } @@ -94,7 +96,8 @@ public Response fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as po @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) - public Response fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body") @Valid OuterComposite body,@Context SecurityContext securityContext) + public Response fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body") + OuterComposite body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeOuterCompositeSerialize(body, securityContext); } @@ -106,7 +109,8 @@ public Response fakeOuterCompositeSerialize(@ApiParam(value = "Input composite a @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Output number", response = BigDecimal.class) }) - public Response fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body") BigDecimal body,@Context SecurityContext securityContext) + public Response fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body") + BigDecimal body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeOuterNumberSerialize(body, securityContext); } @@ -118,7 +122,8 @@ public Response fakeOuterNumberSerialize(@ApiParam(value = "Input number as post @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Output string", response = String.class) }) - public Response fakeOuterStringSerialize(@ApiParam(value = "Input string as post body") String body,@Context SecurityContext securityContext) + public Response fakeOuterStringSerialize(@ApiParam(value = "Input string as post body") + String body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeOuterStringSerialize(body, securityContext); } @@ -130,7 +135,8 @@ public Response fakeOuterStringSerialize(@ApiParam(value = "Input string as post @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Success", response = Void.class) }) - public Response testBodyWithFileSchema(@ApiParam(value = "", required = true) @NotNull @Valid FileSchemaTestClass body,@Context SecurityContext securityContext) + public Response testBodyWithFileSchema(@ApiParam(value = "", required = true) @NotNull + FileSchemaTestClass body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testBodyWithFileSchema(body, securityContext); } @@ -142,7 +148,9 @@ public Response testBodyWithFileSchema(@ApiParam(value = "", required = true) @N @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Success", response = Void.class) }) - public Response testBodyWithQueryParams(@ApiParam(value = "", required = true) @QueryParam("query") @NotNull String query,@ApiParam(value = "", required = true) @NotNull @Valid User body,@Context SecurityContext securityContext) + public Response testBodyWithQueryParams(@ApiParam(value = "", required = true) @QueryParam("query") @NotNull + String query,@ApiParam(value = "", required = true) @NotNull + User body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testBodyWithQueryParams(query, body, securityContext); } @@ -154,7 +162,8 @@ public Response testBodyWithQueryParams(@ApiParam(value = "", required = true) @ @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Response testClientModel(@ApiParam(value = "client model", required = true) @NotNull @Valid Client body,@Context SecurityContext securityContext) + public Response testClientModel(@ApiParam(value = "client model", required = true) @NotNull + Client body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testClientModel(body, securityContext); } @@ -183,7 +192,11 @@ public Response testEndpointParameters(@ApiParam(value = "None", required=true) @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid request", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "Not found", response = Void.class) }) - public Response testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $")@HeaderParam("enum_header_string_array") List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg")@HeaderParam("enum_header_string") String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)") @QueryParam("enum_query_string_array") @Valid List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue = "-efg") @DefaultValue("-efg") @QueryParam("enum_query_string") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1, -2") @QueryParam("enum_query_integer") Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1.1, -1.2") @QueryParam("enum_query_double") Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $", defaultValue="$") @DefaultValue("$") @FormParam("enum_form_string_array") List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @FormParam("enum_form_string") String enumFormString,@Context SecurityContext securityContext) + public Response testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $")@HeaderParam("enum_header_string_array") List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg")@HeaderParam("enum_header_string") String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)") @QueryParam("enum_query_string_array") + List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue = "-efg") @DefaultValue("-efg") @QueryParam("enum_query_string") + String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1, -2") @QueryParam("enum_query_integer") + Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1.1, -1.2") @QueryParam("enum_query_double") + Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $", defaultValue="$") @DefaultValue("$") @FormParam("enum_form_string_array") List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @FormParam("enum_form_string") String enumFormString,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, securityContext); } @@ -195,7 +208,11 @@ public Response testEnumParameters(@ApiParam(value = "Header parameter enum test @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 400, message = "Something wrong", response = Void.class) }) - public Response testGroupParameters(@ApiParam(value = "Required String in group parameters", required = true) @QueryParam("required_string_group") @NotNull Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true)@HeaderParam("required_boolean_group") Boolean requiredBooleanGroup,@ApiParam(value = "Required Integer in group parameters", required = true) @QueryParam("required_int64_group") @NotNull Long requiredInt64Group,@ApiParam(value = "String in group parameters") @QueryParam("string_group") Integer stringGroup,@ApiParam(value = "Boolean in group parameters" )@HeaderParam("boolean_group") Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @QueryParam("int64_group") Long int64Group,@Context SecurityContext securityContext) + public Response testGroupParameters(@ApiParam(value = "Required String in group parameters", required = true) @QueryParam("required_string_group") @NotNull + Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true)@HeaderParam("required_boolean_group") Boolean requiredBooleanGroup,@ApiParam(value = "Required Integer in group parameters", required = true) @QueryParam("required_int64_group") @NotNull + Long requiredInt64Group,@ApiParam(value = "String in group parameters") @QueryParam("string_group") + Integer stringGroup,@ApiParam(value = "Boolean in group parameters" )@HeaderParam("boolean_group") Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @QueryParam("int64_group") + Long int64Group,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, securityContext); } @@ -207,7 +224,8 @@ public Response testGroupParameters(@ApiParam(value = "Required String in group @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response testInlineAdditionalProperties(@ApiParam(value = "request body", required = true) @NotNull @Valid Map param,@Context SecurityContext securityContext) + public Response testInlineAdditionalProperties(@ApiParam(value = "request body", required = true) @NotNull @Valid + Map param,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testInlineAdditionalProperties(param, securityContext); } @@ -231,7 +249,12 @@ public Response testJsonFormData(@ApiParam(value = "field1", required=true) @Fo @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Success", response = Void.class) }) - public Response testQueryParameterCollectionFormat(@ApiParam(value = "", required = true) @QueryParam("pipe") @NotNull @Valid List pipe,@ApiParam(value = "", required = true) @QueryParam("ioutil") @NotNull @Valid List ioutil,@ApiParam(value = "", required = true) @QueryParam("http") @NotNull @Valid List http,@ApiParam(value = "", required = true) @QueryParam("url") @NotNull @Valid List url,@ApiParam(value = "", required = true) @QueryParam("context") @NotNull @Valid List context,@Context SecurityContext securityContext) + public Response testQueryParameterCollectionFormat(@ApiParam(value = "", required = true) @QueryParam("pipe") @NotNull @Valid + List pipe,@ApiParam(value = "", required = true) @QueryParam("ioutil") @NotNull @Valid + List ioutil,@ApiParam(value = "", required = true) @QueryParam("http") @NotNull @Valid + List http,@ApiParam(value = "", required = true) @QueryParam("url") @NotNull @Valid + List url,@ApiParam(value = "", required = true) @QueryParam("context") @NotNull @Valid + List context,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeClassnameTags123Api.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeClassnameTags123Api.java index 35df7d25ecdf..3f81edf728f8 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeClassnameTags123Api.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeClassnameTags123Api.java @@ -64,7 +64,8 @@ public FakeClassnameTags123Api(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Response testClassname(@ApiParam(value = "client model", required = true) @NotNull @Valid Client body,@Context SecurityContext securityContext) + public Response testClassname(@ApiParam(value = "client model", required = true) @NotNull + Client body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testClassname(body, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/PetApi.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/PetApi.java index aa7d11cf7660..55cad9900292 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/PetApi.java @@ -71,7 +71,8 @@ public PetApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class), @io.swagger.annotations.ApiResponse(code = 405, message = "Invalid input", response = Void.class) }) - public Response addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull @Valid Pet body,@Context SecurityContext securityContext) + public Response addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull + Pet body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.addPet(body, securityContext); } @@ -89,7 +90,8 @@ public Response addPet(@ApiParam(value = "Pet object that needs to be added to t @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid pet value", response = Void.class) }) - public Response deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathParam("petId") @NotNull Long petId,@ApiParam(value = "" )@HeaderParam("api_key") String apiKey,@Context SecurityContext securityContext) + public Response deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathParam("petId") @NotNull + Long petId,@ApiParam(value = "" )@HeaderParam("api_key") String apiKey,@Context SecurityContext securityContext) throws NotFoundException { return delegate.deletePet(petId, apiKey, securityContext); } @@ -107,7 +109,8 @@ public Response deletePet(@ApiParam(value = "Pet id to delete", required = true) @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid status value", response = Void.class) }) - public Response findPetsByStatus(@ApiParam(value = "Status values that need to be considered for filter", required = true) @QueryParam("status") @NotNull @Valid List status,@Context SecurityContext securityContext) + public Response findPetsByStatus(@ApiParam(value = "Status values that need to be considered for filter", required = true) @QueryParam("status") @NotNull + List status,@Context SecurityContext securityContext) throws NotFoundException { return delegate.findPetsByStatus(status, securityContext); } @@ -125,7 +128,8 @@ public Response findPetsByStatus(@ApiParam(value = "Status values that need to b @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "Set"), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid tag value", response = Void.class) }) - public Response findPetsByTags(@ApiParam(value = "Tags to filter by", required = true) @QueryParam("tags") @NotNull @Valid Set tags,@Context SecurityContext securityContext) + public Response findPetsByTags(@ApiParam(value = "Tags to filter by", required = true) @QueryParam("tags") @NotNull @Valid + Set tags,@Context SecurityContext securityContext) throws NotFoundException { return delegate.findPetsByTags(tags, securityContext); } @@ -141,7 +145,8 @@ public Response findPetsByTags(@ApiParam(value = "Tags to filter by", required = @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid ID supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "Pet not found", response = Void.class) }) - public Response getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathParam("petId") @NotNull Long petId,@Context SecurityContext securityContext) + public Response getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathParam("petId") @NotNull + Long petId,@Context SecurityContext securityContext) throws NotFoundException { return delegate.getPetById(petId, securityContext); } @@ -161,7 +166,8 @@ public Response getPetById(@ApiParam(value = "ID of pet to return", required = t @io.swagger.annotations.ApiResponse(code = 404, message = "Pet not found", response = Void.class), @io.swagger.annotations.ApiResponse(code = 405, message = "Validation exception", response = Void.class) }) - public Response updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull @Valid Pet body,@Context SecurityContext securityContext) + public Response updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull + Pet body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.updatePet(body, securityContext); } @@ -178,7 +184,8 @@ public Response updatePet(@ApiParam(value = "Pet object that needs to be added t @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 405, message = "Invalid input", response = Void.class) }) - public Response updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathParam("petId") @NotNull Long petId,@ApiParam(value = "Updated name of the pet") @FormParam("name") String name,@ApiParam(value = "Updated status of the pet") @FormParam("status") String status,@Context SecurityContext securityContext) + public Response updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathParam("petId") @NotNull + Long petId,@ApiParam(value = "Updated name of the pet") @FormParam("name") String name,@ApiParam(value = "Updated status of the pet") @FormParam("status") String status,@Context SecurityContext securityContext) throws NotFoundException { return delegate.updatePetWithForm(petId, name, status, securityContext); } @@ -195,7 +202,8 @@ public Response updatePetWithForm(@ApiParam(value = "ID of pet that needs to be @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) - public Response uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathParam("petId") @NotNull Long petId,@ApiParam(value = "Additional data to pass to server")@FormDataParam("additionalMetadata") String additionalMetadata, + public Response uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathParam("petId") @NotNull + Long petId,@ApiParam(value = "Additional data to pass to server")@FormDataParam("additionalMetadata") String additionalMetadata, @FormDataParam("file") FormDataBodyPart _fileBodypart ,@Context SecurityContext securityContext) throws NotFoundException { return delegate.uploadFile(petId, additionalMetadata, _fileBodypart, securityContext); @@ -213,7 +221,8 @@ public Response uploadFile(@ApiParam(value = "ID of pet to update", required = t @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) - public Response uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathParam("petId") @NotNull Long petId, + public Response uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathParam("petId") @NotNull + Long petId, @FormDataParam("requiredFile") FormDataBodyPart requiredFileBodypart ,@ApiParam(value = "Additional data to pass to server")@FormDataParam("additionalMetadata") String additionalMetadata,@Context SecurityContext securityContext) throws NotFoundException { return delegate.uploadFileWithRequiredFile(petId, requiredFileBodypart, additionalMetadata, securityContext); diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/StoreApi.java index 657cb56bb127..27219c1695ad 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/StoreApi.java @@ -64,7 +64,8 @@ public StoreApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid ID supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "Order not found", response = Void.class) }) - public Response deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathParam("order_id") @NotNull String orderId,@Context SecurityContext securityContext) + public Response deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathParam("order_id") @NotNull + String orderId,@Context SecurityContext securityContext) throws NotFoundException { return delegate.deleteOrder(orderId, securityContext); } @@ -92,7 +93,8 @@ public Response getInventory(@Context SecurityContext securityContext) @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid ID supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "Order not found", response = Void.class) }) - public Response getOrderById(@ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathParam("order_id") @NotNull @Min(1L) @Max(5L) Long orderId,@Context SecurityContext securityContext) + public Response getOrderById(@ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathParam("order_id") @NotNull @Min(1L) @Max(5L) + Long orderId,@Context SecurityContext securityContext) throws NotFoundException { return delegate.getOrderById(orderId, securityContext); } @@ -105,7 +107,8 @@ public Response getOrderById(@ApiParam(value = "ID of pet that needs to be fetch @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Order.class), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid Order", response = Void.class) }) - public Response placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true) @NotNull @Valid Order body,@Context SecurityContext securityContext) + public Response placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true) @NotNull + Order body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.placeOrder(body, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/UserApi.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/UserApi.java index 234fb06575c8..9f99b70774b8 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/UserApi.java @@ -63,7 +63,8 @@ public UserApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUser(@ApiParam(value = "Created user object", required = true) @NotNull @Valid User body,@Context SecurityContext securityContext) + public Response createUser(@ApiParam(value = "Created user object", required = true) @NotNull + User body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.createUser(body, securityContext); } @@ -75,7 +76,8 @@ public Response createUser(@ApiParam(value = "Created user object", required = t @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true) @NotNull @Valid List<@Valid User> body,@Context SecurityContext securityContext) + public Response createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true) @NotNull @Valid + List<@Valid User> body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.createUsersWithArrayInput(body, securityContext); } @@ -87,7 +89,8 @@ public Response createUsersWithArrayInput(@ApiParam(value = "List of user object @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUsersWithListInput(@ApiParam(value = "List of user object", required = true) @NotNull @Valid List<@Valid User> body,@Context SecurityContext securityContext) + public Response createUsersWithListInput(@ApiParam(value = "List of user object", required = true) @NotNull @Valid + List<@Valid User> body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.createUsersWithListInput(body, securityContext); } @@ -100,7 +103,8 @@ public Response createUsersWithListInput(@ApiParam(value = "List of user object" @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid username supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = Void.class) }) - public Response deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathParam("username") @NotNull String username,@Context SecurityContext securityContext) + public Response deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathParam("username") @NotNull + String username,@Context SecurityContext securityContext) throws NotFoundException { return delegate.deleteUser(username, securityContext); } @@ -114,7 +118,8 @@ public Response deleteUser(@ApiParam(value = "The name that needs to be deleted" @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid username supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = Void.class) }) - public Response getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathParam("username") @NotNull String username,@Context SecurityContext securityContext) + public Response getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathParam("username") @NotNull + String username,@Context SecurityContext securityContext) throws NotFoundException { return delegate.getUserByName(username, securityContext); } @@ -127,7 +132,9 @@ public Response getUserByName(@ApiParam(value = "The name that needs to be fetch @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = String.class), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid username/password supplied", response = Void.class) }) - public Response loginUser(@ApiParam(value = "The user name for login", required = true) @QueryParam("username") @NotNull String username,@ApiParam(value = "The password for login in clear text", required = true) @QueryParam("password") @NotNull String password,@Context SecurityContext securityContext) + public Response loginUser(@ApiParam(value = "The user name for login", required = true) @QueryParam("username") @NotNull + String username,@ApiParam(value = "The password for login in clear text", required = true) @QueryParam("password") @NotNull + String password,@Context SecurityContext securityContext) throws NotFoundException { return delegate.loginUser(username, password, securityContext); } @@ -152,7 +159,9 @@ public Response logoutUser(@Context SecurityContext securityContext) @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid user supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = Void.class) }) - public Response updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathParam("username") @NotNull String username,@ApiParam(value = "Updated user object", required = true) @NotNull @Valid User body,@Context SecurityContext securityContext) + public Response updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathParam("username") @NotNull + String username,@ApiParam(value = "Updated user object", required = true) @NotNull + User body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.updateUser(username, body, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesAnyType.java index 927b9b17c6c3..a4df40550c39 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -48,6 +48,7 @@ public AdditionalPropertiesAnyType name(String name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") + public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesArray.java index 059c93738e6f..6583ccc66ce0 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -49,6 +49,7 @@ public AdditionalPropertiesArray name(String name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") + public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesBoolean.java index 5c6c53411c2d..46be0f789eee 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -48,6 +48,7 @@ public AdditionalPropertiesBoolean name(String name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") + public String getName() { return 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 46c0cdeb2b1f..cbd1420ce337 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 @@ -108,6 +108,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt @JsonProperty(value = "map_string") @ApiModelProperty(value = "") + public Map getMapString() { return mapString; } @@ -136,6 +137,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb @JsonProperty(value = "map_number") @ApiModelProperty(value = "") @Valid + public Map getMapNumber() { return mapNumber; } @@ -164,6 +166,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege @JsonProperty(value = "map_integer") @ApiModelProperty(value = "") + public Map getMapInteger() { return mapInteger; } @@ -192,6 +195,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea @JsonProperty(value = "map_boolean") @ApiModelProperty(value = "") + public Map getMapBoolean() { return mapBoolean; } @@ -220,6 +224,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List> getMapArrayInteger() { return mapArrayInteger; } @@ -248,6 +253,7 @@ public AdditionalPropertiesClass putMapArrayAnytypeItem(String key, List @JsonProperty(value = "map_array_anytype") @ApiModelProperty(value = "") @Valid + public Map> getMapArrayAnytype() { return mapArrayAnytype; } @@ -276,6 +282,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map> getMapMapString() { return mapMapString; } @@ -304,6 +311,7 @@ public AdditionalPropertiesClass putMapMapAnytypeItem(String key, Map> getMapMapAnytype() { return mapMapAnytype; } @@ -324,6 +332,7 @@ public AdditionalPropertiesClass anytype1(Object anytype1) { @JsonProperty(value = "anytype_1") @ApiModelProperty(value = "") + public Object getAnytype1() { return anytype1; } @@ -344,6 +353,7 @@ public AdditionalPropertiesClass anytype2(Object anytype2) { @JsonProperty(value = "anytype_2") @ApiModelProperty(value = "") + public Object getAnytype2() { return anytype2; } @@ -364,6 +374,7 @@ public AdditionalPropertiesClass anytype3(Object anytype3) { @JsonProperty(value = "anytype_3") @ApiModelProperty(value = "") + public Object getAnytype3() { return anytype3; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesInteger.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesInteger.java index c02589a7c1d0..768723fbf135 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesInteger.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesInteger.java @@ -48,6 +48,7 @@ public AdditionalPropertiesInteger name(String name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") + public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesNumber.java index cadb5ba92adb..ed999237a8a0 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -49,6 +49,7 @@ public AdditionalPropertiesNumber name(String name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") + public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesObject.java index 690e2ae2f3c5..d683d981499e 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -48,6 +48,7 @@ public AdditionalPropertiesObject name(String name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") + public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesString.java index 3e67e5426881..ddcc3a685aa1 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesString.java @@ -48,6 +48,7 @@ public AdditionalPropertiesString name(String name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") + public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Animal.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Animal.java index f802f2dd2788..65eb059b7f3b 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Animal.java @@ -60,6 +60,7 @@ public Animal className(String className) { @JsonProperty(value = "className") @ApiModelProperty(required = true, value = "") @NotNull + public String getClassName() { return className; } @@ -80,6 +81,7 @@ public Animal color(String color) { @JsonProperty(value = "color") @ApiModelProperty(value = "") + public String getColor() { return color; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index 9966007d0f26..e4e04c60bd50 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -58,6 +58,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr @JsonProperty(value = "ArrayArrayNumber") @ApiModelProperty(value = "") @Valid + public List> getArrayArrayNumber() { return arrayArrayNumber; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java index 4da29b36770a..9926c93daf63 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -58,6 +58,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { @JsonProperty(value = "ArrayNumber") @ApiModelProperty(value = "") @Valid + public List getArrayNumber() { return arrayNumber; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ArrayTest.java index 6a32cab1dfea..b06a520c8209 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ArrayTest.java @@ -68,6 +68,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { @JsonProperty(value = "array_of_string") @ApiModelProperty(value = "") + public List getArrayOfString() { return arrayOfString; } @@ -96,6 +97,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) @JsonProperty(value = "array_array_of_integer") @ApiModelProperty(value = "") @Valid + public List> getArrayArrayOfInteger() { return arrayArrayOfInteger; } @@ -124,6 +126,7 @@ public ArrayTest addArrayArrayOfModelItem(List<@Valid ReadOnlyFirst> arrayArrayO @JsonProperty(value = "array_array_of_model") @ApiModelProperty(value = "") @Valid + public List> getArrayArrayOfModel() { return arrayArrayOfModel; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/BigCat.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/BigCat.java index 8993db1f36fb..0f2f75494953 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/BigCat.java @@ -83,6 +83,7 @@ public BigCat kind(KindEnum kind) { @JsonProperty(value = "kind") @ApiModelProperty(value = "") + public KindEnum getKind() { return kind; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Capitalization.java index 275428ac81a1..064dad69cf29 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Capitalization.java @@ -71,6 +71,7 @@ public Capitalization smallCamel(String smallCamel) { @JsonProperty(value = "smallCamel") @ApiModelProperty(value = "") + public String getSmallCamel() { return smallCamel; } @@ -91,6 +92,7 @@ public Capitalization capitalCamel(String capitalCamel) { @JsonProperty(value = "CapitalCamel") @ApiModelProperty(value = "") + public String getCapitalCamel() { return capitalCamel; } @@ -111,6 +113,7 @@ public Capitalization smallSnake(String smallSnake) { @JsonProperty(value = "small_Snake") @ApiModelProperty(value = "") + public String getSmallSnake() { return smallSnake; } @@ -131,6 +134,7 @@ public Capitalization capitalSnake(String capitalSnake) { @JsonProperty(value = "Capital_Snake") @ApiModelProperty(value = "") + public String getCapitalSnake() { return capitalSnake; } @@ -151,6 +155,7 @@ public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { @JsonProperty(value = "SCA_ETH_Flow_Points") @ApiModelProperty(value = "") + public String getScAETHFlowPoints() { return scAETHFlowPoints; } @@ -171,6 +176,7 @@ public Capitalization ATT_NAME(String ATT_NAME) { @JsonProperty(value = "ATT_NAME") @ApiModelProperty(value = "Name of the pet ") + public String getATTNAME() { return ATT_NAME; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Cat.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Cat.java index 9700c31d1556..b3250b097760 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Cat.java @@ -47,6 +47,7 @@ public Cat declawed(Boolean declawed) { @JsonProperty(value = "declawed") @ApiModelProperty(value = "") + public Boolean getDeclawed() { return declawed; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Category.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Category.java index 94593d27d7d8..10a6a540f280 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Category.java @@ -51,6 +51,7 @@ public Category id(Long id) { @JsonProperty(value = "id") @ApiModelProperty(value = "") + public Long getId() { return id; } @@ -71,6 +72,7 @@ public Category name(String name) { @JsonProperty(value = "name") @ApiModelProperty(required = true, value = "") @NotNull + public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ClassModel.java index 36bf5159845b..89851c227b4d 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ClassModel.java @@ -47,6 +47,7 @@ public ClassModel propertyClass(String propertyClass) { @JsonProperty(value = "_class") @ApiModelProperty(value = "") + public String getPropertyClass() { return propertyClass; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Client.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Client.java index ff200f04c004..496a4dfc4365 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Client.java @@ -46,6 +46,7 @@ public Client client(String client) { @JsonProperty(value = "client") @ApiModelProperty(value = "") + public String getClient() { return client; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Dog.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Dog.java index d54c50dfcc38..05295558b26c 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Dog.java @@ -47,6 +47,7 @@ public Dog breed(String breed) { @JsonProperty(value = "breed") @ApiModelProperty(value = "") + public String getBreed() { return breed; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/EnumArrays.java index 274fbf027af4..855a9fe8ee2b 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/EnumArrays.java @@ -117,6 +117,7 @@ public EnumArrays justSymbol(JustSymbolEnum justSymbol) { @JsonProperty(value = "just_symbol") @ApiModelProperty(value = "") + public JustSymbolEnum getJustSymbol() { return justSymbol; } @@ -145,6 +146,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { @JsonProperty(value = "array_enum") @ApiModelProperty(value = "") + public List getArrayEnum() { return arrayEnum; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/EnumTest.java index f4461b465155..2625ab220e87 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/EnumTest.java @@ -197,6 +197,7 @@ public EnumTest enumString(EnumStringEnum enumString) { @JsonProperty(value = "enum_string") @ApiModelProperty(value = "") + public EnumStringEnum getEnumString() { return enumString; } @@ -217,6 +218,7 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { @JsonProperty(value = "enum_string_required") @ApiModelProperty(required = true, value = "") @NotNull + public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; } @@ -237,6 +239,7 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { @JsonProperty(value = "enum_integer") @ApiModelProperty(value = "") + public EnumIntegerEnum getEnumInteger() { return enumInteger; } @@ -257,6 +260,7 @@ public EnumTest enumNumber(EnumNumberEnum enumNumber) { @JsonProperty(value = "enum_number") @ApiModelProperty(value = "") + public EnumNumberEnum getEnumNumber() { return enumNumber; } @@ -276,7 +280,8 @@ public EnumTest outerEnum(OuterEnum outerEnum) { **/ @JsonProperty(value = "outerEnum") @ApiModelProperty(value = "") - @Valid + + public OuterEnum getOuterEnum() { return outerEnum; } 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 ccf6d9e47573..e44539543450 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 @@ -54,7 +54,8 @@ public FileSchemaTestClass _file(ModelFile _file) { **/ @JsonProperty(value = "file") @ApiModelProperty(value = "") - @Valid + + public ModelFile getFile() { return _file; } @@ -83,6 +84,7 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { @JsonProperty(value = "files") @ApiModelProperty(value = "") @Valid + public List<@Valid ModelFile> getFiles() { return files; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/FormatTest.java index 6d9b649041c2..8b9e2a6a1774 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/FormatTest.java @@ -118,6 +118,7 @@ public FormatTest integer(Integer integer) { @JsonProperty(value = "integer") @ApiModelProperty(value = "") @Min(10) @Max(100) + public Integer getInteger() { return integer; } @@ -140,6 +141,7 @@ public FormatTest int32(Integer int32) { @JsonProperty(value = "int32") @ApiModelProperty(value = "") @Min(20) @Max(200) + public Integer getInt32() { return int32; } @@ -160,6 +162,7 @@ public FormatTest int64(Long int64) { @JsonProperty(value = "int64") @ApiModelProperty(value = "") + public Long getInt64() { return int64; } @@ -181,7 +184,8 @@ public FormatTest number(BigDecimal number) { **/ @JsonProperty(value = "number") @ApiModelProperty(required = true, value = "") - @NotNull @Valid @DecimalMin("32.1") @DecimalMax("543.2") + @NotNull @DecimalMin("32.1") @DecimalMax("543.2") + public BigDecimal getNumber() { return number; } @@ -204,6 +208,7 @@ public FormatTest _float(Float _float) { @JsonProperty(value = "float") @ApiModelProperty(value = "") @DecimalMin("54.3") @DecimalMax("987.6") + public Float getFloat() { return _float; } @@ -226,6 +231,7 @@ public FormatTest _double(Double _double) { @JsonProperty(value = "double") @ApiModelProperty(value = "") @DecimalMin("67.8") @DecimalMax("123.4") + public Double getDouble() { return _double; } @@ -246,6 +252,7 @@ public FormatTest string(String string) { @JsonProperty(value = "string") @ApiModelProperty(value = "") @Pattern(regexp="/[a-z]/i") + public String getString() { return string; } @@ -266,6 +273,7 @@ public FormatTest _byte(byte[] _byte) { @JsonProperty(value = "byte") @ApiModelProperty(required = true, value = "") @NotNull + public byte[] getByte() { return _byte; } @@ -286,6 +294,7 @@ public FormatTest binary(File binary) { @JsonProperty(value = "binary") @ApiModelProperty(value = "") + public File getBinary() { return binary; } @@ -306,6 +315,7 @@ public FormatTest date(Date date) { @JsonProperty(value = "date") @ApiModelProperty(required = true, value = "") @NotNull + public Date getDate() { return date; } @@ -326,6 +336,7 @@ public FormatTest dateTime(Date dateTime) { @JsonProperty(value = "dateTime") @ApiModelProperty(value = "") + public Date getDateTime() { return dateTime; } @@ -346,6 +357,7 @@ public FormatTest uuid(UUID uuid) { @JsonProperty(value = "uuid") @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + public UUID getUuid() { return uuid; } @@ -366,6 +378,7 @@ public FormatTest password(String password) { @JsonProperty(value = "password") @ApiModelProperty(required = true, value = "") @NotNull @Size(min=10,max=64) + public String getPassword() { return password; } @@ -385,7 +398,8 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { **/ @JsonProperty(value = "BigDecimal") @ApiModelProperty(value = "") - @Valid + + public BigDecimal getBigDecimal() { return bigDecimal; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java index 94885d038dfd..282698898b56 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java @@ -52,6 +52,7 @@ public HasOnlyReadOnly bar(String bar) { @JsonProperty(value = "bar", access = JsonProperty.Access.READ_ONLY) @ApiModelProperty(value = "") + public String getBar() { return bar; } @@ -72,6 +73,7 @@ public HasOnlyReadOnly foo(String foo) { @JsonProperty(value = "foo", access = JsonProperty.Access.READ_ONLY) @ApiModelProperty(value = "") + public String getFoo() { return foo; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/MapTest.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/MapTest.java index 58aa1713d779..3d58956c233c 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/MapTest.java @@ -103,6 +103,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr @JsonProperty(value = "map_map_of_string") @ApiModelProperty(value = "") @Valid + public Map> getMapMapOfString() { return mapMapOfString; } @@ -131,6 +132,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) @JsonProperty(value = "map_of_enum_string") @ApiModelProperty(value = "") + public Map getMapOfEnumString() { return mapOfEnumString; } @@ -159,6 +161,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { @JsonProperty(value = "direct_map") @ApiModelProperty(value = "") + public Map getDirectMap() { return directMap; } @@ -187,6 +190,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { @JsonProperty(value = "indirect_map") @ApiModelProperty(value = "") + public Map getIndirectMap() { return indirectMap; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index b1c8a828c901..43a6f05b8988 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -61,6 +61,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { @JsonProperty(value = "uuid") @ApiModelProperty(value = "") + public UUID getUuid() { return uuid; } @@ -81,6 +82,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(Date dateTime) { @JsonProperty(value = "dateTime") @ApiModelProperty(value = "") + public Date getDateTime() { return dateTime; } @@ -109,6 +111,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal @JsonProperty(value = "map") @ApiModelProperty(value = "") @Valid + public Map getMap() { return map; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Model200Response.java index 8fa1cf529160..c847fcf9cefc 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Model200Response.java @@ -53,6 +53,7 @@ public Model200Response name(Integer name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") + public Integer getName() { return name; } @@ -73,6 +74,7 @@ public Model200Response propertyClass(String propertyClass) { @JsonProperty(value = "class") @ApiModelProperty(value = "") + public String getPropertyClass() { return propertyClass; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ModelApiResponse.java index 2a0378636c71..7f735683520c 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ModelApiResponse.java @@ -57,6 +57,7 @@ public ModelApiResponse code(Integer code) { @JsonProperty(value = "code") @ApiModelProperty(value = "") + public Integer getCode() { return code; } @@ -77,6 +78,7 @@ public ModelApiResponse type(String type) { @JsonProperty(value = "type") @ApiModelProperty(value = "") + public String getType() { return type; } @@ -97,6 +99,7 @@ public ModelApiResponse message(String message) { @JsonProperty(value = "message") @ApiModelProperty(value = "") + public String getMessage() { return message; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ModelFile.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ModelFile.java index 03301bf2979e..7191a2f0d49f 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ModelFile.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ModelFile.java @@ -48,6 +48,7 @@ public ModelFile sourceURI(String sourceURI) { @JsonProperty(value = "sourceURI") @ApiModelProperty(value = "Test capitalization") + public String getSourceURI() { return sourceURI; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ModelList.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ModelList.java index f74cc7fb21a0..56fdb3189bfe 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ModelList.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ModelList.java @@ -47,6 +47,7 @@ public ModelList _123list(String _123list) { @JsonProperty(value = "123-list") @ApiModelProperty(value = "") + public String get123list() { return _123list; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ModelReturn.java index 89b36d9e2b77..31dd5bb219ab 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ModelReturn.java @@ -48,6 +48,7 @@ public ModelReturn _return(Integer _return) { @JsonProperty(value = "return") @ApiModelProperty(value = "") + public Integer getReturn() { return _return; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Name.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Name.java index 2b0db677d08b..25ae922cb1fa 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Name.java @@ -62,6 +62,7 @@ public Name name(Integer name) { @JsonProperty(value = "name") @ApiModelProperty(required = true, value = "") @NotNull + public Integer getName() { return name; } @@ -82,6 +83,7 @@ public Name snakeCase(Integer snakeCase) { @JsonProperty(value = "snake_case", access = JsonProperty.Access.READ_ONLY) @ApiModelProperty(value = "") + public Integer getSnakeCase() { return snakeCase; } @@ -102,6 +104,7 @@ public Name property(String property) { @JsonProperty(value = "property") @ApiModelProperty(value = "") + public String getProperty() { return property; } @@ -122,6 +125,7 @@ public Name _123number(Integer _123number) { @JsonProperty(value = "123Number", access = JsonProperty.Access.READ_ONLY) @ApiModelProperty(value = "") + public Integer get123number() { return _123number; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/NumberOnly.java index 3a8cec4eb651..9ccd8246ea54 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/NumberOnly.java @@ -46,7 +46,8 @@ public NumberOnly justNumber(BigDecimal justNumber) { **/ @JsonProperty(value = "JustNumber") @ApiModelProperty(value = "") - @Valid + + public BigDecimal getJustNumber() { return justNumber; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Order.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Order.java index cbdaca28c141..9476af340bb6 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Order.java @@ -106,6 +106,7 @@ public Order id(Long id) { @JsonProperty(value = "id") @ApiModelProperty(value = "") + public Long getId() { return id; } @@ -126,6 +127,7 @@ public Order petId(Long petId) { @JsonProperty(value = "petId") @ApiModelProperty(value = "") + public Long getPetId() { return petId; } @@ -146,6 +148,7 @@ public Order quantity(Integer quantity) { @JsonProperty(value = "quantity") @ApiModelProperty(value = "") + public Integer getQuantity() { return quantity; } @@ -166,6 +169,7 @@ public Order shipDate(Date shipDate) { @JsonProperty(value = "shipDate") @ApiModelProperty(value = "") + public Date getShipDate() { return shipDate; } @@ -186,6 +190,7 @@ public Order status(StatusEnum status) { @JsonProperty(value = "status") @ApiModelProperty(value = "Order Status") + public StatusEnum getStatus() { return status; } @@ -206,6 +211,7 @@ public Order complete(Boolean complete) { @JsonProperty(value = "complete") @ApiModelProperty(value = "") + public Boolean getComplete() { return complete; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/OuterComposite.java index 88c2dc7d476a..d2c7e25c90aa 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/OuterComposite.java @@ -56,7 +56,8 @@ public OuterComposite myNumber(BigDecimal myNumber) { **/ @JsonProperty(value = "my_number") @ApiModelProperty(value = "") - @Valid + + public BigDecimal getMyNumber() { return myNumber; } @@ -77,6 +78,7 @@ public OuterComposite myString(String myString) { @JsonProperty(value = "my_string") @ApiModelProperty(value = "") + public String getMyString() { return myString; } @@ -97,6 +99,7 @@ public OuterComposite myBoolean(Boolean myBoolean) { @JsonProperty(value = "my_boolean") @ApiModelProperty(value = "") + public Boolean getMyBoolean() { return myBoolean; } 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 76f6a5be1ff5..727e3a781927 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 @@ -113,6 +113,7 @@ public Pet id(Long id) { @JsonProperty(value = "id") @ApiModelProperty(value = "") + public Long getId() { return id; } @@ -132,7 +133,8 @@ public Pet category(Category category) { **/ @JsonProperty(value = "category") @ApiModelProperty(value = "") - @Valid + + public Category getCategory() { return category; } @@ -153,6 +155,7 @@ public Pet name(String name) { @JsonProperty(value = "name") @ApiModelProperty(example = "doggie", required = true, value = "") @NotNull + public String getName() { return name; } @@ -181,6 +184,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { @JsonProperty(value = "photoUrls") @ApiModelProperty(required = true, value = "") @NotNull + public Set getPhotoUrls() { return photoUrls; } @@ -210,6 +214,7 @@ public Pet addTagsItem(Tag tagsItem) { @JsonProperty(value = "tags") @ApiModelProperty(value = "") @Valid + public List<@Valid Tag> getTags() { return tags; } @@ -230,6 +235,7 @@ public Pet status(StatusEnum status) { @JsonProperty(value = "status") @ApiModelProperty(value = "pet status in the store") + public StatusEnum getStatus() { return status; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ReadOnlyFirst.java index fe0280ecec42..e3c3744d4e20 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ReadOnlyFirst.java @@ -51,6 +51,7 @@ public ReadOnlyFirst bar(String bar) { @JsonProperty(value = "bar", access = JsonProperty.Access.READ_ONLY) @ApiModelProperty(value = "") + public String getBar() { return bar; } @@ -71,6 +72,7 @@ public ReadOnlyFirst baz(String baz) { @JsonProperty(value = "baz") @ApiModelProperty(value = "") + public String getBaz() { return baz; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/SpecialModelName.java index 6cd123a20c53..7debf78bd551 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/SpecialModelName.java @@ -47,6 +47,7 @@ public class SpecialModelName { @JsonProperty(value = "$special[property.name]") @ApiModelProperty(value = "") + public Long get$SpecialPropertyName() { return $specialPropertyName; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Tag.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Tag.java index e560173bdf2f..e08351bc708d 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Tag.java @@ -51,6 +51,7 @@ public Tag id(Long id) { @JsonProperty(value = "id") @ApiModelProperty(value = "") + public Long getId() { return id; } @@ -71,6 +72,7 @@ public Tag name(String name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") + public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/TypeHolderDefault.java index ca08849db72d..7db5a5237686 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/TypeHolderDefault.java @@ -70,6 +70,7 @@ public TypeHolderDefault stringItem(String stringItem) { @JsonProperty(value = "string_item") @ApiModelProperty(required = true, value = "") @NotNull + public String getStringItem() { return stringItem; } @@ -89,7 +90,8 @@ public TypeHolderDefault numberItem(BigDecimal numberItem) { **/ @JsonProperty(value = "number_item") @ApiModelProperty(required = true, value = "") - @NotNull @Valid + @NotNull + public BigDecimal getNumberItem() { return numberItem; } @@ -110,6 +112,7 @@ public TypeHolderDefault integerItem(Integer integerItem) { @JsonProperty(value = "integer_item") @ApiModelProperty(required = true, value = "") @NotNull + public Integer getIntegerItem() { return integerItem; } @@ -130,6 +133,7 @@ public TypeHolderDefault boolItem(Boolean boolItem) { @JsonProperty(value = "bool_item") @ApiModelProperty(required = true, value = "") @NotNull + public Boolean getBoolItem() { return boolItem; } @@ -158,6 +162,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { @JsonProperty(value = "array_item") @ApiModelProperty(required = true, value = "") @NotNull + public List getArrayItem() { return arrayItem; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/TypeHolderExample.java index 0014ea335007..c0c5314e96a8 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/TypeHolderExample.java @@ -75,6 +75,7 @@ public TypeHolderExample stringItem(String stringItem) { @JsonProperty(value = "string_item") @ApiModelProperty(example = "what", required = true, value = "") @NotNull + public String getStringItem() { return stringItem; } @@ -94,7 +95,8 @@ public TypeHolderExample numberItem(BigDecimal numberItem) { **/ @JsonProperty(value = "number_item") @ApiModelProperty(example = "1.234", required = true, value = "") - @NotNull @Valid + @NotNull + public BigDecimal getNumberItem() { return numberItem; } @@ -115,6 +117,7 @@ public TypeHolderExample floatItem(Float floatItem) { @JsonProperty(value = "float_item") @ApiModelProperty(example = "1.234", required = true, value = "") @NotNull + public Float getFloatItem() { return floatItem; } @@ -135,6 +138,7 @@ public TypeHolderExample integerItem(Integer integerItem) { @JsonProperty(value = "integer_item") @ApiModelProperty(example = "-2", required = true, value = "") @NotNull + public Integer getIntegerItem() { return integerItem; } @@ -155,6 +159,7 @@ public TypeHolderExample boolItem(Boolean boolItem) { @JsonProperty(value = "bool_item") @ApiModelProperty(example = "true", required = true, value = "") @NotNull + public Boolean getBoolItem() { return boolItem; } @@ -183,6 +188,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { @JsonProperty(value = "array_item") @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") @NotNull + public List getArrayItem() { return arrayItem; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/User.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/User.java index b437f3504e22..85810b74832f 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/User.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/User.java @@ -81,6 +81,7 @@ public User id(Long id) { @JsonProperty(value = "id") @ApiModelProperty(value = "") + public Long getId() { return id; } @@ -101,6 +102,7 @@ public User username(String username) { @JsonProperty(value = "username") @ApiModelProperty(value = "") + public String getUsername() { return username; } @@ -121,6 +123,7 @@ public User firstName(String firstName) { @JsonProperty(value = "firstName") @ApiModelProperty(value = "") + public String getFirstName() { return firstName; } @@ -141,6 +144,7 @@ public User lastName(String lastName) { @JsonProperty(value = "lastName") @ApiModelProperty(value = "") + public String getLastName() { return lastName; } @@ -161,6 +165,7 @@ public User email(String email) { @JsonProperty(value = "email") @ApiModelProperty(value = "") + public String getEmail() { return email; } @@ -181,6 +186,7 @@ public User password(String password) { @JsonProperty(value = "password") @ApiModelProperty(value = "") + public String getPassword() { return password; } @@ -201,6 +207,7 @@ public User phone(String phone) { @JsonProperty(value = "phone") @ApiModelProperty(value = "") + public String getPhone() { return phone; } @@ -221,6 +228,7 @@ public User userStatus(Integer userStatus) { @JsonProperty(value = "userStatus") @ApiModelProperty(value = "User Status") + public Integer getUserStatus() { return userStatus; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/XmlItem.java index 0364048b51f9..8a286dd3d4d2 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/XmlItem.java @@ -190,6 +190,7 @@ public XmlItem attributeString(String attributeString) { @JsonProperty(value = "attribute_string") @ApiModelProperty(example = "string", value = "") + public String getAttributeString() { return attributeString; } @@ -209,7 +210,8 @@ public XmlItem attributeNumber(BigDecimal attributeNumber) { **/ @JsonProperty(value = "attribute_number") @ApiModelProperty(example = "1.234", value = "") - @Valid + + public BigDecimal getAttributeNumber() { return attributeNumber; } @@ -230,6 +232,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { @JsonProperty(value = "attribute_integer") @ApiModelProperty(example = "-2", value = "") + public Integer getAttributeInteger() { return attributeInteger; } @@ -250,6 +253,7 @@ public XmlItem attributeBoolean(Boolean attributeBoolean) { @JsonProperty(value = "attribute_boolean") @ApiModelProperty(example = "true", value = "") + public Boolean getAttributeBoolean() { return attributeBoolean; } @@ -278,6 +282,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { @JsonProperty(value = "wrapped_array") @ApiModelProperty(value = "") + public List getWrappedArray() { return wrappedArray; } @@ -298,6 +303,7 @@ public XmlItem nameString(String nameString) { @JsonProperty(value = "name_string") @ApiModelProperty(example = "string", value = "") + public String getNameString() { return nameString; } @@ -317,7 +323,8 @@ public XmlItem nameNumber(BigDecimal nameNumber) { **/ @JsonProperty(value = "name_number") @ApiModelProperty(example = "1.234", value = "") - @Valid + + public BigDecimal getNameNumber() { return nameNumber; } @@ -338,6 +345,7 @@ public XmlItem nameInteger(Integer nameInteger) { @JsonProperty(value = "name_integer") @ApiModelProperty(example = "-2", value = "") + public Integer getNameInteger() { return nameInteger; } @@ -358,6 +366,7 @@ public XmlItem nameBoolean(Boolean nameBoolean) { @JsonProperty(value = "name_boolean") @ApiModelProperty(example = "true", value = "") + public Boolean getNameBoolean() { return nameBoolean; } @@ -386,6 +395,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { @JsonProperty(value = "name_array") @ApiModelProperty(value = "") + public List getNameArray() { return nameArray; } @@ -414,6 +424,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { @JsonProperty(value = "name_wrapped_array") @ApiModelProperty(value = "") + public List getNameWrappedArray() { return nameWrappedArray; } @@ -434,6 +445,7 @@ public XmlItem prefixString(String prefixString) { @JsonProperty(value = "prefix_string") @ApiModelProperty(example = "string", value = "") + public String getPrefixString() { return prefixString; } @@ -453,7 +465,8 @@ public XmlItem prefixNumber(BigDecimal prefixNumber) { **/ @JsonProperty(value = "prefix_number") @ApiModelProperty(example = "1.234", value = "") - @Valid + + public BigDecimal getPrefixNumber() { return prefixNumber; } @@ -474,6 +487,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { @JsonProperty(value = "prefix_integer") @ApiModelProperty(example = "-2", value = "") + public Integer getPrefixInteger() { return prefixInteger; } @@ -494,6 +508,7 @@ public XmlItem prefixBoolean(Boolean prefixBoolean) { @JsonProperty(value = "prefix_boolean") @ApiModelProperty(example = "true", value = "") + public Boolean getPrefixBoolean() { return prefixBoolean; } @@ -522,6 +537,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { @JsonProperty(value = "prefix_array") @ApiModelProperty(value = "") + public List getPrefixArray() { return prefixArray; } @@ -550,6 +566,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { @JsonProperty(value = "prefix_wrapped_array") @ApiModelProperty(value = "") + public List getPrefixWrappedArray() { return prefixWrappedArray; } @@ -570,6 +587,7 @@ public XmlItem namespaceString(String namespaceString) { @JsonProperty(value = "namespace_string") @ApiModelProperty(example = "string", value = "") + public String getNamespaceString() { return namespaceString; } @@ -589,7 +607,8 @@ public XmlItem namespaceNumber(BigDecimal namespaceNumber) { **/ @JsonProperty(value = "namespace_number") @ApiModelProperty(example = "1.234", value = "") - @Valid + + public BigDecimal getNamespaceNumber() { return namespaceNumber; } @@ -610,6 +629,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { @JsonProperty(value = "namespace_integer") @ApiModelProperty(example = "-2", value = "") + public Integer getNamespaceInteger() { return namespaceInteger; } @@ -630,6 +650,7 @@ public XmlItem namespaceBoolean(Boolean namespaceBoolean) { @JsonProperty(value = "namespace_boolean") @ApiModelProperty(example = "true", value = "") + public Boolean getNamespaceBoolean() { return namespaceBoolean; } @@ -658,6 +679,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { @JsonProperty(value = "namespace_array") @ApiModelProperty(value = "") + public List getNamespaceArray() { return namespaceArray; } @@ -686,6 +708,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { @JsonProperty(value = "namespace_wrapped_array") @ApiModelProperty(value = "") + public List getNamespaceWrappedArray() { return namespaceWrappedArray; } @@ -706,6 +729,7 @@ public XmlItem prefixNsString(String prefixNsString) { @JsonProperty(value = "prefix_ns_string") @ApiModelProperty(example = "string", value = "") + public String getPrefixNsString() { return prefixNsString; } @@ -725,7 +749,8 @@ public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { **/ @JsonProperty(value = "prefix_ns_number") @ApiModelProperty(example = "1.234", value = "") - @Valid + + public BigDecimal getPrefixNsNumber() { return prefixNsNumber; } @@ -746,6 +771,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { @JsonProperty(value = "prefix_ns_integer") @ApiModelProperty(example = "-2", value = "") + public Integer getPrefixNsInteger() { return prefixNsInteger; } @@ -766,6 +792,7 @@ public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { @JsonProperty(value = "prefix_ns_boolean") @ApiModelProperty(example = "true", value = "") + public Boolean getPrefixNsBoolean() { return prefixNsBoolean; } @@ -794,6 +821,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { @JsonProperty(value = "prefix_ns_array") @ApiModelProperty(value = "") + public List getPrefixNsArray() { return prefixNsArray; } @@ -822,6 +850,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { @JsonProperty(value = "prefix_ns_wrapped_array") @ApiModelProperty(value = "") + public List getPrefixNsWrappedArray() { return prefixNsWrappedArray; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/AnotherFakeApi.java index ac8e60cb4568..c5b4111124d7 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/AnotherFakeApi.java @@ -63,7 +63,8 @@ public AnotherFakeApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Response call123testSpecialTags(@ApiParam(value = "to test uuid example value" ,required=true)@HeaderParam("uuid_test") UUID uuidTest,@ApiParam(value = "client model", required = true) @NotNull @Valid Client body,@Context SecurityContext securityContext) + public Response call123testSpecialTags(@ApiParam(value = "to test uuid example value" ,required=true)@HeaderParam("uuid_test") UUID uuidTest,@ApiParam(value = "client model", required = true) @NotNull + Client body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.call123testSpecialTags(uuidTest, body, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeApi.java index 15f426ba35b8..9d6ffe338798 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeApi.java @@ -71,7 +71,8 @@ public FakeApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createXmlItem(@ApiParam(value = "XmlItem Body", required = true) @NotNull @Valid XmlItem xmlItem,@Context SecurityContext securityContext) + public Response createXmlItem(@ApiParam(value = "XmlItem Body", required = true) @NotNull + XmlItem xmlItem,@Context SecurityContext securityContext) throws NotFoundException { return delegate.createXmlItem(xmlItem, securityContext); } @@ -83,7 +84,8 @@ public Response createXmlItem(@ApiParam(value = "XmlItem Body", required = true) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Output boolean", response = Boolean.class) }) - public Response fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body") Boolean body,@Context SecurityContext securityContext) + public Response fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body") + Boolean body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeOuterBooleanSerialize(body, securityContext); } @@ -95,7 +97,8 @@ public Response fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as po @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) - public Response fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body") @Valid OuterComposite body,@Context SecurityContext securityContext) + public Response fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body") + OuterComposite body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeOuterCompositeSerialize(body, securityContext); } @@ -107,7 +110,8 @@ public Response fakeOuterCompositeSerialize(@ApiParam(value = "Input composite a @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Output number", response = BigDecimal.class) }) - public Response fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body") BigDecimal body,@Context SecurityContext securityContext) + public Response fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body") + BigDecimal body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeOuterNumberSerialize(body, securityContext); } @@ -119,7 +123,8 @@ public Response fakeOuterNumberSerialize(@ApiParam(value = "Input number as post @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Output string", response = String.class) }) - public Response fakeOuterStringSerialize(@ApiParam(value = "Input string as post body") String body,@Context SecurityContext securityContext) + public Response fakeOuterStringSerialize(@ApiParam(value = "Input string as post body") + String body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeOuterStringSerialize(body, securityContext); } @@ -131,7 +136,8 @@ public Response fakeOuterStringSerialize(@ApiParam(value = "Input string as post @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Success", response = Void.class) }) - public Response testBodyWithFileSchema(@ApiParam(value = "", required = true) @NotNull @Valid FileSchemaTestClass body,@Context SecurityContext securityContext) + public Response testBodyWithFileSchema(@ApiParam(value = "", required = true) @NotNull + FileSchemaTestClass body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testBodyWithFileSchema(body, securityContext); } @@ -143,7 +149,9 @@ public Response testBodyWithFileSchema(@ApiParam(value = "", required = true) @N @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Success", response = Void.class) }) - public Response testBodyWithQueryParams(@ApiParam(value = "", required = true) @QueryParam("query") @NotNull String query,@ApiParam(value = "", required = true) @NotNull @Valid User body,@Context SecurityContext securityContext) + public Response testBodyWithQueryParams(@ApiParam(value = "", required = true) @QueryParam("query") @NotNull + String query,@ApiParam(value = "", required = true) @NotNull + User body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testBodyWithQueryParams(query, body, securityContext); } @@ -155,7 +163,8 @@ public Response testBodyWithQueryParams(@ApiParam(value = "", required = true) @ @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Response testClientModel(@ApiParam(value = "client model", required = true) @NotNull @Valid Client body,@Context SecurityContext securityContext) + public Response testClientModel(@ApiParam(value = "client model", required = true) @NotNull + Client body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testClientModel(body, securityContext); } @@ -184,7 +193,11 @@ public Response testEndpointParameters(@ApiParam(value = "None", required=true) @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid request", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "Not found", response = Void.class) }) - public Response testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $")@HeaderParam("enum_header_string_array") List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg")@HeaderParam("enum_header_string") String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)") @QueryParam("enum_query_string_array") @Valid List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue = "-efg") @DefaultValue("-efg") @QueryParam("enum_query_string") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1, -2") @QueryParam("enum_query_integer") Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1.1, -1.2") @QueryParam("enum_query_double") Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $", defaultValue="$") @DefaultValue("$") @FormParam("enum_form_string_array") List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @FormParam("enum_form_string") String enumFormString,@Context SecurityContext securityContext) + public Response testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $")@HeaderParam("enum_header_string_array") List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg")@HeaderParam("enum_header_string") String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)") @QueryParam("enum_query_string_array") + List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue = "-efg") @DefaultValue("-efg") @QueryParam("enum_query_string") + String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1, -2") @QueryParam("enum_query_integer") + Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1.1, -1.2") @QueryParam("enum_query_double") + Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $", defaultValue="$") @DefaultValue("$") @FormParam("enum_form_string_array") List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @FormParam("enum_form_string") String enumFormString,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, securityContext); } @@ -196,7 +209,11 @@ public Response testEnumParameters(@ApiParam(value = "Header parameter enum test @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 400, message = "Something wrong", response = Void.class) }) - public Response testGroupParameters(@ApiParam(value = "Required String in group parameters", required = true) @QueryParam("required_string_group") @NotNull Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true)@HeaderParam("required_boolean_group") Boolean requiredBooleanGroup,@ApiParam(value = "Required Integer in group parameters", required = true) @QueryParam("required_int64_group") @NotNull Long requiredInt64Group,@ApiParam(value = "String in group parameters") @QueryParam("string_group") Integer stringGroup,@ApiParam(value = "Boolean in group parameters" )@HeaderParam("boolean_group") Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @QueryParam("int64_group") Long int64Group,@Context SecurityContext securityContext) + public Response testGroupParameters(@ApiParam(value = "Required String in group parameters", required = true) @QueryParam("required_string_group") @NotNull + Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true)@HeaderParam("required_boolean_group") Boolean requiredBooleanGroup,@ApiParam(value = "Required Integer in group parameters", required = true) @QueryParam("required_int64_group") @NotNull + Long requiredInt64Group,@ApiParam(value = "String in group parameters") @QueryParam("string_group") + Integer stringGroup,@ApiParam(value = "Boolean in group parameters" )@HeaderParam("boolean_group") Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @QueryParam("int64_group") + Long int64Group,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, securityContext); } @@ -208,7 +225,8 @@ public Response testGroupParameters(@ApiParam(value = "Required String in group @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response testInlineAdditionalProperties(@ApiParam(value = "request body", required = true) @NotNull @Valid Map param,@Context SecurityContext securityContext) + public Response testInlineAdditionalProperties(@ApiParam(value = "request body", required = true) @NotNull @Valid + Map param,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testInlineAdditionalProperties(param, securityContext); } @@ -232,7 +250,12 @@ public Response testJsonFormData(@ApiParam(value = "field1", required=true) @Fo @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Success", response = Void.class) }) - public Response testQueryParameterCollectionFormat(@ApiParam(value = "", required = true) @QueryParam("pipe") @NotNull @Valid List pipe,@ApiParam(value = "", required = true) @QueryParam("ioutil") @NotNull @Valid List ioutil,@ApiParam(value = "", required = true) @QueryParam("http") @NotNull @Valid List http,@ApiParam(value = "", required = true) @QueryParam("url") @NotNull @Valid List url,@ApiParam(value = "", required = true) @QueryParam("context") @NotNull @Valid List context,@Context SecurityContext securityContext) + public Response testQueryParameterCollectionFormat(@ApiParam(value = "", required = true) @QueryParam("pipe") @NotNull @Valid + List pipe,@ApiParam(value = "", required = true) @QueryParam("ioutil") @NotNull @Valid + List ioutil,@ApiParam(value = "", required = true) @QueryParam("http") @NotNull @Valid + List http,@ApiParam(value = "", required = true) @QueryParam("url") @NotNull @Valid + List url,@ApiParam(value = "", required = true) @QueryParam("context") @NotNull @Valid + List context,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, securityContext); } @@ -249,7 +272,8 @@ public Response testQueryParameterCollectionFormat(@ApiParam(value = "", require @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) - public Response uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathParam("petId") @NotNull Long petId, + public Response uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathParam("petId") @NotNull + Long petId, @FormDataParam("requiredFile") FormDataBodyPart requiredFileBodypart ,@ApiParam(value = "Additional data to pass to server")@FormDataParam("additionalMetadata") String additionalMetadata,@Context SecurityContext securityContext) throws NotFoundException { return delegate.uploadFileWithRequiredFile(petId, requiredFileBodypart, additionalMetadata, securityContext); diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java index 4306f605e46c..93ae57ff3293 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java @@ -64,7 +64,8 @@ public FakeClassnameTestApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Response testClassname(@ApiParam(value = "client model", required = true) @NotNull @Valid Client body,@Context SecurityContext securityContext) + public Response testClassname(@ApiParam(value = "client model", required = true) @NotNull + Client body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testClassname(body, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/PetApi.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/PetApi.java index 5592f807547b..ce57c1eacd2f 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/PetApi.java @@ -71,7 +71,8 @@ public PetApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class), @io.swagger.annotations.ApiResponse(code = 405, message = "Invalid input", response = Void.class) }) - public Response addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull @Valid Pet body,@Context SecurityContext securityContext) + public Response addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull + Pet body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.addPet(body, securityContext); } @@ -89,7 +90,8 @@ public Response addPet(@ApiParam(value = "Pet object that needs to be added to t @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid pet value", response = Void.class) }) - public Response deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathParam("petId") @NotNull Long petId,@ApiParam(value = "" )@HeaderParam("api_key") String apiKey,@Context SecurityContext securityContext) + public Response deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathParam("petId") @NotNull + Long petId,@ApiParam(value = "" )@HeaderParam("api_key") String apiKey,@Context SecurityContext securityContext) throws NotFoundException { return delegate.deletePet(petId, apiKey, securityContext); } @@ -107,7 +109,8 @@ public Response deletePet(@ApiParam(value = "Pet id to delete", required = true) @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid status value", response = Void.class) }) - public Response findPetsByStatus(@ApiParam(value = "Status values that need to be considered for filter", required = true) @QueryParam("status") @NotNull @Valid List status,@Context SecurityContext securityContext) + public Response findPetsByStatus(@ApiParam(value = "Status values that need to be considered for filter", required = true) @QueryParam("status") @NotNull + List status,@Context SecurityContext securityContext) throws NotFoundException { return delegate.findPetsByStatus(status, securityContext); } @@ -125,7 +128,8 @@ public Response findPetsByStatus(@ApiParam(value = "Status values that need to b @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "Set"), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid tag value", response = Void.class) }) - public Response findPetsByTags(@ApiParam(value = "Tags to filter by", required = true) @QueryParam("tags") @NotNull @Valid Set tags,@Context SecurityContext securityContext) + public Response findPetsByTags(@ApiParam(value = "Tags to filter by", required = true) @QueryParam("tags") @NotNull @Valid + Set tags,@Context SecurityContext securityContext) throws NotFoundException { return delegate.findPetsByTags(tags, securityContext); } @@ -141,7 +145,8 @@ public Response findPetsByTags(@ApiParam(value = "Tags to filter by", required = @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid ID supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "Pet not found", response = Void.class) }) - public Response getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathParam("petId") @NotNull Long petId,@Context SecurityContext securityContext) + public Response getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathParam("petId") @NotNull + Long petId,@Context SecurityContext securityContext) throws NotFoundException { return delegate.getPetById(petId, securityContext); } @@ -161,7 +166,8 @@ public Response getPetById(@ApiParam(value = "ID of pet to return", required = t @io.swagger.annotations.ApiResponse(code = 404, message = "Pet not found", response = Void.class), @io.swagger.annotations.ApiResponse(code = 405, message = "Validation exception", response = Void.class) }) - public Response updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull @Valid Pet body,@Context SecurityContext securityContext) + public Response updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull + Pet body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.updatePet(body, securityContext); } @@ -178,7 +184,8 @@ public Response updatePet(@ApiParam(value = "Pet object that needs to be added t @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 405, message = "Invalid input", response = Void.class) }) - public Response updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathParam("petId") @NotNull Long petId,@ApiParam(value = "Updated name of the pet") @FormParam("name") String name,@ApiParam(value = "Updated status of the pet") @FormParam("status") String status,@Context SecurityContext securityContext) + public Response updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathParam("petId") @NotNull + Long petId,@ApiParam(value = "Updated name of the pet") @FormParam("name") String name,@ApiParam(value = "Updated status of the pet") @FormParam("status") String status,@Context SecurityContext securityContext) throws NotFoundException { return delegate.updatePetWithForm(petId, name, status, securityContext); } @@ -195,7 +202,8 @@ public Response updatePetWithForm(@ApiParam(value = "ID of pet that needs to be @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) - public Response uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathParam("petId") @NotNull Long petId,@ApiParam(value = "Additional data to pass to server")@FormDataParam("additionalMetadata") String additionalMetadata, + public Response uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathParam("petId") @NotNull + Long petId,@ApiParam(value = "Additional data to pass to server")@FormDataParam("additionalMetadata") String additionalMetadata, @FormDataParam("file") FormDataBodyPart _fileBodypart ,@Context SecurityContext securityContext) throws NotFoundException { return delegate.uploadFile(petId, additionalMetadata, _fileBodypart, securityContext); diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/StoreApi.java index 4ef38ebed15f..38275029d254 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/StoreApi.java @@ -64,7 +64,8 @@ public StoreApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid ID supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "Order not found", response = Void.class) }) - public Response deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathParam("order_id") @NotNull String orderId,@Context SecurityContext securityContext) + public Response deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathParam("order_id") @NotNull + String orderId,@Context SecurityContext securityContext) throws NotFoundException { return delegate.deleteOrder(orderId, securityContext); } @@ -92,7 +93,8 @@ public Response getInventory(@Context SecurityContext securityContext) @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid ID supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "Order not found", response = Void.class) }) - public Response getOrderById(@ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathParam("order_id") @NotNull @Min(1L) @Max(5L) Long orderId,@Context SecurityContext securityContext) + public Response getOrderById(@ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathParam("order_id") @NotNull @Min(1L) @Max(5L) + Long orderId,@Context SecurityContext securityContext) throws NotFoundException { return delegate.getOrderById(orderId, securityContext); } @@ -105,7 +107,8 @@ public Response getOrderById(@ApiParam(value = "ID of pet that needs to be fetch @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Order.class), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid Order", response = Void.class) }) - public Response placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true) @NotNull @Valid Order body,@Context SecurityContext securityContext) + public Response placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true) @NotNull + Order body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.placeOrder(body, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/UserApi.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/UserApi.java index e9bcc058068f..6cbf6ba7f323 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/UserApi.java @@ -63,7 +63,8 @@ public UserApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUser(@ApiParam(value = "Created user object", required = true) @NotNull @Valid User body,@Context SecurityContext securityContext) + public Response createUser(@ApiParam(value = "Created user object", required = true) @NotNull + User body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.createUser(body, securityContext); } @@ -75,7 +76,8 @@ public Response createUser(@ApiParam(value = "Created user object", required = t @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true) @NotNull @Valid List<@Valid User> body,@Context SecurityContext securityContext) + public Response createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true) @NotNull @Valid + List<@Valid User> body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.createUsersWithArrayInput(body, securityContext); } @@ -87,7 +89,8 @@ public Response createUsersWithArrayInput(@ApiParam(value = "List of user object @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUsersWithListInput(@ApiParam(value = "List of user object", required = true) @NotNull @Valid List<@Valid User> body,@Context SecurityContext securityContext) + public Response createUsersWithListInput(@ApiParam(value = "List of user object", required = true) @NotNull @Valid + List<@Valid User> body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.createUsersWithListInput(body, securityContext); } @@ -100,7 +103,8 @@ public Response createUsersWithListInput(@ApiParam(value = "List of user object" @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid username supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = Void.class) }) - public Response deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathParam("username") @NotNull String username,@Context SecurityContext securityContext) + public Response deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathParam("username") @NotNull + String username,@Context SecurityContext securityContext) throws NotFoundException { return delegate.deleteUser(username, securityContext); } @@ -114,7 +118,8 @@ public Response deleteUser(@ApiParam(value = "The name that needs to be deleted" @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid username supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = Void.class) }) - public Response getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathParam("username") @NotNull String username,@Context SecurityContext securityContext) + public Response getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathParam("username") @NotNull + String username,@Context SecurityContext securityContext) throws NotFoundException { return delegate.getUserByName(username, securityContext); } @@ -127,7 +132,9 @@ public Response getUserByName(@ApiParam(value = "The name that needs to be fetch @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = String.class), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid username/password supplied", response = Void.class) }) - public Response loginUser(@ApiParam(value = "The user name for login", required = true) @QueryParam("username") @NotNull String username,@ApiParam(value = "The password for login in clear text", required = true) @QueryParam("password") @NotNull String password,@Context SecurityContext securityContext) + public Response loginUser(@ApiParam(value = "The user name for login", required = true) @QueryParam("username") @NotNull + String username,@ApiParam(value = "The password for login in clear text", required = true) @QueryParam("password") @NotNull + String password,@Context SecurityContext securityContext) throws NotFoundException { return delegate.loginUser(username, password, securityContext); } @@ -152,7 +159,9 @@ public Response logoutUser(@Context SecurityContext securityContext) @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid user supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = Void.class) }) - public Response updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathParam("username") @NotNull String username,@ApiParam(value = "Updated user object", required = true) @NotNull @Valid User body,@Context SecurityContext securityContext) + public Response updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathParam("username") @NotNull + String username,@ApiParam(value = "Updated user object", required = true) @NotNull + User body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.updateUser(username, body, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesAnyType.java index 927b9b17c6c3..a4df40550c39 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -48,6 +48,7 @@ public AdditionalPropertiesAnyType name(String name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") + public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesArray.java index 059c93738e6f..6583ccc66ce0 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -49,6 +49,7 @@ public AdditionalPropertiesArray name(String name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") + public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesBoolean.java index 5c6c53411c2d..46be0f789eee 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -48,6 +48,7 @@ public AdditionalPropertiesBoolean name(String name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") + public String getName() { return 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 46c0cdeb2b1f..cbd1420ce337 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 @@ -108,6 +108,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt @JsonProperty(value = "map_string") @ApiModelProperty(value = "") + public Map getMapString() { return mapString; } @@ -136,6 +137,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb @JsonProperty(value = "map_number") @ApiModelProperty(value = "") @Valid + public Map getMapNumber() { return mapNumber; } @@ -164,6 +166,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege @JsonProperty(value = "map_integer") @ApiModelProperty(value = "") + public Map getMapInteger() { return mapInteger; } @@ -192,6 +195,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea @JsonProperty(value = "map_boolean") @ApiModelProperty(value = "") + public Map getMapBoolean() { return mapBoolean; } @@ -220,6 +224,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List> getMapArrayInteger() { return mapArrayInteger; } @@ -248,6 +253,7 @@ public AdditionalPropertiesClass putMapArrayAnytypeItem(String key, List @JsonProperty(value = "map_array_anytype") @ApiModelProperty(value = "") @Valid + public Map> getMapArrayAnytype() { return mapArrayAnytype; } @@ -276,6 +282,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map> getMapMapString() { return mapMapString; } @@ -304,6 +311,7 @@ public AdditionalPropertiesClass putMapMapAnytypeItem(String key, Map> getMapMapAnytype() { return mapMapAnytype; } @@ -324,6 +332,7 @@ public AdditionalPropertiesClass anytype1(Object anytype1) { @JsonProperty(value = "anytype_1") @ApiModelProperty(value = "") + public Object getAnytype1() { return anytype1; } @@ -344,6 +353,7 @@ public AdditionalPropertiesClass anytype2(Object anytype2) { @JsonProperty(value = "anytype_2") @ApiModelProperty(value = "") + public Object getAnytype2() { return anytype2; } @@ -364,6 +374,7 @@ public AdditionalPropertiesClass anytype3(Object anytype3) { @JsonProperty(value = "anytype_3") @ApiModelProperty(value = "") + public Object getAnytype3() { return anytype3; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesInteger.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesInteger.java index c02589a7c1d0..768723fbf135 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesInteger.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesInteger.java @@ -48,6 +48,7 @@ public AdditionalPropertiesInteger name(String name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") + public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesNumber.java index cadb5ba92adb..ed999237a8a0 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -49,6 +49,7 @@ public AdditionalPropertiesNumber name(String name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") + public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesObject.java index 690e2ae2f3c5..d683d981499e 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -48,6 +48,7 @@ public AdditionalPropertiesObject name(String name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") + public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesString.java index 3e67e5426881..ddcc3a685aa1 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesString.java @@ -48,6 +48,7 @@ public AdditionalPropertiesString name(String name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") + public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Animal.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Animal.java index f802f2dd2788..65eb059b7f3b 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Animal.java @@ -60,6 +60,7 @@ public Animal className(String className) { @JsonProperty(value = "className") @ApiModelProperty(required = true, value = "") @NotNull + public String getClassName() { return className; } @@ -80,6 +81,7 @@ public Animal color(String color) { @JsonProperty(value = "color") @ApiModelProperty(value = "") + public String getColor() { return color; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index 9966007d0f26..e4e04c60bd50 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -58,6 +58,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr @JsonProperty(value = "ArrayArrayNumber") @ApiModelProperty(value = "") @Valid + public List> getArrayArrayNumber() { return arrayArrayNumber; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java index 4da29b36770a..9926c93daf63 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -58,6 +58,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { @JsonProperty(value = "ArrayNumber") @ApiModelProperty(value = "") @Valid + public List getArrayNumber() { return arrayNumber; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ArrayTest.java index 6a32cab1dfea..b06a520c8209 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ArrayTest.java @@ -68,6 +68,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { @JsonProperty(value = "array_of_string") @ApiModelProperty(value = "") + public List getArrayOfString() { return arrayOfString; } @@ -96,6 +97,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) @JsonProperty(value = "array_array_of_integer") @ApiModelProperty(value = "") @Valid + public List> getArrayArrayOfInteger() { return arrayArrayOfInteger; } @@ -124,6 +126,7 @@ public ArrayTest addArrayArrayOfModelItem(List<@Valid ReadOnlyFirst> arrayArrayO @JsonProperty(value = "array_array_of_model") @ApiModelProperty(value = "") @Valid + public List> getArrayArrayOfModel() { return arrayArrayOfModel; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/BigCat.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/BigCat.java index 8993db1f36fb..0f2f75494953 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/BigCat.java @@ -83,6 +83,7 @@ public BigCat kind(KindEnum kind) { @JsonProperty(value = "kind") @ApiModelProperty(value = "") + public KindEnum getKind() { return kind; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Capitalization.java index 275428ac81a1..064dad69cf29 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Capitalization.java @@ -71,6 +71,7 @@ public Capitalization smallCamel(String smallCamel) { @JsonProperty(value = "smallCamel") @ApiModelProperty(value = "") + public String getSmallCamel() { return smallCamel; } @@ -91,6 +92,7 @@ public Capitalization capitalCamel(String capitalCamel) { @JsonProperty(value = "CapitalCamel") @ApiModelProperty(value = "") + public String getCapitalCamel() { return capitalCamel; } @@ -111,6 +113,7 @@ public Capitalization smallSnake(String smallSnake) { @JsonProperty(value = "small_Snake") @ApiModelProperty(value = "") + public String getSmallSnake() { return smallSnake; } @@ -131,6 +134,7 @@ public Capitalization capitalSnake(String capitalSnake) { @JsonProperty(value = "Capital_Snake") @ApiModelProperty(value = "") + public String getCapitalSnake() { return capitalSnake; } @@ -151,6 +155,7 @@ public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { @JsonProperty(value = "SCA_ETH_Flow_Points") @ApiModelProperty(value = "") + public String getScAETHFlowPoints() { return scAETHFlowPoints; } @@ -171,6 +176,7 @@ public Capitalization ATT_NAME(String ATT_NAME) { @JsonProperty(value = "ATT_NAME") @ApiModelProperty(value = "Name of the pet ") + public String getATTNAME() { return ATT_NAME; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Cat.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Cat.java index 9700c31d1556..b3250b097760 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Cat.java @@ -47,6 +47,7 @@ public Cat declawed(Boolean declawed) { @JsonProperty(value = "declawed") @ApiModelProperty(value = "") + public Boolean getDeclawed() { return declawed; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Category.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Category.java index 94593d27d7d8..10a6a540f280 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Category.java @@ -51,6 +51,7 @@ public Category id(Long id) { @JsonProperty(value = "id") @ApiModelProperty(value = "") + public Long getId() { return id; } @@ -71,6 +72,7 @@ public Category name(String name) { @JsonProperty(value = "name") @ApiModelProperty(required = true, value = "") @NotNull + public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ClassModel.java index 36bf5159845b..89851c227b4d 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ClassModel.java @@ -47,6 +47,7 @@ public ClassModel propertyClass(String propertyClass) { @JsonProperty(value = "_class") @ApiModelProperty(value = "") + public String getPropertyClass() { return propertyClass; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Client.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Client.java index ff200f04c004..496a4dfc4365 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Client.java @@ -46,6 +46,7 @@ public Client client(String client) { @JsonProperty(value = "client") @ApiModelProperty(value = "") + public String getClient() { return client; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Dog.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Dog.java index d54c50dfcc38..05295558b26c 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Dog.java @@ -47,6 +47,7 @@ public Dog breed(String breed) { @JsonProperty(value = "breed") @ApiModelProperty(value = "") + public String getBreed() { return breed; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/EnumArrays.java index 274fbf027af4..855a9fe8ee2b 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/EnumArrays.java @@ -117,6 +117,7 @@ public EnumArrays justSymbol(JustSymbolEnum justSymbol) { @JsonProperty(value = "just_symbol") @ApiModelProperty(value = "") + public JustSymbolEnum getJustSymbol() { return justSymbol; } @@ -145,6 +146,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { @JsonProperty(value = "array_enum") @ApiModelProperty(value = "") + public List getArrayEnum() { return arrayEnum; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/EnumTest.java index f4461b465155..2625ab220e87 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/EnumTest.java @@ -197,6 +197,7 @@ public EnumTest enumString(EnumStringEnum enumString) { @JsonProperty(value = "enum_string") @ApiModelProperty(value = "") + public EnumStringEnum getEnumString() { return enumString; } @@ -217,6 +218,7 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { @JsonProperty(value = "enum_string_required") @ApiModelProperty(required = true, value = "") @NotNull + public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; } @@ -237,6 +239,7 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { @JsonProperty(value = "enum_integer") @ApiModelProperty(value = "") + public EnumIntegerEnum getEnumInteger() { return enumInteger; } @@ -257,6 +260,7 @@ public EnumTest enumNumber(EnumNumberEnum enumNumber) { @JsonProperty(value = "enum_number") @ApiModelProperty(value = "") + public EnumNumberEnum getEnumNumber() { return enumNumber; } @@ -276,7 +280,8 @@ public EnumTest outerEnum(OuterEnum outerEnum) { **/ @JsonProperty(value = "outerEnum") @ApiModelProperty(value = "") - @Valid + + public OuterEnum getOuterEnum() { return outerEnum; } 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 ccf6d9e47573..e44539543450 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 @@ -54,7 +54,8 @@ public FileSchemaTestClass _file(ModelFile _file) { **/ @JsonProperty(value = "file") @ApiModelProperty(value = "") - @Valid + + public ModelFile getFile() { return _file; } @@ -83,6 +84,7 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { @JsonProperty(value = "files") @ApiModelProperty(value = "") @Valid + public List<@Valid ModelFile> getFiles() { return files; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/FormatTest.java index 6d9b649041c2..8b9e2a6a1774 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/FormatTest.java @@ -118,6 +118,7 @@ public FormatTest integer(Integer integer) { @JsonProperty(value = "integer") @ApiModelProperty(value = "") @Min(10) @Max(100) + public Integer getInteger() { return integer; } @@ -140,6 +141,7 @@ public FormatTest int32(Integer int32) { @JsonProperty(value = "int32") @ApiModelProperty(value = "") @Min(20) @Max(200) + public Integer getInt32() { return int32; } @@ -160,6 +162,7 @@ public FormatTest int64(Long int64) { @JsonProperty(value = "int64") @ApiModelProperty(value = "") + public Long getInt64() { return int64; } @@ -181,7 +184,8 @@ public FormatTest number(BigDecimal number) { **/ @JsonProperty(value = "number") @ApiModelProperty(required = true, value = "") - @NotNull @Valid @DecimalMin("32.1") @DecimalMax("543.2") + @NotNull @DecimalMin("32.1") @DecimalMax("543.2") + public BigDecimal getNumber() { return number; } @@ -204,6 +208,7 @@ public FormatTest _float(Float _float) { @JsonProperty(value = "float") @ApiModelProperty(value = "") @DecimalMin("54.3") @DecimalMax("987.6") + public Float getFloat() { return _float; } @@ -226,6 +231,7 @@ public FormatTest _double(Double _double) { @JsonProperty(value = "double") @ApiModelProperty(value = "") @DecimalMin("67.8") @DecimalMax("123.4") + public Double getDouble() { return _double; } @@ -246,6 +252,7 @@ public FormatTest string(String string) { @JsonProperty(value = "string") @ApiModelProperty(value = "") @Pattern(regexp="/[a-z]/i") + public String getString() { return string; } @@ -266,6 +273,7 @@ public FormatTest _byte(byte[] _byte) { @JsonProperty(value = "byte") @ApiModelProperty(required = true, value = "") @NotNull + public byte[] getByte() { return _byte; } @@ -286,6 +294,7 @@ public FormatTest binary(File binary) { @JsonProperty(value = "binary") @ApiModelProperty(value = "") + public File getBinary() { return binary; } @@ -306,6 +315,7 @@ public FormatTest date(Date date) { @JsonProperty(value = "date") @ApiModelProperty(required = true, value = "") @NotNull + public Date getDate() { return date; } @@ -326,6 +336,7 @@ public FormatTest dateTime(Date dateTime) { @JsonProperty(value = "dateTime") @ApiModelProperty(value = "") + public Date getDateTime() { return dateTime; } @@ -346,6 +357,7 @@ public FormatTest uuid(UUID uuid) { @JsonProperty(value = "uuid") @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") + public UUID getUuid() { return uuid; } @@ -366,6 +378,7 @@ public FormatTest password(String password) { @JsonProperty(value = "password") @ApiModelProperty(required = true, value = "") @NotNull @Size(min=10,max=64) + public String getPassword() { return password; } @@ -385,7 +398,8 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { **/ @JsonProperty(value = "BigDecimal") @ApiModelProperty(value = "") - @Valid + + public BigDecimal getBigDecimal() { return bigDecimal; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java index 94885d038dfd..282698898b56 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java @@ -52,6 +52,7 @@ public HasOnlyReadOnly bar(String bar) { @JsonProperty(value = "bar", access = JsonProperty.Access.READ_ONLY) @ApiModelProperty(value = "") + public String getBar() { return bar; } @@ -72,6 +73,7 @@ public HasOnlyReadOnly foo(String foo) { @JsonProperty(value = "foo", access = JsonProperty.Access.READ_ONLY) @ApiModelProperty(value = "") + public String getFoo() { return foo; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/MapTest.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/MapTest.java index 58aa1713d779..3d58956c233c 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/MapTest.java @@ -103,6 +103,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr @JsonProperty(value = "map_map_of_string") @ApiModelProperty(value = "") @Valid + public Map> getMapMapOfString() { return mapMapOfString; } @@ -131,6 +132,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) @JsonProperty(value = "map_of_enum_string") @ApiModelProperty(value = "") + public Map getMapOfEnumString() { return mapOfEnumString; } @@ -159,6 +161,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { @JsonProperty(value = "direct_map") @ApiModelProperty(value = "") + public Map getDirectMap() { return directMap; } @@ -187,6 +190,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { @JsonProperty(value = "indirect_map") @ApiModelProperty(value = "") + public Map getIndirectMap() { return indirectMap; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index b1c8a828c901..43a6f05b8988 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -61,6 +61,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { @JsonProperty(value = "uuid") @ApiModelProperty(value = "") + public UUID getUuid() { return uuid; } @@ -81,6 +82,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(Date dateTime) { @JsonProperty(value = "dateTime") @ApiModelProperty(value = "") + public Date getDateTime() { return dateTime; } @@ -109,6 +111,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal @JsonProperty(value = "map") @ApiModelProperty(value = "") @Valid + public Map getMap() { return map; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Model200Response.java index 8fa1cf529160..c847fcf9cefc 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Model200Response.java @@ -53,6 +53,7 @@ public Model200Response name(Integer name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") + public Integer getName() { return name; } @@ -73,6 +74,7 @@ public Model200Response propertyClass(String propertyClass) { @JsonProperty(value = "class") @ApiModelProperty(value = "") + public String getPropertyClass() { return propertyClass; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ModelApiResponse.java index 2a0378636c71..7f735683520c 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ModelApiResponse.java @@ -57,6 +57,7 @@ public ModelApiResponse code(Integer code) { @JsonProperty(value = "code") @ApiModelProperty(value = "") + public Integer getCode() { return code; } @@ -77,6 +78,7 @@ public ModelApiResponse type(String type) { @JsonProperty(value = "type") @ApiModelProperty(value = "") + public String getType() { return type; } @@ -97,6 +99,7 @@ public ModelApiResponse message(String message) { @JsonProperty(value = "message") @ApiModelProperty(value = "") + public String getMessage() { return message; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ModelFile.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ModelFile.java index 03301bf2979e..7191a2f0d49f 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ModelFile.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ModelFile.java @@ -48,6 +48,7 @@ public ModelFile sourceURI(String sourceURI) { @JsonProperty(value = "sourceURI") @ApiModelProperty(value = "Test capitalization") + public String getSourceURI() { return sourceURI; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ModelList.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ModelList.java index f74cc7fb21a0..56fdb3189bfe 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ModelList.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ModelList.java @@ -47,6 +47,7 @@ public ModelList _123list(String _123list) { @JsonProperty(value = "123-list") @ApiModelProperty(value = "") + public String get123list() { return _123list; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ModelReturn.java index 89b36d9e2b77..31dd5bb219ab 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ModelReturn.java @@ -48,6 +48,7 @@ public ModelReturn _return(Integer _return) { @JsonProperty(value = "return") @ApiModelProperty(value = "") + public Integer getReturn() { return _return; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Name.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Name.java index 2b0db677d08b..25ae922cb1fa 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Name.java @@ -62,6 +62,7 @@ public Name name(Integer name) { @JsonProperty(value = "name") @ApiModelProperty(required = true, value = "") @NotNull + public Integer getName() { return name; } @@ -82,6 +83,7 @@ public Name snakeCase(Integer snakeCase) { @JsonProperty(value = "snake_case", access = JsonProperty.Access.READ_ONLY) @ApiModelProperty(value = "") + public Integer getSnakeCase() { return snakeCase; } @@ -102,6 +104,7 @@ public Name property(String property) { @JsonProperty(value = "property") @ApiModelProperty(value = "") + public String getProperty() { return property; } @@ -122,6 +125,7 @@ public Name _123number(Integer _123number) { @JsonProperty(value = "123Number", access = JsonProperty.Access.READ_ONLY) @ApiModelProperty(value = "") + public Integer get123number() { return _123number; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/NumberOnly.java index 3a8cec4eb651..9ccd8246ea54 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/NumberOnly.java @@ -46,7 +46,8 @@ public NumberOnly justNumber(BigDecimal justNumber) { **/ @JsonProperty(value = "JustNumber") @ApiModelProperty(value = "") - @Valid + + public BigDecimal getJustNumber() { return justNumber; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Order.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Order.java index cbdaca28c141..9476af340bb6 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Order.java @@ -106,6 +106,7 @@ public Order id(Long id) { @JsonProperty(value = "id") @ApiModelProperty(value = "") + public Long getId() { return id; } @@ -126,6 +127,7 @@ public Order petId(Long petId) { @JsonProperty(value = "petId") @ApiModelProperty(value = "") + public Long getPetId() { return petId; } @@ -146,6 +148,7 @@ public Order quantity(Integer quantity) { @JsonProperty(value = "quantity") @ApiModelProperty(value = "") + public Integer getQuantity() { return quantity; } @@ -166,6 +169,7 @@ public Order shipDate(Date shipDate) { @JsonProperty(value = "shipDate") @ApiModelProperty(value = "") + public Date getShipDate() { return shipDate; } @@ -186,6 +190,7 @@ public Order status(StatusEnum status) { @JsonProperty(value = "status") @ApiModelProperty(value = "Order Status") + public StatusEnum getStatus() { return status; } @@ -206,6 +211,7 @@ public Order complete(Boolean complete) { @JsonProperty(value = "complete") @ApiModelProperty(value = "") + public Boolean getComplete() { return complete; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/OuterComposite.java index 88c2dc7d476a..d2c7e25c90aa 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/OuterComposite.java @@ -56,7 +56,8 @@ public OuterComposite myNumber(BigDecimal myNumber) { **/ @JsonProperty(value = "my_number") @ApiModelProperty(value = "") - @Valid + + public BigDecimal getMyNumber() { return myNumber; } @@ -77,6 +78,7 @@ public OuterComposite myString(String myString) { @JsonProperty(value = "my_string") @ApiModelProperty(value = "") + public String getMyString() { return myString; } @@ -97,6 +99,7 @@ public OuterComposite myBoolean(Boolean myBoolean) { @JsonProperty(value = "my_boolean") @ApiModelProperty(value = "") + public Boolean getMyBoolean() { return myBoolean; } 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 76f6a5be1ff5..727e3a781927 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 @@ -113,6 +113,7 @@ public Pet id(Long id) { @JsonProperty(value = "id") @ApiModelProperty(value = "") + public Long getId() { return id; } @@ -132,7 +133,8 @@ public Pet category(Category category) { **/ @JsonProperty(value = "category") @ApiModelProperty(value = "") - @Valid + + public Category getCategory() { return category; } @@ -153,6 +155,7 @@ public Pet name(String name) { @JsonProperty(value = "name") @ApiModelProperty(example = "doggie", required = true, value = "") @NotNull + public String getName() { return name; } @@ -181,6 +184,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { @JsonProperty(value = "photoUrls") @ApiModelProperty(required = true, value = "") @NotNull + public Set getPhotoUrls() { return photoUrls; } @@ -210,6 +214,7 @@ public Pet addTagsItem(Tag tagsItem) { @JsonProperty(value = "tags") @ApiModelProperty(value = "") @Valid + public List<@Valid Tag> getTags() { return tags; } @@ -230,6 +235,7 @@ public Pet status(StatusEnum status) { @JsonProperty(value = "status") @ApiModelProperty(value = "pet status in the store") + public StatusEnum getStatus() { return status; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ReadOnlyFirst.java index fe0280ecec42..e3c3744d4e20 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ReadOnlyFirst.java @@ -51,6 +51,7 @@ public ReadOnlyFirst bar(String bar) { @JsonProperty(value = "bar", access = JsonProperty.Access.READ_ONLY) @ApiModelProperty(value = "") + public String getBar() { return bar; } @@ -71,6 +72,7 @@ public ReadOnlyFirst baz(String baz) { @JsonProperty(value = "baz") @ApiModelProperty(value = "") + public String getBaz() { return baz; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/SpecialModelName.java index 6cd123a20c53..7debf78bd551 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/SpecialModelName.java @@ -47,6 +47,7 @@ public class SpecialModelName { @JsonProperty(value = "$special[property.name]") @ApiModelProperty(value = "") + public Long get$SpecialPropertyName() { return $specialPropertyName; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Tag.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Tag.java index e560173bdf2f..e08351bc708d 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Tag.java @@ -51,6 +51,7 @@ public Tag id(Long id) { @JsonProperty(value = "id") @ApiModelProperty(value = "") + public Long getId() { return id; } @@ -71,6 +72,7 @@ public Tag name(String name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") + public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/TypeHolderDefault.java index ca08849db72d..7db5a5237686 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/TypeHolderDefault.java @@ -70,6 +70,7 @@ public TypeHolderDefault stringItem(String stringItem) { @JsonProperty(value = "string_item") @ApiModelProperty(required = true, value = "") @NotNull + public String getStringItem() { return stringItem; } @@ -89,7 +90,8 @@ public TypeHolderDefault numberItem(BigDecimal numberItem) { **/ @JsonProperty(value = "number_item") @ApiModelProperty(required = true, value = "") - @NotNull @Valid + @NotNull + public BigDecimal getNumberItem() { return numberItem; } @@ -110,6 +112,7 @@ public TypeHolderDefault integerItem(Integer integerItem) { @JsonProperty(value = "integer_item") @ApiModelProperty(required = true, value = "") @NotNull + public Integer getIntegerItem() { return integerItem; } @@ -130,6 +133,7 @@ public TypeHolderDefault boolItem(Boolean boolItem) { @JsonProperty(value = "bool_item") @ApiModelProperty(required = true, value = "") @NotNull + public Boolean getBoolItem() { return boolItem; } @@ -158,6 +162,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { @JsonProperty(value = "array_item") @ApiModelProperty(required = true, value = "") @NotNull + public List getArrayItem() { return arrayItem; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/TypeHolderExample.java index 0014ea335007..c0c5314e96a8 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/TypeHolderExample.java @@ -75,6 +75,7 @@ public TypeHolderExample stringItem(String stringItem) { @JsonProperty(value = "string_item") @ApiModelProperty(example = "what", required = true, value = "") @NotNull + public String getStringItem() { return stringItem; } @@ -94,7 +95,8 @@ public TypeHolderExample numberItem(BigDecimal numberItem) { **/ @JsonProperty(value = "number_item") @ApiModelProperty(example = "1.234", required = true, value = "") - @NotNull @Valid + @NotNull + public BigDecimal getNumberItem() { return numberItem; } @@ -115,6 +117,7 @@ public TypeHolderExample floatItem(Float floatItem) { @JsonProperty(value = "float_item") @ApiModelProperty(example = "1.234", required = true, value = "") @NotNull + public Float getFloatItem() { return floatItem; } @@ -135,6 +138,7 @@ public TypeHolderExample integerItem(Integer integerItem) { @JsonProperty(value = "integer_item") @ApiModelProperty(example = "-2", required = true, value = "") @NotNull + public Integer getIntegerItem() { return integerItem; } @@ -155,6 +159,7 @@ public TypeHolderExample boolItem(Boolean boolItem) { @JsonProperty(value = "bool_item") @ApiModelProperty(example = "true", required = true, value = "") @NotNull + public Boolean getBoolItem() { return boolItem; } @@ -183,6 +188,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { @JsonProperty(value = "array_item") @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") @NotNull + public List getArrayItem() { return arrayItem; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/User.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/User.java index b437f3504e22..85810b74832f 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/User.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/User.java @@ -81,6 +81,7 @@ public User id(Long id) { @JsonProperty(value = "id") @ApiModelProperty(value = "") + public Long getId() { return id; } @@ -101,6 +102,7 @@ public User username(String username) { @JsonProperty(value = "username") @ApiModelProperty(value = "") + public String getUsername() { return username; } @@ -121,6 +123,7 @@ public User firstName(String firstName) { @JsonProperty(value = "firstName") @ApiModelProperty(value = "") + public String getFirstName() { return firstName; } @@ -141,6 +144,7 @@ public User lastName(String lastName) { @JsonProperty(value = "lastName") @ApiModelProperty(value = "") + public String getLastName() { return lastName; } @@ -161,6 +165,7 @@ public User email(String email) { @JsonProperty(value = "email") @ApiModelProperty(value = "") + public String getEmail() { return email; } @@ -181,6 +186,7 @@ public User password(String password) { @JsonProperty(value = "password") @ApiModelProperty(value = "") + public String getPassword() { return password; } @@ -201,6 +207,7 @@ public User phone(String phone) { @JsonProperty(value = "phone") @ApiModelProperty(value = "") + public String getPhone() { return phone; } @@ -221,6 +228,7 @@ public User userStatus(Integer userStatus) { @JsonProperty(value = "userStatus") @ApiModelProperty(value = "User Status") + public Integer getUserStatus() { return userStatus; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/XmlItem.java index 0364048b51f9..8a286dd3d4d2 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/XmlItem.java @@ -190,6 +190,7 @@ public XmlItem attributeString(String attributeString) { @JsonProperty(value = "attribute_string") @ApiModelProperty(example = "string", value = "") + public String getAttributeString() { return attributeString; } @@ -209,7 +210,8 @@ public XmlItem attributeNumber(BigDecimal attributeNumber) { **/ @JsonProperty(value = "attribute_number") @ApiModelProperty(example = "1.234", value = "") - @Valid + + public BigDecimal getAttributeNumber() { return attributeNumber; } @@ -230,6 +232,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { @JsonProperty(value = "attribute_integer") @ApiModelProperty(example = "-2", value = "") + public Integer getAttributeInteger() { return attributeInteger; } @@ -250,6 +253,7 @@ public XmlItem attributeBoolean(Boolean attributeBoolean) { @JsonProperty(value = "attribute_boolean") @ApiModelProperty(example = "true", value = "") + public Boolean getAttributeBoolean() { return attributeBoolean; } @@ -278,6 +282,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { @JsonProperty(value = "wrapped_array") @ApiModelProperty(value = "") + public List getWrappedArray() { return wrappedArray; } @@ -298,6 +303,7 @@ public XmlItem nameString(String nameString) { @JsonProperty(value = "name_string") @ApiModelProperty(example = "string", value = "") + public String getNameString() { return nameString; } @@ -317,7 +323,8 @@ public XmlItem nameNumber(BigDecimal nameNumber) { **/ @JsonProperty(value = "name_number") @ApiModelProperty(example = "1.234", value = "") - @Valid + + public BigDecimal getNameNumber() { return nameNumber; } @@ -338,6 +345,7 @@ public XmlItem nameInteger(Integer nameInteger) { @JsonProperty(value = "name_integer") @ApiModelProperty(example = "-2", value = "") + public Integer getNameInteger() { return nameInteger; } @@ -358,6 +366,7 @@ public XmlItem nameBoolean(Boolean nameBoolean) { @JsonProperty(value = "name_boolean") @ApiModelProperty(example = "true", value = "") + public Boolean getNameBoolean() { return nameBoolean; } @@ -386,6 +395,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { @JsonProperty(value = "name_array") @ApiModelProperty(value = "") + public List getNameArray() { return nameArray; } @@ -414,6 +424,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { @JsonProperty(value = "name_wrapped_array") @ApiModelProperty(value = "") + public List getNameWrappedArray() { return nameWrappedArray; } @@ -434,6 +445,7 @@ public XmlItem prefixString(String prefixString) { @JsonProperty(value = "prefix_string") @ApiModelProperty(example = "string", value = "") + public String getPrefixString() { return prefixString; } @@ -453,7 +465,8 @@ public XmlItem prefixNumber(BigDecimal prefixNumber) { **/ @JsonProperty(value = "prefix_number") @ApiModelProperty(example = "1.234", value = "") - @Valid + + public BigDecimal getPrefixNumber() { return prefixNumber; } @@ -474,6 +487,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { @JsonProperty(value = "prefix_integer") @ApiModelProperty(example = "-2", value = "") + public Integer getPrefixInteger() { return prefixInteger; } @@ -494,6 +508,7 @@ public XmlItem prefixBoolean(Boolean prefixBoolean) { @JsonProperty(value = "prefix_boolean") @ApiModelProperty(example = "true", value = "") + public Boolean getPrefixBoolean() { return prefixBoolean; } @@ -522,6 +537,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { @JsonProperty(value = "prefix_array") @ApiModelProperty(value = "") + public List getPrefixArray() { return prefixArray; } @@ -550,6 +566,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { @JsonProperty(value = "prefix_wrapped_array") @ApiModelProperty(value = "") + public List getPrefixWrappedArray() { return prefixWrappedArray; } @@ -570,6 +587,7 @@ public XmlItem namespaceString(String namespaceString) { @JsonProperty(value = "namespace_string") @ApiModelProperty(example = "string", value = "") + public String getNamespaceString() { return namespaceString; } @@ -589,7 +607,8 @@ public XmlItem namespaceNumber(BigDecimal namespaceNumber) { **/ @JsonProperty(value = "namespace_number") @ApiModelProperty(example = "1.234", value = "") - @Valid + + public BigDecimal getNamespaceNumber() { return namespaceNumber; } @@ -610,6 +629,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { @JsonProperty(value = "namespace_integer") @ApiModelProperty(example = "-2", value = "") + public Integer getNamespaceInteger() { return namespaceInteger; } @@ -630,6 +650,7 @@ public XmlItem namespaceBoolean(Boolean namespaceBoolean) { @JsonProperty(value = "namespace_boolean") @ApiModelProperty(example = "true", value = "") + public Boolean getNamespaceBoolean() { return namespaceBoolean; } @@ -658,6 +679,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { @JsonProperty(value = "namespace_array") @ApiModelProperty(value = "") + public List getNamespaceArray() { return namespaceArray; } @@ -686,6 +708,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { @JsonProperty(value = "namespace_wrapped_array") @ApiModelProperty(value = "") + public List getNamespaceWrappedArray() { return namespaceWrappedArray; } @@ -706,6 +729,7 @@ public XmlItem prefixNsString(String prefixNsString) { @JsonProperty(value = "prefix_ns_string") @ApiModelProperty(example = "string", value = "") + public String getPrefixNsString() { return prefixNsString; } @@ -725,7 +749,8 @@ public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { **/ @JsonProperty(value = "prefix_ns_number") @ApiModelProperty(example = "1.234", value = "") - @Valid + + public BigDecimal getPrefixNsNumber() { return prefixNsNumber; } @@ -746,6 +771,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { @JsonProperty(value = "prefix_ns_integer") @ApiModelProperty(example = "-2", value = "") + public Integer getPrefixNsInteger() { return prefixNsInteger; } @@ -766,6 +792,7 @@ public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { @JsonProperty(value = "prefix_ns_boolean") @ApiModelProperty(example = "true", value = "") + public Boolean getPrefixNsBoolean() { return prefixNsBoolean; } @@ -794,6 +821,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { @JsonProperty(value = "prefix_ns_array") @ApiModelProperty(value = "") + public List getPrefixNsArray() { return prefixNsArray; } @@ -822,6 +850,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { @JsonProperty(value = "prefix_ns_wrapped_array") @ApiModelProperty(value = "") + public List getPrefixNsWrappedArray() { return prefixNsWrappedArray; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/AnotherFakeApi.java index f0d1c071c205..fb1e15d48d52 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/AnotherFakeApi.java @@ -67,7 +67,8 @@ public AnotherFakeApi(@Context ServletConfig servletContext) { @ApiResponse(responseCode = "200", description = "successful operation", content = @Content(schema = @Schema(implementation = Client.class))), }, tags={ "$another-fake?", }) - public Response call123testSpecialTags(@Schema(description = "client model", required = true) @NotNull @Valid Client client,@Context SecurityContext securityContext) + public Response call123testSpecialTags(@Schema(description = "client model", required = true) @NotNull + Client client,@Context SecurityContext securityContext) throws NotFoundException { return delegate.call123testSpecialTags(client, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/FakeApi.java index ac2be3b4eca8..accbc143f01e 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/FakeApi.java @@ -108,7 +108,9 @@ public Response fakeHealthGet(@Context SecurityContext securityContext) },security = { @SecurityRequirement(name = "http_signature_test") }, tags={ "fake", }) - public Response fakeHttpSignatureTest(@Schema(description = "Pet object that needs to be added to the store", required = true) @NotNull @Valid Pet pet,@Schema(description = "query parameter") @QueryParam("query_1") String query1,@Schema(description = "header parameter" )@HeaderParam("header_1") String header1,@Context SecurityContext securityContext) + public Response fakeHttpSignatureTest(@Schema(description = "Pet object that needs to be added to the store", required = true) @NotNull + Pet pet,@Schema(description = "query parameter") @QueryParam("query_1") + String query1,@Schema(description = "header parameter" )@HeaderParam("header_1") String header1,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeHttpSignatureTest(pet, query1, header1, securityContext); } @@ -121,7 +123,8 @@ public Response fakeHttpSignatureTest(@Schema(description = "Pet object that nee @ApiResponse(responseCode = "200", description = "Output boolean", content = @Content(schema = @Schema(implementation = Boolean.class))), }, tags={ "fake", }) - public Response fakeOuterBooleanSerialize(@Schema(description = "Input boolean as post body") Boolean body,@Context SecurityContext securityContext) + public Response fakeOuterBooleanSerialize(@Schema(description = "Input boolean as post body") + Boolean body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeOuterBooleanSerialize(body, securityContext); } @@ -134,7 +137,8 @@ public Response fakeOuterBooleanSerialize(@Schema(description = "Input boolean a @ApiResponse(responseCode = "200", description = "Output composite", content = @Content(schema = @Schema(implementation = OuterComposite.class))), }, tags={ "fake", }) - public Response fakeOuterCompositeSerialize(@Schema(description = "Input composite as post body") @Valid OuterComposite outerComposite,@Context SecurityContext securityContext) + public Response fakeOuterCompositeSerialize(@Schema(description = "Input composite as post body") + OuterComposite outerComposite,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeOuterCompositeSerialize(outerComposite, securityContext); } @@ -147,7 +151,8 @@ public Response fakeOuterCompositeSerialize(@Schema(description = "Input composi @ApiResponse(responseCode = "200", description = "Output number", content = @Content(schema = @Schema(implementation = BigDecimal.class))), }, tags={ "fake", }) - public Response fakeOuterNumberSerialize(@Schema(description = "Input number as post body") BigDecimal body,@Context SecurityContext securityContext) + public Response fakeOuterNumberSerialize(@Schema(description = "Input number as post body") + BigDecimal body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeOuterNumberSerialize(body, securityContext); } @@ -160,7 +165,8 @@ public Response fakeOuterNumberSerialize(@Schema(description = "Input number as @ApiResponse(responseCode = "200", description = "Output string", content = @Content(schema = @Schema(implementation = String.class))), }, tags={ "fake", }) - public Response fakeOuterStringSerialize(@Schema(description = "Input string as post body") String body,@Context SecurityContext securityContext) + public Response fakeOuterStringSerialize(@Schema(description = "Input string as post body") + String body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeOuterStringSerialize(body, securityContext); } @@ -173,7 +179,8 @@ public Response fakeOuterStringSerialize(@Schema(description = "Input string as @ApiResponse(responseCode = "200", description = "Output enum (int)", content = @Content(schema = @Schema(implementation = OuterObjectWithEnumProperty.class))), }, tags={ "fake", }) - public Response fakePropertyEnumIntegerSerialize(@Schema(description = "Input enum (int) as post body", required = true) @NotNull @Valid OuterObjectWithEnumProperty outerObjectWithEnumProperty,@Context SecurityContext securityContext) + public Response fakePropertyEnumIntegerSerialize(@Schema(description = "Input enum (int) as post body", required = true) @NotNull + OuterObjectWithEnumProperty outerObjectWithEnumProperty,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakePropertyEnumIntegerSerialize(outerObjectWithEnumProperty, securityContext); } @@ -185,7 +192,8 @@ public Response fakePropertyEnumIntegerSerialize(@Schema(description = "Input en @ApiResponse(responseCode = "200", description = "successful operation", content = @Content(schema = @Schema(implementation = Void.class))), }, tags={ "fake", }) - public Response testAdditionalPropertiesReference(@Schema(description = "request body", required = true) @NotNull @Valid Map requestBody,@Context SecurityContext securityContext) + public Response testAdditionalPropertiesReference(@Schema(description = "request body", required = true) @NotNull @Valid + Map requestBody,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testAdditionalPropertiesReference(requestBody, securityContext); } @@ -197,7 +205,8 @@ public Response testAdditionalPropertiesReference(@Schema(description = "request @ApiResponse(responseCode = "200", description = "Success", content = @Content(schema = @Schema(implementation = Void.class))), }, tags={ "fake", }) - public Response testBodyWithBinary(@Schema(description = "image to upload", required = true) @NotNull File body,@Context SecurityContext securityContext) + public Response testBodyWithBinary(@Schema(description = "image to upload", required = true) @NotNull + File body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testBodyWithBinary(body, securityContext); } @@ -209,7 +218,8 @@ public Response testBodyWithBinary(@Schema(description = "image to upload", requ @ApiResponse(responseCode = "200", description = "Success", content = @Content(schema = @Schema(implementation = Void.class))), }, tags={ "fake", }) - public Response testBodyWithFileSchema(@Schema(description = "", required = true) @NotNull @Valid FileSchemaTestClass fileSchemaTestClass,@Context SecurityContext securityContext) + public Response testBodyWithFileSchema(@Schema(description = "", required = true) @NotNull + FileSchemaTestClass fileSchemaTestClass,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testBodyWithFileSchema(fileSchemaTestClass, securityContext); } @@ -221,7 +231,9 @@ public Response testBodyWithFileSchema(@Schema(description = "", required = true @ApiResponse(responseCode = "200", description = "Success", content = @Content(schema = @Schema(implementation = Void.class))), }, tags={ "fake", }) - public Response testBodyWithQueryParams(@Schema(description = "") @QueryParam("query") @NotNull String query,@Schema(description = "", required = true) @NotNull @Valid User user,@Context SecurityContext securityContext) + public Response testBodyWithQueryParams(@Schema(description = "") @QueryParam("query") @NotNull + String query,@Schema(description = "", required = true) @NotNull + User user,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testBodyWithQueryParams(query, user, securityContext); } @@ -233,7 +245,8 @@ public Response testBodyWithQueryParams(@Schema(description = "") @QueryParam("q @ApiResponse(responseCode = "200", description = "successful operation", content = @Content(schema = @Schema(implementation = Client.class))), }, tags={ "fake", }) - public Response testClientModel(@Schema(description = "client model", required = true) @NotNull @Valid Client client,@Context SecurityContext securityContext) + public Response testClientModel(@Schema(description = "client model", required = true) @NotNull + Client client,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testClientModel(client, securityContext); } @@ -261,7 +274,12 @@ public Response testEndpointParameters(@Schema(description = "None") @QueryParam @ApiResponse(responseCode = "404", description = "Not found", content = @Content(schema = @Schema(implementation = Void.class))), }, tags={ "fake", }) - public Response testEnumParameters(@Schema(description = "Header parameter enum test (string array)" , allowableValues=">, $")@HeaderParam("enum_header_string_array") List enumHeaderStringArray,@Schema(description = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg")@HeaderParam("enum_header_string") String enumHeaderString,@Schema(description = "Query parameter enum test (string array)") @QueryParam("enum_query_string_array") @Valid List enumQueryStringArray,@Schema(description = "Query parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue = "-efg") @DefaultValue("-efg") @QueryParam("enum_query_string") String enumQueryString,@Schema(description = "Query parameter enum test (double)", allowableValues="1, -2") @QueryParam("enum_query_integer") Integer enumQueryInteger,@Schema(description = "Query parameter enum test (double)", allowableValues="1.1, -1.2") @QueryParam("enum_query_double") Double enumQueryDouble,@Schema(description = "") @QueryParam("enum_query_model_array") @Valid List enumQueryModelArray,@Schema(description = "Form parameter enum test (string array)", allowableValues=">, $", defaultValue="$") @DefaultValue("$") @QueryParam("enum_form_string_array") List enumFormStringArray,@Schema(description = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @QueryParam("enum_form_string") String enumFormString,@Context SecurityContext securityContext) + public Response testEnumParameters(@Schema(description = "Header parameter enum test (string array)" , allowableValues=">, $")@HeaderParam("enum_header_string_array") List enumHeaderStringArray,@Schema(description = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg")@HeaderParam("enum_header_string") String enumHeaderString,@Schema(description = "Query parameter enum test (string array)") @QueryParam("enum_query_string_array") + List enumQueryStringArray,@Schema(description = "Query parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue = "-efg") @DefaultValue("-efg") @QueryParam("enum_query_string") + String enumQueryString,@Schema(description = "Query parameter enum test (double)", allowableValues="1, -2") @QueryParam("enum_query_integer") + Integer enumQueryInteger,@Schema(description = "Query parameter enum test (double)", allowableValues="1.1, -1.2") @QueryParam("enum_query_double") + Double enumQueryDouble,@Schema(description = "") @QueryParam("enum_query_model_array") @Valid + List enumQueryModelArray,@Schema(description = "Form parameter enum test (string array)", allowableValues=">, $", defaultValue="$") @DefaultValue("$") @QueryParam("enum_form_string_array") List enumFormStringArray,@Schema(description = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @QueryParam("enum_form_string") String enumFormString,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString, securityContext); } @@ -273,7 +291,11 @@ public Response testEnumParameters(@Schema(description = "Header parameter enum },security = { @SecurityRequirement(name = "bearer_test") }, tags={ "fake", }) - public Response testGroupParameters(@Schema(description = "Required String in group parameters") @QueryParam("required_string_group") @NotNull Integer requiredStringGroup,@Schema(description = "Required Boolean in group parameters" ,required=true)@HeaderParam("required_boolean_group") Boolean requiredBooleanGroup,@Schema(description = "Required Integer in group parameters") @QueryParam("required_int64_group") @NotNull Long requiredInt64Group,@Schema(description = "String in group parameters") @QueryParam("string_group") Integer stringGroup,@Schema(description = "Boolean in group parameters" )@HeaderParam("boolean_group") Boolean booleanGroup,@Schema(description = "Integer in group parameters") @QueryParam("int64_group") Long int64Group,@Context SecurityContext securityContext) + public Response testGroupParameters(@Schema(description = "Required String in group parameters") @QueryParam("required_string_group") @NotNull + Integer requiredStringGroup,@Schema(description = "Required Boolean in group parameters" ,required=true)@HeaderParam("required_boolean_group") Boolean requiredBooleanGroup,@Schema(description = "Required Integer in group parameters") @QueryParam("required_int64_group") @NotNull + Long requiredInt64Group,@Schema(description = "String in group parameters") @QueryParam("string_group") + Integer stringGroup,@Schema(description = "Boolean in group parameters" )@HeaderParam("boolean_group") Boolean booleanGroup,@Schema(description = "Integer in group parameters") @QueryParam("int64_group") + Long int64Group,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, securityContext); } @@ -285,7 +307,8 @@ public Response testGroupParameters(@Schema(description = "Required String in gr @ApiResponse(responseCode = "200", description = "successful operation", content = @Content(schema = @Schema(implementation = Void.class))), }, tags={ "fake", }) - public Response testInlineAdditionalProperties(@Schema(description = "request body", required = true) @NotNull @Valid Map requestBody,@Context SecurityContext securityContext) + public Response testInlineAdditionalProperties(@Schema(description = "request body", required = true) @NotNull @Valid + Map requestBody,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testInlineAdditionalProperties(requestBody, securityContext); } @@ -297,7 +320,8 @@ public Response testInlineAdditionalProperties(@Schema(description = "request bo @ApiResponse(responseCode = "200", description = "successful operation", content = @Content(schema = @Schema(implementation = Void.class))), }, tags={ "fake", }) - public Response testInlineFreeformAdditionalProperties(@Schema(description = "request body", required = true) @NotNull @Valid TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest,@Context SecurityContext securityContext) + public Response testInlineFreeformAdditionalProperties(@Schema(description = "request body", required = true) @NotNull + TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest, securityContext); } @@ -321,7 +345,8 @@ public Response testJsonFormData(@Schema(description = "field1") @QueryParam("pa @ApiResponse(responseCode = "200", description = "successful operation", content = @Content(schema = @Schema(implementation = Void.class))), }, tags={ "fake", }) - public Response testNullable(@Schema(description = "request body", required = true) @NotNull @Valid ChildWithNullable childWithNullable,@Context SecurityContext securityContext) + public Response testNullable(@Schema(description = "request body", required = true) @NotNull + ChildWithNullable childWithNullable,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testNullable(childWithNullable, securityContext); } @@ -332,7 +357,14 @@ public Response testNullable(@Schema(description = "request body", required = tr @ApiResponse(responseCode = "200", description = "Success", content = @Content(schema = @Schema(implementation = Void.class))), }, tags={ "fake", }) - public Response testQueryParameterCollectionFormat(@Schema(description = "") @QueryParam("pipe") @NotNull @Valid List pipe,@Schema(description = "") @QueryParam("ioutil") @NotNull @Valid List ioutil,@Schema(description = "") @QueryParam("http") @NotNull @Valid List http,@Schema(description = "") @QueryParam("url") @NotNull @Valid List url,@Schema(description = "") @QueryParam("context") @NotNull @Valid List context,@Schema(description = "") @QueryParam("allowEmpty") @NotNull String allowEmpty,@Schema(description = "") @Parameter(description="language") @Valid Map language,@Context SecurityContext securityContext) + public Response testQueryParameterCollectionFormat(@Schema(description = "") @QueryParam("pipe") @NotNull @Valid + List pipe,@Schema(description = "") @QueryParam("ioutil") @NotNull @Valid + List ioutil,@Schema(description = "") @QueryParam("http") @NotNull @Valid + List http,@Schema(description = "") @QueryParam("url") @NotNull @Valid + List url,@Schema(description = "") @QueryParam("context") @NotNull @Valid + List context,@Schema(description = "") @QueryParam("allowEmpty") @NotNull + String allowEmpty,@Schema(description = "") @Parameter(description="language") @Valid + Map language,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowEmpty, language, securityContext); } @@ -344,7 +376,8 @@ public Response testQueryParameterCollectionFormat(@Schema(description = "") @Qu @ApiResponse(responseCode = "200", description = "successful operation", content = @Content(schema = @Schema(implementation = Void.class))), }, tags={ "fake", }) - public Response testStringMapReference(@Schema(description = "request body", required = true) @NotNull @Valid Map requestBody,@Context SecurityContext securityContext) + public Response testStringMapReference(@Schema(description = "request body", required = true) @NotNull @Valid + Map requestBody,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testStringMapReference(requestBody, securityContext); } @@ -359,7 +392,8 @@ public Response testStringMapReference(@Schema(description = "request body", req },security = { @SecurityRequirement(name = "petstore_auth", scopes={ "write:pets", "read:pets" }) }, tags={ "pet", }) - public Response uploadFileWithRequiredFile(@Schema(description= "ID of pet to update", required = true) @PathParam("petId") @NotNull Long petId,@FormDataParam("requiredFile") FormDataBodyPart requiredFileBodypart,@Schema(description = "Additional data to pass to server")@FormDataParam("additionalMetadata") String additionalMetadata,@Context SecurityContext securityContext) + public Response uploadFileWithRequiredFile(@Schema(description= "ID of pet to update", required = true) @PathParam("petId") @NotNull + Long petId,@FormDataParam("requiredFile") FormDataBodyPart requiredFileBodypart,@Schema(description = "Additional data to pass to server")@FormDataParam("additionalMetadata") String additionalMetadata,@Context SecurityContext securityContext) throws NotFoundException { return delegate.uploadFileWithRequiredFile(petId, requiredFileBodypart, additionalMetadata, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java index da5246403426..166862b0b344 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java @@ -69,7 +69,8 @@ public FakeClassnameTestApi(@Context ServletConfig servletContext) { },security = { @SecurityRequirement(name = "api_key_query") }, tags={ "fake_classname_tags 123#$%^", }) - public Response testClassname(@Schema(description = "client model", required = true) @NotNull @Valid Client client,@Context SecurityContext securityContext) + public Response testClassname(@Schema(description = "client model", required = true) @NotNull + Client client,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testClassname(client, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/PetApi.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/PetApi.java index 17dcf4f6668b..88791dc7afb4 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/PetApi.java @@ -73,7 +73,8 @@ public PetApi(@Context ServletConfig servletContext) { },security = { @SecurityRequirement(name = "petstore_auth", scopes={ "write:pets", "read:pets" }) }, tags={ "pet", }) - public Response addPet(@Schema(description = "Pet object that needs to be added to the store", required = true) @NotNull @Valid Pet pet,@Context SecurityContext securityContext) + public Response addPet(@Schema(description = "Pet object that needs to be added to the store", required = true) @NotNull + Pet pet,@Context SecurityContext securityContext) throws NotFoundException { return delegate.addPet(pet, securityContext); } @@ -88,7 +89,8 @@ public Response addPet(@Schema(description = "Pet object that needs to be added },security = { @SecurityRequirement(name = "petstore_auth", scopes={ "write:pets", "read:pets" }) }, tags={ "pet", }) - public Response deletePet(@Schema(description= "Pet id to delete", required = true) @PathParam("petId") @NotNull Long petId,@Schema(description = "" )@HeaderParam("api_key") String apiKey,@Context SecurityContext securityContext) + public Response deletePet(@Schema(description= "Pet id to delete", required = true) @PathParam("petId") @NotNull + Long petId,@Schema(description = "" )@HeaderParam("api_key") String apiKey,@Context SecurityContext securityContext) throws NotFoundException { return delegate.deletePet(petId, apiKey, securityContext); } @@ -104,7 +106,8 @@ public Response deletePet(@Schema(description= "Pet id to delete", required = tr },security = { @SecurityRequirement(name = "petstore_auth", scopes={ "write:pets", "read:pets" }) }, tags={ "pet", }) - public Response findPetsByStatus(@Schema(description = "Status values that need to be considered for filter") @QueryParam("status") @NotNull @Valid List status,@Context SecurityContext securityContext) + public Response findPetsByStatus(@Schema(description = "Status values that need to be considered for filter") @QueryParam("status") @NotNull + List status,@Context SecurityContext securityContext) throws NotFoundException { return delegate.findPetsByStatus(status, securityContext); } @@ -120,7 +123,8 @@ public Response findPetsByStatus(@Schema(description = "Status values that need },security = { @SecurityRequirement(name = "petstore_auth", scopes={ "write:pets", "read:pets" }) }, tags={ "pet", }) - public Response findPetsByTags(@Schema(description = "Tags to filter by") @QueryParam("tags") @NotNull @Valid Set tags,@Context SecurityContext securityContext) + public Response findPetsByTags(@Schema(description = "Tags to filter by") @QueryParam("tags") @NotNull @Valid + Set tags,@Context SecurityContext securityContext) throws NotFoundException { return delegate.findPetsByTags(tags, securityContext); } @@ -138,7 +142,8 @@ public Response findPetsByTags(@Schema(description = "Tags to filter by") @Query },security = { @SecurityRequirement(name = "api_key") }, tags={ "pet", }) - public Response getPetById(@Schema(description= "ID of pet to return", required = true) @PathParam("petId") @NotNull Long petId,@Context SecurityContext securityContext) + public Response getPetById(@Schema(description= "ID of pet to return", required = true) @PathParam("petId") @NotNull + Long petId,@Context SecurityContext securityContext) throws NotFoundException { return delegate.getPetById(petId, securityContext); } @@ -157,7 +162,8 @@ public Response getPetById(@Schema(description= "ID of pet to return", required },security = { @SecurityRequirement(name = "petstore_auth", scopes={ "write:pets", "read:pets" }) }, tags={ "pet", }) - public Response updatePet(@Schema(description = "Pet object that needs to be added to the store", required = true) @NotNull @Valid Pet pet,@Context SecurityContext securityContext) + public Response updatePet(@Schema(description = "Pet object that needs to be added to the store", required = true) @NotNull + Pet pet,@Context SecurityContext securityContext) throws NotFoundException { return delegate.updatePet(pet, securityContext); } @@ -173,7 +179,8 @@ public Response updatePet(@Schema(description = "Pet object that needs to be add },security = { @SecurityRequirement(name = "petstore_auth", scopes={ "write:pets", "read:pets" }) }, tags={ "pet", }) - public Response updatePetWithForm(@Schema(description= "ID of pet that needs to be updated", required = true) @PathParam("petId") @NotNull Long petId,@Schema(description = "Updated name of the pet") @QueryParam("name") String name,@Schema(description = "Updated status of the pet") @QueryParam("status") String status,@Context SecurityContext securityContext) + public Response updatePetWithForm(@Schema(description= "ID of pet that needs to be updated", required = true) @PathParam("petId") @NotNull + Long petId,@Schema(description = "Updated name of the pet") @QueryParam("name") String name,@Schema(description = "Updated status of the pet") @QueryParam("status") String status,@Context SecurityContext securityContext) throws NotFoundException { return delegate.updatePetWithForm(petId, name, status, securityContext); } @@ -188,7 +195,8 @@ public Response updatePetWithForm(@Schema(description= "ID of pet that needs to },security = { @SecurityRequirement(name = "petstore_auth", scopes={ "write:pets", "read:pets" }) }, tags={ "pet", }) - public Response uploadFile(@Schema(description= "ID of pet to update", required = true) @PathParam("petId") @NotNull Long petId,@Schema(description = "Additional data to pass to server")@FormDataParam("additionalMetadata") String additionalMetadata,@FormDataParam("file") FormDataBodyPart _fileBodypart,@Context SecurityContext securityContext) + public Response uploadFile(@Schema(description= "ID of pet to update", required = true) @PathParam("petId") @NotNull + Long petId,@Schema(description = "Additional data to pass to server")@FormDataParam("additionalMetadata") String additionalMetadata,@FormDataParam("file") FormDataBodyPart _fileBodypart,@Context SecurityContext securityContext) throws NotFoundException { return delegate.uploadFile(petId, additionalMetadata, _fileBodypart, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/StoreApi.java index 06639a72f971..b8ec314517d9 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/StoreApi.java @@ -69,7 +69,8 @@ public StoreApi(@Context ServletConfig servletContext) { @ApiResponse(responseCode = "404", description = "Order not found", content = @Content(schema = @Schema(implementation = Void.class))), }, tags={ "store", }) - public Response deleteOrder(@Schema(description= "ID of the order that needs to be deleted", required = true) @PathParam("order_id") @NotNull String orderId,@Context SecurityContext securityContext) + public Response deleteOrder(@Schema(description= "ID of the order that needs to be deleted", required = true) @PathParam("order_id") @NotNull + String orderId,@Context SecurityContext securityContext) throws NotFoundException { return delegate.deleteOrder(orderId, securityContext); } @@ -99,7 +100,8 @@ public Response getInventory(@Context SecurityContext securityContext) @ApiResponse(responseCode = "404", description = "Order not found", content = @Content(schema = @Schema(implementation = Void.class))), }, tags={ "store", }) - public Response getOrderById(@Schema(description= "ID of pet that needs to be fetched", required = true) @PathParam("order_id") @NotNull @Min(1L) @Max(5L) Long orderId,@Context SecurityContext securityContext) + public Response getOrderById(@Schema(description= "ID of pet that needs to be fetched", required = true) @PathParam("order_id") @NotNull @Min(1L) @Max(5L) + Long orderId,@Context SecurityContext securityContext) throws NotFoundException { return delegate.getOrderById(orderId, securityContext); } @@ -114,7 +116,8 @@ public Response getOrderById(@Schema(description= "ID of pet that needs to be fe @ApiResponse(responseCode = "400", description = "Invalid Order", content = @Content(schema = @Schema(implementation = Void.class))), }, tags={ "store", }) - public Response placeOrder(@Schema(description = "order placed for purchasing the pet", required = true) @NotNull @Valid Order order,@Context SecurityContext securityContext) + public Response placeOrder(@Schema(description = "order placed for purchasing the pet", required = true) @NotNull + Order order,@Context SecurityContext securityContext) throws NotFoundException { return delegate.placeOrder(order, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/UserApi.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/UserApi.java index 942c748f219d..7d7303b0494a 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/UserApi.java @@ -67,7 +67,8 @@ public UserApi(@Context ServletConfig servletContext) { @ApiResponse(responseCode = "200", description = "successful operation", content = @Content(schema = @Schema(implementation = Void.class))), }, tags={ "user", }) - public Response createUser(@Schema(description = "Created user object", required = true) @NotNull @Valid User user,@Context SecurityContext securityContext) + public Response createUser(@Schema(description = "Created user object", required = true) @NotNull + User user,@Context SecurityContext securityContext) throws NotFoundException { return delegate.createUser(user, securityContext); } @@ -79,7 +80,8 @@ public Response createUser(@Schema(description = "Created user object", required @ApiResponse(responseCode = "200", description = "successful operation", content = @Content(schema = @Schema(implementation = Void.class))), }, tags={ "user", }) - public Response createUsersWithArrayInput(@Schema(description = "List of user object", required = true) @NotNull @Valid List<@Valid User> user,@Context SecurityContext securityContext) + public Response createUsersWithArrayInput(@Schema(description = "List of user object", required = true) @NotNull @Valid + List<@Valid User> user,@Context SecurityContext securityContext) throws NotFoundException { return delegate.createUsersWithArrayInput(user, securityContext); } @@ -91,7 +93,8 @@ public Response createUsersWithArrayInput(@Schema(description = "List of user ob @ApiResponse(responseCode = "200", description = "successful operation", content = @Content(schema = @Schema(implementation = Void.class))), }, tags={ "user", }) - public Response createUsersWithListInput(@Schema(description = "List of user object", required = true) @NotNull @Valid List<@Valid User> user,@Context SecurityContext securityContext) + public Response createUsersWithListInput(@Schema(description = "List of user object", required = true) @NotNull @Valid + List<@Valid User> user,@Context SecurityContext securityContext) throws NotFoundException { return delegate.createUsersWithListInput(user, securityContext); } @@ -104,7 +107,8 @@ public Response createUsersWithListInput(@Schema(description = "List of user obj @ApiResponse(responseCode = "404", description = "User not found", content = @Content(schema = @Schema(implementation = Void.class))), }, tags={ "user", }) - public Response deleteUser(@Schema(description= "The name that needs to be deleted", required = true) @PathParam("username") @NotNull String username,@Context SecurityContext securityContext) + public Response deleteUser(@Schema(description= "The name that needs to be deleted", required = true) @PathParam("username") @NotNull + String username,@Context SecurityContext securityContext) throws NotFoundException { return delegate.deleteUser(username, securityContext); } @@ -120,7 +124,8 @@ public Response deleteUser(@Schema(description= "The name that needs to be delet @ApiResponse(responseCode = "404", description = "User not found", content = @Content(schema = @Schema(implementation = Void.class))), }, tags={ "user", }) - public Response getUserByName(@Schema(description= "The name that needs to be fetched. Use user1 for testing.", required = true) @PathParam("username") @NotNull String username,@Context SecurityContext securityContext) + public Response getUserByName(@Schema(description= "The name that needs to be fetched. Use user1 for testing.", required = true) @PathParam("username") @NotNull + String username,@Context SecurityContext securityContext) throws NotFoundException { return delegate.getUserByName(username, securityContext); } @@ -134,7 +139,9 @@ public Response getUserByName(@Schema(description= "The name that needs to be fe @ApiResponse(responseCode = "400", description = "Invalid username/password supplied", content = @Content(schema = @Schema(implementation = Void.class))), }, tags={ "user", }) - public Response loginUser(@Schema(description = "The user name for login") @QueryParam("username") @NotNull String username,@Schema(description = "The password for login in clear text") @QueryParam("password") @NotNull String password,@Context SecurityContext securityContext) + public Response loginUser(@Schema(description = "The user name for login") @QueryParam("username") @NotNull + String username,@Schema(description = "The password for login in clear text") @QueryParam("password") @NotNull + String password,@Context SecurityContext securityContext) throws NotFoundException { return delegate.loginUser(username, password, securityContext); } @@ -159,7 +166,9 @@ public Response logoutUser(@Context SecurityContext securityContext) @ApiResponse(responseCode = "404", description = "User not found", content = @Content(schema = @Schema(implementation = Void.class))), }, tags={ "user", }) - public Response updateUser(@Schema(description= "name that need to be deleted", required = true) @PathParam("username") @NotNull String username,@Schema(description = "Updated user object", required = true) @NotNull @Valid User user,@Context SecurityContext securityContext) + public Response updateUser(@Schema(description= "name that need to be deleted", required = true) @PathParam("username") @NotNull + String username,@Schema(description = "Updated user object", required = true) @NotNull + User user,@Context SecurityContext securityContext) throws NotFoundException { return delegate.updateUser(username, user, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java index 7bea65d7acc8..02543bd4ec56 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -60,6 +60,7 @@ public AdditionalPropertiesClass putMapPropertyItem(String key, String mapProper @JsonProperty(value = "map_property") @Schema(description = "") + public Map getMapProperty() { return mapProperty; } @@ -88,6 +89,7 @@ public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map> getMapOfMapProperty() { return mapOfMapProperty; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/AllOfWithSingleRef.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/AllOfWithSingleRef.java index 1b2e25250a86..e4d8f6c4914b 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/AllOfWithSingleRef.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/AllOfWithSingleRef.java @@ -52,6 +52,7 @@ public AllOfWithSingleRef username(String username) { @JsonProperty(value = "username") @Schema(description = "") + public String getUsername() { return username; } @@ -71,7 +72,8 @@ public AllOfWithSingleRef singleRefType(SingleRefType singleRefType) { **/ @JsonProperty(value = "SingleRefType") @Schema(description = "") - @Valid + + public SingleRefType getSingleRefType() { return singleRefType; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Animal.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Animal.java index 275d59938830..4e3ea661717a 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Animal.java @@ -58,6 +58,7 @@ public Animal className(String className) { @JsonProperty(value = "className") @Schema(required = true, description = "") @NotNull + public String getClassName() { return className; } @@ -78,6 +79,7 @@ public Animal color(String color) { @JsonProperty(value = "color") @Schema(description = "") + public String getColor() { return color; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index 2c790d83bf25..5481e97603e6 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -57,6 +57,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr @JsonProperty(value = "ArrayArrayNumber") @Schema(description = "") @Valid + public List> getArrayArrayNumber() { return arrayArrayNumber; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java index 2a570784138a..a350ec7a9bab 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -57,6 +57,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { @JsonProperty(value = "ArrayNumber") @Schema(description = "") @Valid + public List getArrayNumber() { return arrayNumber; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ArrayTest.java index a3781b5c5f70..ecad386389d2 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ArrayTest.java @@ -67,6 +67,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { @JsonProperty(value = "array_of_string") @Schema(description = "") @Size(min=0,max=3) + public List getArrayOfString() { return arrayOfString; } @@ -95,6 +96,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) @JsonProperty(value = "array_array_of_integer") @Schema(description = "") @Valid + public List> getArrayArrayOfInteger() { return arrayArrayOfInteger; } @@ -123,6 +125,7 @@ public ArrayTest addArrayArrayOfModelItem(List<@Valid ReadOnlyFirst> arrayArrayO @JsonProperty(value = "array_array_of_model") @Schema(description = "") @Valid + public List> getArrayArrayOfModel() { return arrayArrayOfModel; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Capitalization.java index 69106debc08a..ce621647e133 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Capitalization.java @@ -70,6 +70,7 @@ public Capitalization smallCamel(String smallCamel) { @JsonProperty(value = "smallCamel") @Schema(description = "") + public String getSmallCamel() { return smallCamel; } @@ -90,6 +91,7 @@ public Capitalization capitalCamel(String capitalCamel) { @JsonProperty(value = "CapitalCamel") @Schema(description = "") + public String getCapitalCamel() { return capitalCamel; } @@ -110,6 +112,7 @@ public Capitalization smallSnake(String smallSnake) { @JsonProperty(value = "small_Snake") @Schema(description = "") + public String getSmallSnake() { return smallSnake; } @@ -130,6 +133,7 @@ public Capitalization capitalSnake(String capitalSnake) { @JsonProperty(value = "Capital_Snake") @Schema(description = "") + public String getCapitalSnake() { return capitalSnake; } @@ -150,6 +154,7 @@ public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { @JsonProperty(value = "SCA_ETH_Flow_Points") @Schema(description = "") + public String getScAETHFlowPoints() { return scAETHFlowPoints; } @@ -170,6 +175,7 @@ public Capitalization ATT_NAME(String ATT_NAME) { @JsonProperty(value = "ATT_NAME") @Schema(description = "Name of the pet ") + public String getATTNAME() { return ATT_NAME; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Cat.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Cat.java index 4e48d5598029..09754e19caff 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Cat.java @@ -46,6 +46,7 @@ public Cat declawed(Boolean declawed) { @JsonProperty(value = "declawed") @Schema(description = "") + public Boolean getDeclawed() { return declawed; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Category.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Category.java index cfa49785f134..bd9b3a6944ac 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Category.java @@ -50,6 +50,7 @@ public Category id(Long id) { @JsonProperty(value = "id") @Schema(description = "") + public Long getId() { return id; } @@ -70,6 +71,7 @@ public Category name(String name) { @JsonProperty(value = "name") @Schema(required = true, description = "") @NotNull + public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ChildWithNullable.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ChildWithNullable.java index f0045a48f5ac..1e3cc38d08ef 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ChildWithNullable.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ChildWithNullable.java @@ -47,6 +47,7 @@ public ChildWithNullable otherProperty(String otherProperty) { @JsonProperty(value = "otherProperty") @Schema(description = "") + public String getOtherProperty() { return otherProperty; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ClassModel.java index e9d8dcf791ce..7d4aae1b944b 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ClassModel.java @@ -46,6 +46,7 @@ public ClassModel propertyClass(String propertyClass) { @JsonProperty(value = "_class") @Schema(description = "") + public String getPropertyClass() { return propertyClass; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Client.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Client.java index 304de78ce3f5..21c5415ef554 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Client.java @@ -45,6 +45,7 @@ public Client client(String client) { @JsonProperty(value = "client") @Schema(description = "") + public String getClient() { return client; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/DeprecatedObject.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/DeprecatedObject.java index 93d2ea273fa1..6706720fbc71 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/DeprecatedObject.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/DeprecatedObject.java @@ -45,6 +45,7 @@ public DeprecatedObject name(String name) { @JsonProperty(value = "name") @Schema(description = "") + public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Dog.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Dog.java index 697ca66a34aa..3e4233c3e25c 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Dog.java @@ -46,6 +46,7 @@ public Dog breed(String breed) { @JsonProperty(value = "breed") @Schema(description = "") + public String getBreed() { return breed; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/EnumArrays.java index 3c88a9d174db..fb5ea42973c0 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/EnumArrays.java @@ -116,6 +116,7 @@ public EnumArrays justSymbol(JustSymbolEnum justSymbol) { @JsonProperty(value = "just_symbol") @Schema(description = "") + public JustSymbolEnum getJustSymbol() { return justSymbol; } @@ -144,6 +145,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { @JsonProperty(value = "array_enum") @Schema(description = "") + public List getArrayEnum() { return arrayEnum; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/EnumTest.java index 834fdc050aef..00aaf36471ef 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/EnumTest.java @@ -214,6 +214,7 @@ public EnumTest enumString(EnumStringEnum enumString) { @JsonProperty(value = "enum_string") @Schema(description = "") + public EnumStringEnum getEnumString() { return enumString; } @@ -234,6 +235,7 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { @JsonProperty(value = "enum_string_required") @Schema(required = true, description = "") @NotNull + public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; } @@ -254,6 +256,7 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { @JsonProperty(value = "enum_integer") @Schema(description = "") + public EnumIntegerEnum getEnumInteger() { return enumInteger; } @@ -274,6 +277,7 @@ public EnumTest enumNumber(EnumNumberEnum enumNumber) { @JsonProperty(value = "enum_number") @Schema(description = "") + public EnumNumberEnum getEnumNumber() { return enumNumber; } @@ -293,7 +297,8 @@ public EnumTest outerEnum(OuterEnum outerEnum) { **/ @JsonProperty(value = "outerEnum") @Schema(description = "") - @Valid + + public OuterEnum getOuterEnum() { return outerEnum; } @@ -313,7 +318,8 @@ public EnumTest outerEnumInteger(OuterEnumInteger outerEnumInteger) { **/ @JsonProperty(value = "outerEnumInteger") @Schema(description = "") - @Valid + + public OuterEnumInteger getOuterEnumInteger() { return outerEnumInteger; } @@ -333,7 +339,8 @@ public EnumTest outerEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValu **/ @JsonProperty(value = "outerEnumDefaultValue") @Schema(description = "") - @Valid + + public OuterEnumDefaultValue getOuterEnumDefaultValue() { return outerEnumDefaultValue; } @@ -353,7 +360,8 @@ public EnumTest outerEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerE **/ @JsonProperty(value = "outerEnumIntegerDefaultValue") @Schema(description = "") - @Valid + + public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { return outerEnumIntegerDefaultValue; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/FakeBigDecimalMap200Response.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/FakeBigDecimalMap200Response.java index a62bac6344dc..5d16f065f804 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/FakeBigDecimalMap200Response.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/FakeBigDecimalMap200Response.java @@ -53,7 +53,8 @@ public FakeBigDecimalMap200Response someId(BigDecimal someId) { **/ @JsonProperty(value = "someId") @Schema(description = "") - @Valid + + public BigDecimal getSomeId() { return someId; } @@ -82,6 +83,7 @@ public FakeBigDecimalMap200Response putSomeMapItem(String key, BigDecimal someMa @JsonProperty(value = "someMap") @Schema(description = "") @Valid + public Map getSomeMap() { return someMap; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/FileSchemaTestClass.java index 5192983e5006..d123b971bdbb 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/FileSchemaTestClass.java @@ -53,7 +53,8 @@ public FileSchemaTestClass _file(ModelFile _file) { **/ @JsonProperty(value = "file") @Schema(description = "") - @Valid + + public ModelFile getFile() { return _file; } @@ -82,6 +83,7 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { @JsonProperty(value = "files") @Schema(description = "") @Valid + public List<@Valid ModelFile> getFiles() { return files; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Foo.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Foo.java index c4a0fa7ca31b..97cbe20f0713 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Foo.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Foo.java @@ -45,6 +45,7 @@ public Foo bar(String bar) { @JsonProperty(value = "bar") @Schema(description = "") + public String getBar() { return bar; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/FooGetDefaultResponse.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/FooGetDefaultResponse.java index 06f3515c8521..cc7129af5f03 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/FooGetDefaultResponse.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/FooGetDefaultResponse.java @@ -46,7 +46,8 @@ public FooGetDefaultResponse string(Foo string) { **/ @JsonProperty(value = "string") @Schema(description = "") - @Valid + + public Foo getString() { return string; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/FormatTest.java index cda35bcf7387..120ef31dff61 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/FormatTest.java @@ -127,6 +127,7 @@ public FormatTest integer(Integer integer) { @JsonProperty(value = "integer") @Schema(description = "") @Min(10) @Max(100) + public Integer getInteger() { return integer; } @@ -149,6 +150,7 @@ public FormatTest int32(Integer int32) { @JsonProperty(value = "int32") @Schema(description = "") @Min(20) @Max(200) + public Integer getInt32() { return int32; } @@ -169,6 +171,7 @@ public FormatTest int64(Long int64) { @JsonProperty(value = "int64") @Schema(description = "") + public Long getInt64() { return int64; } @@ -190,7 +193,8 @@ public FormatTest number(BigDecimal number) { **/ @JsonProperty(value = "number") @Schema(required = true, description = "") - @NotNull @Valid @DecimalMin("32.1") @DecimalMax("543.2") + @NotNull @DecimalMin("32.1") @DecimalMax("543.2") + public BigDecimal getNumber() { return number; } @@ -213,6 +217,7 @@ public FormatTest _float(Float _float) { @JsonProperty(value = "float") @Schema(description = "") @DecimalMin("54.3") @DecimalMax("987.6") + public Float getFloat() { return _float; } @@ -235,6 +240,7 @@ public FormatTest _double(Double _double) { @JsonProperty(value = "double") @Schema(description = "") @DecimalMin("67.8") @DecimalMax("123.4") + public Double getDouble() { return _double; } @@ -254,7 +260,8 @@ public FormatTest decimal(BigDecimal decimal) { **/ @JsonProperty(value = "decimal") @Schema(description = "") - @Valid + + public BigDecimal getDecimal() { return decimal; } @@ -275,6 +282,7 @@ public FormatTest string(String string) { @JsonProperty(value = "string") @Schema(description = "") @Pattern(regexp="/[a-z]/i") + public String getString() { return string; } @@ -295,6 +303,7 @@ public FormatTest _byte(byte[] _byte) { @JsonProperty(value = "byte") @Schema(required = true, description = "") @NotNull + public byte[] getByte() { return _byte; } @@ -315,6 +324,7 @@ public FormatTest binary(File binary) { @JsonProperty(value = "binary") @Schema(description = "") + public File getBinary() { return binary; } @@ -335,6 +345,7 @@ public FormatTest date(Date date) { @JsonProperty(value = "date") @Schema(required = true, description = "") @NotNull + public Date getDate() { return date; } @@ -355,6 +366,7 @@ public FormatTest dateTime(Date dateTime) { @JsonProperty(value = "dateTime") @Schema(description = "") + public Date getDateTime() { return dateTime; } @@ -375,6 +387,7 @@ public FormatTest uuid(UUID uuid) { @JsonProperty(value = "uuid") @Schema(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", description = "") + public UUID getUuid() { return uuid; } @@ -395,6 +408,7 @@ public FormatTest password(String password) { @JsonProperty(value = "password") @Schema(required = true, description = "") @NotNull @Size(min=10,max=64) + public String getPassword() { return password; } @@ -415,6 +429,7 @@ public FormatTest patternWithDigits(String patternWithDigits) { @JsonProperty(value = "pattern_with_digits") @Schema(description = "A string that is a 10 digit number. Can have leading zeros.") @Pattern(regexp="^\\d{10}$") + public String getPatternWithDigits() { return patternWithDigits; } @@ -435,6 +450,7 @@ public FormatTest patternWithDigitsAndDelimiter(String patternWithDigitsAndDelim @JsonProperty(value = "pattern_with_digits_and_delimiter") @Schema(description = "A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.") @Pattern(regexp="/^image_\\d{1,3}$/i") + public String getPatternWithDigitsAndDelimiter() { return patternWithDigitsAndDelimiter; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java index 27790fb2c837..912ab951eca0 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java @@ -51,6 +51,7 @@ public HasOnlyReadOnly bar(String bar) { @JsonProperty(value = "bar", access = JsonProperty.Access.READ_ONLY) @Schema(description = "") + public String getBar() { return bar; } @@ -71,6 +72,7 @@ public HasOnlyReadOnly foo(String foo) { @JsonProperty(value = "foo", access = JsonProperty.Access.READ_ONLY) @Schema(description = "") + public String getFoo() { return foo; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/HealthCheckResult.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/HealthCheckResult.java index 274651b4d92e..4ab1bac112ff 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/HealthCheckResult.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/HealthCheckResult.java @@ -46,6 +46,7 @@ public HealthCheckResult nullableMessage(String nullableMessage) { @JsonProperty(value = "NullableMessage") @Schema(description = "") + public String getNullableMessage() { return nullableMessage; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/MapTest.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/MapTest.java index b49550ef78a2..c5c1ed112af1 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/MapTest.java @@ -102,6 +102,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr @JsonProperty(value = "map_map_of_string") @Schema(description = "") @Valid + public Map> getMapMapOfString() { return mapMapOfString; } @@ -130,6 +131,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) @JsonProperty(value = "map_of_enum_string") @Schema(description = "") + public Map getMapOfEnumString() { return mapOfEnumString; } @@ -158,6 +160,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { @JsonProperty(value = "direct_map") @Schema(description = "") + public Map getDirectMap() { return directMap; } @@ -186,6 +189,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { @JsonProperty(value = "indirect_map") @Schema(description = "") + public Map getIndirectMap() { return indirectMap; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index f0ab79ce0252..20284755d28b 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -60,6 +60,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { @JsonProperty(value = "uuid") @Schema(description = "") + public UUID getUuid() { return uuid; } @@ -80,6 +81,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(Date dateTime) { @JsonProperty(value = "dateTime") @Schema(description = "") + public Date getDateTime() { return dateTime; } @@ -108,6 +110,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal @JsonProperty(value = "map") @Schema(description = "") @Valid + public Map getMap() { return map; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Model200Response.java index 829959fc6dc3..e777c67dbf1b 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Model200Response.java @@ -52,6 +52,7 @@ public Model200Response name(Integer name) { @JsonProperty(value = "name") @Schema(description = "") + public Integer getName() { return name; } @@ -72,6 +73,7 @@ public Model200Response propertyClass(String propertyClass) { @JsonProperty(value = "class") @Schema(description = "") + public String getPropertyClass() { return propertyClass; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ModelApiResponse.java index 65a38ccd70ef..94b7eac8f761 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ModelApiResponse.java @@ -56,6 +56,7 @@ public ModelApiResponse code(Integer code) { @JsonProperty(value = "code") @Schema(description = "") + public Integer getCode() { return code; } @@ -76,6 +77,7 @@ public ModelApiResponse type(String type) { @JsonProperty(value = "type") @Schema(description = "") + public String getType() { return type; } @@ -96,6 +98,7 @@ public ModelApiResponse message(String message) { @JsonProperty(value = "message") @Schema(description = "") + public String getMessage() { return message; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ModelFile.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ModelFile.java index 3e36dc2178be..fbf20357f78b 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ModelFile.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ModelFile.java @@ -47,6 +47,7 @@ public ModelFile sourceURI(String sourceURI) { @JsonProperty(value = "sourceURI") @Schema(description = "Test capitalization") + public String getSourceURI() { return sourceURI; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ModelList.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ModelList.java index 7405e212fe8f..349feb07d08d 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ModelList.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ModelList.java @@ -46,6 +46,7 @@ public ModelList _123list(String _123list) { @JsonProperty(value = "123-list") @Schema(description = "") + public String get123list() { return _123list; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ModelReturn.java index 8cc5622675ee..bdd9203b028b 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ModelReturn.java @@ -47,6 +47,7 @@ public ModelReturn _return(Integer _return) { @JsonProperty(value = "return") @Schema(description = "") + public Integer getReturn() { return _return; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Name.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Name.java index 9b7da7956014..5c9310bf9300 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Name.java @@ -61,6 +61,7 @@ public Name name(Integer name) { @JsonProperty(value = "name") @Schema(required = true, description = "") @NotNull + public Integer getName() { return name; } @@ -81,6 +82,7 @@ public Name snakeCase(Integer snakeCase) { @JsonProperty(value = "snake_case", access = JsonProperty.Access.READ_ONLY) @Schema(description = "") + public Integer getSnakeCase() { return snakeCase; } @@ -101,6 +103,7 @@ public Name property(String property) { @JsonProperty(value = "property") @Schema(description = "") + public String getProperty() { return property; } @@ -121,6 +124,7 @@ public Name _123number(Integer _123number) { @JsonProperty(value = "123Number", access = JsonProperty.Access.READ_ONLY) @Schema(description = "") + public Integer get123number() { return _123number; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/NullableClass.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/NullableClass.java index b4b9b887618f..fc796665ae9d 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/NullableClass.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/NullableClass.java @@ -107,6 +107,7 @@ public NullableClass integerProp(Integer integerProp) { @JsonProperty(value = "integer_prop") @Schema(description = "") + public Integer getIntegerProp() { return integerProp; } @@ -126,7 +127,8 @@ public NullableClass numberProp(BigDecimal numberProp) { **/ @JsonProperty(value = "number_prop") @Schema(description = "") - @Valid + + public BigDecimal getNumberProp() { return numberProp; } @@ -147,6 +149,7 @@ public NullableClass booleanProp(Boolean booleanProp) { @JsonProperty(value = "boolean_prop") @Schema(description = "") + public Boolean getBooleanProp() { return booleanProp; } @@ -167,6 +170,7 @@ public NullableClass stringProp(String stringProp) { @JsonProperty(value = "string_prop") @Schema(description = "") + public String getStringProp() { return stringProp; } @@ -187,6 +191,7 @@ public NullableClass dateProp(Date dateProp) { @JsonProperty(value = "date_prop") @Schema(description = "") + public Date getDateProp() { return dateProp; } @@ -207,6 +212,7 @@ public NullableClass datetimeProp(Date datetimeProp) { @JsonProperty(value = "datetime_prop") @Schema(description = "") + public Date getDatetimeProp() { return datetimeProp; } @@ -235,6 +241,7 @@ public NullableClass addArrayNullablePropItem(Object arrayNullablePropItem) { @JsonProperty(value = "array_nullable_prop") @Schema(description = "") + public List getArrayNullableProp() { return arrayNullableProp; } @@ -263,6 +270,7 @@ public NullableClass addArrayAndItemsNullablePropItem(Object arrayAndItemsNullab @JsonProperty(value = "array_and_items_nullable_prop") @Schema(description = "") + public List getArrayAndItemsNullableProp() { return arrayAndItemsNullableProp; } @@ -291,6 +299,7 @@ public NullableClass addArrayItemsNullableItem(Object arrayItemsNullableItem) { @JsonProperty(value = "array_items_nullable") @Schema(description = "") + public List getArrayItemsNullable() { return arrayItemsNullable; } @@ -319,6 +328,7 @@ public NullableClass putObjectNullablePropItem(String key, Object objectNullable @JsonProperty(value = "object_nullable_prop") @Schema(description = "") + public Map getObjectNullableProp() { return objectNullableProp; } @@ -347,6 +357,7 @@ public NullableClass putObjectAndItemsNullablePropItem(String key, Object object @JsonProperty(value = "object_and_items_nullable_prop") @Schema(description = "") + public Map getObjectAndItemsNullableProp() { return objectAndItemsNullableProp; } @@ -375,6 +386,7 @@ public NullableClass putObjectItemsNullableItem(String key, Object objectItemsNu @JsonProperty(value = "object_items_nullable") @Schema(description = "") + public Map getObjectItemsNullable() { return objectItemsNullable; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/NumberOnly.java index 72148b4e65be..20b0b85fa736 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/NumberOnly.java @@ -45,7 +45,8 @@ public NumberOnly justNumber(BigDecimal justNumber) { **/ @JsonProperty(value = "JustNumber") @Schema(description = "") - @Valid + + public BigDecimal getJustNumber() { return justNumber; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ObjectWithDeprecatedFields.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ObjectWithDeprecatedFields.java index 157318b051e8..69ea76239d25 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ObjectWithDeprecatedFields.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ObjectWithDeprecatedFields.java @@ -65,6 +65,7 @@ public ObjectWithDeprecatedFields uuid(String uuid) { @JsonProperty(value = "uuid") @Schema(description = "") + public String getUuid() { return uuid; } @@ -84,7 +85,8 @@ public ObjectWithDeprecatedFields id(BigDecimal id) { **/ @JsonProperty(value = "id") @Schema(description = "") - @Valid + + public BigDecimal getId() { return id; } @@ -104,7 +106,8 @@ public ObjectWithDeprecatedFields deprecatedRef(DeprecatedObject deprecatedRef) **/ @JsonProperty(value = "deprecatedRef") @Schema(description = "") - @Valid + + public DeprecatedObject getDeprecatedRef() { return deprecatedRef; } @@ -133,6 +136,7 @@ public ObjectWithDeprecatedFields addBarsItem(String barsItem) { @JsonProperty(value = "bars") @Schema(description = "") + public List getBars() { return bars; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Order.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Order.java index 4e53956c8d44..471c95979cc1 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Order.java @@ -105,6 +105,7 @@ public Order id(Long id) { @JsonProperty(value = "id") @Schema(description = "") + public Long getId() { return id; } @@ -125,6 +126,7 @@ public Order petId(Long petId) { @JsonProperty(value = "petId") @Schema(description = "") + public Long getPetId() { return petId; } @@ -145,6 +147,7 @@ public Order quantity(Integer quantity) { @JsonProperty(value = "quantity") @Schema(description = "") + public Integer getQuantity() { return quantity; } @@ -165,6 +168,7 @@ public Order shipDate(Date shipDate) { @JsonProperty(value = "shipDate") @Schema(description = "") + public Date getShipDate() { return shipDate; } @@ -185,6 +189,7 @@ public Order status(StatusEnum status) { @JsonProperty(value = "status") @Schema(description = "Order Status") + public StatusEnum getStatus() { return status; } @@ -205,6 +210,7 @@ public Order complete(Boolean complete) { @JsonProperty(value = "complete") @Schema(description = "") + public Boolean getComplete() { return complete; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/OuterComposite.java index fae0b0a7c253..84df96b4791c 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/OuterComposite.java @@ -55,7 +55,8 @@ public OuterComposite myNumber(BigDecimal myNumber) { **/ @JsonProperty(value = "my_number") @Schema(description = "") - @Valid + + public BigDecimal getMyNumber() { return myNumber; } @@ -76,6 +77,7 @@ public OuterComposite myString(String myString) { @JsonProperty(value = "my_string") @Schema(description = "") + public String getMyString() { return myString; } @@ -96,6 +98,7 @@ public OuterComposite myBoolean(Boolean myBoolean) { @JsonProperty(value = "my_boolean") @Schema(description = "") + public Boolean getMyBoolean() { return myBoolean; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/OuterObjectWithEnumProperty.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/OuterObjectWithEnumProperty.java index 16e8982cd985..311a2281205c 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/OuterObjectWithEnumProperty.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/OuterObjectWithEnumProperty.java @@ -46,7 +46,8 @@ public OuterObjectWithEnumProperty value(OuterEnumInteger value) { **/ @JsonProperty(value = "value") @Schema(required = true, description = "") - @NotNull @Valid + @NotNull + public OuterEnumInteger getValue() { return value; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ParentWithNullable.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ParentWithNullable.java index 5d33f3ee315d..a29d9e3d6b4d 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ParentWithNullable.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ParentWithNullable.java @@ -87,6 +87,7 @@ public ParentWithNullable type(TypeEnum type) { @JsonProperty(value = "type") @Schema(description = "") + public TypeEnum getType() { return type; } @@ -107,6 +108,7 @@ public ParentWithNullable nullableProperty(String nullableProperty) { @JsonProperty(value = "nullableProperty") @Schema(description = "") + public String getNullableProperty() { return nullableProperty; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Pet.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Pet.java index 9c8088434935..77704b934432 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Pet.java @@ -112,6 +112,7 @@ public Pet id(Long id) { @JsonProperty(value = "id") @Schema(description = "") + public Long getId() { return id; } @@ -131,7 +132,8 @@ public Pet category(Category category) { **/ @JsonProperty(value = "category") @Schema(description = "") - @Valid + + public Category getCategory() { return category; } @@ -152,6 +154,7 @@ public Pet name(String name) { @JsonProperty(value = "name") @Schema(example = "doggie", required = true, description = "") @NotNull + public String getName() { return name; } @@ -180,6 +183,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { @JsonProperty(value = "photoUrls") @Schema(required = true, description = "") @NotNull + public Set getPhotoUrls() { return photoUrls; } @@ -209,6 +213,7 @@ public Pet addTagsItem(Tag tagsItem) { @JsonProperty(value = "tags") @Schema(description = "") @Valid + public List<@Valid Tag> getTags() { return tags; } @@ -229,6 +234,7 @@ public Pet status(StatusEnum status) { @JsonProperty(value = "status") @Schema(description = "pet status in the store") + public StatusEnum getStatus() { return status; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ReadOnlyFirst.java index c1272735f0e6..00abbaf72406 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ReadOnlyFirst.java @@ -50,6 +50,7 @@ public ReadOnlyFirst bar(String bar) { @JsonProperty(value = "bar", access = JsonProperty.Access.READ_ONLY) @Schema(description = "") + public String getBar() { return bar; } @@ -70,6 +71,7 @@ public ReadOnlyFirst baz(String baz) { @JsonProperty(value = "baz") @Schema(description = "") + public String getBaz() { return baz; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/SpecialModelName.java index 58c6ebd3b88a..9afce2dfeb25 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/SpecialModelName.java @@ -46,6 +46,7 @@ public class SpecialModelName { @JsonProperty(value = "$special[property.name]") @Schema(description = "") + public Long get$SpecialPropertyName() { return $specialPropertyName; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Tag.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Tag.java index cba274154112..ec6c2f3eeb92 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Tag.java @@ -50,6 +50,7 @@ public Tag id(Long id) { @JsonProperty(value = "id") @Schema(description = "") + public Long getId() { return id; } @@ -70,6 +71,7 @@ public Tag name(String name) { @JsonProperty(value = "name") @Schema(description = "") + public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/TestInlineFreeformAdditionalPropertiesRequest.java index 0d0e8a83bd82..81155a33832e 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -48,6 +48,7 @@ public TestInlineFreeformAdditionalPropertiesRequest someProperty(String somePro @JsonProperty(value = "someProperty") @Schema(description = "") + public String getSomeProperty() { return someProperty; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/User.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/User.java index fd4c0fc12cb5..47df9e0a5b9d 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/User.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/User.java @@ -80,6 +80,7 @@ public User id(Long id) { @JsonProperty(value = "id") @Schema(description = "") + public Long getId() { return id; } @@ -100,6 +101,7 @@ public User username(String username) { @JsonProperty(value = "username") @Schema(description = "") + public String getUsername() { return username; } @@ -120,6 +122,7 @@ public User firstName(String firstName) { @JsonProperty(value = "firstName") @Schema(description = "") + public String getFirstName() { return firstName; } @@ -140,6 +143,7 @@ public User lastName(String lastName) { @JsonProperty(value = "lastName") @Schema(description = "") + public String getLastName() { return lastName; } @@ -160,6 +164,7 @@ public User email(String email) { @JsonProperty(value = "email") @Schema(description = "") + public String getEmail() { return email; } @@ -180,6 +185,7 @@ public User password(String password) { @JsonProperty(value = "password") @Schema(description = "") + public String getPassword() { return password; } @@ -200,6 +206,7 @@ public User phone(String phone) { @JsonProperty(value = "phone") @Schema(description = "") + public String getPhone() { return phone; } @@ -220,6 +227,7 @@ public User userStatus(Integer userStatus) { @JsonProperty(value = "userStatus") @Schema(description = "User Status") + public Integer getUserStatus() { return userStatus; } From 4a83a3d27202c35b9f0766b407d51e502bb70ccd Mon Sep 17 00:00:00 2001 From: William Cheng Date: Mon, 22 Apr 2024 16:57:28 +0800 Subject: [PATCH 3/5] Revert "step 3" This reverts commit 73ba918d36e55a440da6435392729c1997266863. --- docs/generators/fsharp-functions.md | 2 +- docs/generators/fsharp-giraffe-server.md | 2 +- docs/generators/java-inflector.md | 2 +- docs/generators/jaxrs-cxf-client.md | 2 +- docs/generators/swift5.md | 4 +- .../info.md | 1 - .../php-nextgen/.openapi-generator/FILES | 2 +- .../echo_api/php-nextgen/phpunit.xml.dist | 4 +- .../echo_api/r/.openapi-generator/FILES | 2 +- .../R-httr2-wrapper/.openapi-generator/FILES | 2 +- .../petstore/R-httr2/.openapi-generator/FILES | 2 +- .../petstore/R/.openapi-generator/FILES | 2 +- .../.openapi-generator/FILES | 2 +- .../OpenAPIClient-php/phpunit.xml.dist | 4 +- .../.openapi-generator/FILES | 2 +- .../php/psr-18/.openapi-generator/FILES | 2 +- .../Org.OpenAPITools/Controllers/PetApi.cs | 12 ++-- .../Org.OpenAPITools/Controllers/StoreApi.cs | 4 +- .../Org.OpenAPITools/Controllers/UserApi.cs | 2 +- .../Org.OpenAPITools/Controllers/PetApi.cs | 12 ++-- .../Org.OpenAPITools/Controllers/StoreApi.cs | 4 +- .../Org.OpenAPITools/Controllers/UserApi.cs | 2 +- .../Org.OpenAPITools/Controllers/PetApi.cs | 12 ++-- .../Org.OpenAPITools/Controllers/StoreApi.cs | 4 +- .../Org.OpenAPITools/Controllers/UserApi.cs | 2 +- .../Org.OpenAPITools/Controllers/PetApi.cs | 12 ++-- .../Org.OpenAPITools/Controllers/StoreApi.cs | 4 +- .../Org.OpenAPITools/Controllers/UserApi.cs | 2 +- .../Org.OpenAPITools/Controllers/PetApi.cs | 12 ++-- .../Org.OpenAPITools/Controllers/StoreApi.cs | 4 +- .../Org.OpenAPITools/Controllers/UserApi.cs | 2 +- .../Org.OpenAPITools/Controllers/PetApi.cs | 12 ++-- .../Org.OpenAPITools/Controllers/StoreApi.cs | 4 +- .../Org.OpenAPITools/Controllers/UserApi.cs | 2 +- .../Org.OpenAPITools/Controllers/PetApi.cs | 12 ++-- .../Org.OpenAPITools/Controllers/StoreApi.cs | 4 +- .../Org.OpenAPITools/Controllers/UserApi.cs | 2 +- .../Org.OpenAPITools/Controllers/PetApi.cs | 12 ++-- .../Org.OpenAPITools/Controllers/StoreApi.cs | 4 +- .../Org.OpenAPITools/Controllers/UserApi.cs | 2 +- .../Org.OpenAPITools/Controllers/PetApi.cs | 8 +-- .../Org.OpenAPITools/Controllers/StoreApi.cs | 4 +- .../Org.OpenAPITools/Controllers/UserApi.cs | 2 +- .../org/openapitools/api/AnotherFakeApi.java | 3 +- .../java/org/openapitools/api/FakeApi.java | 50 ++++--------- .../api/FakeClassnameTestApi.java | 3 +- .../gen/java/org/openapitools/api/PetApi.java | 24 +++---- .../java/org/openapitools/api/StoreApi.java | 9 +-- .../java/org/openapitools/api/UserApi.java | 23 ++---- .../model/AdditionalPropertiesAnyType.java | 1 - .../model/AdditionalPropertiesArray.java | 1 - .../model/AdditionalPropertiesBoolean.java | 1 - .../model/AdditionalPropertiesClass.java | 11 --- .../model/AdditionalPropertiesInteger.java | 1 - .../model/AdditionalPropertiesNumber.java | 1 - .../model/AdditionalPropertiesObject.java | 1 - .../model/AdditionalPropertiesString.java | 1 - .../java/org/openapitools/model/Animal.java | 2 - .../model/ArrayOfArrayOfNumberOnly.java | 1 - .../openapitools/model/ArrayOfNumberOnly.java | 1 - .../org/openapitools/model/ArrayTest.java | 3 - .../java/org/openapitools/model/BigCat.java | 1 - .../openapitools/model/Capitalization.java | 6 -- .../gen/java/org/openapitools/model/Cat.java | 1 - .../java/org/openapitools/model/Category.java | 2 - .../org/openapitools/model/ClassModel.java | 1 - .../java/org/openapitools/model/Client.java | 1 - .../gen/java/org/openapitools/model/Dog.java | 1 - .../org/openapitools/model/EnumArrays.java | 2 - .../java/org/openapitools/model/EnumTest.java | 7 +- .../model/FileSchemaTestClass.java | 4 +- .../org/openapitools/model/FormatTest.java | 18 +---- .../openapitools/model/HasOnlyReadOnly.java | 2 - .../java/org/openapitools/model/MapTest.java | 4 -- ...ropertiesAndAdditionalPropertiesClass.java | 3 - .../openapitools/model/Model200Response.java | 2 - .../openapitools/model/ModelApiResponse.java | 3 - .../org/openapitools/model/ModelFile.java | 1 - .../org/openapitools/model/ModelList.java | 1 - .../org/openapitools/model/ModelReturn.java | 1 - .../gen/java/org/openapitools/model/Name.java | 4 -- .../org/openapitools/model/NumberOnly.java | 3 +- .../java/org/openapitools/model/Order.java | 6 -- .../openapitools/model/OuterComposite.java | 5 +- .../gen/java/org/openapitools/model/Pet.java | 8 +-- .../org/openapitools/model/ReadOnlyFirst.java | 2 - .../openapitools/model/SpecialModelName.java | 1 - .../gen/java/org/openapitools/model/Tag.java | 2 - .../openapitools/model/TypeHolderDefault.java | 7 +- .../openapitools/model/TypeHolderExample.java | 8 +-- .../gen/java/org/openapitools/model/User.java | 8 --- .../java/org/openapitools/model/XmlItem.java | 39 ++-------- .../org/openapitools/api/AnotherFakeApi.java | 3 +- .../java/org/openapitools/api/FakeApi.java | 72 +++++-------------- .../api/FakeClassnameTestApi.java | 3 +- .../gen/java/org/openapitools/api/PetApi.java | 24 +++---- .../java/org/openapitools/api/StoreApi.java | 9 +-- .../java/org/openapitools/api/UserApi.java | 23 ++---- .../model/AdditionalPropertiesClass.java | 2 - .../model/AllOfWithSingleRef.java | 4 +- .../java/org/openapitools/model/Animal.java | 2 - .../model/ArrayOfArrayOfNumberOnly.java | 1 - .../openapitools/model/ArrayOfNumberOnly.java | 1 - .../org/openapitools/model/ArrayTest.java | 3 - .../openapitools/model/Capitalization.java | 6 -- .../gen/java/org/openapitools/model/Cat.java | 1 - .../java/org/openapitools/model/Category.java | 2 - .../openapitools/model/ChildWithNullable.java | 1 - .../org/openapitools/model/ClassModel.java | 1 - .../java/org/openapitools/model/Client.java | 1 - .../openapitools/model/DeprecatedObject.java | 1 - .../gen/java/org/openapitools/model/Dog.java | 1 - .../org/openapitools/model/EnumArrays.java | 2 - .../java/org/openapitools/model/EnumTest.java | 16 ++--- .../model/FakeBigDecimalMap200Response.java | 4 +- .../model/FileSchemaTestClass.java | 4 +- .../gen/java/org/openapitools/model/Foo.java | 1 - .../model/FooGetDefaultResponse.java | 3 +- .../org/openapitools/model/FormatTest.java | 20 +----- .../openapitools/model/HasOnlyReadOnly.java | 2 - .../openapitools/model/HealthCheckResult.java | 1 - .../java/org/openapitools/model/MapTest.java | 4 -- ...ropertiesAndAdditionalPropertiesClass.java | 3 - .../openapitools/model/Model200Response.java | 2 - .../openapitools/model/ModelApiResponse.java | 3 - .../org/openapitools/model/ModelFile.java | 1 - .../org/openapitools/model/ModelList.java | 1 - .../org/openapitools/model/ModelReturn.java | 1 - .../gen/java/org/openapitools/model/Name.java | 4 -- .../org/openapitools/model/NullableClass.java | 14 +--- .../org/openapitools/model/NumberOnly.java | 3 +- .../model/ObjectWithDeprecatedFields.java | 8 +-- .../java/org/openapitools/model/Order.java | 6 -- .../openapitools/model/OuterComposite.java | 5 +- .../model/OuterObjectWithEnumProperty.java | 3 +- .../model/ParentWithNullable.java | 2 - .../gen/java/org/openapitools/model/Pet.java | 8 +-- .../org/openapitools/model/ReadOnlyFirst.java | 2 - .../openapitools/model/SpecialModelName.java | 1 - .../gen/java/org/openapitools/model/Tag.java | 2 - ...neFreeformAdditionalPropertiesRequest.java | 1 - .../gen/java/org/openapitools/model/User.java | 8 --- .../org/openapitools/api/AnotherFakeApi.java | 3 +- .../java/org/openapitools/api/FakeApi.java | 47 ++++-------- .../api/FakeClassnameTags123Api.java | 3 +- .../gen/java/org/openapitools/api/PetApi.java | 27 +++---- .../java/org/openapitools/api/StoreApi.java | 9 +-- .../java/org/openapitools/api/UserApi.java | 23 ++---- .../model/AdditionalPropertiesAnyType.java | 1 - .../model/AdditionalPropertiesArray.java | 1 - .../model/AdditionalPropertiesBoolean.java | 1 - .../model/AdditionalPropertiesClass.java | 11 --- .../model/AdditionalPropertiesInteger.java | 1 - .../model/AdditionalPropertiesNumber.java | 1 - .../model/AdditionalPropertiesObject.java | 1 - .../model/AdditionalPropertiesString.java | 1 - .../java/org/openapitools/model/Animal.java | 2 - .../model/ArrayOfArrayOfNumberOnly.java | 1 - .../openapitools/model/ArrayOfNumberOnly.java | 1 - .../org/openapitools/model/ArrayTest.java | 3 - .../java/org/openapitools/model/BigCat.java | 1 - .../openapitools/model/Capitalization.java | 6 -- .../gen/java/org/openapitools/model/Cat.java | 1 - .../java/org/openapitools/model/Category.java | 2 - .../org/openapitools/model/ClassModel.java | 1 - .../java/org/openapitools/model/Client.java | 1 - .../gen/java/org/openapitools/model/Dog.java | 1 - .../org/openapitools/model/EnumArrays.java | 2 - .../java/org/openapitools/model/EnumTest.java | 7 +- .../model/FileSchemaTestClass.java | 4 +- .../org/openapitools/model/FormatTest.java | 18 +---- .../openapitools/model/HasOnlyReadOnly.java | 2 - .../java/org/openapitools/model/MapTest.java | 4 -- ...ropertiesAndAdditionalPropertiesClass.java | 3 - .../openapitools/model/Model200Response.java | 2 - .../openapitools/model/ModelApiResponse.java | 3 - .../org/openapitools/model/ModelFile.java | 1 - .../org/openapitools/model/ModelList.java | 1 - .../org/openapitools/model/ModelReturn.java | 1 - .../gen/java/org/openapitools/model/Name.java | 4 -- .../org/openapitools/model/NumberOnly.java | 3 +- .../java/org/openapitools/model/Order.java | 6 -- .../openapitools/model/OuterComposite.java | 5 +- .../gen/java/org/openapitools/model/Pet.java | 8 +-- .../org/openapitools/model/ReadOnlyFirst.java | 2 - .../openapitools/model/SpecialModelName.java | 1 - .../gen/java/org/openapitools/model/Tag.java | 2 - .../openapitools/model/TypeHolderDefault.java | 7 +- .../openapitools/model/TypeHolderExample.java | 8 +-- .../gen/java/org/openapitools/model/User.java | 8 --- .../java/org/openapitools/model/XmlItem.java | 39 ++-------- .../org/openapitools/api/AnotherFakeApi.java | 3 +- .../java/org/openapitools/api/FakeApi.java | 50 ++++--------- .../api/FakeClassnameTestApi.java | 3 +- .../gen/java/org/openapitools/api/PetApi.java | 24 +++---- .../java/org/openapitools/api/StoreApi.java | 9 +-- .../java/org/openapitools/api/UserApi.java | 23 ++---- .../model/AdditionalPropertiesAnyType.java | 1 - .../model/AdditionalPropertiesArray.java | 1 - .../model/AdditionalPropertiesBoolean.java | 1 - .../model/AdditionalPropertiesClass.java | 11 --- .../model/AdditionalPropertiesInteger.java | 1 - .../model/AdditionalPropertiesNumber.java | 1 - .../model/AdditionalPropertiesObject.java | 1 - .../model/AdditionalPropertiesString.java | 1 - .../java/org/openapitools/model/Animal.java | 2 - .../model/ArrayOfArrayOfNumberOnly.java | 1 - .../openapitools/model/ArrayOfNumberOnly.java | 1 - .../org/openapitools/model/ArrayTest.java | 3 - .../java/org/openapitools/model/BigCat.java | 1 - .../openapitools/model/Capitalization.java | 6 -- .../gen/java/org/openapitools/model/Cat.java | 1 - .../java/org/openapitools/model/Category.java | 2 - .../org/openapitools/model/ClassModel.java | 1 - .../java/org/openapitools/model/Client.java | 1 - .../gen/java/org/openapitools/model/Dog.java | 1 - .../org/openapitools/model/EnumArrays.java | 2 - .../java/org/openapitools/model/EnumTest.java | 7 +- .../model/FileSchemaTestClass.java | 4 +- .../org/openapitools/model/FormatTest.java | 18 +---- .../openapitools/model/HasOnlyReadOnly.java | 2 - .../java/org/openapitools/model/MapTest.java | 4 -- ...ropertiesAndAdditionalPropertiesClass.java | 3 - .../openapitools/model/Model200Response.java | 2 - .../openapitools/model/ModelApiResponse.java | 3 - .../org/openapitools/model/ModelFile.java | 1 - .../org/openapitools/model/ModelList.java | 1 - .../org/openapitools/model/ModelReturn.java | 1 - .../gen/java/org/openapitools/model/Name.java | 4 -- .../org/openapitools/model/NumberOnly.java | 3 +- .../java/org/openapitools/model/Order.java | 6 -- .../openapitools/model/OuterComposite.java | 5 +- .../gen/java/org/openapitools/model/Pet.java | 8 +-- .../org/openapitools/model/ReadOnlyFirst.java | 2 - .../openapitools/model/SpecialModelName.java | 1 - .../gen/java/org/openapitools/model/Tag.java | 2 - .../openapitools/model/TypeHolderDefault.java | 7 +- .../openapitools/model/TypeHolderExample.java | 8 +-- .../gen/java/org/openapitools/model/User.java | 8 --- .../java/org/openapitools/model/XmlItem.java | 39 ++-------- .../org/openapitools/api/AnotherFakeApi.java | 3 +- .../java/org/openapitools/api/FakeApi.java | 72 +++++-------------- .../api/FakeClassnameTestApi.java | 3 +- .../gen/java/org/openapitools/api/PetApi.java | 24 +++---- .../java/org/openapitools/api/StoreApi.java | 9 +-- .../java/org/openapitools/api/UserApi.java | 23 ++---- .../model/AdditionalPropertiesClass.java | 2 - .../model/AllOfWithSingleRef.java | 4 +- .../java/org/openapitools/model/Animal.java | 2 - .../model/ArrayOfArrayOfNumberOnly.java | 1 - .../openapitools/model/ArrayOfNumberOnly.java | 1 - .../org/openapitools/model/ArrayTest.java | 3 - .../openapitools/model/Capitalization.java | 6 -- .../gen/java/org/openapitools/model/Cat.java | 1 - .../java/org/openapitools/model/Category.java | 2 - .../openapitools/model/ChildWithNullable.java | 1 - .../org/openapitools/model/ClassModel.java | 1 - .../java/org/openapitools/model/Client.java | 1 - .../openapitools/model/DeprecatedObject.java | 1 - .../gen/java/org/openapitools/model/Dog.java | 1 - .../org/openapitools/model/EnumArrays.java | 2 - .../java/org/openapitools/model/EnumTest.java | 16 ++--- .../model/FakeBigDecimalMap200Response.java | 4 +- .../model/FileSchemaTestClass.java | 4 +- .../gen/java/org/openapitools/model/Foo.java | 1 - .../model/FooGetDefaultResponse.java | 3 +- .../org/openapitools/model/FormatTest.java | 20 +----- .../openapitools/model/HasOnlyReadOnly.java | 2 - .../openapitools/model/HealthCheckResult.java | 1 - .../java/org/openapitools/model/MapTest.java | 4 -- ...ropertiesAndAdditionalPropertiesClass.java | 3 - .../openapitools/model/Model200Response.java | 2 - .../openapitools/model/ModelApiResponse.java | 3 - .../org/openapitools/model/ModelFile.java | 1 - .../org/openapitools/model/ModelList.java | 1 - .../org/openapitools/model/ModelReturn.java | 1 - .../gen/java/org/openapitools/model/Name.java | 4 -- .../org/openapitools/model/NullableClass.java | 14 +--- .../org/openapitools/model/NumberOnly.java | 3 +- .../model/ObjectWithDeprecatedFields.java | 8 +-- .../java/org/openapitools/model/Order.java | 6 -- .../openapitools/model/OuterComposite.java | 5 +- .../model/OuterObjectWithEnumProperty.java | 3 +- .../model/ParentWithNullable.java | 2 - .../gen/java/org/openapitools/model/Pet.java | 8 +-- .../org/openapitools/model/ReadOnlyFirst.java | 2 - .../openapitools/model/SpecialModelName.java | 1 - .../gen/java/org/openapitools/model/Tag.java | 2 - ...neFreeformAdditionalPropertiesRequest.java | 1 - .../gen/java/org/openapitools/model/User.java | 8 --- 290 files changed, 350 insertions(+), 1310 deletions(-) diff --git a/docs/generators/fsharp-functions.md b/docs/generators/fsharp-functions.md index 33bd1f1c2922..a20382152aab 100644 --- a/docs/generators/fsharp-functions.md +++ b/docs/generators/fsharp-functions.md @@ -34,7 +34,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl |prependFormOrBodyParameters|Add form or body parameters to the beginning of the parameter list.| |false| |sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.| |true| |sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.| |true| -|sourceFolder|source folder for generated code| |OpenAPI\src| +|sourceFolder|source folder for generated code| |OpenAPI/src| ## IMPORT MAPPING diff --git a/docs/generators/fsharp-giraffe-server.md b/docs/generators/fsharp-giraffe-server.md index fb3e25b3d776..abe079e504fa 100644 --- a/docs/generators/fsharp-giraffe-server.md +++ b/docs/generators/fsharp-giraffe-server.md @@ -30,7 +30,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl |packageVersion|F# package version.| |1.0.0| |returnICollection|Return ICollection<T> instead of the concrete type.| |false| |sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.| |true| -|sourceFolder|source folder for generated code| |OpenAPI\src| +|sourceFolder|source folder for generated code| |OpenAPI/src| |useCollection|Deserialize array types to Collection<T> instead of List<T>.| |false| |useDateTimeOffset|Use DateTimeOffset to model date-time properties| |false| |useSwashbuckle|Uses the Swashbuckle.AspNetCore NuGet package for documentation.| |false| diff --git a/docs/generators/java-inflector.md b/docs/generators/java-inflector.md index fda615229865..93bcc5e03d4a 100644 --- a/docs/generators/java-inflector.md +++ b/docs/generators/java-inflector.md @@ -63,7 +63,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl |snapshotVersion|Uses a SNAPSHOT version.|
**true**
Use a SnapShot Version
**false**
Use a Release Version
|null| |sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.| |true| |sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.| |true| -|sourceFolder|source folder for generated code| |src\gen\java| +|sourceFolder|source folder for generated code| |src/gen/java| |testOutput|Set output folder for models and APIs tests| |${project.build.directory}/generated-test-sources/openapi| |useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false| |useOneOfInterfaces|whether to use a java interface to describe a set of oneOf options, where each option is a class that implements the interface| |false| diff --git a/docs/generators/jaxrs-cxf-client.md b/docs/generators/jaxrs-cxf-client.md index b76b9bda76fb..203688c5302a 100644 --- a/docs/generators/jaxrs-cxf-client.md +++ b/docs/generators/jaxrs-cxf-client.md @@ -63,7 +63,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl |snapshotVersion|Uses a SNAPSHOT version.|
**true**
Use a SnapShot Version
**false**
Use a Release Version
|null| |sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.| |true| |sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.| |true| -|sourceFolder|source folder for generated code| |src\gen\java| +|sourceFolder|source folder for generated code| |src/gen/java| |testOutput|Set output folder for models and APIs tests| |${project.build.directory}/generated-test-sources/openapi| |useAbstractionForFiles|Use alternative types instead of java.io.File to allow passing bytes without a file on disk.| |false| |useBeanValidation|Use BeanValidation API annotations| |false| diff --git a/docs/generators/swift5.md b/docs/generators/swift5.md index 4bfb9b4d3778..519ad121b837 100644 --- a/docs/generators/swift5.md +++ b/docs/generators/swift5.md @@ -48,13 +48,13 @@ These options may be applied as additional-properties (cli) or configOptions (pl |responseAs|Optionally use libraries to manage response. Currently PromiseKit, RxSwift, Result, Combine, AsyncAwait are available.| |null| |sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.| |true| |sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.| |true| -|swiftPackagePath|Set a custom source path instead of OpenAPIClient\Classes\OpenAPIs.| |null| +|swiftPackagePath|Set a custom source path instead of OpenAPIClient/Classes/OpenAPIs.| |null| |swiftUseApiNamespace|Flag to make all the API classes inner-class of {{projectName}}API| |null| |useBacktickEscapes|Escape reserved words using backticks (default: false)| |false| |useClasses|Use final classes for models instead of structs (default: false)| |false| |useCustomDateWithoutTime|Uses a custom type to decode and encode dates without time information to support OpenAPIs date format (default: false)| |false| |useJsonEncodable|Make models conform to JSONEncodable protocol (default: true)| |true| -|useSPMFileStructure|Use SPM file structure and set the source path to Sources\{{projectName}} (default: false).| |null| +|useSPMFileStructure|Use SPM file structure and set the source path to Sources/{{projectName}} (default: false).| |null| |validatable|Make validation rules and validator for model properies (default: true)| |true| ## IMPORT MAPPING diff --git a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/info.md b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/info.md index 5f1571afb2eb..792d0e1c1199 100644 --- a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/info.md +++ b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/info.md @@ -931,7 +931,6 @@ Here are some companies/projects (alphabetical order) using OpenAPI Generator in - 2023-12-10 - [UnityでOpenAPI Generatorを使う](https://www.youtube.com/watch?v=CbNwKVV5LRM) by [Soup Tori](https://www.youtube.com/@souptori8417) - 2024-03-04 - [Generating TypeScript Types with OpenAPI for REST API Consumption](https://www.pullrequest.com/blog/generating-typescript-types-with-openapi-for-rest-api-consumption/) by [PullRequest](https://www.pullrequest.com/) - 2024-03-07 - [Fully typed Web Apps with OpenAPI (Part 1)](https://medium.com/@gfox1984/fully-typed-web-apps-with-openapi-part-1-595d55766670) by [Guillaume Renard](https://medium.com/@gfox1984) -- 2024-03-08 - [Laravel OpenAPIによる "辛くない" スキーマ駆動開発](https://fortee.jp/phperkaigi-2024/proposal/9e2e6c38-d078-4efa-99b4-83ebf9033b34) by [KentarouTakeda](https://twitter.com/KentarouTakeda) ## [6 - About Us](#table-of-contents) diff --git a/samples/client/echo_api/php-nextgen/.openapi-generator/FILES b/samples/client/echo_api/php-nextgen/.openapi-generator/FILES index 53ad43f78dc2..c51141c743e7 100644 --- a/samples/client/echo_api/php-nextgen/.openapi-generator/FILES +++ b/samples/client/echo_api/php-nextgen/.openapi-generator/FILES @@ -24,13 +24,13 @@ docs/Model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.md docs/Model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.md git_push.sh phpunit.xml.dist -src/ApiException.php src/Api/AuthApi.php src/Api/BodyApi.php src/Api/FormApi.php src/Api/HeaderApi.php src/Api/PathApi.php src/Api/QueryApi.php +src/ApiException.php src/Configuration.php src/HeaderSelector.php src/Model/Bird.php diff --git a/samples/client/echo_api/php-nextgen/phpunit.xml.dist b/samples/client/echo_api/php-nextgen/phpunit.xml.dist index cba878f52707..1135449a8d9b 100644 --- a/samples/client/echo_api/php-nextgen/phpunit.xml.dist +++ b/samples/client/echo_api/php-nextgen/phpunit.xml.dist @@ -2,8 +2,8 @@ - ./src\/Api - ./src\/Model + ./src/Api + ./src/Model diff --git a/samples/client/echo_api/r/.openapi-generator/FILES b/samples/client/echo_api/r/.openapi-generator/FILES index 79f7452245e1..cf3034e39d0c 100644 --- a/samples/client/echo_api/r/.openapi-generator/FILES +++ b/samples/client/echo_api/r/.openapi-generator/FILES @@ -5,7 +5,6 @@ .travis.yml DESCRIPTION NAMESPACE -README.md R/api_client.R R/api_response.R R/auth_api.R @@ -26,6 +25,7 @@ R/tag.R R/test_form_object_multipart_request_marker.R R/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.R R/test_query_style_form_explode_true_array_string_query_object_parameter.R +README.md docs/AuthApi.md docs/Bird.md docs/BodyApi.md diff --git a/samples/client/petstore/R-httr2-wrapper/.openapi-generator/FILES b/samples/client/petstore/R-httr2-wrapper/.openapi-generator/FILES index 03da4aaacabb..379998b2a2b8 100644 --- a/samples/client/petstore/R-httr2-wrapper/.openapi-generator/FILES +++ b/samples/client/petstore/R-httr2-wrapper/.openapi-generator/FILES @@ -5,7 +5,6 @@ .travis.yml DESCRIPTION NAMESPACE -README.md R/allof_tag_api_response.R R/animal.R R/any_of_pig.R @@ -40,6 +39,7 @@ R/user.R R/user_api.R R/whale.R R/zebra.R +README.md docs/AllofTagApiResponse.md docs/Animal.md docs/AnyOfPig.md diff --git a/samples/client/petstore/R-httr2/.openapi-generator/FILES b/samples/client/petstore/R-httr2/.openapi-generator/FILES index af8bc6f011d8..07243c898d78 100644 --- a/samples/client/petstore/R-httr2/.openapi-generator/FILES +++ b/samples/client/petstore/R-httr2/.openapi-generator/FILES @@ -5,7 +5,6 @@ .travis.yml DESCRIPTION NAMESPACE -README.md R/allof_tag_api_response.R R/animal.R R/any_of_pig.R @@ -39,6 +38,7 @@ R/user.R R/user_api.R R/whale.R R/zebra.R +README.md docs/AllofTagApiResponse.md docs/Animal.md docs/AnyOfPig.md diff --git a/samples/client/petstore/R/.openapi-generator/FILES b/samples/client/petstore/R/.openapi-generator/FILES index d5c00e7a92f3..43681d7ddb2c 100644 --- a/samples/client/petstore/R/.openapi-generator/FILES +++ b/samples/client/petstore/R/.openapi-generator/FILES @@ -5,7 +5,6 @@ .travis.yml DESCRIPTION NAMESPACE -README.md R/allof_tag_api_response.R R/animal.R R/any_of_pig.R @@ -39,6 +38,7 @@ R/user.R R/user_api.R R/whale.R R/zebra.R +README.md docs/AllofTagApiResponse.md docs/Animal.md docs/AnyOfPig.md diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/.openapi-generator/FILES b/samples/client/petstore/php-nextgen/OpenAPIClient-php/.openapi-generator/FILES index 8d58dbc93e12..ec822fdd8838 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/.openapi-generator/FILES +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/.openapi-generator/FILES @@ -63,7 +63,6 @@ docs/Model/TestInlineFreeformAdditionalPropertiesRequest.md docs/Model/User.md git_push.sh phpunit.xml.dist -src/ApiException.php src/Api/AnotherFakeApi.php src/Api/DefaultApi.php src/Api/FakeApi.php @@ -71,6 +70,7 @@ src/Api/FakeClassnameTags123Api.php src/Api/PetApi.php src/Api/StoreApi.php src/Api/UserApi.php +src/ApiException.php src/Configuration.php src/HeaderSelector.php src/Model/AdditionalPropertiesClass.php diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/phpunit.xml.dist b/samples/client/petstore/php-nextgen/OpenAPIClient-php/phpunit.xml.dist index cba878f52707..1135449a8d9b 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/phpunit.xml.dist +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/phpunit.xml.dist @@ -2,8 +2,8 @@ - ./src\/Api - ./src\/Model + ./src/Api + ./src/Model diff --git a/samples/client/petstore/php/OpenAPIClient-php/.openapi-generator/FILES b/samples/client/petstore/php/OpenAPIClient-php/.openapi-generator/FILES index 64737d51568c..80ecc7a7237f 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/.openapi-generator/FILES +++ b/samples/client/petstore/php/OpenAPIClient-php/.openapi-generator/FILES @@ -60,7 +60,6 @@ docs/Model/Tag.md docs/Model/TestInlineFreeformAdditionalPropertiesRequest.md docs/Model/User.md git_push.sh -lib/ApiException.php lib/Api/AnotherFakeApi.php lib/Api/DefaultApi.php lib/Api/FakeApi.php @@ -68,6 +67,7 @@ lib/Api/FakeClassnameTags123Api.php lib/Api/PetApi.php lib/Api/StoreApi.php lib/Api/UserApi.php +lib/ApiException.php lib/Configuration.php lib/HeaderSelector.php lib/Model/AdditionalPropertiesClass.php diff --git a/samples/client/petstore/php/psr-18/.openapi-generator/FILES b/samples/client/petstore/php/psr-18/.openapi-generator/FILES index c3884202a79d..34aee01b39f6 100644 --- a/samples/client/petstore/php/psr-18/.openapi-generator/FILES +++ b/samples/client/petstore/php/psr-18/.openapi-generator/FILES @@ -60,7 +60,6 @@ docs/Model/Tag.md docs/Model/TestInlineFreeformAdditionalPropertiesRequest.md docs/Model/User.md git_push.sh -lib/ApiException.php lib/Api/AnotherFakeApi.php lib/Api/DefaultApi.php lib/Api/FakeApi.php @@ -68,6 +67,7 @@ lib/Api/FakeClassnameTags123Api.php lib/Api/PetApi.php lib/Api/StoreApi.php lib/Api/UserApi.php +lib/ApiException.php lib/Configuration.php lib/DebugPlugin.php lib/HeaderSelector.php diff --git a/samples/server/petstore/aspnetcore-3.0/src/Org.OpenAPITools/Controllers/PetApi.cs b/samples/server/petstore/aspnetcore-3.0/src/Org.OpenAPITools/Controllers/PetApi.cs index 5a197da3156e..7dded4e0f16a 100644 --- a/samples/server/petstore/aspnetcore-3.0/src/Org.OpenAPITools/Controllers/PetApi.cs +++ b/samples/server/petstore/aspnetcore-3.0/src/Org.OpenAPITools/Controllers/PetApi.cs @@ -48,7 +48,7 @@ public virtual IActionResult AddPet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; + exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -97,7 +97,7 @@ public virtual IActionResult FindPetsByStatus([FromQuery (Name = "status")][Requ //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; + exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult FindPetsByTags([FromQuery (Name = "tags")][Required //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; + exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -162,7 +162,7 @@ public virtual IActionResult GetPetById([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; + exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -198,7 +198,7 @@ public virtual IActionResult UpdatePet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; + exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; exampleJson = "\n 123456789\n doggie\n \n aeiou\n \n \n \n aeiou\n"; var example = exampleJson != null @@ -248,7 +248,7 @@ public virtual IActionResult UploadFile([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(200, default(ApiResponse)); string exampleJson = null; - exampleJson = "{\r\n \"code\" : 0,\r\n \"type\" : \"type\",\r\n \"message\" : \"message\"\r\n}"; + exampleJson = "{\n \"code\" : 0,\n \"type\" : \"type\",\n \"message\" : \"message\"\n}"; var example = exampleJson != null ? JsonConvert.DeserializeObject(exampleJson) diff --git a/samples/server/petstore/aspnetcore-3.0/src/Org.OpenAPITools/Controllers/StoreApi.cs b/samples/server/petstore/aspnetcore-3.0/src/Org.OpenAPITools/Controllers/StoreApi.cs index c57b5fb3bd16..b925426c761d 100644 --- a/samples/server/petstore/aspnetcore-3.0/src/Org.OpenAPITools/Controllers/StoreApi.cs +++ b/samples/server/petstore/aspnetcore-3.0/src/Org.OpenAPITools/Controllers/StoreApi.cs @@ -98,7 +98,7 @@ public virtual IActionResult GetOrderById([FromRoute (Name = "orderId")][Require //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; + exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult PlaceOrder([FromBody]Order order) //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; + exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-3.0/src/Org.OpenAPITools/Controllers/UserApi.cs b/samples/server/petstore/aspnetcore-3.0/src/Org.OpenAPITools/Controllers/UserApi.cs index 3277ae43fcfd..6d7094c81a9d 100644 --- a/samples/server/petstore/aspnetcore-3.0/src/Org.OpenAPITools/Controllers/UserApi.cs +++ b/samples/server/petstore/aspnetcore-3.0/src/Org.OpenAPITools/Controllers/UserApi.cs @@ -134,7 +134,7 @@ public virtual IActionResult GetUserByName([FromRoute (Name = "username")][Requi //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\r\n \"firstName\" : \"firstName\",\r\n \"lastName\" : \"lastName\",\r\n \"password\" : \"password\",\r\n \"userStatus\" : 6,\r\n \"phone\" : \"phone\",\r\n \"id\" : 0,\r\n \"email\" : \"email\",\r\n \"username\" : \"username\"\r\n}"; + exampleJson = "{\n \"firstName\" : \"firstName\",\n \"lastName\" : \"lastName\",\n \"password\" : \"password\",\n \"userStatus\" : 6,\n \"phone\" : \"phone\",\n \"id\" : 0,\n \"email\" : \"email\",\n \"username\" : \"username\"\n}"; exampleJson = "\n 123456789\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n 123\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-3.1/src/Org.OpenAPITools/Controllers/PetApi.cs b/samples/server/petstore/aspnetcore-3.1/src/Org.OpenAPITools/Controllers/PetApi.cs index 5a197da3156e..7dded4e0f16a 100644 --- a/samples/server/petstore/aspnetcore-3.1/src/Org.OpenAPITools/Controllers/PetApi.cs +++ b/samples/server/petstore/aspnetcore-3.1/src/Org.OpenAPITools/Controllers/PetApi.cs @@ -48,7 +48,7 @@ public virtual IActionResult AddPet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; + exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -97,7 +97,7 @@ public virtual IActionResult FindPetsByStatus([FromQuery (Name = "status")][Requ //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; + exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult FindPetsByTags([FromQuery (Name = "tags")][Required //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; + exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -162,7 +162,7 @@ public virtual IActionResult GetPetById([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; + exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -198,7 +198,7 @@ public virtual IActionResult UpdatePet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; + exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; exampleJson = "\n 123456789\n doggie\n \n aeiou\n \n \n \n aeiou\n"; var example = exampleJson != null @@ -248,7 +248,7 @@ public virtual IActionResult UploadFile([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(200, default(ApiResponse)); string exampleJson = null; - exampleJson = "{\r\n \"code\" : 0,\r\n \"type\" : \"type\",\r\n \"message\" : \"message\"\r\n}"; + exampleJson = "{\n \"code\" : 0,\n \"type\" : \"type\",\n \"message\" : \"message\"\n}"; var example = exampleJson != null ? JsonConvert.DeserializeObject(exampleJson) diff --git a/samples/server/petstore/aspnetcore-3.1/src/Org.OpenAPITools/Controllers/StoreApi.cs b/samples/server/petstore/aspnetcore-3.1/src/Org.OpenAPITools/Controllers/StoreApi.cs index c57b5fb3bd16..b925426c761d 100644 --- a/samples/server/petstore/aspnetcore-3.1/src/Org.OpenAPITools/Controllers/StoreApi.cs +++ b/samples/server/petstore/aspnetcore-3.1/src/Org.OpenAPITools/Controllers/StoreApi.cs @@ -98,7 +98,7 @@ public virtual IActionResult GetOrderById([FromRoute (Name = "orderId")][Require //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; + exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult PlaceOrder([FromBody]Order order) //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; + exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-3.1/src/Org.OpenAPITools/Controllers/UserApi.cs b/samples/server/petstore/aspnetcore-3.1/src/Org.OpenAPITools/Controllers/UserApi.cs index 3277ae43fcfd..6d7094c81a9d 100644 --- a/samples/server/petstore/aspnetcore-3.1/src/Org.OpenAPITools/Controllers/UserApi.cs +++ b/samples/server/petstore/aspnetcore-3.1/src/Org.OpenAPITools/Controllers/UserApi.cs @@ -134,7 +134,7 @@ public virtual IActionResult GetUserByName([FromRoute (Name = "username")][Requi //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\r\n \"firstName\" : \"firstName\",\r\n \"lastName\" : \"lastName\",\r\n \"password\" : \"password\",\r\n \"userStatus\" : 6,\r\n \"phone\" : \"phone\",\r\n \"id\" : 0,\r\n \"email\" : \"email\",\r\n \"username\" : \"username\"\r\n}"; + exampleJson = "{\n \"firstName\" : \"firstName\",\n \"lastName\" : \"lastName\",\n \"password\" : \"password\",\n \"userStatus\" : 6,\n \"phone\" : \"phone\",\n \"id\" : 0,\n \"email\" : \"email\",\n \"username\" : \"username\"\n}"; exampleJson = "\n 123456789\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n 123\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-5.0/src/Org.OpenAPITools/Controllers/PetApi.cs b/samples/server/petstore/aspnetcore-5.0/src/Org.OpenAPITools/Controllers/PetApi.cs index 5a197da3156e..7dded4e0f16a 100644 --- a/samples/server/petstore/aspnetcore-5.0/src/Org.OpenAPITools/Controllers/PetApi.cs +++ b/samples/server/petstore/aspnetcore-5.0/src/Org.OpenAPITools/Controllers/PetApi.cs @@ -48,7 +48,7 @@ public virtual IActionResult AddPet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; + exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -97,7 +97,7 @@ public virtual IActionResult FindPetsByStatus([FromQuery (Name = "status")][Requ //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; + exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult FindPetsByTags([FromQuery (Name = "tags")][Required //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; + exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -162,7 +162,7 @@ public virtual IActionResult GetPetById([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; + exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -198,7 +198,7 @@ public virtual IActionResult UpdatePet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; + exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; exampleJson = "\n 123456789\n doggie\n \n aeiou\n \n \n \n aeiou\n"; var example = exampleJson != null @@ -248,7 +248,7 @@ public virtual IActionResult UploadFile([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(200, default(ApiResponse)); string exampleJson = null; - exampleJson = "{\r\n \"code\" : 0,\r\n \"type\" : \"type\",\r\n \"message\" : \"message\"\r\n}"; + exampleJson = "{\n \"code\" : 0,\n \"type\" : \"type\",\n \"message\" : \"message\"\n}"; var example = exampleJson != null ? JsonConvert.DeserializeObject(exampleJson) diff --git a/samples/server/petstore/aspnetcore-5.0/src/Org.OpenAPITools/Controllers/StoreApi.cs b/samples/server/petstore/aspnetcore-5.0/src/Org.OpenAPITools/Controllers/StoreApi.cs index c57b5fb3bd16..b925426c761d 100644 --- a/samples/server/petstore/aspnetcore-5.0/src/Org.OpenAPITools/Controllers/StoreApi.cs +++ b/samples/server/petstore/aspnetcore-5.0/src/Org.OpenAPITools/Controllers/StoreApi.cs @@ -98,7 +98,7 @@ public virtual IActionResult GetOrderById([FromRoute (Name = "orderId")][Require //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; + exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult PlaceOrder([FromBody]Order order) //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; + exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-5.0/src/Org.OpenAPITools/Controllers/UserApi.cs b/samples/server/petstore/aspnetcore-5.0/src/Org.OpenAPITools/Controllers/UserApi.cs index 3277ae43fcfd..6d7094c81a9d 100644 --- a/samples/server/petstore/aspnetcore-5.0/src/Org.OpenAPITools/Controllers/UserApi.cs +++ b/samples/server/petstore/aspnetcore-5.0/src/Org.OpenAPITools/Controllers/UserApi.cs @@ -134,7 +134,7 @@ public virtual IActionResult GetUserByName([FromRoute (Name = "username")][Requi //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\r\n \"firstName\" : \"firstName\",\r\n \"lastName\" : \"lastName\",\r\n \"password\" : \"password\",\r\n \"userStatus\" : 6,\r\n \"phone\" : \"phone\",\r\n \"id\" : 0,\r\n \"email\" : \"email\",\r\n \"username\" : \"username\"\r\n}"; + exampleJson = "{\n \"firstName\" : \"firstName\",\n \"lastName\" : \"lastName\",\n \"password\" : \"password\",\n \"userStatus\" : 6,\n \"phone\" : \"phone\",\n \"id\" : 0,\n \"email\" : \"email\",\n \"username\" : \"username\"\n}"; exampleJson = "\n 123456789\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n 123\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/PetApi.cs b/samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/PetApi.cs index 9aa7c62b8e82..d4230ca5a4c5 100644 --- a/samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/PetApi.cs +++ b/samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/PetApi.cs @@ -48,7 +48,7 @@ public virtual IActionResult AddPet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; + exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -97,7 +97,7 @@ public virtual IActionResult FindPetsByStatus([FromQuery (Name = "status")][Requ //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; + exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult FindPetsByTags([FromQuery (Name = "tags")][Required //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; + exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -162,7 +162,7 @@ public virtual IActionResult GetPetById([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; + exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -198,7 +198,7 @@ public virtual IActionResult UpdatePet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; + exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; exampleJson = "\n 123456789\n doggie\n \n aeiou\n \n \n \n aeiou\n"; var example = exampleJson != null @@ -248,7 +248,7 @@ public virtual IActionResult UploadFile([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(200, default(ApiResponse)); string exampleJson = null; - exampleJson = "{\r\n \"code\" : 0,\r\n \"type\" : \"type\",\r\n \"message\" : \"message\"\r\n}"; + exampleJson = "{\n \"code\" : 0,\n \"type\" : \"type\",\n \"message\" : \"message\"\n}"; var example = exampleJson != null ? JsonSerializer.Deserialize(exampleJson) diff --git a/samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/StoreApi.cs b/samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/StoreApi.cs index edb6042856df..2c52f026791d 100644 --- a/samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/StoreApi.cs +++ b/samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/StoreApi.cs @@ -98,7 +98,7 @@ public virtual IActionResult GetOrderById([FromRoute (Name = "orderId")][Require //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; + exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult PlaceOrder([FromBody]Order order) //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; + exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/UserApi.cs b/samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/UserApi.cs index 98e67314721d..5a0951513f3d 100644 --- a/samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/UserApi.cs +++ b/samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/UserApi.cs @@ -134,7 +134,7 @@ public virtual IActionResult GetUserByName([FromRoute (Name = "username")][Requi //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\r\n \"firstName\" : \"firstName\",\r\n \"lastName\" : \"lastName\",\r\n \"password\" : \"password\",\r\n \"userStatus\" : 6,\r\n \"phone\" : \"phone\",\r\n \"id\" : 0,\r\n \"email\" : \"email\",\r\n \"username\" : \"username\"\r\n}"; + exampleJson = "{\n \"firstName\" : \"firstName\",\n \"lastName\" : \"lastName\",\n \"password\" : \"password\",\n \"userStatus\" : 6,\n \"phone\" : \"phone\",\n \"id\" : 0,\n \"email\" : \"email\",\n \"username\" : \"username\"\n}"; exampleJson = "\n 123456789\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n 123\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/PetApi.cs b/samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/PetApi.cs index 64c652ea1875..fae01d29a624 100644 --- a/samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/PetApi.cs +++ b/samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/PetApi.cs @@ -48,7 +48,7 @@ public virtual IActionResult AddPet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; + exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -97,7 +97,7 @@ public virtual IActionResult FindPetsByStatus([FromQuery (Name = "status")][Requ //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; + exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult FindPetsByTags([FromQuery (Name = "tags")][Required //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; + exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -162,7 +162,7 @@ public virtual IActionResult GetPetById([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; + exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -198,7 +198,7 @@ public virtual IActionResult UpdatePet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; + exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; exampleJson = "\n 123456789\n doggie\n \n aeiou\n \n \n \n aeiou\n"; var example = exampleJson != null @@ -248,7 +248,7 @@ public virtual IActionResult UploadFile([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(200, default(ApiResponse)); string exampleJson = null; - exampleJson = "{\r\n \"code\" : 0,\r\n \"type\" : \"type\",\r\n \"message\" : \"message\"\r\n}"; + exampleJson = "{\n \"code\" : 0,\n \"type\" : \"type\",\n \"message\" : \"message\"\n}"; var example = exampleJson != null ? JsonConvert.DeserializeObject(exampleJson) diff --git a/samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/StoreApi.cs b/samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/StoreApi.cs index c57b5fb3bd16..b925426c761d 100644 --- a/samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/StoreApi.cs +++ b/samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/StoreApi.cs @@ -98,7 +98,7 @@ public virtual IActionResult GetOrderById([FromRoute (Name = "orderId")][Require //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; + exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult PlaceOrder([FromBody]Order order) //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; + exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/UserApi.cs b/samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/UserApi.cs index 3277ae43fcfd..6d7094c81a9d 100644 --- a/samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/UserApi.cs +++ b/samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/UserApi.cs @@ -134,7 +134,7 @@ public virtual IActionResult GetUserByName([FromRoute (Name = "username")][Requi //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\r\n \"firstName\" : \"firstName\",\r\n \"lastName\" : \"lastName\",\r\n \"password\" : \"password\",\r\n \"userStatus\" : 6,\r\n \"phone\" : \"phone\",\r\n \"id\" : 0,\r\n \"email\" : \"email\",\r\n \"username\" : \"username\"\r\n}"; + exampleJson = "{\n \"firstName\" : \"firstName\",\n \"lastName\" : \"lastName\",\n \"password\" : \"password\",\n \"userStatus\" : 6,\n \"phone\" : \"phone\",\n \"id\" : 0,\n \"email\" : \"email\",\n \"username\" : \"username\"\n}"; exampleJson = "\n 123456789\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n 123\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-6.0-pocoModels/src/Org.OpenAPITools/Controllers/PetApi.cs b/samples/server/petstore/aspnetcore-6.0-pocoModels/src/Org.OpenAPITools/Controllers/PetApi.cs index 5a197da3156e..7dded4e0f16a 100644 --- a/samples/server/petstore/aspnetcore-6.0-pocoModels/src/Org.OpenAPITools/Controllers/PetApi.cs +++ b/samples/server/petstore/aspnetcore-6.0-pocoModels/src/Org.OpenAPITools/Controllers/PetApi.cs @@ -48,7 +48,7 @@ public virtual IActionResult AddPet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; + exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -97,7 +97,7 @@ public virtual IActionResult FindPetsByStatus([FromQuery (Name = "status")][Requ //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; + exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult FindPetsByTags([FromQuery (Name = "tags")][Required //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; + exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -162,7 +162,7 @@ public virtual IActionResult GetPetById([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; + exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -198,7 +198,7 @@ public virtual IActionResult UpdatePet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; + exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; exampleJson = "\n 123456789\n doggie\n \n aeiou\n \n \n \n aeiou\n"; var example = exampleJson != null @@ -248,7 +248,7 @@ public virtual IActionResult UploadFile([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(200, default(ApiResponse)); string exampleJson = null; - exampleJson = "{\r\n \"code\" : 0,\r\n \"type\" : \"type\",\r\n \"message\" : \"message\"\r\n}"; + exampleJson = "{\n \"code\" : 0,\n \"type\" : \"type\",\n \"message\" : \"message\"\n}"; var example = exampleJson != null ? JsonConvert.DeserializeObject(exampleJson) diff --git a/samples/server/petstore/aspnetcore-6.0-pocoModels/src/Org.OpenAPITools/Controllers/StoreApi.cs b/samples/server/petstore/aspnetcore-6.0-pocoModels/src/Org.OpenAPITools/Controllers/StoreApi.cs index c57b5fb3bd16..b925426c761d 100644 --- a/samples/server/petstore/aspnetcore-6.0-pocoModels/src/Org.OpenAPITools/Controllers/StoreApi.cs +++ b/samples/server/petstore/aspnetcore-6.0-pocoModels/src/Org.OpenAPITools/Controllers/StoreApi.cs @@ -98,7 +98,7 @@ public virtual IActionResult GetOrderById([FromRoute (Name = "orderId")][Require //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; + exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult PlaceOrder([FromBody]Order order) //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; + exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-6.0-pocoModels/src/Org.OpenAPITools/Controllers/UserApi.cs b/samples/server/petstore/aspnetcore-6.0-pocoModels/src/Org.OpenAPITools/Controllers/UserApi.cs index 3277ae43fcfd..6d7094c81a9d 100644 --- a/samples/server/petstore/aspnetcore-6.0-pocoModels/src/Org.OpenAPITools/Controllers/UserApi.cs +++ b/samples/server/petstore/aspnetcore-6.0-pocoModels/src/Org.OpenAPITools/Controllers/UserApi.cs @@ -134,7 +134,7 @@ public virtual IActionResult GetUserByName([FromRoute (Name = "username")][Requi //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\r\n \"firstName\" : \"firstName\",\r\n \"lastName\" : \"lastName\",\r\n \"password\" : \"password\",\r\n \"userStatus\" : 6,\r\n \"phone\" : \"phone\",\r\n \"id\" : 0,\r\n \"email\" : \"email\",\r\n \"username\" : \"username\"\r\n}"; + exampleJson = "{\n \"firstName\" : \"firstName\",\n \"lastName\" : \"lastName\",\n \"password\" : \"password\",\n \"userStatus\" : 6,\n \"phone\" : \"phone\",\n \"id\" : 0,\n \"email\" : \"email\",\n \"username\" : \"username\"\n}"; exampleJson = "\n 123456789\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n 123\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-6.0-project4Models/src/Org.OpenAPITools/Controllers/PetApi.cs b/samples/server/petstore/aspnetcore-6.0-project4Models/src/Org.OpenAPITools/Controllers/PetApi.cs index 5a197da3156e..7dded4e0f16a 100644 --- a/samples/server/petstore/aspnetcore-6.0-project4Models/src/Org.OpenAPITools/Controllers/PetApi.cs +++ b/samples/server/petstore/aspnetcore-6.0-project4Models/src/Org.OpenAPITools/Controllers/PetApi.cs @@ -48,7 +48,7 @@ public virtual IActionResult AddPet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; + exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -97,7 +97,7 @@ public virtual IActionResult FindPetsByStatus([FromQuery (Name = "status")][Requ //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; + exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult FindPetsByTags([FromQuery (Name = "tags")][Required //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; + exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -162,7 +162,7 @@ public virtual IActionResult GetPetById([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; + exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -198,7 +198,7 @@ public virtual IActionResult UpdatePet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; + exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; exampleJson = "\n 123456789\n doggie\n \n aeiou\n \n \n \n aeiou\n"; var example = exampleJson != null @@ -248,7 +248,7 @@ public virtual IActionResult UploadFile([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(200, default(ApiResponse)); string exampleJson = null; - exampleJson = "{\r\n \"code\" : 0,\r\n \"type\" : \"type\",\r\n \"message\" : \"message\"\r\n}"; + exampleJson = "{\n \"code\" : 0,\n \"type\" : \"type\",\n \"message\" : \"message\"\n}"; var example = exampleJson != null ? JsonConvert.DeserializeObject(exampleJson) diff --git a/samples/server/petstore/aspnetcore-6.0-project4Models/src/Org.OpenAPITools/Controllers/StoreApi.cs b/samples/server/petstore/aspnetcore-6.0-project4Models/src/Org.OpenAPITools/Controllers/StoreApi.cs index c57b5fb3bd16..b925426c761d 100644 --- a/samples/server/petstore/aspnetcore-6.0-project4Models/src/Org.OpenAPITools/Controllers/StoreApi.cs +++ b/samples/server/petstore/aspnetcore-6.0-project4Models/src/Org.OpenAPITools/Controllers/StoreApi.cs @@ -98,7 +98,7 @@ public virtual IActionResult GetOrderById([FromRoute (Name = "orderId")][Require //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; + exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult PlaceOrder([FromBody]Order order) //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; + exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-6.0-project4Models/src/Org.OpenAPITools/Controllers/UserApi.cs b/samples/server/petstore/aspnetcore-6.0-project4Models/src/Org.OpenAPITools/Controllers/UserApi.cs index 3277ae43fcfd..6d7094c81a9d 100644 --- a/samples/server/petstore/aspnetcore-6.0-project4Models/src/Org.OpenAPITools/Controllers/UserApi.cs +++ b/samples/server/petstore/aspnetcore-6.0-project4Models/src/Org.OpenAPITools/Controllers/UserApi.cs @@ -134,7 +134,7 @@ public virtual IActionResult GetUserByName([FromRoute (Name = "username")][Requi //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\r\n \"firstName\" : \"firstName\",\r\n \"lastName\" : \"lastName\",\r\n \"password\" : \"password\",\r\n \"userStatus\" : 6,\r\n \"phone\" : \"phone\",\r\n \"id\" : 0,\r\n \"email\" : \"email\",\r\n \"username\" : \"username\"\r\n}"; + exampleJson = "{\n \"firstName\" : \"firstName\",\n \"lastName\" : \"lastName\",\n \"password\" : \"password\",\n \"userStatus\" : 6,\n \"phone\" : \"phone\",\n \"id\" : 0,\n \"email\" : \"email\",\n \"username\" : \"username\"\n}"; exampleJson = "\n 123456789\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n 123\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-6.0/src/Org.OpenAPITools/Controllers/PetApi.cs b/samples/server/petstore/aspnetcore-6.0/src/Org.OpenAPITools/Controllers/PetApi.cs index 5a197da3156e..7dded4e0f16a 100644 --- a/samples/server/petstore/aspnetcore-6.0/src/Org.OpenAPITools/Controllers/PetApi.cs +++ b/samples/server/petstore/aspnetcore-6.0/src/Org.OpenAPITools/Controllers/PetApi.cs @@ -48,7 +48,7 @@ public virtual IActionResult AddPet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; + exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -97,7 +97,7 @@ public virtual IActionResult FindPetsByStatus([FromQuery (Name = "status")][Requ //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; + exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult FindPetsByTags([FromQuery (Name = "tags")][Required //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; + exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -162,7 +162,7 @@ public virtual IActionResult GetPetById([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; + exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -198,7 +198,7 @@ public virtual IActionResult UpdatePet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; + exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; exampleJson = "\n 123456789\n doggie\n \n aeiou\n \n \n \n aeiou\n"; var example = exampleJson != null @@ -248,7 +248,7 @@ public virtual IActionResult UploadFile([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(200, default(ApiResponse)); string exampleJson = null; - exampleJson = "{\r\n \"code\" : 0,\r\n \"type\" : \"type\",\r\n \"message\" : \"message\"\r\n}"; + exampleJson = "{\n \"code\" : 0,\n \"type\" : \"type\",\n \"message\" : \"message\"\n}"; var example = exampleJson != null ? JsonConvert.DeserializeObject(exampleJson) diff --git a/samples/server/petstore/aspnetcore-6.0/src/Org.OpenAPITools/Controllers/StoreApi.cs b/samples/server/petstore/aspnetcore-6.0/src/Org.OpenAPITools/Controllers/StoreApi.cs index c57b5fb3bd16..b925426c761d 100644 --- a/samples/server/petstore/aspnetcore-6.0/src/Org.OpenAPITools/Controllers/StoreApi.cs +++ b/samples/server/petstore/aspnetcore-6.0/src/Org.OpenAPITools/Controllers/StoreApi.cs @@ -98,7 +98,7 @@ public virtual IActionResult GetOrderById([FromRoute (Name = "orderId")][Require //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; + exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult PlaceOrder([FromBody]Order order) //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; + exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-6.0/src/Org.OpenAPITools/Controllers/UserApi.cs b/samples/server/petstore/aspnetcore-6.0/src/Org.OpenAPITools/Controllers/UserApi.cs index 3277ae43fcfd..6d7094c81a9d 100644 --- a/samples/server/petstore/aspnetcore-6.0/src/Org.OpenAPITools/Controllers/UserApi.cs +++ b/samples/server/petstore/aspnetcore-6.0/src/Org.OpenAPITools/Controllers/UserApi.cs @@ -134,7 +134,7 @@ public virtual IActionResult GetUserByName([FromRoute (Name = "username")][Requi //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\r\n \"firstName\" : \"firstName\",\r\n \"lastName\" : \"lastName\",\r\n \"password\" : \"password\",\r\n \"userStatus\" : 6,\r\n \"phone\" : \"phone\",\r\n \"id\" : 0,\r\n \"email\" : \"email\",\r\n \"username\" : \"username\"\r\n}"; + exampleJson = "{\n \"firstName\" : \"firstName\",\n \"lastName\" : \"lastName\",\n \"password\" : \"password\",\n \"userStatus\" : 6,\n \"phone\" : \"phone\",\n \"id\" : 0,\n \"email\" : \"email\",\n \"username\" : \"username\"\n}"; exampleJson = "\n 123456789\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n 123\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore/src/Org.OpenAPITools/Controllers/PetApi.cs b/samples/server/petstore/aspnetcore/src/Org.OpenAPITools/Controllers/PetApi.cs index 562ee1b0ff43..419bab14d099 100644 --- a/samples/server/petstore/aspnetcore/src/Org.OpenAPITools/Controllers/PetApi.cs +++ b/samples/server/petstore/aspnetcore/src/Org.OpenAPITools/Controllers/PetApi.cs @@ -86,7 +86,7 @@ public virtual IActionResult FindPetsByStatus([FromQuery (Name = "status")][Requ //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; + exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -117,7 +117,7 @@ public virtual IActionResult FindPetsByTags([FromQuery (Name = "tags")][Required //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; + exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -151,7 +151,7 @@ public virtual IActionResult GetPetById([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; + exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -226,7 +226,7 @@ public virtual IActionResult UploadFile([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(200, default(ApiResponse)); string exampleJson = null; - exampleJson = "{\r\n \"code\" : 0,\r\n \"type\" : \"type\",\r\n \"message\" : \"message\"\r\n}"; + exampleJson = "{\n \"code\" : 0,\n \"type\" : \"type\",\n \"message\" : \"message\"\n}"; var example = exampleJson != null ? JsonConvert.DeserializeObject(exampleJson) diff --git a/samples/server/petstore/aspnetcore/src/Org.OpenAPITools/Controllers/StoreApi.cs b/samples/server/petstore/aspnetcore/src/Org.OpenAPITools/Controllers/StoreApi.cs index 8dc20ddadfc4..8e493e399264 100644 --- a/samples/server/petstore/aspnetcore/src/Org.OpenAPITools/Controllers/StoreApi.cs +++ b/samples/server/petstore/aspnetcore/src/Org.OpenAPITools/Controllers/StoreApi.cs @@ -98,7 +98,7 @@ public virtual IActionResult GetOrderById([FromRoute (Name = "orderId")][Require //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; + exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null @@ -127,7 +127,7 @@ public virtual IActionResult PlaceOrder([FromBody]Order body) //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; + exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore/src/Org.OpenAPITools/Controllers/UserApi.cs b/samples/server/petstore/aspnetcore/src/Org.OpenAPITools/Controllers/UserApi.cs index d1d13530b839..6669f0418cee 100644 --- a/samples/server/petstore/aspnetcore/src/Org.OpenAPITools/Controllers/UserApi.cs +++ b/samples/server/petstore/aspnetcore/src/Org.OpenAPITools/Controllers/UserApi.cs @@ -127,7 +127,7 @@ public virtual IActionResult GetUserByName([FromRoute (Name = "username")][Requi //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\r\n \"firstName\" : \"firstName\",\r\n \"lastName\" : \"lastName\",\r\n \"password\" : \"password\",\r\n \"userStatus\" : 6,\r\n \"phone\" : \"phone\",\r\n \"id\" : 0,\r\n \"email\" : \"email\",\r\n \"username\" : \"username\"\r\n}"; + exampleJson = "{\n \"firstName\" : \"firstName\",\n \"lastName\" : \"lastName\",\n \"password\" : \"password\",\n \"userStatus\" : 6,\n \"phone\" : \"phone\",\n \"id\" : 0,\n \"email\" : \"email\",\n \"username\" : \"username\"\n}"; exampleJson = "\n 123456789\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n 123\n"; var example = exampleJson != null diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/AnotherFakeApi.java index c5b4111124d7..ac8e60cb4568 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/AnotherFakeApi.java @@ -63,8 +63,7 @@ public AnotherFakeApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Response call123testSpecialTags(@ApiParam(value = "to test uuid example value" ,required=true)@HeaderParam("uuid_test") UUID uuidTest,@ApiParam(value = "client model", required = true) @NotNull - Client body,@Context SecurityContext securityContext) + public Response call123testSpecialTags(@ApiParam(value = "to test uuid example value" ,required=true)@HeaderParam("uuid_test") UUID uuidTest,@ApiParam(value = "client model", required = true) @NotNull @Valid Client body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.call123testSpecialTags(uuidTest, body, securityContext); } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeApi.java index 21e37a51325f..c561efc23d80 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeApi.java @@ -72,8 +72,7 @@ public FakeApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createXmlItem(@ApiParam(value = "XmlItem Body", required = true) @NotNull - XmlItem xmlItem,@Context SecurityContext securityContext) + public Response createXmlItem(@ApiParam(value = "XmlItem Body", required = true) @NotNull @Valid XmlItem xmlItem,@Context SecurityContext securityContext) throws NotFoundException { return delegate.createXmlItem(xmlItem, securityContext); } @@ -85,8 +84,7 @@ public Response createXmlItem(@ApiParam(value = "XmlItem Body", required = true) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Output boolean", response = Boolean.class) }) - public Response fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body") - Boolean body,@Context SecurityContext securityContext) + public Response fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body") Boolean body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeOuterBooleanSerialize(body, securityContext); } @@ -98,8 +96,7 @@ public Response fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as po @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) - public Response fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body") - OuterComposite body,@Context SecurityContext securityContext) + public Response fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body") @Valid OuterComposite body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeOuterCompositeSerialize(body, securityContext); } @@ -111,8 +108,7 @@ public Response fakeOuterCompositeSerialize(@ApiParam(value = "Input composite a @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Output number", response = BigDecimal.class) }) - public Response fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body") - BigDecimal body,@Context SecurityContext securityContext) + public Response fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body") BigDecimal body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeOuterNumberSerialize(body, securityContext); } @@ -124,8 +120,7 @@ public Response fakeOuterNumberSerialize(@ApiParam(value = "Input number as post @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Output string", response = String.class) }) - public Response fakeOuterStringSerialize(@ApiParam(value = "Input string as post body") - String body,@Context SecurityContext securityContext) + public Response fakeOuterStringSerialize(@ApiParam(value = "Input string as post body") String body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeOuterStringSerialize(body, securityContext); } @@ -137,8 +132,7 @@ public Response fakeOuterStringSerialize(@ApiParam(value = "Input string as post @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Success", response = Void.class) }) - public Response testBodyWithFileSchema(@ApiParam(value = "", required = true) @NotNull - FileSchemaTestClass body,@Context SecurityContext securityContext) + public Response testBodyWithFileSchema(@ApiParam(value = "", required = true) @NotNull @Valid FileSchemaTestClass body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testBodyWithFileSchema(body, securityContext); } @@ -150,9 +144,7 @@ public Response testBodyWithFileSchema(@ApiParam(value = "", required = true) @N @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Success", response = Void.class) }) - public Response testBodyWithQueryParams(@ApiParam(value = "", required = true) @QueryParam("query") @NotNull - String query,@ApiParam(value = "", required = true) @NotNull - User body,@Context SecurityContext securityContext) + public Response testBodyWithQueryParams(@ApiParam(value = "", required = true) @QueryParam("query") @NotNull String query,@ApiParam(value = "", required = true) @NotNull @Valid User body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testBodyWithQueryParams(query, body, securityContext); } @@ -164,8 +156,7 @@ public Response testBodyWithQueryParams(@ApiParam(value = "", required = true) @ @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Response testClientModel(@ApiParam(value = "client model", required = true) @NotNull - Client body,@Context SecurityContext securityContext) + public Response testClientModel(@ApiParam(value = "client model", required = true) @NotNull @Valid Client body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testClientModel(body, securityContext); } @@ -194,11 +185,7 @@ public Response testEndpointParameters(@ApiParam(value = "None", required=true) @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid request", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "Not found", response = Void.class) }) - public Response testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $")@HeaderParam("enum_header_string_array") List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg")@HeaderParam("enum_header_string") String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)") @QueryParam("enum_query_string_array") - List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue = "-efg") @DefaultValue("-efg") @QueryParam("enum_query_string") - String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1, -2") @QueryParam("enum_query_integer") - Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1.1, -1.2") @QueryParam("enum_query_double") - Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $", defaultValue="$") @DefaultValue("$") @FormParam("enum_form_string_array") List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @FormParam("enum_form_string") String enumFormString,@Context SecurityContext securityContext) + public Response testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $")@HeaderParam("enum_header_string_array") List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg")@HeaderParam("enum_header_string") String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)") @QueryParam("enum_query_string_array") @Valid List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue = "-efg") @DefaultValue("-efg") @QueryParam("enum_query_string") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1, -2") @QueryParam("enum_query_integer") Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1.1, -1.2") @QueryParam("enum_query_double") Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $", defaultValue="$") @DefaultValue("$") @FormParam("enum_form_string_array") List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @FormParam("enum_form_string") String enumFormString,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, securityContext); } @@ -210,11 +197,7 @@ public Response testEnumParameters(@ApiParam(value = "Header parameter enum test @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 400, message = "Something wrong", response = Void.class) }) - public Response testGroupParameters(@ApiParam(value = "Required String in group parameters", required = true) @QueryParam("required_string_group") @NotNull - Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true)@HeaderParam("required_boolean_group") Boolean requiredBooleanGroup,@ApiParam(value = "Required Integer in group parameters", required = true) @QueryParam("required_int64_group") @NotNull - Long requiredInt64Group,@ApiParam(value = "String in group parameters") @QueryParam("string_group") - Integer stringGroup,@ApiParam(value = "Boolean in group parameters" )@HeaderParam("boolean_group") Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @QueryParam("int64_group") - Long int64Group,@Context SecurityContext securityContext) + public Response testGroupParameters(@ApiParam(value = "Required String in group parameters", required = true) @QueryParam("required_string_group") @NotNull Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true)@HeaderParam("required_boolean_group") Boolean requiredBooleanGroup,@ApiParam(value = "Required Integer in group parameters", required = true) @QueryParam("required_int64_group") @NotNull Long requiredInt64Group,@ApiParam(value = "String in group parameters") @QueryParam("string_group") Integer stringGroup,@ApiParam(value = "Boolean in group parameters" )@HeaderParam("boolean_group") Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @QueryParam("int64_group") Long int64Group,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, securityContext); } @@ -226,8 +209,7 @@ public Response testGroupParameters(@ApiParam(value = "Required String in group @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response testInlineAdditionalProperties(@ApiParam(value = "request body", required = true) @NotNull @Valid - Map param,@Context SecurityContext securityContext) + public Response testInlineAdditionalProperties(@ApiParam(value = "request body", required = true) @NotNull @Valid Map param,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testInlineAdditionalProperties(param, securityContext); } @@ -251,12 +233,7 @@ public Response testJsonFormData(@ApiParam(value = "field1", required=true) @Fo @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Success", response = Void.class) }) - public Response testQueryParameterCollectionFormat(@ApiParam(value = "", required = true) @QueryParam("pipe") @NotNull @Valid - List pipe,@ApiParam(value = "", required = true) @QueryParam("ioutil") @NotNull @Valid - List ioutil,@ApiParam(value = "", required = true) @QueryParam("http") @NotNull @Valid - List http,@ApiParam(value = "", required = true) @QueryParam("url") @NotNull @Valid - List url,@ApiParam(value = "", required = true) @QueryParam("context") @NotNull @Valid - List context,@Context SecurityContext securityContext) + public Response testQueryParameterCollectionFormat(@ApiParam(value = "", required = true) @QueryParam("pipe") @NotNull @Valid List pipe,@ApiParam(value = "", required = true) @QueryParam("ioutil") @NotNull @Valid List ioutil,@ApiParam(value = "", required = true) @QueryParam("http") @NotNull @Valid List http,@ApiParam(value = "", required = true) @QueryParam("url") @NotNull @Valid List url,@ApiParam(value = "", required = true) @QueryParam("context") @NotNull @Valid List context,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, securityContext); } @@ -273,8 +250,7 @@ public Response testQueryParameterCollectionFormat(@ApiParam(value = "", require @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) - public Response uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathParam("petId") @NotNull - Long petId, + public Response uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathParam("petId") @NotNull Long petId, @FormDataParam("requiredFile") FormDataBodyPart requiredFileBodypart ,@ApiParam(value = "Additional data to pass to server")@FormDataParam("additionalMetadata") String additionalMetadata,@Context SecurityContext securityContext) throws NotFoundException { return delegate.uploadFileWithRequiredFile(petId, requiredFileBodypart, additionalMetadata, securityContext); diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java index 93ae57ff3293..4306f605e46c 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java @@ -64,8 +64,7 @@ public FakeClassnameTestApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Response testClassname(@ApiParam(value = "client model", required = true) @NotNull - Client body,@Context SecurityContext securityContext) + public Response testClassname(@ApiParam(value = "client model", required = true) @NotNull @Valid Client body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testClassname(body, securityContext); } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/PetApi.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/PetApi.java index ce57c1eacd2f..5592f807547b 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/PetApi.java @@ -71,8 +71,7 @@ public PetApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class), @io.swagger.annotations.ApiResponse(code = 405, message = "Invalid input", response = Void.class) }) - public Response addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull - Pet body,@Context SecurityContext securityContext) + public Response addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull @Valid Pet body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.addPet(body, securityContext); } @@ -90,8 +89,7 @@ public Response addPet(@ApiParam(value = "Pet object that needs to be added to t @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid pet value", response = Void.class) }) - public Response deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathParam("petId") @NotNull - Long petId,@ApiParam(value = "" )@HeaderParam("api_key") String apiKey,@Context SecurityContext securityContext) + public Response deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathParam("petId") @NotNull Long petId,@ApiParam(value = "" )@HeaderParam("api_key") String apiKey,@Context SecurityContext securityContext) throws NotFoundException { return delegate.deletePet(petId, apiKey, securityContext); } @@ -109,8 +107,7 @@ public Response deletePet(@ApiParam(value = "Pet id to delete", required = true) @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid status value", response = Void.class) }) - public Response findPetsByStatus(@ApiParam(value = "Status values that need to be considered for filter", required = true) @QueryParam("status") @NotNull - List status,@Context SecurityContext securityContext) + public Response findPetsByStatus(@ApiParam(value = "Status values that need to be considered for filter", required = true) @QueryParam("status") @NotNull @Valid List status,@Context SecurityContext securityContext) throws NotFoundException { return delegate.findPetsByStatus(status, securityContext); } @@ -128,8 +125,7 @@ public Response findPetsByStatus(@ApiParam(value = "Status values that need to b @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "Set"), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid tag value", response = Void.class) }) - public Response findPetsByTags(@ApiParam(value = "Tags to filter by", required = true) @QueryParam("tags") @NotNull @Valid - Set tags,@Context SecurityContext securityContext) + public Response findPetsByTags(@ApiParam(value = "Tags to filter by", required = true) @QueryParam("tags") @NotNull @Valid Set tags,@Context SecurityContext securityContext) throws NotFoundException { return delegate.findPetsByTags(tags, securityContext); } @@ -145,8 +141,7 @@ public Response findPetsByTags(@ApiParam(value = "Tags to filter by", required = @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid ID supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "Pet not found", response = Void.class) }) - public Response getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathParam("petId") @NotNull - Long petId,@Context SecurityContext securityContext) + public Response getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathParam("petId") @NotNull Long petId,@Context SecurityContext securityContext) throws NotFoundException { return delegate.getPetById(petId, securityContext); } @@ -166,8 +161,7 @@ public Response getPetById(@ApiParam(value = "ID of pet to return", required = t @io.swagger.annotations.ApiResponse(code = 404, message = "Pet not found", response = Void.class), @io.swagger.annotations.ApiResponse(code = 405, message = "Validation exception", response = Void.class) }) - public Response updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull - Pet body,@Context SecurityContext securityContext) + public Response updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull @Valid Pet body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.updatePet(body, securityContext); } @@ -184,8 +178,7 @@ public Response updatePet(@ApiParam(value = "Pet object that needs to be added t @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 405, message = "Invalid input", response = Void.class) }) - public Response updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathParam("petId") @NotNull - Long petId,@ApiParam(value = "Updated name of the pet") @FormParam("name") String name,@ApiParam(value = "Updated status of the pet") @FormParam("status") String status,@Context SecurityContext securityContext) + public Response updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathParam("petId") @NotNull Long petId,@ApiParam(value = "Updated name of the pet") @FormParam("name") String name,@ApiParam(value = "Updated status of the pet") @FormParam("status") String status,@Context SecurityContext securityContext) throws NotFoundException { return delegate.updatePetWithForm(petId, name, status, securityContext); } @@ -202,8 +195,7 @@ public Response updatePetWithForm(@ApiParam(value = "ID of pet that needs to be @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) - public Response uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathParam("petId") @NotNull - Long petId,@ApiParam(value = "Additional data to pass to server")@FormDataParam("additionalMetadata") String additionalMetadata, + public Response uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathParam("petId") @NotNull Long petId,@ApiParam(value = "Additional data to pass to server")@FormDataParam("additionalMetadata") String additionalMetadata, @FormDataParam("file") FormDataBodyPart _fileBodypart ,@Context SecurityContext securityContext) throws NotFoundException { return delegate.uploadFile(petId, additionalMetadata, _fileBodypart, securityContext); diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/StoreApi.java index 38275029d254..4ef38ebed15f 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/StoreApi.java @@ -64,8 +64,7 @@ public StoreApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid ID supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "Order not found", response = Void.class) }) - public Response deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathParam("order_id") @NotNull - String orderId,@Context SecurityContext securityContext) + public Response deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathParam("order_id") @NotNull String orderId,@Context SecurityContext securityContext) throws NotFoundException { return delegate.deleteOrder(orderId, securityContext); } @@ -93,8 +92,7 @@ public Response getInventory(@Context SecurityContext securityContext) @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid ID supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "Order not found", response = Void.class) }) - public Response getOrderById(@ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathParam("order_id") @NotNull @Min(1L) @Max(5L) - Long orderId,@Context SecurityContext securityContext) + public Response getOrderById(@ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathParam("order_id") @NotNull @Min(1L) @Max(5L) Long orderId,@Context SecurityContext securityContext) throws NotFoundException { return delegate.getOrderById(orderId, securityContext); } @@ -107,8 +105,7 @@ public Response getOrderById(@ApiParam(value = "ID of pet that needs to be fetch @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Order.class), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid Order", response = Void.class) }) - public Response placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true) @NotNull - Order body,@Context SecurityContext securityContext) + public Response placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true) @NotNull @Valid Order body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.placeOrder(body, securityContext); } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/UserApi.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/UserApi.java index 6e0927fc95ce..74f9e2658acb 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/UserApi.java @@ -63,8 +63,7 @@ public UserApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUser(@ApiParam(value = "Created user object", required = true) @NotNull - User body,@Context SecurityContext securityContext) + public Response createUser(@ApiParam(value = "Created user object", required = true) @NotNull @Valid User body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.createUser(body, securityContext); } @@ -76,8 +75,7 @@ public Response createUser(@ApiParam(value = "Created user object", required = t @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true) @NotNull @Valid - List<@Valid User> body,@Context SecurityContext securityContext) + public Response createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true) @NotNull @Valid List<@Valid User> body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.createUsersWithArrayInput(body, securityContext); } @@ -89,8 +87,7 @@ public Response createUsersWithArrayInput(@ApiParam(value = "List of user object @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUsersWithListInput(@ApiParam(value = "List of user object", required = true) @NotNull @Valid - List<@Valid User> body,@Context SecurityContext securityContext) + public Response createUsersWithListInput(@ApiParam(value = "List of user object", required = true) @NotNull @Valid List<@Valid User> body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.createUsersWithListInput(body, securityContext); } @@ -103,8 +100,7 @@ public Response createUsersWithListInput(@ApiParam(value = "List of user object" @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid username supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = Void.class) }) - public Response deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathParam("username") @NotNull - String username,@Context SecurityContext securityContext) + public Response deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathParam("username") @NotNull String username,@Context SecurityContext securityContext) throws NotFoundException { return delegate.deleteUser(username, securityContext); } @@ -118,8 +114,7 @@ public Response deleteUser(@ApiParam(value = "The name that needs to be deleted" @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid username supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = Void.class) }) - public Response getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathParam("username") @NotNull - String username,@Context SecurityContext securityContext) + public Response getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathParam("username") @NotNull String username,@Context SecurityContext securityContext) throws NotFoundException { return delegate.getUserByName(username, securityContext); } @@ -132,9 +127,7 @@ public Response getUserByName(@ApiParam(value = "The name that needs to be fetch @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = String.class), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid username/password supplied", response = Void.class) }) - public Response loginUser(@ApiParam(value = "The user name for login", required = true) @QueryParam("username") @NotNull - String username,@ApiParam(value = "The password for login in clear text", required = true) @QueryParam("password") @NotNull - String password,@Context SecurityContext securityContext) + public Response loginUser(@ApiParam(value = "The user name for login", required = true) @QueryParam("username") @NotNull String username,@ApiParam(value = "The password for login in clear text", required = true) @QueryParam("password") @NotNull String password,@Context SecurityContext securityContext) throws NotFoundException { return delegate.loginUser(username, password, securityContext); } @@ -159,9 +152,7 @@ public Response logoutUser(@Context SecurityContext securityContext) @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid user supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = Void.class) }) - public Response updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathParam("username") @NotNull - String username,@ApiParam(value = "Updated user object", required = true) @NotNull - User body,@Context SecurityContext securityContext) + public Response updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathParam("username") @NotNull String username,@ApiParam(value = "Updated user object", required = true) @NotNull @Valid User body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.updateUser(username, body, securityContext); } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesAnyType.java index bb30b74c4caa..389c0e21ff83 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -49,7 +49,6 @@ public AdditionalPropertiesAnyType name(String name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") - public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesArray.java index 87bccd1d609b..80b5670c5433 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -50,7 +50,6 @@ public AdditionalPropertiesArray name(String name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") - public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesBoolean.java index db424d3bd3ee..3587767b5771 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -49,7 +49,6 @@ public AdditionalPropertiesBoolean name(String name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") - public String getName() { return 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 1f9b32ab41de..2ec3e8b81f6a 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 @@ -109,7 +109,6 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt @JsonProperty(value = "map_string") @ApiModelProperty(value = "") - public Map getMapString() { return mapString; } @@ -138,7 +137,6 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb @JsonProperty(value = "map_number") @ApiModelProperty(value = "") @Valid - public Map getMapNumber() { return mapNumber; } @@ -167,7 +165,6 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege @JsonProperty(value = "map_integer") @ApiModelProperty(value = "") - public Map getMapInteger() { return mapInteger; } @@ -196,7 +193,6 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea @JsonProperty(value = "map_boolean") @ApiModelProperty(value = "") - public Map getMapBoolean() { return mapBoolean; } @@ -225,7 +221,6 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List> getMapArrayInteger() { return mapArrayInteger; } @@ -254,7 +249,6 @@ public AdditionalPropertiesClass putMapArrayAnytypeItem(String key, List @JsonProperty(value = "map_array_anytype") @ApiModelProperty(value = "") @Valid - public Map> getMapArrayAnytype() { return mapArrayAnytype; } @@ -283,7 +277,6 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map> getMapMapString() { return mapMapString; } @@ -312,7 +305,6 @@ public AdditionalPropertiesClass putMapMapAnytypeItem(String key, Map> getMapMapAnytype() { return mapMapAnytype; } @@ -333,7 +325,6 @@ public AdditionalPropertiesClass anytype1(Object anytype1) { @JsonProperty(value = "anytype_1") @ApiModelProperty(value = "") - public Object getAnytype1() { return anytype1; } @@ -354,7 +345,6 @@ public AdditionalPropertiesClass anytype2(Object anytype2) { @JsonProperty(value = "anytype_2") @ApiModelProperty(value = "") - public Object getAnytype2() { return anytype2; } @@ -375,7 +365,6 @@ public AdditionalPropertiesClass anytype3(Object anytype3) { @JsonProperty(value = "anytype_3") @ApiModelProperty(value = "") - public Object getAnytype3() { return anytype3; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesInteger.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesInteger.java index 90e7c18a1695..227059f924fa 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesInteger.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesInteger.java @@ -49,7 +49,6 @@ public AdditionalPropertiesInteger name(String name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") - public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesNumber.java index 313c99540257..319835332738 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -50,7 +50,6 @@ public AdditionalPropertiesNumber name(String name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") - public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesObject.java index b0983bdca47d..94372034e344 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -49,7 +49,6 @@ public AdditionalPropertiesObject name(String name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") - public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesString.java index 2b12b4bd0101..6e68509c3992 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/AdditionalPropertiesString.java @@ -49,7 +49,6 @@ public AdditionalPropertiesString name(String name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") - public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Animal.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Animal.java index bad5cbbbea9a..83adba36e9b4 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Animal.java @@ -61,7 +61,6 @@ public Animal className(String className) { @JsonProperty(value = "className") @ApiModelProperty(required = true, value = "") @NotNull - public String getClassName() { return className; } @@ -82,7 +81,6 @@ public Animal color(String color) { @JsonProperty(value = "color") @ApiModelProperty(value = "") - public String getColor() { return color; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index 03f797c128e4..a70ab4a1ddf8 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -59,7 +59,6 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr @JsonProperty(value = "ArrayArrayNumber") @ApiModelProperty(value = "") @Valid - public List> getArrayArrayNumber() { return arrayArrayNumber; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java index 7b721ce42fff..852f3056c249 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -59,7 +59,6 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { @JsonProperty(value = "ArrayNumber") @ApiModelProperty(value = "") @Valid - public List getArrayNumber() { return arrayNumber; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ArrayTest.java index 836b6d536ad6..9f3628b92fe7 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ArrayTest.java @@ -69,7 +69,6 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { @JsonProperty(value = "array_of_string") @ApiModelProperty(value = "") - public List getArrayOfString() { return arrayOfString; } @@ -98,7 +97,6 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) @JsonProperty(value = "array_array_of_integer") @ApiModelProperty(value = "") @Valid - public List> getArrayArrayOfInteger() { return arrayArrayOfInteger; } @@ -127,7 +125,6 @@ public ArrayTest addArrayArrayOfModelItem(List<@Valid ReadOnlyFirst> arrayArrayO @JsonProperty(value = "array_array_of_model") @ApiModelProperty(value = "") @Valid - public List> getArrayArrayOfModel() { return arrayArrayOfModel; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/BigCat.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/BigCat.java index 5d0b6ee2a655..945203126982 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/BigCat.java @@ -84,7 +84,6 @@ public BigCat kind(KindEnum kind) { @JsonProperty(value = "kind") @ApiModelProperty(value = "") - public KindEnum getKind() { return kind; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Capitalization.java index 71c6afe64217..7290af744173 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Capitalization.java @@ -72,7 +72,6 @@ public Capitalization smallCamel(String smallCamel) { @JsonProperty(value = "smallCamel") @ApiModelProperty(value = "") - public String getSmallCamel() { return smallCamel; } @@ -93,7 +92,6 @@ public Capitalization capitalCamel(String capitalCamel) { @JsonProperty(value = "CapitalCamel") @ApiModelProperty(value = "") - public String getCapitalCamel() { return capitalCamel; } @@ -114,7 +112,6 @@ public Capitalization smallSnake(String smallSnake) { @JsonProperty(value = "small_Snake") @ApiModelProperty(value = "") - public String getSmallSnake() { return smallSnake; } @@ -135,7 +132,6 @@ public Capitalization capitalSnake(String capitalSnake) { @JsonProperty(value = "Capital_Snake") @ApiModelProperty(value = "") - public String getCapitalSnake() { return capitalSnake; } @@ -156,7 +152,6 @@ public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { @JsonProperty(value = "SCA_ETH_Flow_Points") @ApiModelProperty(value = "") - public String getScAETHFlowPoints() { return scAETHFlowPoints; } @@ -177,7 +172,6 @@ public Capitalization ATT_NAME(String ATT_NAME) { @JsonProperty(value = "ATT_NAME") @ApiModelProperty(value = "Name of the pet ") - public String getATTNAME() { return ATT_NAME; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Cat.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Cat.java index c0c2cf3c0ab6..6c66e152f038 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Cat.java @@ -48,7 +48,6 @@ public Cat declawed(Boolean declawed) { @JsonProperty(value = "declawed") @ApiModelProperty(value = "") - public Boolean getDeclawed() { return declawed; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Category.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Category.java index db49e0ac0965..4e53ccde8c10 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Category.java @@ -52,7 +52,6 @@ public Category id(Long id) { @JsonProperty(value = "id") @ApiModelProperty(value = "") - public Long getId() { return id; } @@ -73,7 +72,6 @@ public Category name(String name) { @JsonProperty(value = "name") @ApiModelProperty(required = true, value = "") @NotNull - public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ClassModel.java index a8565cfa5146..0f6171583d03 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ClassModel.java @@ -48,7 +48,6 @@ public ClassModel propertyClass(String propertyClass) { @JsonProperty(value = "_class") @ApiModelProperty(value = "") - public String getPropertyClass() { return propertyClass; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Client.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Client.java index 2ad201d9d760..31a1903f5b3e 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Client.java @@ -47,7 +47,6 @@ public Client client(String client) { @JsonProperty(value = "client") @ApiModelProperty(value = "") - public String getClient() { return client; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Dog.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Dog.java index 30597c7a9071..a8bb2f36bbf1 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Dog.java @@ -48,7 +48,6 @@ public Dog breed(String breed) { @JsonProperty(value = "breed") @ApiModelProperty(value = "") - public String getBreed() { return breed; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/EnumArrays.java index a04976752e99..d3cec42c36dd 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/EnumArrays.java @@ -118,7 +118,6 @@ public EnumArrays justSymbol(JustSymbolEnum justSymbol) { @JsonProperty(value = "just_symbol") @ApiModelProperty(value = "") - public JustSymbolEnum getJustSymbol() { return justSymbol; } @@ -147,7 +146,6 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { @JsonProperty(value = "array_enum") @ApiModelProperty(value = "") - public List getArrayEnum() { return arrayEnum; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/EnumTest.java index 443145f83e83..2e4561aac1a4 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/EnumTest.java @@ -198,7 +198,6 @@ public EnumTest enumString(EnumStringEnum enumString) { @JsonProperty(value = "enum_string") @ApiModelProperty(value = "") - public EnumStringEnum getEnumString() { return enumString; } @@ -219,7 +218,6 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { @JsonProperty(value = "enum_string_required") @ApiModelProperty(required = true, value = "") @NotNull - public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; } @@ -240,7 +238,6 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { @JsonProperty(value = "enum_integer") @ApiModelProperty(value = "") - public EnumIntegerEnum getEnumInteger() { return enumInteger; } @@ -261,7 +258,6 @@ public EnumTest enumNumber(EnumNumberEnum enumNumber) { @JsonProperty(value = "enum_number") @ApiModelProperty(value = "") - public EnumNumberEnum getEnumNumber() { return enumNumber; } @@ -281,8 +277,7 @@ public EnumTest outerEnum(OuterEnum outerEnum) { **/ @JsonProperty(value = "outerEnum") @ApiModelProperty(value = "") - - + @Valid public OuterEnum getOuterEnum() { return outerEnum; } 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 c773cb9b6858..e0c7903abc69 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 @@ -55,8 +55,7 @@ public FileSchemaTestClass _file(ModelFile _file) { **/ @JsonProperty(value = "file") @ApiModelProperty(value = "") - - + @Valid public ModelFile getFile() { return _file; } @@ -85,7 +84,6 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { @JsonProperty(value = "files") @ApiModelProperty(value = "") @Valid - public List<@Valid ModelFile> getFiles() { return files; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/FormatTest.java index 39a5706625dd..c358822b7761 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/FormatTest.java @@ -120,7 +120,6 @@ public FormatTest integer(Integer integer) { @JsonProperty(value = "integer") @ApiModelProperty(value = "") @Min(10) @Max(100) - public Integer getInteger() { return integer; } @@ -143,7 +142,6 @@ public FormatTest int32(Integer int32) { @JsonProperty(value = "int32") @ApiModelProperty(value = "") @Min(20) @Max(200) - public Integer getInt32() { return int32; } @@ -164,7 +162,6 @@ public FormatTest int64(Long int64) { @JsonProperty(value = "int64") @ApiModelProperty(value = "") - public Long getInt64() { return int64; } @@ -186,8 +183,7 @@ public FormatTest number(BigDecimal number) { **/ @JsonProperty(value = "number") @ApiModelProperty(required = true, value = "") - @NotNull @DecimalMin("32.1") @DecimalMax("543.2") - + @NotNull @Valid @DecimalMin("32.1") @DecimalMax("543.2") public BigDecimal getNumber() { return number; } @@ -210,7 +206,6 @@ public FormatTest _float(Float _float) { @JsonProperty(value = "float") @ApiModelProperty(value = "") @DecimalMin("54.3") @DecimalMax("987.6") - public Float getFloat() { return _float; } @@ -233,7 +228,6 @@ public FormatTest _double(Double _double) { @JsonProperty(value = "double") @ApiModelProperty(value = "") @DecimalMin("67.8") @DecimalMax("123.4") - public Double getDouble() { return _double; } @@ -254,7 +248,6 @@ public FormatTest string(String string) { @JsonProperty(value = "string") @ApiModelProperty(value = "") @Pattern(regexp="/[a-z]/i") - public String getString() { return string; } @@ -275,7 +268,6 @@ public FormatTest _byte(byte[] _byte) { @JsonProperty(value = "byte") @ApiModelProperty(required = true, value = "") @NotNull - public byte[] getByte() { return _byte; } @@ -296,7 +288,6 @@ public FormatTest binary(File binary) { @JsonProperty(value = "binary") @ApiModelProperty(value = "") - public File getBinary() { return binary; } @@ -317,7 +308,6 @@ public FormatTest date(LocalDate date) { @JsonProperty(value = "date") @ApiModelProperty(required = true, value = "") @NotNull - public LocalDate getDate() { return date; } @@ -338,7 +328,6 @@ public FormatTest dateTime(OffsetDateTime dateTime) { @JsonProperty(value = "dateTime") @ApiModelProperty(value = "") - public OffsetDateTime getDateTime() { return dateTime; } @@ -359,7 +348,6 @@ public FormatTest uuid(UUID uuid) { @JsonProperty(value = "uuid") @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") - public UUID getUuid() { return uuid; } @@ -380,7 +368,6 @@ public FormatTest password(String password) { @JsonProperty(value = "password") @ApiModelProperty(required = true, value = "") @NotNull @Size(min=10,max=64) - public String getPassword() { return password; } @@ -400,8 +387,7 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { **/ @JsonProperty(value = "BigDecimal") @ApiModelProperty(value = "") - - + @Valid public BigDecimal getBigDecimal() { return bigDecimal; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java index 26bfd688efaa..5874ccd73fe3 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java @@ -53,7 +53,6 @@ public HasOnlyReadOnly bar(String bar) { @JsonProperty(value = "bar", access = JsonProperty.Access.READ_ONLY) @ApiModelProperty(value = "") - public String getBar() { return bar; } @@ -74,7 +73,6 @@ public HasOnlyReadOnly foo(String foo) { @JsonProperty(value = "foo", access = JsonProperty.Access.READ_ONLY) @ApiModelProperty(value = "") - public String getFoo() { return foo; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/MapTest.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/MapTest.java index 66a1bf6485b6..5a7bdb19dd91 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/MapTest.java @@ -104,7 +104,6 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr @JsonProperty(value = "map_map_of_string") @ApiModelProperty(value = "") @Valid - public Map> getMapMapOfString() { return mapMapOfString; } @@ -133,7 +132,6 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) @JsonProperty(value = "map_of_enum_string") @ApiModelProperty(value = "") - public Map getMapOfEnumString() { return mapOfEnumString; } @@ -162,7 +160,6 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { @JsonProperty(value = "direct_map") @ApiModelProperty(value = "") - public Map getDirectMap() { return directMap; } @@ -191,7 +188,6 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { @JsonProperty(value = "indirect_map") @ApiModelProperty(value = "") - public Map getIndirectMap() { return indirectMap; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 93c31a518b7a..d2995a25fc2d 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -62,7 +62,6 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { @JsonProperty(value = "uuid") @ApiModelProperty(value = "") - public UUID getUuid() { return uuid; } @@ -83,7 +82,6 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateT @JsonProperty(value = "dateTime") @ApiModelProperty(value = "") - public OffsetDateTime getDateTime() { return dateTime; } @@ -112,7 +110,6 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal @JsonProperty(value = "map") @ApiModelProperty(value = "") @Valid - public Map getMap() { return map; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Model200Response.java index 92bb1fb1cf5a..f5758dfe17e2 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Model200Response.java @@ -54,7 +54,6 @@ public Model200Response name(Integer name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") - public Integer getName() { return name; } @@ -75,7 +74,6 @@ public Model200Response propertyClass(String propertyClass) { @JsonProperty(value = "class") @ApiModelProperty(value = "") - public String getPropertyClass() { return propertyClass; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ModelApiResponse.java index a8dfb0d743b1..d1645f96e481 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ModelApiResponse.java @@ -58,7 +58,6 @@ public ModelApiResponse code(Integer code) { @JsonProperty(value = "code") @ApiModelProperty(value = "") - public Integer getCode() { return code; } @@ -79,7 +78,6 @@ public ModelApiResponse type(String type) { @JsonProperty(value = "type") @ApiModelProperty(value = "") - public String getType() { return type; } @@ -100,7 +98,6 @@ public ModelApiResponse message(String message) { @JsonProperty(value = "message") @ApiModelProperty(value = "") - public String getMessage() { return message; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ModelFile.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ModelFile.java index 3d3552ee6082..c4911e68b076 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ModelFile.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ModelFile.java @@ -49,7 +49,6 @@ public ModelFile sourceURI(String sourceURI) { @JsonProperty(value = "sourceURI") @ApiModelProperty(value = "Test capitalization") - public String getSourceURI() { return sourceURI; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ModelList.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ModelList.java index de2d2aab780a..1c6ab388164e 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ModelList.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ModelList.java @@ -48,7 +48,6 @@ public ModelList _123list(String _123list) { @JsonProperty(value = "123-list") @ApiModelProperty(value = "") - public String get123list() { return _123list; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ModelReturn.java index 090f5dab2296..e51257162438 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ModelReturn.java @@ -49,7 +49,6 @@ public ModelReturn _return(Integer _return) { @JsonProperty(value = "return") @ApiModelProperty(value = "") - public Integer getReturn() { return _return; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Name.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Name.java index d308fe91f7bf..9feb66b4213c 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Name.java @@ -63,7 +63,6 @@ public Name name(Integer name) { @JsonProperty(value = "name") @ApiModelProperty(required = true, value = "") @NotNull - public Integer getName() { return name; } @@ -84,7 +83,6 @@ public Name snakeCase(Integer snakeCase) { @JsonProperty(value = "snake_case", access = JsonProperty.Access.READ_ONLY) @ApiModelProperty(value = "") - public Integer getSnakeCase() { return snakeCase; } @@ -105,7 +103,6 @@ public Name property(String property) { @JsonProperty(value = "property") @ApiModelProperty(value = "") - public String getProperty() { return property; } @@ -126,7 +123,6 @@ public Name _123number(Integer _123number) { @JsonProperty(value = "123Number", access = JsonProperty.Access.READ_ONLY) @ApiModelProperty(value = "") - public Integer get123number() { return _123number; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/NumberOnly.java index 114b8ea13685..6313a6cdbdcf 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/NumberOnly.java @@ -47,8 +47,7 @@ public NumberOnly justNumber(BigDecimal justNumber) { **/ @JsonProperty(value = "JustNumber") @ApiModelProperty(value = "") - - + @Valid public BigDecimal getJustNumber() { return justNumber; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Order.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Order.java index a82a5100fc3b..9e377ac0c956 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Order.java @@ -107,7 +107,6 @@ public Order id(Long id) { @JsonProperty(value = "id") @ApiModelProperty(value = "") - public Long getId() { return id; } @@ -128,7 +127,6 @@ public Order petId(Long petId) { @JsonProperty(value = "petId") @ApiModelProperty(value = "") - public Long getPetId() { return petId; } @@ -149,7 +147,6 @@ public Order quantity(Integer quantity) { @JsonProperty(value = "quantity") @ApiModelProperty(value = "") - public Integer getQuantity() { return quantity; } @@ -170,7 +167,6 @@ public Order shipDate(OffsetDateTime shipDate) { @JsonProperty(value = "shipDate") @ApiModelProperty(value = "") - public OffsetDateTime getShipDate() { return shipDate; } @@ -191,7 +187,6 @@ public Order status(StatusEnum status) { @JsonProperty(value = "status") @ApiModelProperty(value = "Order Status") - public StatusEnum getStatus() { return status; } @@ -212,7 +207,6 @@ public Order complete(Boolean complete) { @JsonProperty(value = "complete") @ApiModelProperty(value = "") - public Boolean getComplete() { return complete; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/OuterComposite.java index 03f5e8ab67c5..16d148ad2d65 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/OuterComposite.java @@ -57,8 +57,7 @@ public OuterComposite myNumber(BigDecimal myNumber) { **/ @JsonProperty(value = "my_number") @ApiModelProperty(value = "") - - + @Valid public BigDecimal getMyNumber() { return myNumber; } @@ -79,7 +78,6 @@ public OuterComposite myString(String myString) { @JsonProperty(value = "my_string") @ApiModelProperty(value = "") - public String getMyString() { return myString; } @@ -100,7 +98,6 @@ public OuterComposite myBoolean(Boolean myBoolean) { @JsonProperty(value = "my_boolean") @ApiModelProperty(value = "") - public Boolean getMyBoolean() { return myBoolean; } 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 3b9d8cbe0591..290605a4c8c0 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 @@ -114,7 +114,6 @@ public Pet id(Long id) { @JsonProperty(value = "id") @ApiModelProperty(value = "") - public Long getId() { return id; } @@ -134,8 +133,7 @@ public Pet category(Category category) { **/ @JsonProperty(value = "category") @ApiModelProperty(value = "") - - + @Valid public Category getCategory() { return category; } @@ -156,7 +154,6 @@ public Pet name(String name) { @JsonProperty(value = "name") @ApiModelProperty(example = "doggie", required = true, value = "") @NotNull - public String getName() { return name; } @@ -185,7 +182,6 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { @JsonProperty(value = "photoUrls") @ApiModelProperty(required = true, value = "") @NotNull - public Set getPhotoUrls() { return photoUrls; } @@ -215,7 +211,6 @@ public Pet addTagsItem(Tag tagsItem) { @JsonProperty(value = "tags") @ApiModelProperty(value = "") @Valid - public List<@Valid Tag> getTags() { return tags; } @@ -236,7 +231,6 @@ public Pet status(StatusEnum status) { @JsonProperty(value = "status") @ApiModelProperty(value = "pet status in the store") - public StatusEnum getStatus() { return status; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ReadOnlyFirst.java index fc6d3dffb45f..cd7bf7bcfd32 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/ReadOnlyFirst.java @@ -52,7 +52,6 @@ public ReadOnlyFirst bar(String bar) { @JsonProperty(value = "bar", access = JsonProperty.Access.READ_ONLY) @ApiModelProperty(value = "") - public String getBar() { return bar; } @@ -73,7 +72,6 @@ public ReadOnlyFirst baz(String baz) { @JsonProperty(value = "baz") @ApiModelProperty(value = "") - public String getBaz() { return baz; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/SpecialModelName.java index c1cd5fbfa6d7..42a8d87611ed 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/SpecialModelName.java @@ -48,7 +48,6 @@ public class SpecialModelName implements Serializable { @JsonProperty(value = "$special[property.name]") @ApiModelProperty(value = "") - public Long get$SpecialPropertyName() { return $specialPropertyName; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Tag.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Tag.java index 81a72fd97239..89ef3064464c 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/Tag.java @@ -52,7 +52,6 @@ public Tag id(Long id) { @JsonProperty(value = "id") @ApiModelProperty(value = "") - public Long getId() { return id; } @@ -73,7 +72,6 @@ public Tag name(String name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") - public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/TypeHolderDefault.java index 78470ed74abe..f44fc01fe77e 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/TypeHolderDefault.java @@ -71,7 +71,6 @@ public TypeHolderDefault stringItem(String stringItem) { @JsonProperty(value = "string_item") @ApiModelProperty(required = true, value = "") @NotNull - public String getStringItem() { return stringItem; } @@ -91,8 +90,7 @@ public TypeHolderDefault numberItem(BigDecimal numberItem) { **/ @JsonProperty(value = "number_item") @ApiModelProperty(required = true, value = "") - @NotNull - + @NotNull @Valid public BigDecimal getNumberItem() { return numberItem; } @@ -113,7 +111,6 @@ public TypeHolderDefault integerItem(Integer integerItem) { @JsonProperty(value = "integer_item") @ApiModelProperty(required = true, value = "") @NotNull - public Integer getIntegerItem() { return integerItem; } @@ -134,7 +131,6 @@ public TypeHolderDefault boolItem(Boolean boolItem) { @JsonProperty(value = "bool_item") @ApiModelProperty(required = true, value = "") @NotNull - public Boolean getBoolItem() { return boolItem; } @@ -163,7 +159,6 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { @JsonProperty(value = "array_item") @ApiModelProperty(required = true, value = "") @NotNull - public List getArrayItem() { return arrayItem; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/TypeHolderExample.java index d7225f928be4..d56e08720337 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/TypeHolderExample.java @@ -76,7 +76,6 @@ public TypeHolderExample stringItem(String stringItem) { @JsonProperty(value = "string_item") @ApiModelProperty(example = "what", required = true, value = "") @NotNull - public String getStringItem() { return stringItem; } @@ -96,8 +95,7 @@ public TypeHolderExample numberItem(BigDecimal numberItem) { **/ @JsonProperty(value = "number_item") @ApiModelProperty(example = "1.234", required = true, value = "") - @NotNull - + @NotNull @Valid public BigDecimal getNumberItem() { return numberItem; } @@ -118,7 +116,6 @@ public TypeHolderExample floatItem(Float floatItem) { @JsonProperty(value = "float_item") @ApiModelProperty(example = "1.234", required = true, value = "") @NotNull - public Float getFloatItem() { return floatItem; } @@ -139,7 +136,6 @@ public TypeHolderExample integerItem(Integer integerItem) { @JsonProperty(value = "integer_item") @ApiModelProperty(example = "-2", required = true, value = "") @NotNull - public Integer getIntegerItem() { return integerItem; } @@ -160,7 +156,6 @@ public TypeHolderExample boolItem(Boolean boolItem) { @JsonProperty(value = "bool_item") @ApiModelProperty(example = "true", required = true, value = "") @NotNull - public Boolean getBoolItem() { return boolItem; } @@ -189,7 +184,6 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { @JsonProperty(value = "array_item") @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") @NotNull - public List getArrayItem() { return arrayItem; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/User.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/User.java index 621023889811..5b3e81d7f625 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/User.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/User.java @@ -82,7 +82,6 @@ public User id(Long id) { @JsonProperty(value = "id") @ApiModelProperty(value = "") - public Long getId() { return id; } @@ -103,7 +102,6 @@ public User username(String username) { @JsonProperty(value = "username") @ApiModelProperty(value = "") - public String getUsername() { return username; } @@ -124,7 +122,6 @@ public User firstName(String firstName) { @JsonProperty(value = "firstName") @ApiModelProperty(value = "") - public String getFirstName() { return firstName; } @@ -145,7 +142,6 @@ public User lastName(String lastName) { @JsonProperty(value = "lastName") @ApiModelProperty(value = "") - public String getLastName() { return lastName; } @@ -166,7 +162,6 @@ public User email(String email) { @JsonProperty(value = "email") @ApiModelProperty(value = "") - public String getEmail() { return email; } @@ -187,7 +182,6 @@ public User password(String password) { @JsonProperty(value = "password") @ApiModelProperty(value = "") - public String getPassword() { return password; } @@ -208,7 +202,6 @@ public User phone(String phone) { @JsonProperty(value = "phone") @ApiModelProperty(value = "") - public String getPhone() { return phone; } @@ -229,7 +222,6 @@ public User userStatus(Integer userStatus) { @JsonProperty(value = "userStatus") @ApiModelProperty(value = "User Status") - public Integer getUserStatus() { return userStatus; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/XmlItem.java index bc85ac0eb34a..7f2509b22ff1 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/XmlItem.java @@ -191,7 +191,6 @@ public XmlItem attributeString(String attributeString) { @JsonProperty(value = "attribute_string") @ApiModelProperty(example = "string", value = "") - public String getAttributeString() { return attributeString; } @@ -211,8 +210,7 @@ public XmlItem attributeNumber(BigDecimal attributeNumber) { **/ @JsonProperty(value = "attribute_number") @ApiModelProperty(example = "1.234", value = "") - - + @Valid public BigDecimal getAttributeNumber() { return attributeNumber; } @@ -233,7 +231,6 @@ public XmlItem attributeInteger(Integer attributeInteger) { @JsonProperty(value = "attribute_integer") @ApiModelProperty(example = "-2", value = "") - public Integer getAttributeInteger() { return attributeInteger; } @@ -254,7 +251,6 @@ public XmlItem attributeBoolean(Boolean attributeBoolean) { @JsonProperty(value = "attribute_boolean") @ApiModelProperty(example = "true", value = "") - public Boolean getAttributeBoolean() { return attributeBoolean; } @@ -283,7 +279,6 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { @JsonProperty(value = "wrapped_array") @ApiModelProperty(value = "") - public List getWrappedArray() { return wrappedArray; } @@ -304,7 +299,6 @@ public XmlItem nameString(String nameString) { @JsonProperty(value = "name_string") @ApiModelProperty(example = "string", value = "") - public String getNameString() { return nameString; } @@ -324,8 +318,7 @@ public XmlItem nameNumber(BigDecimal nameNumber) { **/ @JsonProperty(value = "name_number") @ApiModelProperty(example = "1.234", value = "") - - + @Valid public BigDecimal getNameNumber() { return nameNumber; } @@ -346,7 +339,6 @@ public XmlItem nameInteger(Integer nameInteger) { @JsonProperty(value = "name_integer") @ApiModelProperty(example = "-2", value = "") - public Integer getNameInteger() { return nameInteger; } @@ -367,7 +359,6 @@ public XmlItem nameBoolean(Boolean nameBoolean) { @JsonProperty(value = "name_boolean") @ApiModelProperty(example = "true", value = "") - public Boolean getNameBoolean() { return nameBoolean; } @@ -396,7 +387,6 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { @JsonProperty(value = "name_array") @ApiModelProperty(value = "") - public List getNameArray() { return nameArray; } @@ -425,7 +415,6 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { @JsonProperty(value = "name_wrapped_array") @ApiModelProperty(value = "") - public List getNameWrappedArray() { return nameWrappedArray; } @@ -446,7 +435,6 @@ public XmlItem prefixString(String prefixString) { @JsonProperty(value = "prefix_string") @ApiModelProperty(example = "string", value = "") - public String getPrefixString() { return prefixString; } @@ -466,8 +454,7 @@ public XmlItem prefixNumber(BigDecimal prefixNumber) { **/ @JsonProperty(value = "prefix_number") @ApiModelProperty(example = "1.234", value = "") - - + @Valid public BigDecimal getPrefixNumber() { return prefixNumber; } @@ -488,7 +475,6 @@ public XmlItem prefixInteger(Integer prefixInteger) { @JsonProperty(value = "prefix_integer") @ApiModelProperty(example = "-2", value = "") - public Integer getPrefixInteger() { return prefixInteger; } @@ -509,7 +495,6 @@ public XmlItem prefixBoolean(Boolean prefixBoolean) { @JsonProperty(value = "prefix_boolean") @ApiModelProperty(example = "true", value = "") - public Boolean getPrefixBoolean() { return prefixBoolean; } @@ -538,7 +523,6 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { @JsonProperty(value = "prefix_array") @ApiModelProperty(value = "") - public List getPrefixArray() { return prefixArray; } @@ -567,7 +551,6 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { @JsonProperty(value = "prefix_wrapped_array") @ApiModelProperty(value = "") - public List getPrefixWrappedArray() { return prefixWrappedArray; } @@ -588,7 +571,6 @@ public XmlItem namespaceString(String namespaceString) { @JsonProperty(value = "namespace_string") @ApiModelProperty(example = "string", value = "") - public String getNamespaceString() { return namespaceString; } @@ -608,8 +590,7 @@ public XmlItem namespaceNumber(BigDecimal namespaceNumber) { **/ @JsonProperty(value = "namespace_number") @ApiModelProperty(example = "1.234", value = "") - - + @Valid public BigDecimal getNamespaceNumber() { return namespaceNumber; } @@ -630,7 +611,6 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { @JsonProperty(value = "namespace_integer") @ApiModelProperty(example = "-2", value = "") - public Integer getNamespaceInteger() { return namespaceInteger; } @@ -651,7 +631,6 @@ public XmlItem namespaceBoolean(Boolean namespaceBoolean) { @JsonProperty(value = "namespace_boolean") @ApiModelProperty(example = "true", value = "") - public Boolean getNamespaceBoolean() { return namespaceBoolean; } @@ -680,7 +659,6 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { @JsonProperty(value = "namespace_array") @ApiModelProperty(value = "") - public List getNamespaceArray() { return namespaceArray; } @@ -709,7 +687,6 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { @JsonProperty(value = "namespace_wrapped_array") @ApiModelProperty(value = "") - public List getNamespaceWrappedArray() { return namespaceWrappedArray; } @@ -730,7 +707,6 @@ public XmlItem prefixNsString(String prefixNsString) { @JsonProperty(value = "prefix_ns_string") @ApiModelProperty(example = "string", value = "") - public String getPrefixNsString() { return prefixNsString; } @@ -750,8 +726,7 @@ public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { **/ @JsonProperty(value = "prefix_ns_number") @ApiModelProperty(example = "1.234", value = "") - - + @Valid public BigDecimal getPrefixNsNumber() { return prefixNsNumber; } @@ -772,7 +747,6 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { @JsonProperty(value = "prefix_ns_integer") @ApiModelProperty(example = "-2", value = "") - public Integer getPrefixNsInteger() { return prefixNsInteger; } @@ -793,7 +767,6 @@ public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { @JsonProperty(value = "prefix_ns_boolean") @ApiModelProperty(example = "true", value = "") - public Boolean getPrefixNsBoolean() { return prefixNsBoolean; } @@ -822,7 +795,6 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { @JsonProperty(value = "prefix_ns_array") @ApiModelProperty(value = "") - public List getPrefixNsArray() { return prefixNsArray; } @@ -851,7 +823,6 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { @JsonProperty(value = "prefix_ns_wrapped_array") @ApiModelProperty(value = "") - public List getPrefixNsWrappedArray() { return prefixNsWrappedArray; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/AnotherFakeApi.java index 8be8ef2a7c89..2cc9518351d6 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/AnotherFakeApi.java @@ -62,8 +62,7 @@ public AnotherFakeApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Response call123testSpecialTags(@ApiParam(value = "client model", required = true) @NotNull - Client client,@Context SecurityContext securityContext) + public Response call123testSpecialTags(@ApiParam(value = "client model", required = true) @NotNull @Valid Client client,@Context SecurityContext securityContext) throws NotFoundException { return delegate.call123testSpecialTags(client, securityContext); } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/FakeApi.java index 14268766e911..ada1d28638af 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/FakeApi.java @@ -103,9 +103,7 @@ public Response fakeHealthGet(@Context SecurityContext securityContext) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "The instance started successfully", response = Void.class) }) - public Response fakeHttpSignatureTest(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull - Pet pet,@ApiParam(value = "query parameter") @QueryParam("query_1") - String query1,@ApiParam(value = "header parameter" )@HeaderParam("header_1") String header1,@Context SecurityContext securityContext) + public Response fakeHttpSignatureTest(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull @Valid Pet pet,@ApiParam(value = "query parameter") @QueryParam("query_1") String query1,@ApiParam(value = "header parameter" )@HeaderParam("header_1") String header1,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeHttpSignatureTest(pet, query1, header1, securityContext); } @@ -117,8 +115,7 @@ public Response fakeHttpSignatureTest(@ApiParam(value = "Pet object that needs t @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Output boolean", response = Boolean.class) }) - public Response fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body") - Boolean body,@Context SecurityContext securityContext) + public Response fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body") Boolean body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeOuterBooleanSerialize(body, securityContext); } @@ -130,8 +127,7 @@ public Response fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as po @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) - public Response fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body") - OuterComposite outerComposite,@Context SecurityContext securityContext) + public Response fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body") @Valid OuterComposite outerComposite,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeOuterCompositeSerialize(outerComposite, securityContext); } @@ -143,8 +139,7 @@ public Response fakeOuterCompositeSerialize(@ApiParam(value = "Input composite a @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Output number", response = BigDecimal.class) }) - public Response fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body") - BigDecimal body,@Context SecurityContext securityContext) + public Response fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body") BigDecimal body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeOuterNumberSerialize(body, securityContext); } @@ -156,8 +151,7 @@ public Response fakeOuterNumberSerialize(@ApiParam(value = "Input number as post @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Output string", response = String.class) }) - public Response fakeOuterStringSerialize(@ApiParam(value = "Input string as post body") - String body,@Context SecurityContext securityContext) + public Response fakeOuterStringSerialize(@ApiParam(value = "Input string as post body") String body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeOuterStringSerialize(body, securityContext); } @@ -169,8 +163,7 @@ public Response fakeOuterStringSerialize(@ApiParam(value = "Input string as post @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Output enum (int)", response = OuterObjectWithEnumProperty.class) }) - public Response fakePropertyEnumIntegerSerialize(@ApiParam(value = "Input enum (int) as post body", required = true) @NotNull - OuterObjectWithEnumProperty outerObjectWithEnumProperty,@Context SecurityContext securityContext) + public Response fakePropertyEnumIntegerSerialize(@ApiParam(value = "Input enum (int) as post body", required = true) @NotNull @Valid OuterObjectWithEnumProperty outerObjectWithEnumProperty,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakePropertyEnumIntegerSerialize(outerObjectWithEnumProperty, securityContext); } @@ -182,8 +175,7 @@ public Response fakePropertyEnumIntegerSerialize(@ApiParam(value = "Input enum ( @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response testAdditionalPropertiesReference(@ApiParam(value = "request body", required = true) @NotNull @Valid - Map requestBody,@Context SecurityContext securityContext) + public Response testAdditionalPropertiesReference(@ApiParam(value = "request body", required = true) @NotNull @Valid Map requestBody,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testAdditionalPropertiesReference(requestBody, securityContext); } @@ -195,8 +187,7 @@ public Response testAdditionalPropertiesReference(@ApiParam(value = "request bod @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Success", response = Void.class) }) - public Response testBodyWithBinary(@ApiParam(value = "image to upload", required = true) @NotNull - File body,@Context SecurityContext securityContext) + public Response testBodyWithBinary(@ApiParam(value = "image to upload", required = true) @NotNull File body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testBodyWithBinary(body, securityContext); } @@ -208,8 +199,7 @@ public Response testBodyWithBinary(@ApiParam(value = "image to upload", required @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Success", response = Void.class) }) - public Response testBodyWithFileSchema(@ApiParam(value = "", required = true) @NotNull - FileSchemaTestClass fileSchemaTestClass,@Context SecurityContext securityContext) + public Response testBodyWithFileSchema(@ApiParam(value = "", required = true) @NotNull @Valid FileSchemaTestClass fileSchemaTestClass,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testBodyWithFileSchema(fileSchemaTestClass, securityContext); } @@ -221,9 +211,7 @@ public Response testBodyWithFileSchema(@ApiParam(value = "", required = true) @N @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Success", response = Void.class) }) - public Response testBodyWithQueryParams(@ApiParam(value = "", required = true) @QueryParam("query") @NotNull - String query,@ApiParam(value = "", required = true) @NotNull - User user,@Context SecurityContext securityContext) + public Response testBodyWithQueryParams(@ApiParam(value = "", required = true) @QueryParam("query") @NotNull String query,@ApiParam(value = "", required = true) @NotNull @Valid User user,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testBodyWithQueryParams(query, user, securityContext); } @@ -235,8 +223,7 @@ public Response testBodyWithQueryParams(@ApiParam(value = "", required = true) @ @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Response testClientModel(@ApiParam(value = "client model", required = true) @NotNull - Client client,@Context SecurityContext securityContext) + public Response testClientModel(@ApiParam(value = "client model", required = true) @NotNull @Valid Client client,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testClientModel(client, securityContext); } @@ -265,12 +252,7 @@ public Response testEndpointParameters(@ApiParam(value = "None", required=true) @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid request", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "Not found", response = Void.class) }) - public Response testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $")@HeaderParam("enum_header_string_array") List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg")@HeaderParam("enum_header_string") String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)") @QueryParam("enum_query_string_array") - List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue = "-efg") @DefaultValue("-efg") @QueryParam("enum_query_string") - String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1, -2") @QueryParam("enum_query_integer") - Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1.1, -1.2") @QueryParam("enum_query_double") - Double enumQueryDouble,@ApiParam(value = "") @QueryParam("enum_query_model_array") @Valid - List enumQueryModelArray,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $", defaultValue="$") @DefaultValue("$") @FormParam("enum_form_string_array") List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @FormParam("enum_form_string") String enumFormString,@Context SecurityContext securityContext) + public Response testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $")@HeaderParam("enum_header_string_array") List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg")@HeaderParam("enum_header_string") String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)") @QueryParam("enum_query_string_array") @Valid List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue = "-efg") @DefaultValue("-efg") @QueryParam("enum_query_string") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1, -2") @QueryParam("enum_query_integer") Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1.1, -1.2") @QueryParam("enum_query_double") Double enumQueryDouble,@ApiParam(value = "") @QueryParam("enum_query_model_array") @Valid List enumQueryModelArray,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $", defaultValue="$") @DefaultValue("$") @FormParam("enum_form_string_array") List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @FormParam("enum_form_string") String enumFormString,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString, securityContext); } @@ -284,11 +266,7 @@ public Response testEnumParameters(@ApiParam(value = "Header parameter enum test @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 400, message = "Something wrong", response = Void.class) }) - public Response testGroupParameters(@ApiParam(value = "Required String in group parameters", required = true) @QueryParam("required_string_group") @NotNull - Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true)@HeaderParam("required_boolean_group") Boolean requiredBooleanGroup,@ApiParam(value = "Required Integer in group parameters", required = true) @QueryParam("required_int64_group") @NotNull - Long requiredInt64Group,@ApiParam(value = "String in group parameters") @QueryParam("string_group") - Integer stringGroup,@ApiParam(value = "Boolean in group parameters" )@HeaderParam("boolean_group") Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @QueryParam("int64_group") - Long int64Group,@Context SecurityContext securityContext) + public Response testGroupParameters(@ApiParam(value = "Required String in group parameters", required = true) @QueryParam("required_string_group") @NotNull Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true)@HeaderParam("required_boolean_group") Boolean requiredBooleanGroup,@ApiParam(value = "Required Integer in group parameters", required = true) @QueryParam("required_int64_group") @NotNull Long requiredInt64Group,@ApiParam(value = "String in group parameters") @QueryParam("string_group") Integer stringGroup,@ApiParam(value = "Boolean in group parameters" )@HeaderParam("boolean_group") Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @QueryParam("int64_group") Long int64Group,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, securityContext); } @@ -300,8 +278,7 @@ public Response testGroupParameters(@ApiParam(value = "Required String in group @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response testInlineAdditionalProperties(@ApiParam(value = "request body", required = true) @NotNull @Valid - Map requestBody,@Context SecurityContext securityContext) + public Response testInlineAdditionalProperties(@ApiParam(value = "request body", required = true) @NotNull @Valid Map requestBody,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testInlineAdditionalProperties(requestBody, securityContext); } @@ -313,8 +290,7 @@ public Response testInlineAdditionalProperties(@ApiParam(value = "request body", @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response testInlineFreeformAdditionalProperties(@ApiParam(value = "request body", required = true) @NotNull - TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest,@Context SecurityContext securityContext) + public Response testInlineFreeformAdditionalProperties(@ApiParam(value = "request body", required = true) @NotNull @Valid TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest, securityContext); } @@ -338,8 +314,7 @@ public Response testJsonFormData(@ApiParam(value = "field1", required=true) @Fo @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response testNullable(@ApiParam(value = "request body", required = true) @NotNull - ChildWithNullable childWithNullable,@Context SecurityContext securityContext) + public Response testNullable(@ApiParam(value = "request body", required = true) @NotNull @Valid ChildWithNullable childWithNullable,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testNullable(childWithNullable, securityContext); } @@ -351,14 +326,7 @@ public Response testNullable(@ApiParam(value = "request body", required = true) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Success", response = Void.class) }) - public Response testQueryParameterCollectionFormat(@ApiParam(value = "", required = true) @QueryParam("pipe") @NotNull @Valid - List pipe,@ApiParam(value = "", required = true) @QueryParam("ioutil") @NotNull @Valid - List ioutil,@ApiParam(value = "", required = true) @QueryParam("http") @NotNull @Valid - List http,@ApiParam(value = "", required = true) @QueryParam("url") @NotNull @Valid - List url,@ApiParam(value = "", required = true) @QueryParam("context") @NotNull @Valid - List context,@ApiParam(value = "", required = true) @QueryParam("allowEmpty") @NotNull - String allowEmpty,@ApiParam(value = "") @QueryParam("language") @Valid - Map language,@Context SecurityContext securityContext) + public Response testQueryParameterCollectionFormat(@ApiParam(value = "", required = true) @QueryParam("pipe") @NotNull @Valid List pipe,@ApiParam(value = "", required = true) @QueryParam("ioutil") @NotNull @Valid List ioutil,@ApiParam(value = "", required = true) @QueryParam("http") @NotNull @Valid List http,@ApiParam(value = "", required = true) @QueryParam("url") @NotNull @Valid List url,@ApiParam(value = "", required = true) @QueryParam("context") @NotNull @Valid List context,@ApiParam(value = "", required = true) @QueryParam("allowEmpty") @NotNull String allowEmpty,@ApiParam(value = "") @QueryParam("language") @Valid Map language,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowEmpty, language, securityContext); } @@ -370,8 +338,7 @@ public Response testQueryParameterCollectionFormat(@ApiParam(value = "", require @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response testStringMapReference(@ApiParam(value = "request body", required = true) @NotNull @Valid - Map requestBody,@Context SecurityContext securityContext) + public Response testStringMapReference(@ApiParam(value = "request body", required = true) @NotNull @Valid Map requestBody,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testStringMapReference(requestBody, securityContext); } @@ -388,8 +355,7 @@ public Response testStringMapReference(@ApiParam(value = "request body", require @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) - public Response uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathParam("petId") @NotNull - Long petId, + public Response uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathParam("petId") @NotNull Long petId, @FormDataParam("requiredFile") FormDataBodyPart requiredFileBodypart ,@ApiParam(value = "Additional data to pass to server")@FormDataParam("additionalMetadata") String additionalMetadata,@Context SecurityContext securityContext) throws NotFoundException { return delegate.uploadFileWithRequiredFile(petId, requiredFileBodypart, additionalMetadata, securityContext); diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java index 089cb6c7e7e6..cae08da10f3a 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java @@ -64,8 +64,7 @@ public FakeClassnameTestApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Response testClassname(@ApiParam(value = "client model", required = true) @NotNull - Client client,@Context SecurityContext securityContext) + public Response testClassname(@ApiParam(value = "client model", required = true) @NotNull @Valid Client client,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testClassname(client, securityContext); } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/PetApi.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/PetApi.java index e69ed9de75c3..08cbaad7a95b 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/PetApi.java @@ -71,8 +71,7 @@ public PetApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponse(code = 200, message = "Successful operation", response = Void.class), @io.swagger.annotations.ApiResponse(code = 405, message = "Invalid input", response = Void.class) }) - public Response addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull - Pet pet,@Context SecurityContext securityContext) + public Response addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull @Valid Pet pet,@Context SecurityContext securityContext) throws NotFoundException { return delegate.addPet(pet, securityContext); } @@ -90,8 +89,7 @@ public Response addPet(@ApiParam(value = "Pet object that needs to be added to t @io.swagger.annotations.ApiResponse(code = 200, message = "Successful operation", response = Void.class), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid pet value", response = Void.class) }) - public Response deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathParam("petId") @NotNull - Long petId,@ApiParam(value = "" )@HeaderParam("api_key") String apiKey,@Context SecurityContext securityContext) + public Response deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathParam("petId") @NotNull Long petId,@ApiParam(value = "" )@HeaderParam("api_key") String apiKey,@Context SecurityContext securityContext) throws NotFoundException { return delegate.deletePet(petId, apiKey, securityContext); } @@ -109,8 +107,7 @@ public Response deletePet(@ApiParam(value = "Pet id to delete", required = true) @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid status value", response = Void.class) }) - public Response findPetsByStatus(@ApiParam(value = "Status values that need to be considered for filter", required = true) @QueryParam("status") @NotNull - List status,@Context SecurityContext securityContext) + public Response findPetsByStatus(@ApiParam(value = "Status values that need to be considered for filter", required = true) @QueryParam("status") @NotNull @Valid List status,@Context SecurityContext securityContext) throws NotFoundException { return delegate.findPetsByStatus(status, securityContext); } @@ -128,8 +125,7 @@ public Response findPetsByStatus(@ApiParam(value = "Status values that need to b @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "Set"), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid tag value", response = Void.class) }) - public Response findPetsByTags(@ApiParam(value = "Tags to filter by", required = true) @QueryParam("tags") @NotNull @Valid - Set tags,@Context SecurityContext securityContext) + public Response findPetsByTags(@ApiParam(value = "Tags to filter by", required = true) @QueryParam("tags") @NotNull @Valid Set tags,@Context SecurityContext securityContext) throws NotFoundException { return delegate.findPetsByTags(tags, securityContext); } @@ -145,8 +141,7 @@ public Response findPetsByTags(@ApiParam(value = "Tags to filter by", required = @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid ID supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "Pet not found", response = Void.class) }) - public Response getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathParam("petId") @NotNull - Long petId,@Context SecurityContext securityContext) + public Response getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathParam("petId") @NotNull Long petId,@Context SecurityContext securityContext) throws NotFoundException { return delegate.getPetById(petId, securityContext); } @@ -166,8 +161,7 @@ public Response getPetById(@ApiParam(value = "ID of pet to return", required = t @io.swagger.annotations.ApiResponse(code = 404, message = "Pet not found", response = Void.class), @io.swagger.annotations.ApiResponse(code = 405, message = "Validation exception", response = Void.class) }) - public Response updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull - Pet pet,@Context SecurityContext securityContext) + public Response updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull @Valid Pet pet,@Context SecurityContext securityContext) throws NotFoundException { return delegate.updatePet(pet, securityContext); } @@ -185,8 +179,7 @@ public Response updatePet(@ApiParam(value = "Pet object that needs to be added t @io.swagger.annotations.ApiResponse(code = 200, message = "Successful operation", response = Void.class), @io.swagger.annotations.ApiResponse(code = 405, message = "Invalid input", response = Void.class) }) - public Response updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathParam("petId") @NotNull - Long petId,@ApiParam(value = "Updated name of the pet") @FormParam("name") String name,@ApiParam(value = "Updated status of the pet") @FormParam("status") String status,@Context SecurityContext securityContext) + public Response updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathParam("petId") @NotNull Long petId,@ApiParam(value = "Updated name of the pet") @FormParam("name") String name,@ApiParam(value = "Updated status of the pet") @FormParam("status") String status,@Context SecurityContext securityContext) throws NotFoundException { return delegate.updatePetWithForm(petId, name, status, securityContext); } @@ -203,8 +196,7 @@ public Response updatePetWithForm(@ApiParam(value = "ID of pet that needs to be @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) - public Response uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathParam("petId") @NotNull - Long petId,@ApiParam(value = "Additional data to pass to server")@FormDataParam("additionalMetadata") String additionalMetadata, + public Response uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathParam("petId") @NotNull Long petId,@ApiParam(value = "Additional data to pass to server")@FormDataParam("additionalMetadata") String additionalMetadata, @FormDataParam("file") FormDataBodyPart _fileBodypart ,@Context SecurityContext securityContext) throws NotFoundException { return delegate.uploadFile(petId, additionalMetadata, _fileBodypart, securityContext); diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/StoreApi.java index 3bf30bf5899a..8dab60144f80 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/StoreApi.java @@ -64,8 +64,7 @@ public StoreApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid ID supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "Order not found", response = Void.class) }) - public Response deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathParam("order_id") @NotNull - String orderId,@Context SecurityContext securityContext) + public Response deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathParam("order_id") @NotNull String orderId,@Context SecurityContext securityContext) throws NotFoundException { return delegate.deleteOrder(orderId, securityContext); } @@ -93,8 +92,7 @@ public Response getInventory(@Context SecurityContext securityContext) @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid ID supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "Order not found", response = Void.class) }) - public Response getOrderById(@ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathParam("order_id") @NotNull @Min(1L) @Max(5L) - Long orderId,@Context SecurityContext securityContext) + public Response getOrderById(@ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathParam("order_id") @NotNull @Min(1L) @Max(5L) Long orderId,@Context SecurityContext securityContext) throws NotFoundException { return delegate.getOrderById(orderId, securityContext); } @@ -107,8 +105,7 @@ public Response getOrderById(@ApiParam(value = "ID of pet that needs to be fetch @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Order.class), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid Order", response = Void.class) }) - public Response placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true) @NotNull - Order order,@Context SecurityContext securityContext) + public Response placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true) @NotNull @Valid Order order,@Context SecurityContext securityContext) throws NotFoundException { return delegate.placeOrder(order, securityContext); } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/UserApi.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/UserApi.java index 7472a31d284c..167f33a9b032 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/UserApi.java @@ -63,8 +63,7 @@ public UserApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUser(@ApiParam(value = "Created user object", required = true) @NotNull - User user,@Context SecurityContext securityContext) + public Response createUser(@ApiParam(value = "Created user object", required = true) @NotNull @Valid User user,@Context SecurityContext securityContext) throws NotFoundException { return delegate.createUser(user, securityContext); } @@ -76,8 +75,7 @@ public Response createUser(@ApiParam(value = "Created user object", required = t @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true) @NotNull @Valid - List<@Valid User> user,@Context SecurityContext securityContext) + public Response createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true) @NotNull @Valid List<@Valid User> user,@Context SecurityContext securityContext) throws NotFoundException { return delegate.createUsersWithArrayInput(user, securityContext); } @@ -89,8 +87,7 @@ public Response createUsersWithArrayInput(@ApiParam(value = "List of user object @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUsersWithListInput(@ApiParam(value = "List of user object", required = true) @NotNull @Valid - List<@Valid User> user,@Context SecurityContext securityContext) + public Response createUsersWithListInput(@ApiParam(value = "List of user object", required = true) @NotNull @Valid List<@Valid User> user,@Context SecurityContext securityContext) throws NotFoundException { return delegate.createUsersWithListInput(user, securityContext); } @@ -103,8 +100,7 @@ public Response createUsersWithListInput(@ApiParam(value = "List of user object" @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid username supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = Void.class) }) - public Response deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathParam("username") @NotNull - String username,@Context SecurityContext securityContext) + public Response deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathParam("username") @NotNull String username,@Context SecurityContext securityContext) throws NotFoundException { return delegate.deleteUser(username, securityContext); } @@ -118,8 +114,7 @@ public Response deleteUser(@ApiParam(value = "The name that needs to be deleted" @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid username supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = Void.class) }) - public Response getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathParam("username") @NotNull - String username,@Context SecurityContext securityContext) + public Response getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathParam("username") @NotNull String username,@Context SecurityContext securityContext) throws NotFoundException { return delegate.getUserByName(username, securityContext); } @@ -132,9 +127,7 @@ public Response getUserByName(@ApiParam(value = "The name that needs to be fetch @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = String.class), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid username/password supplied", response = Void.class) }) - public Response loginUser(@ApiParam(value = "The user name for login", required = true) @QueryParam("username") @NotNull - String username,@ApiParam(value = "The password for login in clear text", required = true) @QueryParam("password") @NotNull - String password,@Context SecurityContext securityContext) + public Response loginUser(@ApiParam(value = "The user name for login", required = true) @QueryParam("username") @NotNull String username,@ApiParam(value = "The password for login in clear text", required = true) @QueryParam("password") @NotNull String password,@Context SecurityContext securityContext) throws NotFoundException { return delegate.loginUser(username, password, securityContext); } @@ -159,9 +152,7 @@ public Response logoutUser(@Context SecurityContext securityContext) @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid user supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = Void.class) }) - public Response updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathParam("username") @NotNull - String username,@ApiParam(value = "Updated user object", required = true) @NotNull - User user,@Context SecurityContext securityContext) + public Response updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathParam("username") @NotNull String username,@ApiParam(value = "Updated user object", required = true) @NotNull @Valid User user,@Context SecurityContext securityContext) throws NotFoundException { return delegate.updateUser(username, user, securityContext); } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java index cc0ae45a6c62..ca7bf66659bc 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -61,7 +61,6 @@ public AdditionalPropertiesClass putMapPropertyItem(String key, String mapProper @JsonProperty(value = "map_property") @ApiModelProperty(value = "") - public Map getMapProperty() { return mapProperty; } @@ -90,7 +89,6 @@ public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map> getMapOfMapProperty() { return mapOfMapProperty; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/AllOfWithSingleRef.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/AllOfWithSingleRef.java index 049dc1fdf151..6477dffc466d 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/AllOfWithSingleRef.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/AllOfWithSingleRef.java @@ -53,7 +53,6 @@ public AllOfWithSingleRef username(String username) { @JsonProperty(value = "username") @ApiModelProperty(value = "") - public String getUsername() { return username; } @@ -73,8 +72,7 @@ public AllOfWithSingleRef singleRefType(SingleRefType singleRefType) { **/ @JsonProperty(value = "SingleRefType") @ApiModelProperty(value = "") - - + @Valid public SingleRefType getSingleRefType() { return singleRefType; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Animal.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Animal.java index f5777d8ef226..4aa59e528385 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Animal.java @@ -59,7 +59,6 @@ public Animal className(String className) { @JsonProperty(value = "className") @ApiModelProperty(required = true, value = "") @NotNull - public String getClassName() { return className; } @@ -80,7 +79,6 @@ public Animal color(String color) { @JsonProperty(value = "color") @ApiModelProperty(value = "") - public String getColor() { return color; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index e4e04c60bd50..9966007d0f26 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -58,7 +58,6 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr @JsonProperty(value = "ArrayArrayNumber") @ApiModelProperty(value = "") @Valid - public List> getArrayArrayNumber() { return arrayArrayNumber; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java index 9926c93daf63..4da29b36770a 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -58,7 +58,6 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { @JsonProperty(value = "ArrayNumber") @ApiModelProperty(value = "") @Valid - public List getArrayNumber() { return arrayNumber; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ArrayTest.java index a5cfbfc253d6..5a4efe451ce4 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ArrayTest.java @@ -68,7 +68,6 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { @JsonProperty(value = "array_of_string") @ApiModelProperty(value = "") @Size(min=0,max=3) - public List getArrayOfString() { return arrayOfString; } @@ -97,7 +96,6 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) @JsonProperty(value = "array_array_of_integer") @ApiModelProperty(value = "") @Valid - public List> getArrayArrayOfInteger() { return arrayArrayOfInteger; } @@ -126,7 +124,6 @@ public ArrayTest addArrayArrayOfModelItem(List<@Valid ReadOnlyFirst> arrayArrayO @JsonProperty(value = "array_array_of_model") @ApiModelProperty(value = "") @Valid - public List> getArrayArrayOfModel() { return arrayArrayOfModel; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Capitalization.java index 064dad69cf29..275428ac81a1 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Capitalization.java @@ -71,7 +71,6 @@ public Capitalization smallCamel(String smallCamel) { @JsonProperty(value = "smallCamel") @ApiModelProperty(value = "") - public String getSmallCamel() { return smallCamel; } @@ -92,7 +91,6 @@ public Capitalization capitalCamel(String capitalCamel) { @JsonProperty(value = "CapitalCamel") @ApiModelProperty(value = "") - public String getCapitalCamel() { return capitalCamel; } @@ -113,7 +111,6 @@ public Capitalization smallSnake(String smallSnake) { @JsonProperty(value = "small_Snake") @ApiModelProperty(value = "") - public String getSmallSnake() { return smallSnake; } @@ -134,7 +131,6 @@ public Capitalization capitalSnake(String capitalSnake) { @JsonProperty(value = "Capital_Snake") @ApiModelProperty(value = "") - public String getCapitalSnake() { return capitalSnake; } @@ -155,7 +151,6 @@ public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { @JsonProperty(value = "SCA_ETH_Flow_Points") @ApiModelProperty(value = "") - public String getScAETHFlowPoints() { return scAETHFlowPoints; } @@ -176,7 +171,6 @@ public Capitalization ATT_NAME(String ATT_NAME) { @JsonProperty(value = "ATT_NAME") @ApiModelProperty(value = "Name of the pet ") - public String getATTNAME() { return ATT_NAME; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Cat.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Cat.java index b3250b097760..9700c31d1556 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Cat.java @@ -47,7 +47,6 @@ public Cat declawed(Boolean declawed) { @JsonProperty(value = "declawed") @ApiModelProperty(value = "") - public Boolean getDeclawed() { return declawed; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Category.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Category.java index 10a6a540f280..94593d27d7d8 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Category.java @@ -51,7 +51,6 @@ public Category id(Long id) { @JsonProperty(value = "id") @ApiModelProperty(value = "") - public Long getId() { return id; } @@ -72,7 +71,6 @@ public Category name(String name) { @JsonProperty(value = "name") @ApiModelProperty(required = true, value = "") @NotNull - public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ChildWithNullable.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ChildWithNullable.java index a0f150615987..eea257bf3e38 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ChildWithNullable.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ChildWithNullable.java @@ -48,7 +48,6 @@ public ChildWithNullable otherProperty(String otherProperty) { @JsonProperty(value = "otherProperty") @ApiModelProperty(value = "") - public String getOtherProperty() { return otherProperty; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ClassModel.java index 89851c227b4d..36bf5159845b 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ClassModel.java @@ -47,7 +47,6 @@ public ClassModel propertyClass(String propertyClass) { @JsonProperty(value = "_class") @ApiModelProperty(value = "") - public String getPropertyClass() { return propertyClass; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Client.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Client.java index 496a4dfc4365..ff200f04c004 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Client.java @@ -46,7 +46,6 @@ public Client client(String client) { @JsonProperty(value = "client") @ApiModelProperty(value = "") - public String getClient() { return client; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/DeprecatedObject.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/DeprecatedObject.java index 099a3d2d1d42..2e2c5c6e352e 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/DeprecatedObject.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/DeprecatedObject.java @@ -46,7 +46,6 @@ public DeprecatedObject name(String name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") - public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Dog.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Dog.java index 05295558b26c..d54c50dfcc38 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Dog.java @@ -47,7 +47,6 @@ public Dog breed(String breed) { @JsonProperty(value = "breed") @ApiModelProperty(value = "") - public String getBreed() { return breed; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/EnumArrays.java index 855a9fe8ee2b..274fbf027af4 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/EnumArrays.java @@ -117,7 +117,6 @@ public EnumArrays justSymbol(JustSymbolEnum justSymbol) { @JsonProperty(value = "just_symbol") @ApiModelProperty(value = "") - public JustSymbolEnum getJustSymbol() { return justSymbol; } @@ -146,7 +145,6 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { @JsonProperty(value = "array_enum") @ApiModelProperty(value = "") - public List getArrayEnum() { return arrayEnum; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/EnumTest.java index 3360693a4038..dc9f2eaeac40 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/EnumTest.java @@ -215,7 +215,6 @@ public EnumTest enumString(EnumStringEnum enumString) { @JsonProperty(value = "enum_string") @ApiModelProperty(value = "") - public EnumStringEnum getEnumString() { return enumString; } @@ -236,7 +235,6 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { @JsonProperty(value = "enum_string_required") @ApiModelProperty(required = true, value = "") @NotNull - public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; } @@ -257,7 +255,6 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { @JsonProperty(value = "enum_integer") @ApiModelProperty(value = "") - public EnumIntegerEnum getEnumInteger() { return enumInteger; } @@ -278,7 +275,6 @@ public EnumTest enumNumber(EnumNumberEnum enumNumber) { @JsonProperty(value = "enum_number") @ApiModelProperty(value = "") - public EnumNumberEnum getEnumNumber() { return enumNumber; } @@ -298,8 +294,7 @@ public EnumTest outerEnum(OuterEnum outerEnum) { **/ @JsonProperty(value = "outerEnum") @ApiModelProperty(value = "") - - + @Valid public OuterEnum getOuterEnum() { return outerEnum; } @@ -319,8 +314,7 @@ public EnumTest outerEnumInteger(OuterEnumInteger outerEnumInteger) { **/ @JsonProperty(value = "outerEnumInteger") @ApiModelProperty(value = "") - - + @Valid public OuterEnumInteger getOuterEnumInteger() { return outerEnumInteger; } @@ -340,8 +334,7 @@ public EnumTest outerEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValu **/ @JsonProperty(value = "outerEnumDefaultValue") @ApiModelProperty(value = "") - - + @Valid public OuterEnumDefaultValue getOuterEnumDefaultValue() { return outerEnumDefaultValue; } @@ -361,8 +354,7 @@ public EnumTest outerEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerE **/ @JsonProperty(value = "outerEnumIntegerDefaultValue") @ApiModelProperty(value = "") - - + @Valid public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { return outerEnumIntegerDefaultValue; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/FakeBigDecimalMap200Response.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/FakeBigDecimalMap200Response.java index 13d70c9cc09a..068a6fc14832 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/FakeBigDecimalMap200Response.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/FakeBigDecimalMap200Response.java @@ -54,8 +54,7 @@ public FakeBigDecimalMap200Response someId(BigDecimal someId) { **/ @JsonProperty(value = "someId") @ApiModelProperty(value = "") - - + @Valid public BigDecimal getSomeId() { return someId; } @@ -84,7 +83,6 @@ public FakeBigDecimalMap200Response putSomeMapItem(String key, BigDecimal someMa @JsonProperty(value = "someMap") @ApiModelProperty(value = "") @Valid - public Map getSomeMap() { return someMap; } 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 e44539543450..ccf6d9e47573 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 @@ -54,8 +54,7 @@ public FileSchemaTestClass _file(ModelFile _file) { **/ @JsonProperty(value = "file") @ApiModelProperty(value = "") - - + @Valid public ModelFile getFile() { return _file; } @@ -84,7 +83,6 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { @JsonProperty(value = "files") @ApiModelProperty(value = "") @Valid - public List<@Valid ModelFile> getFiles() { return files; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Foo.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Foo.java index 3b2bc5f45bc8..8f5f6b1b173e 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Foo.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Foo.java @@ -46,7 +46,6 @@ public Foo bar(String bar) { @JsonProperty(value = "bar") @ApiModelProperty(value = "") - public String getBar() { return bar; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/FooGetDefaultResponse.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/FooGetDefaultResponse.java index 2a8cada41a53..9ce131f43147 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/FooGetDefaultResponse.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/FooGetDefaultResponse.java @@ -47,8 +47,7 @@ public FooGetDefaultResponse string(Foo string) { **/ @JsonProperty(value = "string") @ApiModelProperty(value = "") - - + @Valid public Foo getString() { return string; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/FormatTest.java index f9e5128d3af3..01861aad0745 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/FormatTest.java @@ -128,7 +128,6 @@ public FormatTest integer(Integer integer) { @JsonProperty(value = "integer") @ApiModelProperty(value = "") @Min(10) @Max(100) - public Integer getInteger() { return integer; } @@ -151,7 +150,6 @@ public FormatTest int32(Integer int32) { @JsonProperty(value = "int32") @ApiModelProperty(value = "") @Min(20) @Max(200) - public Integer getInt32() { return int32; } @@ -172,7 +170,6 @@ public FormatTest int64(Long int64) { @JsonProperty(value = "int64") @ApiModelProperty(value = "") - public Long getInt64() { return int64; } @@ -194,8 +191,7 @@ public FormatTest number(BigDecimal number) { **/ @JsonProperty(value = "number") @ApiModelProperty(required = true, value = "") - @NotNull @DecimalMin("32.1") @DecimalMax("543.2") - + @NotNull @Valid @DecimalMin("32.1") @DecimalMax("543.2") public BigDecimal getNumber() { return number; } @@ -218,7 +214,6 @@ public FormatTest _float(Float _float) { @JsonProperty(value = "float") @ApiModelProperty(value = "") @DecimalMin("54.3") @DecimalMax("987.6") - public Float getFloat() { return _float; } @@ -241,7 +236,6 @@ public FormatTest _double(Double _double) { @JsonProperty(value = "double") @ApiModelProperty(value = "") @DecimalMin("67.8") @DecimalMax("123.4") - public Double getDouble() { return _double; } @@ -261,8 +255,7 @@ public FormatTest decimal(BigDecimal decimal) { **/ @JsonProperty(value = "decimal") @ApiModelProperty(value = "") - - + @Valid public BigDecimal getDecimal() { return decimal; } @@ -283,7 +276,6 @@ public FormatTest string(String string) { @JsonProperty(value = "string") @ApiModelProperty(value = "") @Pattern(regexp="/[a-z]/i") - public String getString() { return string; } @@ -304,7 +296,6 @@ public FormatTest _byte(byte[] _byte) { @JsonProperty(value = "byte") @ApiModelProperty(required = true, value = "") @NotNull - public byte[] getByte() { return _byte; } @@ -325,7 +316,6 @@ public FormatTest binary(File binary) { @JsonProperty(value = "binary") @ApiModelProperty(value = "") - public File getBinary() { return binary; } @@ -346,7 +336,6 @@ public FormatTest date(Date date) { @JsonProperty(value = "date") @ApiModelProperty(required = true, value = "") @NotNull - public Date getDate() { return date; } @@ -367,7 +356,6 @@ public FormatTest dateTime(Date dateTime) { @JsonProperty(value = "dateTime") @ApiModelProperty(value = "") - public Date getDateTime() { return dateTime; } @@ -388,7 +376,6 @@ public FormatTest uuid(UUID uuid) { @JsonProperty(value = "uuid") @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") - public UUID getUuid() { return uuid; } @@ -409,7 +396,6 @@ public FormatTest password(String password) { @JsonProperty(value = "password") @ApiModelProperty(required = true, value = "") @NotNull @Size(min=10,max=64) - public String getPassword() { return password; } @@ -430,7 +416,6 @@ public FormatTest patternWithDigits(String patternWithDigits) { @JsonProperty(value = "pattern_with_digits") @ApiModelProperty(value = "A string that is a 10 digit number. Can have leading zeros.") @Pattern(regexp="^\\d{10}$") - public String getPatternWithDigits() { return patternWithDigits; } @@ -451,7 +436,6 @@ public FormatTest patternWithDigitsAndDelimiter(String patternWithDigitsAndDelim @JsonProperty(value = "pattern_with_digits_and_delimiter") @ApiModelProperty(value = "A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.") @Pattern(regexp="/^image_\\d{1,3}$/i") - public String getPatternWithDigitsAndDelimiter() { return patternWithDigitsAndDelimiter; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java index 282698898b56..94885d038dfd 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java @@ -52,7 +52,6 @@ public HasOnlyReadOnly bar(String bar) { @JsonProperty(value = "bar", access = JsonProperty.Access.READ_ONLY) @ApiModelProperty(value = "") - public String getBar() { return bar; } @@ -73,7 +72,6 @@ public HasOnlyReadOnly foo(String foo) { @JsonProperty(value = "foo", access = JsonProperty.Access.READ_ONLY) @ApiModelProperty(value = "") - public String getFoo() { return foo; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/HealthCheckResult.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/HealthCheckResult.java index dc3de4d98888..f7ed32a1a87c 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/HealthCheckResult.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/HealthCheckResult.java @@ -47,7 +47,6 @@ public HealthCheckResult nullableMessage(String nullableMessage) { @JsonProperty(value = "NullableMessage") @ApiModelProperty(value = "") - public String getNullableMessage() { return nullableMessage; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/MapTest.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/MapTest.java index 3d58956c233c..58aa1713d779 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/MapTest.java @@ -103,7 +103,6 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr @JsonProperty(value = "map_map_of_string") @ApiModelProperty(value = "") @Valid - public Map> getMapMapOfString() { return mapMapOfString; } @@ -132,7 +131,6 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) @JsonProperty(value = "map_of_enum_string") @ApiModelProperty(value = "") - public Map getMapOfEnumString() { return mapOfEnumString; } @@ -161,7 +159,6 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { @JsonProperty(value = "direct_map") @ApiModelProperty(value = "") - public Map getDirectMap() { return directMap; } @@ -190,7 +187,6 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { @JsonProperty(value = "indirect_map") @ApiModelProperty(value = "") - public Map getIndirectMap() { return indirectMap; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 43a6f05b8988..b1c8a828c901 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -61,7 +61,6 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { @JsonProperty(value = "uuid") @ApiModelProperty(value = "") - public UUID getUuid() { return uuid; } @@ -82,7 +81,6 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(Date dateTime) { @JsonProperty(value = "dateTime") @ApiModelProperty(value = "") - public Date getDateTime() { return dateTime; } @@ -111,7 +109,6 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal @JsonProperty(value = "map") @ApiModelProperty(value = "") @Valid - public Map getMap() { return map; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Model200Response.java index c847fcf9cefc..8fa1cf529160 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Model200Response.java @@ -53,7 +53,6 @@ public Model200Response name(Integer name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") - public Integer getName() { return name; } @@ -74,7 +73,6 @@ public Model200Response propertyClass(String propertyClass) { @JsonProperty(value = "class") @ApiModelProperty(value = "") - public String getPropertyClass() { return propertyClass; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ModelApiResponse.java index 7f735683520c..2a0378636c71 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ModelApiResponse.java @@ -57,7 +57,6 @@ public ModelApiResponse code(Integer code) { @JsonProperty(value = "code") @ApiModelProperty(value = "") - public Integer getCode() { return code; } @@ -78,7 +77,6 @@ public ModelApiResponse type(String type) { @JsonProperty(value = "type") @ApiModelProperty(value = "") - public String getType() { return type; } @@ -99,7 +97,6 @@ public ModelApiResponse message(String message) { @JsonProperty(value = "message") @ApiModelProperty(value = "") - public String getMessage() { return message; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ModelFile.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ModelFile.java index 7191a2f0d49f..03301bf2979e 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ModelFile.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ModelFile.java @@ -48,7 +48,6 @@ public ModelFile sourceURI(String sourceURI) { @JsonProperty(value = "sourceURI") @ApiModelProperty(value = "Test capitalization") - public String getSourceURI() { return sourceURI; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ModelList.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ModelList.java index 56fdb3189bfe..f74cc7fb21a0 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ModelList.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ModelList.java @@ -47,7 +47,6 @@ public ModelList _123list(String _123list) { @JsonProperty(value = "123-list") @ApiModelProperty(value = "") - public String get123list() { return _123list; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ModelReturn.java index 31dd5bb219ab..89b36d9e2b77 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ModelReturn.java @@ -48,7 +48,6 @@ public ModelReturn _return(Integer _return) { @JsonProperty(value = "return") @ApiModelProperty(value = "") - public Integer getReturn() { return _return; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Name.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Name.java index 25ae922cb1fa..2b0db677d08b 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Name.java @@ -62,7 +62,6 @@ public Name name(Integer name) { @JsonProperty(value = "name") @ApiModelProperty(required = true, value = "") @NotNull - public Integer getName() { return name; } @@ -83,7 +82,6 @@ public Name snakeCase(Integer snakeCase) { @JsonProperty(value = "snake_case", access = JsonProperty.Access.READ_ONLY) @ApiModelProperty(value = "") - public Integer getSnakeCase() { return snakeCase; } @@ -104,7 +102,6 @@ public Name property(String property) { @JsonProperty(value = "property") @ApiModelProperty(value = "") - public String getProperty() { return property; } @@ -125,7 +122,6 @@ public Name _123number(Integer _123number) { @JsonProperty(value = "123Number", access = JsonProperty.Access.READ_ONLY) @ApiModelProperty(value = "") - public Integer get123number() { return _123number; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/NullableClass.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/NullableClass.java index c10b82cfe392..364022df2aa1 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/NullableClass.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/NullableClass.java @@ -108,7 +108,6 @@ public NullableClass integerProp(Integer integerProp) { @JsonProperty(value = "integer_prop") @ApiModelProperty(value = "") - public Integer getIntegerProp() { return integerProp; } @@ -128,8 +127,7 @@ public NullableClass numberProp(BigDecimal numberProp) { **/ @JsonProperty(value = "number_prop") @ApiModelProperty(value = "") - - + @Valid public BigDecimal getNumberProp() { return numberProp; } @@ -150,7 +148,6 @@ public NullableClass booleanProp(Boolean booleanProp) { @JsonProperty(value = "boolean_prop") @ApiModelProperty(value = "") - public Boolean getBooleanProp() { return booleanProp; } @@ -171,7 +168,6 @@ public NullableClass stringProp(String stringProp) { @JsonProperty(value = "string_prop") @ApiModelProperty(value = "") - public String getStringProp() { return stringProp; } @@ -192,7 +188,6 @@ public NullableClass dateProp(Date dateProp) { @JsonProperty(value = "date_prop") @ApiModelProperty(value = "") - public Date getDateProp() { return dateProp; } @@ -213,7 +208,6 @@ public NullableClass datetimeProp(Date datetimeProp) { @JsonProperty(value = "datetime_prop") @ApiModelProperty(value = "") - public Date getDatetimeProp() { return datetimeProp; } @@ -242,7 +236,6 @@ public NullableClass addArrayNullablePropItem(Object arrayNullablePropItem) { @JsonProperty(value = "array_nullable_prop") @ApiModelProperty(value = "") - public List getArrayNullableProp() { return arrayNullableProp; } @@ -271,7 +264,6 @@ public NullableClass addArrayAndItemsNullablePropItem(Object arrayAndItemsNullab @JsonProperty(value = "array_and_items_nullable_prop") @ApiModelProperty(value = "") - public List getArrayAndItemsNullableProp() { return arrayAndItemsNullableProp; } @@ -300,7 +292,6 @@ public NullableClass addArrayItemsNullableItem(Object arrayItemsNullableItem) { @JsonProperty(value = "array_items_nullable") @ApiModelProperty(value = "") - public List getArrayItemsNullable() { return arrayItemsNullable; } @@ -329,7 +320,6 @@ public NullableClass putObjectNullablePropItem(String key, Object objectNullable @JsonProperty(value = "object_nullable_prop") @ApiModelProperty(value = "") - public Map getObjectNullableProp() { return objectNullableProp; } @@ -358,7 +348,6 @@ public NullableClass putObjectAndItemsNullablePropItem(String key, Object object @JsonProperty(value = "object_and_items_nullable_prop") @ApiModelProperty(value = "") - public Map getObjectAndItemsNullableProp() { return objectAndItemsNullableProp; } @@ -387,7 +376,6 @@ public NullableClass putObjectItemsNullableItem(String key, Object objectItemsNu @JsonProperty(value = "object_items_nullable") @ApiModelProperty(value = "") - public Map getObjectItemsNullable() { return objectItemsNullable; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/NumberOnly.java index 9ccd8246ea54..3a8cec4eb651 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/NumberOnly.java @@ -46,8 +46,7 @@ public NumberOnly justNumber(BigDecimal justNumber) { **/ @JsonProperty(value = "JustNumber") @ApiModelProperty(value = "") - - + @Valid public BigDecimal getJustNumber() { return justNumber; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ObjectWithDeprecatedFields.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ObjectWithDeprecatedFields.java index 9ccd3e8a92fe..e6efa493dc6e 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ObjectWithDeprecatedFields.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ObjectWithDeprecatedFields.java @@ -66,7 +66,6 @@ public ObjectWithDeprecatedFields uuid(String uuid) { @JsonProperty(value = "uuid") @ApiModelProperty(value = "") - public String getUuid() { return uuid; } @@ -86,8 +85,7 @@ public ObjectWithDeprecatedFields id(BigDecimal id) { **/ @JsonProperty(value = "id") @ApiModelProperty(value = "") - - + @Valid public BigDecimal getId() { return id; } @@ -107,8 +105,7 @@ public ObjectWithDeprecatedFields deprecatedRef(DeprecatedObject deprecatedRef) **/ @JsonProperty(value = "deprecatedRef") @ApiModelProperty(value = "") - - + @Valid public DeprecatedObject getDeprecatedRef() { return deprecatedRef; } @@ -137,7 +134,6 @@ public ObjectWithDeprecatedFields addBarsItem(String barsItem) { @JsonProperty(value = "bars") @ApiModelProperty(value = "") - public List getBars() { return bars; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Order.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Order.java index 9476af340bb6..cbdaca28c141 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Order.java @@ -106,7 +106,6 @@ public Order id(Long id) { @JsonProperty(value = "id") @ApiModelProperty(value = "") - public Long getId() { return id; } @@ -127,7 +126,6 @@ public Order petId(Long petId) { @JsonProperty(value = "petId") @ApiModelProperty(value = "") - public Long getPetId() { return petId; } @@ -148,7 +146,6 @@ public Order quantity(Integer quantity) { @JsonProperty(value = "quantity") @ApiModelProperty(value = "") - public Integer getQuantity() { return quantity; } @@ -169,7 +166,6 @@ public Order shipDate(Date shipDate) { @JsonProperty(value = "shipDate") @ApiModelProperty(value = "") - public Date getShipDate() { return shipDate; } @@ -190,7 +186,6 @@ public Order status(StatusEnum status) { @JsonProperty(value = "status") @ApiModelProperty(value = "Order Status") - public StatusEnum getStatus() { return status; } @@ -211,7 +206,6 @@ public Order complete(Boolean complete) { @JsonProperty(value = "complete") @ApiModelProperty(value = "") - public Boolean getComplete() { return complete; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/OuterComposite.java index d2c7e25c90aa..88c2dc7d476a 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/OuterComposite.java @@ -56,8 +56,7 @@ public OuterComposite myNumber(BigDecimal myNumber) { **/ @JsonProperty(value = "my_number") @ApiModelProperty(value = "") - - + @Valid public BigDecimal getMyNumber() { return myNumber; } @@ -78,7 +77,6 @@ public OuterComposite myString(String myString) { @JsonProperty(value = "my_string") @ApiModelProperty(value = "") - public String getMyString() { return myString; } @@ -99,7 +97,6 @@ public OuterComposite myBoolean(Boolean myBoolean) { @JsonProperty(value = "my_boolean") @ApiModelProperty(value = "") - public Boolean getMyBoolean() { return myBoolean; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/OuterObjectWithEnumProperty.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/OuterObjectWithEnumProperty.java index 6265d25ee79b..cd6a0022fbfd 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/OuterObjectWithEnumProperty.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/OuterObjectWithEnumProperty.java @@ -47,8 +47,7 @@ public OuterObjectWithEnumProperty value(OuterEnumInteger value) { **/ @JsonProperty(value = "value") @ApiModelProperty(required = true, value = "") - @NotNull - + @NotNull @Valid public OuterEnumInteger getValue() { return value; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ParentWithNullable.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ParentWithNullable.java index a6fb0146b669..ea64a9001ab1 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ParentWithNullable.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ParentWithNullable.java @@ -88,7 +88,6 @@ public ParentWithNullable type(TypeEnum type) { @JsonProperty(value = "type") @ApiModelProperty(value = "") - public TypeEnum getType() { return type; } @@ -109,7 +108,6 @@ public ParentWithNullable nullableProperty(String nullableProperty) { @JsonProperty(value = "nullableProperty") @ApiModelProperty(value = "") - public String getNullableProperty() { return nullableProperty; } 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 727e3a781927..76f6a5be1ff5 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 @@ -113,7 +113,6 @@ public Pet id(Long id) { @JsonProperty(value = "id") @ApiModelProperty(value = "") - public Long getId() { return id; } @@ -133,8 +132,7 @@ public Pet category(Category category) { **/ @JsonProperty(value = "category") @ApiModelProperty(value = "") - - + @Valid public Category getCategory() { return category; } @@ -155,7 +153,6 @@ public Pet name(String name) { @JsonProperty(value = "name") @ApiModelProperty(example = "doggie", required = true, value = "") @NotNull - public String getName() { return name; } @@ -184,7 +181,6 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { @JsonProperty(value = "photoUrls") @ApiModelProperty(required = true, value = "") @NotNull - public Set getPhotoUrls() { return photoUrls; } @@ -214,7 +210,6 @@ public Pet addTagsItem(Tag tagsItem) { @JsonProperty(value = "tags") @ApiModelProperty(value = "") @Valid - public List<@Valid Tag> getTags() { return tags; } @@ -235,7 +230,6 @@ public Pet status(StatusEnum status) { @JsonProperty(value = "status") @ApiModelProperty(value = "pet status in the store") - public StatusEnum getStatus() { return status; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ReadOnlyFirst.java index e3c3744d4e20..fe0280ecec42 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ReadOnlyFirst.java @@ -51,7 +51,6 @@ public ReadOnlyFirst bar(String bar) { @JsonProperty(value = "bar", access = JsonProperty.Access.READ_ONLY) @ApiModelProperty(value = "") - public String getBar() { return bar; } @@ -72,7 +71,6 @@ public ReadOnlyFirst baz(String baz) { @JsonProperty(value = "baz") @ApiModelProperty(value = "") - public String getBaz() { return baz; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/SpecialModelName.java index b01d1fcaac8c..15c724a14b45 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/SpecialModelName.java @@ -47,7 +47,6 @@ public class SpecialModelName { @JsonProperty(value = "$special[property.name]") @ApiModelProperty(value = "") - public Long get$SpecialPropertyName() { return $specialPropertyName; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Tag.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Tag.java index e08351bc708d..e560173bdf2f 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/Tag.java @@ -51,7 +51,6 @@ public Tag id(Long id) { @JsonProperty(value = "id") @ApiModelProperty(value = "") - public Long getId() { return id; } @@ -72,7 +71,6 @@ public Tag name(String name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") - public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/TestInlineFreeformAdditionalPropertiesRequest.java index d2125ec3fb8a..f9421ca07ac9 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -49,7 +49,6 @@ public TestInlineFreeformAdditionalPropertiesRequest someProperty(String somePro @JsonProperty(value = "someProperty") @ApiModelProperty(value = "") - public String getSomeProperty() { return someProperty; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/User.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/User.java index 85810b74832f..b437f3504e22 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/User.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/User.java @@ -81,7 +81,6 @@ public User id(Long id) { @JsonProperty(value = "id") @ApiModelProperty(value = "") - public Long getId() { return id; } @@ -102,7 +101,6 @@ public User username(String username) { @JsonProperty(value = "username") @ApiModelProperty(value = "") - public String getUsername() { return username; } @@ -123,7 +121,6 @@ public User firstName(String firstName) { @JsonProperty(value = "firstName") @ApiModelProperty(value = "") - public String getFirstName() { return firstName; } @@ -144,7 +141,6 @@ public User lastName(String lastName) { @JsonProperty(value = "lastName") @ApiModelProperty(value = "") - public String getLastName() { return lastName; } @@ -165,7 +161,6 @@ public User email(String email) { @JsonProperty(value = "email") @ApiModelProperty(value = "") - public String getEmail() { return email; } @@ -186,7 +181,6 @@ public User password(String password) { @JsonProperty(value = "password") @ApiModelProperty(value = "") - public String getPassword() { return password; } @@ -207,7 +201,6 @@ public User phone(String phone) { @JsonProperty(value = "phone") @ApiModelProperty(value = "") - public String getPhone() { return phone; } @@ -228,7 +221,6 @@ public User userStatus(Integer userStatus) { @JsonProperty(value = "userStatus") @ApiModelProperty(value = "User Status") - public Integer getUserStatus() { return userStatus; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/AnotherFakeApi.java index c3877c899634..f58c037de3be 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/AnotherFakeApi.java @@ -63,8 +63,7 @@ public AnotherFakeApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Response call123testSpecialTags(@ApiParam(value = "to test uuid example value" ,required=true)@HeaderParam("uuid_test") UUID uuidTest,@ApiParam(value = "client model", required = true) @NotNull - Client body,@Context SecurityContext securityContext) + public Response call123testSpecialTags(@ApiParam(value = "to test uuid example value" ,required=true)@HeaderParam("uuid_test") UUID uuidTest,@ApiParam(value = "client model", required = true) @NotNull @Valid Client body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.call123testSpecialTags(uuidTest, body, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeApi.java index 10df5102d62b..a70e4b27570a 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeApi.java @@ -70,8 +70,7 @@ public FakeApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createXmlItem(@ApiParam(value = "XmlItem Body", required = true) @NotNull - XmlItem xmlItem,@Context SecurityContext securityContext) + public Response createXmlItem(@ApiParam(value = "XmlItem Body", required = true) @NotNull @Valid XmlItem xmlItem,@Context SecurityContext securityContext) throws NotFoundException { return delegate.createXmlItem(xmlItem, securityContext); } @@ -83,8 +82,7 @@ public Response createXmlItem(@ApiParam(value = "XmlItem Body", required = true) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Output boolean", response = Boolean.class) }) - public Response fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body") - Boolean body,@Context SecurityContext securityContext) + public Response fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body") Boolean body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeOuterBooleanSerialize(body, securityContext); } @@ -96,8 +94,7 @@ public Response fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as po @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) - public Response fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body") - OuterComposite body,@Context SecurityContext securityContext) + public Response fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body") @Valid OuterComposite body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeOuterCompositeSerialize(body, securityContext); } @@ -109,8 +106,7 @@ public Response fakeOuterCompositeSerialize(@ApiParam(value = "Input composite a @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Output number", response = BigDecimal.class) }) - public Response fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body") - BigDecimal body,@Context SecurityContext securityContext) + public Response fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body") BigDecimal body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeOuterNumberSerialize(body, securityContext); } @@ -122,8 +118,7 @@ public Response fakeOuterNumberSerialize(@ApiParam(value = "Input number as post @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Output string", response = String.class) }) - public Response fakeOuterStringSerialize(@ApiParam(value = "Input string as post body") - String body,@Context SecurityContext securityContext) + public Response fakeOuterStringSerialize(@ApiParam(value = "Input string as post body") String body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeOuterStringSerialize(body, securityContext); } @@ -135,8 +130,7 @@ public Response fakeOuterStringSerialize(@ApiParam(value = "Input string as post @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Success", response = Void.class) }) - public Response testBodyWithFileSchema(@ApiParam(value = "", required = true) @NotNull - FileSchemaTestClass body,@Context SecurityContext securityContext) + public Response testBodyWithFileSchema(@ApiParam(value = "", required = true) @NotNull @Valid FileSchemaTestClass body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testBodyWithFileSchema(body, securityContext); } @@ -148,9 +142,7 @@ public Response testBodyWithFileSchema(@ApiParam(value = "", required = true) @N @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Success", response = Void.class) }) - public Response testBodyWithQueryParams(@ApiParam(value = "", required = true) @QueryParam("query") @NotNull - String query,@ApiParam(value = "", required = true) @NotNull - User body,@Context SecurityContext securityContext) + public Response testBodyWithQueryParams(@ApiParam(value = "", required = true) @QueryParam("query") @NotNull String query,@ApiParam(value = "", required = true) @NotNull @Valid User body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testBodyWithQueryParams(query, body, securityContext); } @@ -162,8 +154,7 @@ public Response testBodyWithQueryParams(@ApiParam(value = "", required = true) @ @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Response testClientModel(@ApiParam(value = "client model", required = true) @NotNull - Client body,@Context SecurityContext securityContext) + public Response testClientModel(@ApiParam(value = "client model", required = true) @NotNull @Valid Client body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testClientModel(body, securityContext); } @@ -192,11 +183,7 @@ public Response testEndpointParameters(@ApiParam(value = "None", required=true) @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid request", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "Not found", response = Void.class) }) - public Response testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $")@HeaderParam("enum_header_string_array") List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg")@HeaderParam("enum_header_string") String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)") @QueryParam("enum_query_string_array") - List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue = "-efg") @DefaultValue("-efg") @QueryParam("enum_query_string") - String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1, -2") @QueryParam("enum_query_integer") - Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1.1, -1.2") @QueryParam("enum_query_double") - Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $", defaultValue="$") @DefaultValue("$") @FormParam("enum_form_string_array") List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @FormParam("enum_form_string") String enumFormString,@Context SecurityContext securityContext) + public Response testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $")@HeaderParam("enum_header_string_array") List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg")@HeaderParam("enum_header_string") String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)") @QueryParam("enum_query_string_array") @Valid List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue = "-efg") @DefaultValue("-efg") @QueryParam("enum_query_string") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1, -2") @QueryParam("enum_query_integer") Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1.1, -1.2") @QueryParam("enum_query_double") Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $", defaultValue="$") @DefaultValue("$") @FormParam("enum_form_string_array") List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @FormParam("enum_form_string") String enumFormString,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, securityContext); } @@ -208,11 +195,7 @@ public Response testEnumParameters(@ApiParam(value = "Header parameter enum test @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 400, message = "Something wrong", response = Void.class) }) - public Response testGroupParameters(@ApiParam(value = "Required String in group parameters", required = true) @QueryParam("required_string_group") @NotNull - Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true)@HeaderParam("required_boolean_group") Boolean requiredBooleanGroup,@ApiParam(value = "Required Integer in group parameters", required = true) @QueryParam("required_int64_group") @NotNull - Long requiredInt64Group,@ApiParam(value = "String in group parameters") @QueryParam("string_group") - Integer stringGroup,@ApiParam(value = "Boolean in group parameters" )@HeaderParam("boolean_group") Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @QueryParam("int64_group") - Long int64Group,@Context SecurityContext securityContext) + public Response testGroupParameters(@ApiParam(value = "Required String in group parameters", required = true) @QueryParam("required_string_group") @NotNull Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true)@HeaderParam("required_boolean_group") Boolean requiredBooleanGroup,@ApiParam(value = "Required Integer in group parameters", required = true) @QueryParam("required_int64_group") @NotNull Long requiredInt64Group,@ApiParam(value = "String in group parameters") @QueryParam("string_group") Integer stringGroup,@ApiParam(value = "Boolean in group parameters" )@HeaderParam("boolean_group") Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @QueryParam("int64_group") Long int64Group,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, securityContext); } @@ -224,8 +207,7 @@ public Response testGroupParameters(@ApiParam(value = "Required String in group @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response testInlineAdditionalProperties(@ApiParam(value = "request body", required = true) @NotNull @Valid - Map param,@Context SecurityContext securityContext) + public Response testInlineAdditionalProperties(@ApiParam(value = "request body", required = true) @NotNull @Valid Map param,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testInlineAdditionalProperties(param, securityContext); } @@ -249,12 +231,7 @@ public Response testJsonFormData(@ApiParam(value = "field1", required=true) @Fo @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Success", response = Void.class) }) - public Response testQueryParameterCollectionFormat(@ApiParam(value = "", required = true) @QueryParam("pipe") @NotNull @Valid - List pipe,@ApiParam(value = "", required = true) @QueryParam("ioutil") @NotNull @Valid - List ioutil,@ApiParam(value = "", required = true) @QueryParam("http") @NotNull @Valid - List http,@ApiParam(value = "", required = true) @QueryParam("url") @NotNull @Valid - List url,@ApiParam(value = "", required = true) @QueryParam("context") @NotNull @Valid - List context,@Context SecurityContext securityContext) + public Response testQueryParameterCollectionFormat(@ApiParam(value = "", required = true) @QueryParam("pipe") @NotNull @Valid List pipe,@ApiParam(value = "", required = true) @QueryParam("ioutil") @NotNull @Valid List ioutil,@ApiParam(value = "", required = true) @QueryParam("http") @NotNull @Valid List http,@ApiParam(value = "", required = true) @QueryParam("url") @NotNull @Valid List url,@ApiParam(value = "", required = true) @QueryParam("context") @NotNull @Valid List context,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeClassnameTags123Api.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeClassnameTags123Api.java index 3f81edf728f8..35df7d25ecdf 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeClassnameTags123Api.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeClassnameTags123Api.java @@ -64,8 +64,7 @@ public FakeClassnameTags123Api(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Response testClassname(@ApiParam(value = "client model", required = true) @NotNull - Client body,@Context SecurityContext securityContext) + public Response testClassname(@ApiParam(value = "client model", required = true) @NotNull @Valid Client body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testClassname(body, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/PetApi.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/PetApi.java index 55cad9900292..aa7d11cf7660 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/PetApi.java @@ -71,8 +71,7 @@ public PetApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class), @io.swagger.annotations.ApiResponse(code = 405, message = "Invalid input", response = Void.class) }) - public Response addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull - Pet body,@Context SecurityContext securityContext) + public Response addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull @Valid Pet body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.addPet(body, securityContext); } @@ -90,8 +89,7 @@ public Response addPet(@ApiParam(value = "Pet object that needs to be added to t @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid pet value", response = Void.class) }) - public Response deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathParam("petId") @NotNull - Long petId,@ApiParam(value = "" )@HeaderParam("api_key") String apiKey,@Context SecurityContext securityContext) + public Response deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathParam("petId") @NotNull Long petId,@ApiParam(value = "" )@HeaderParam("api_key") String apiKey,@Context SecurityContext securityContext) throws NotFoundException { return delegate.deletePet(petId, apiKey, securityContext); } @@ -109,8 +107,7 @@ public Response deletePet(@ApiParam(value = "Pet id to delete", required = true) @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid status value", response = Void.class) }) - public Response findPetsByStatus(@ApiParam(value = "Status values that need to be considered for filter", required = true) @QueryParam("status") @NotNull - List status,@Context SecurityContext securityContext) + public Response findPetsByStatus(@ApiParam(value = "Status values that need to be considered for filter", required = true) @QueryParam("status") @NotNull @Valid List status,@Context SecurityContext securityContext) throws NotFoundException { return delegate.findPetsByStatus(status, securityContext); } @@ -128,8 +125,7 @@ public Response findPetsByStatus(@ApiParam(value = "Status values that need to b @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "Set"), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid tag value", response = Void.class) }) - public Response findPetsByTags(@ApiParam(value = "Tags to filter by", required = true) @QueryParam("tags") @NotNull @Valid - Set tags,@Context SecurityContext securityContext) + public Response findPetsByTags(@ApiParam(value = "Tags to filter by", required = true) @QueryParam("tags") @NotNull @Valid Set tags,@Context SecurityContext securityContext) throws NotFoundException { return delegate.findPetsByTags(tags, securityContext); } @@ -145,8 +141,7 @@ public Response findPetsByTags(@ApiParam(value = "Tags to filter by", required = @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid ID supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "Pet not found", response = Void.class) }) - public Response getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathParam("petId") @NotNull - Long petId,@Context SecurityContext securityContext) + public Response getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathParam("petId") @NotNull Long petId,@Context SecurityContext securityContext) throws NotFoundException { return delegate.getPetById(petId, securityContext); } @@ -166,8 +161,7 @@ public Response getPetById(@ApiParam(value = "ID of pet to return", required = t @io.swagger.annotations.ApiResponse(code = 404, message = "Pet not found", response = Void.class), @io.swagger.annotations.ApiResponse(code = 405, message = "Validation exception", response = Void.class) }) - public Response updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull - Pet body,@Context SecurityContext securityContext) + public Response updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull @Valid Pet body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.updatePet(body, securityContext); } @@ -184,8 +178,7 @@ public Response updatePet(@ApiParam(value = "Pet object that needs to be added t @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 405, message = "Invalid input", response = Void.class) }) - public Response updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathParam("petId") @NotNull - Long petId,@ApiParam(value = "Updated name of the pet") @FormParam("name") String name,@ApiParam(value = "Updated status of the pet") @FormParam("status") String status,@Context SecurityContext securityContext) + public Response updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathParam("petId") @NotNull Long petId,@ApiParam(value = "Updated name of the pet") @FormParam("name") String name,@ApiParam(value = "Updated status of the pet") @FormParam("status") String status,@Context SecurityContext securityContext) throws NotFoundException { return delegate.updatePetWithForm(petId, name, status, securityContext); } @@ -202,8 +195,7 @@ public Response updatePetWithForm(@ApiParam(value = "ID of pet that needs to be @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) - public Response uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathParam("petId") @NotNull - Long petId,@ApiParam(value = "Additional data to pass to server")@FormDataParam("additionalMetadata") String additionalMetadata, + public Response uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathParam("petId") @NotNull Long petId,@ApiParam(value = "Additional data to pass to server")@FormDataParam("additionalMetadata") String additionalMetadata, @FormDataParam("file") FormDataBodyPart _fileBodypart ,@Context SecurityContext securityContext) throws NotFoundException { return delegate.uploadFile(petId, additionalMetadata, _fileBodypart, securityContext); @@ -221,8 +213,7 @@ public Response uploadFile(@ApiParam(value = "ID of pet to update", required = t @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) - public Response uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathParam("petId") @NotNull - Long petId, + public Response uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathParam("petId") @NotNull Long petId, @FormDataParam("requiredFile") FormDataBodyPart requiredFileBodypart ,@ApiParam(value = "Additional data to pass to server")@FormDataParam("additionalMetadata") String additionalMetadata,@Context SecurityContext securityContext) throws NotFoundException { return delegate.uploadFileWithRequiredFile(petId, requiredFileBodypart, additionalMetadata, securityContext); diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/StoreApi.java index 27219c1695ad..657cb56bb127 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/StoreApi.java @@ -64,8 +64,7 @@ public StoreApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid ID supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "Order not found", response = Void.class) }) - public Response deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathParam("order_id") @NotNull - String orderId,@Context SecurityContext securityContext) + public Response deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathParam("order_id") @NotNull String orderId,@Context SecurityContext securityContext) throws NotFoundException { return delegate.deleteOrder(orderId, securityContext); } @@ -93,8 +92,7 @@ public Response getInventory(@Context SecurityContext securityContext) @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid ID supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "Order not found", response = Void.class) }) - public Response getOrderById(@ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathParam("order_id") @NotNull @Min(1L) @Max(5L) - Long orderId,@Context SecurityContext securityContext) + public Response getOrderById(@ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathParam("order_id") @NotNull @Min(1L) @Max(5L) Long orderId,@Context SecurityContext securityContext) throws NotFoundException { return delegate.getOrderById(orderId, securityContext); } @@ -107,8 +105,7 @@ public Response getOrderById(@ApiParam(value = "ID of pet that needs to be fetch @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Order.class), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid Order", response = Void.class) }) - public Response placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true) @NotNull - Order body,@Context SecurityContext securityContext) + public Response placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true) @NotNull @Valid Order body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.placeOrder(body, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/UserApi.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/UserApi.java index 9f99b70774b8..234fb06575c8 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/UserApi.java @@ -63,8 +63,7 @@ public UserApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUser(@ApiParam(value = "Created user object", required = true) @NotNull - User body,@Context SecurityContext securityContext) + public Response createUser(@ApiParam(value = "Created user object", required = true) @NotNull @Valid User body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.createUser(body, securityContext); } @@ -76,8 +75,7 @@ public Response createUser(@ApiParam(value = "Created user object", required = t @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true) @NotNull @Valid - List<@Valid User> body,@Context SecurityContext securityContext) + public Response createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true) @NotNull @Valid List<@Valid User> body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.createUsersWithArrayInput(body, securityContext); } @@ -89,8 +87,7 @@ public Response createUsersWithArrayInput(@ApiParam(value = "List of user object @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUsersWithListInput(@ApiParam(value = "List of user object", required = true) @NotNull @Valid - List<@Valid User> body,@Context SecurityContext securityContext) + public Response createUsersWithListInput(@ApiParam(value = "List of user object", required = true) @NotNull @Valid List<@Valid User> body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.createUsersWithListInput(body, securityContext); } @@ -103,8 +100,7 @@ public Response createUsersWithListInput(@ApiParam(value = "List of user object" @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid username supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = Void.class) }) - public Response deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathParam("username") @NotNull - String username,@Context SecurityContext securityContext) + public Response deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathParam("username") @NotNull String username,@Context SecurityContext securityContext) throws NotFoundException { return delegate.deleteUser(username, securityContext); } @@ -118,8 +114,7 @@ public Response deleteUser(@ApiParam(value = "The name that needs to be deleted" @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid username supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = Void.class) }) - public Response getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathParam("username") @NotNull - String username,@Context SecurityContext securityContext) + public Response getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathParam("username") @NotNull String username,@Context SecurityContext securityContext) throws NotFoundException { return delegate.getUserByName(username, securityContext); } @@ -132,9 +127,7 @@ public Response getUserByName(@ApiParam(value = "The name that needs to be fetch @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = String.class), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid username/password supplied", response = Void.class) }) - public Response loginUser(@ApiParam(value = "The user name for login", required = true) @QueryParam("username") @NotNull - String username,@ApiParam(value = "The password for login in clear text", required = true) @QueryParam("password") @NotNull - String password,@Context SecurityContext securityContext) + public Response loginUser(@ApiParam(value = "The user name for login", required = true) @QueryParam("username") @NotNull String username,@ApiParam(value = "The password for login in clear text", required = true) @QueryParam("password") @NotNull String password,@Context SecurityContext securityContext) throws NotFoundException { return delegate.loginUser(username, password, securityContext); } @@ -159,9 +152,7 @@ public Response logoutUser(@Context SecurityContext securityContext) @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid user supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = Void.class) }) - public Response updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathParam("username") @NotNull - String username,@ApiParam(value = "Updated user object", required = true) @NotNull - User body,@Context SecurityContext securityContext) + public Response updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathParam("username") @NotNull String username,@ApiParam(value = "Updated user object", required = true) @NotNull @Valid User body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.updateUser(username, body, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesAnyType.java index a4df40550c39..927b9b17c6c3 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -48,7 +48,6 @@ public AdditionalPropertiesAnyType name(String name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") - public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesArray.java index 6583ccc66ce0..059c93738e6f 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -49,7 +49,6 @@ public AdditionalPropertiesArray name(String name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") - public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesBoolean.java index 46be0f789eee..5c6c53411c2d 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -48,7 +48,6 @@ public AdditionalPropertiesBoolean name(String name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") - public String getName() { return 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 cbd1420ce337..46c0cdeb2b1f 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 @@ -108,7 +108,6 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt @JsonProperty(value = "map_string") @ApiModelProperty(value = "") - public Map getMapString() { return mapString; } @@ -137,7 +136,6 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb @JsonProperty(value = "map_number") @ApiModelProperty(value = "") @Valid - public Map getMapNumber() { return mapNumber; } @@ -166,7 +164,6 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege @JsonProperty(value = "map_integer") @ApiModelProperty(value = "") - public Map getMapInteger() { return mapInteger; } @@ -195,7 +192,6 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea @JsonProperty(value = "map_boolean") @ApiModelProperty(value = "") - public Map getMapBoolean() { return mapBoolean; } @@ -224,7 +220,6 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List> getMapArrayInteger() { return mapArrayInteger; } @@ -253,7 +248,6 @@ public AdditionalPropertiesClass putMapArrayAnytypeItem(String key, List @JsonProperty(value = "map_array_anytype") @ApiModelProperty(value = "") @Valid - public Map> getMapArrayAnytype() { return mapArrayAnytype; } @@ -282,7 +276,6 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map> getMapMapString() { return mapMapString; } @@ -311,7 +304,6 @@ public AdditionalPropertiesClass putMapMapAnytypeItem(String key, Map> getMapMapAnytype() { return mapMapAnytype; } @@ -332,7 +324,6 @@ public AdditionalPropertiesClass anytype1(Object anytype1) { @JsonProperty(value = "anytype_1") @ApiModelProperty(value = "") - public Object getAnytype1() { return anytype1; } @@ -353,7 +344,6 @@ public AdditionalPropertiesClass anytype2(Object anytype2) { @JsonProperty(value = "anytype_2") @ApiModelProperty(value = "") - public Object getAnytype2() { return anytype2; } @@ -374,7 +364,6 @@ public AdditionalPropertiesClass anytype3(Object anytype3) { @JsonProperty(value = "anytype_3") @ApiModelProperty(value = "") - public Object getAnytype3() { return anytype3; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesInteger.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesInteger.java index 768723fbf135..c02589a7c1d0 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesInteger.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesInteger.java @@ -48,7 +48,6 @@ public AdditionalPropertiesInteger name(String name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") - public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesNumber.java index ed999237a8a0..cadb5ba92adb 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -49,7 +49,6 @@ public AdditionalPropertiesNumber name(String name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") - public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesObject.java index d683d981499e..690e2ae2f3c5 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -48,7 +48,6 @@ public AdditionalPropertiesObject name(String name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") - public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesString.java index ddcc3a685aa1..3e67e5426881 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/AdditionalPropertiesString.java @@ -48,7 +48,6 @@ public AdditionalPropertiesString name(String name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") - public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Animal.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Animal.java index 65eb059b7f3b..f802f2dd2788 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Animal.java @@ -60,7 +60,6 @@ public Animal className(String className) { @JsonProperty(value = "className") @ApiModelProperty(required = true, value = "") @NotNull - public String getClassName() { return className; } @@ -81,7 +80,6 @@ public Animal color(String color) { @JsonProperty(value = "color") @ApiModelProperty(value = "") - public String getColor() { return color; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index e4e04c60bd50..9966007d0f26 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -58,7 +58,6 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr @JsonProperty(value = "ArrayArrayNumber") @ApiModelProperty(value = "") @Valid - public List> getArrayArrayNumber() { return arrayArrayNumber; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java index 9926c93daf63..4da29b36770a 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -58,7 +58,6 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { @JsonProperty(value = "ArrayNumber") @ApiModelProperty(value = "") @Valid - public List getArrayNumber() { return arrayNumber; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ArrayTest.java index b06a520c8209..6a32cab1dfea 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ArrayTest.java @@ -68,7 +68,6 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { @JsonProperty(value = "array_of_string") @ApiModelProperty(value = "") - public List getArrayOfString() { return arrayOfString; } @@ -97,7 +96,6 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) @JsonProperty(value = "array_array_of_integer") @ApiModelProperty(value = "") @Valid - public List> getArrayArrayOfInteger() { return arrayArrayOfInteger; } @@ -126,7 +124,6 @@ public ArrayTest addArrayArrayOfModelItem(List<@Valid ReadOnlyFirst> arrayArrayO @JsonProperty(value = "array_array_of_model") @ApiModelProperty(value = "") @Valid - public List> getArrayArrayOfModel() { return arrayArrayOfModel; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/BigCat.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/BigCat.java index 0f2f75494953..8993db1f36fb 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/BigCat.java @@ -83,7 +83,6 @@ public BigCat kind(KindEnum kind) { @JsonProperty(value = "kind") @ApiModelProperty(value = "") - public KindEnum getKind() { return kind; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Capitalization.java index 064dad69cf29..275428ac81a1 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Capitalization.java @@ -71,7 +71,6 @@ public Capitalization smallCamel(String smallCamel) { @JsonProperty(value = "smallCamel") @ApiModelProperty(value = "") - public String getSmallCamel() { return smallCamel; } @@ -92,7 +91,6 @@ public Capitalization capitalCamel(String capitalCamel) { @JsonProperty(value = "CapitalCamel") @ApiModelProperty(value = "") - public String getCapitalCamel() { return capitalCamel; } @@ -113,7 +111,6 @@ public Capitalization smallSnake(String smallSnake) { @JsonProperty(value = "small_Snake") @ApiModelProperty(value = "") - public String getSmallSnake() { return smallSnake; } @@ -134,7 +131,6 @@ public Capitalization capitalSnake(String capitalSnake) { @JsonProperty(value = "Capital_Snake") @ApiModelProperty(value = "") - public String getCapitalSnake() { return capitalSnake; } @@ -155,7 +151,6 @@ public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { @JsonProperty(value = "SCA_ETH_Flow_Points") @ApiModelProperty(value = "") - public String getScAETHFlowPoints() { return scAETHFlowPoints; } @@ -176,7 +171,6 @@ public Capitalization ATT_NAME(String ATT_NAME) { @JsonProperty(value = "ATT_NAME") @ApiModelProperty(value = "Name of the pet ") - public String getATTNAME() { return ATT_NAME; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Cat.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Cat.java index b3250b097760..9700c31d1556 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Cat.java @@ -47,7 +47,6 @@ public Cat declawed(Boolean declawed) { @JsonProperty(value = "declawed") @ApiModelProperty(value = "") - public Boolean getDeclawed() { return declawed; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Category.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Category.java index 10a6a540f280..94593d27d7d8 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Category.java @@ -51,7 +51,6 @@ public Category id(Long id) { @JsonProperty(value = "id") @ApiModelProperty(value = "") - public Long getId() { return id; } @@ -72,7 +71,6 @@ public Category name(String name) { @JsonProperty(value = "name") @ApiModelProperty(required = true, value = "") @NotNull - public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ClassModel.java index 89851c227b4d..36bf5159845b 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ClassModel.java @@ -47,7 +47,6 @@ public ClassModel propertyClass(String propertyClass) { @JsonProperty(value = "_class") @ApiModelProperty(value = "") - public String getPropertyClass() { return propertyClass; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Client.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Client.java index 496a4dfc4365..ff200f04c004 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Client.java @@ -46,7 +46,6 @@ public Client client(String client) { @JsonProperty(value = "client") @ApiModelProperty(value = "") - public String getClient() { return client; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Dog.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Dog.java index 05295558b26c..d54c50dfcc38 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Dog.java @@ -47,7 +47,6 @@ public Dog breed(String breed) { @JsonProperty(value = "breed") @ApiModelProperty(value = "") - public String getBreed() { return breed; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/EnumArrays.java index 855a9fe8ee2b..274fbf027af4 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/EnumArrays.java @@ -117,7 +117,6 @@ public EnumArrays justSymbol(JustSymbolEnum justSymbol) { @JsonProperty(value = "just_symbol") @ApiModelProperty(value = "") - public JustSymbolEnum getJustSymbol() { return justSymbol; } @@ -146,7 +145,6 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { @JsonProperty(value = "array_enum") @ApiModelProperty(value = "") - public List getArrayEnum() { return arrayEnum; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/EnumTest.java index 2625ab220e87..f4461b465155 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/EnumTest.java @@ -197,7 +197,6 @@ public EnumTest enumString(EnumStringEnum enumString) { @JsonProperty(value = "enum_string") @ApiModelProperty(value = "") - public EnumStringEnum getEnumString() { return enumString; } @@ -218,7 +217,6 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { @JsonProperty(value = "enum_string_required") @ApiModelProperty(required = true, value = "") @NotNull - public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; } @@ -239,7 +237,6 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { @JsonProperty(value = "enum_integer") @ApiModelProperty(value = "") - public EnumIntegerEnum getEnumInteger() { return enumInteger; } @@ -260,7 +257,6 @@ public EnumTest enumNumber(EnumNumberEnum enumNumber) { @JsonProperty(value = "enum_number") @ApiModelProperty(value = "") - public EnumNumberEnum getEnumNumber() { return enumNumber; } @@ -280,8 +276,7 @@ public EnumTest outerEnum(OuterEnum outerEnum) { **/ @JsonProperty(value = "outerEnum") @ApiModelProperty(value = "") - - + @Valid public OuterEnum getOuterEnum() { return outerEnum; } 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 e44539543450..ccf6d9e47573 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 @@ -54,8 +54,7 @@ public FileSchemaTestClass _file(ModelFile _file) { **/ @JsonProperty(value = "file") @ApiModelProperty(value = "") - - + @Valid public ModelFile getFile() { return _file; } @@ -84,7 +83,6 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { @JsonProperty(value = "files") @ApiModelProperty(value = "") @Valid - public List<@Valid ModelFile> getFiles() { return files; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/FormatTest.java index 8b9e2a6a1774..6d9b649041c2 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/FormatTest.java @@ -118,7 +118,6 @@ public FormatTest integer(Integer integer) { @JsonProperty(value = "integer") @ApiModelProperty(value = "") @Min(10) @Max(100) - public Integer getInteger() { return integer; } @@ -141,7 +140,6 @@ public FormatTest int32(Integer int32) { @JsonProperty(value = "int32") @ApiModelProperty(value = "") @Min(20) @Max(200) - public Integer getInt32() { return int32; } @@ -162,7 +160,6 @@ public FormatTest int64(Long int64) { @JsonProperty(value = "int64") @ApiModelProperty(value = "") - public Long getInt64() { return int64; } @@ -184,8 +181,7 @@ public FormatTest number(BigDecimal number) { **/ @JsonProperty(value = "number") @ApiModelProperty(required = true, value = "") - @NotNull @DecimalMin("32.1") @DecimalMax("543.2") - + @NotNull @Valid @DecimalMin("32.1") @DecimalMax("543.2") public BigDecimal getNumber() { return number; } @@ -208,7 +204,6 @@ public FormatTest _float(Float _float) { @JsonProperty(value = "float") @ApiModelProperty(value = "") @DecimalMin("54.3") @DecimalMax("987.6") - public Float getFloat() { return _float; } @@ -231,7 +226,6 @@ public FormatTest _double(Double _double) { @JsonProperty(value = "double") @ApiModelProperty(value = "") @DecimalMin("67.8") @DecimalMax("123.4") - public Double getDouble() { return _double; } @@ -252,7 +246,6 @@ public FormatTest string(String string) { @JsonProperty(value = "string") @ApiModelProperty(value = "") @Pattern(regexp="/[a-z]/i") - public String getString() { return string; } @@ -273,7 +266,6 @@ public FormatTest _byte(byte[] _byte) { @JsonProperty(value = "byte") @ApiModelProperty(required = true, value = "") @NotNull - public byte[] getByte() { return _byte; } @@ -294,7 +286,6 @@ public FormatTest binary(File binary) { @JsonProperty(value = "binary") @ApiModelProperty(value = "") - public File getBinary() { return binary; } @@ -315,7 +306,6 @@ public FormatTest date(Date date) { @JsonProperty(value = "date") @ApiModelProperty(required = true, value = "") @NotNull - public Date getDate() { return date; } @@ -336,7 +326,6 @@ public FormatTest dateTime(Date dateTime) { @JsonProperty(value = "dateTime") @ApiModelProperty(value = "") - public Date getDateTime() { return dateTime; } @@ -357,7 +346,6 @@ public FormatTest uuid(UUID uuid) { @JsonProperty(value = "uuid") @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") - public UUID getUuid() { return uuid; } @@ -378,7 +366,6 @@ public FormatTest password(String password) { @JsonProperty(value = "password") @ApiModelProperty(required = true, value = "") @NotNull @Size(min=10,max=64) - public String getPassword() { return password; } @@ -398,8 +385,7 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { **/ @JsonProperty(value = "BigDecimal") @ApiModelProperty(value = "") - - + @Valid public BigDecimal getBigDecimal() { return bigDecimal; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java index 282698898b56..94885d038dfd 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java @@ -52,7 +52,6 @@ public HasOnlyReadOnly bar(String bar) { @JsonProperty(value = "bar", access = JsonProperty.Access.READ_ONLY) @ApiModelProperty(value = "") - public String getBar() { return bar; } @@ -73,7 +72,6 @@ public HasOnlyReadOnly foo(String foo) { @JsonProperty(value = "foo", access = JsonProperty.Access.READ_ONLY) @ApiModelProperty(value = "") - public String getFoo() { return foo; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/MapTest.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/MapTest.java index 3d58956c233c..58aa1713d779 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/MapTest.java @@ -103,7 +103,6 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr @JsonProperty(value = "map_map_of_string") @ApiModelProperty(value = "") @Valid - public Map> getMapMapOfString() { return mapMapOfString; } @@ -132,7 +131,6 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) @JsonProperty(value = "map_of_enum_string") @ApiModelProperty(value = "") - public Map getMapOfEnumString() { return mapOfEnumString; } @@ -161,7 +159,6 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { @JsonProperty(value = "direct_map") @ApiModelProperty(value = "") - public Map getDirectMap() { return directMap; } @@ -190,7 +187,6 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { @JsonProperty(value = "indirect_map") @ApiModelProperty(value = "") - public Map getIndirectMap() { return indirectMap; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 43a6f05b8988..b1c8a828c901 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -61,7 +61,6 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { @JsonProperty(value = "uuid") @ApiModelProperty(value = "") - public UUID getUuid() { return uuid; } @@ -82,7 +81,6 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(Date dateTime) { @JsonProperty(value = "dateTime") @ApiModelProperty(value = "") - public Date getDateTime() { return dateTime; } @@ -111,7 +109,6 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal @JsonProperty(value = "map") @ApiModelProperty(value = "") @Valid - public Map getMap() { return map; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Model200Response.java index c847fcf9cefc..8fa1cf529160 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Model200Response.java @@ -53,7 +53,6 @@ public Model200Response name(Integer name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") - public Integer getName() { return name; } @@ -74,7 +73,6 @@ public Model200Response propertyClass(String propertyClass) { @JsonProperty(value = "class") @ApiModelProperty(value = "") - public String getPropertyClass() { return propertyClass; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ModelApiResponse.java index 7f735683520c..2a0378636c71 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ModelApiResponse.java @@ -57,7 +57,6 @@ public ModelApiResponse code(Integer code) { @JsonProperty(value = "code") @ApiModelProperty(value = "") - public Integer getCode() { return code; } @@ -78,7 +77,6 @@ public ModelApiResponse type(String type) { @JsonProperty(value = "type") @ApiModelProperty(value = "") - public String getType() { return type; } @@ -99,7 +97,6 @@ public ModelApiResponse message(String message) { @JsonProperty(value = "message") @ApiModelProperty(value = "") - public String getMessage() { return message; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ModelFile.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ModelFile.java index 7191a2f0d49f..03301bf2979e 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ModelFile.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ModelFile.java @@ -48,7 +48,6 @@ public ModelFile sourceURI(String sourceURI) { @JsonProperty(value = "sourceURI") @ApiModelProperty(value = "Test capitalization") - public String getSourceURI() { return sourceURI; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ModelList.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ModelList.java index 56fdb3189bfe..f74cc7fb21a0 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ModelList.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ModelList.java @@ -47,7 +47,6 @@ public ModelList _123list(String _123list) { @JsonProperty(value = "123-list") @ApiModelProperty(value = "") - public String get123list() { return _123list; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ModelReturn.java index 31dd5bb219ab..89b36d9e2b77 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ModelReturn.java @@ -48,7 +48,6 @@ public ModelReturn _return(Integer _return) { @JsonProperty(value = "return") @ApiModelProperty(value = "") - public Integer getReturn() { return _return; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Name.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Name.java index 25ae922cb1fa..2b0db677d08b 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Name.java @@ -62,7 +62,6 @@ public Name name(Integer name) { @JsonProperty(value = "name") @ApiModelProperty(required = true, value = "") @NotNull - public Integer getName() { return name; } @@ -83,7 +82,6 @@ public Name snakeCase(Integer snakeCase) { @JsonProperty(value = "snake_case", access = JsonProperty.Access.READ_ONLY) @ApiModelProperty(value = "") - public Integer getSnakeCase() { return snakeCase; } @@ -104,7 +102,6 @@ public Name property(String property) { @JsonProperty(value = "property") @ApiModelProperty(value = "") - public String getProperty() { return property; } @@ -125,7 +122,6 @@ public Name _123number(Integer _123number) { @JsonProperty(value = "123Number", access = JsonProperty.Access.READ_ONLY) @ApiModelProperty(value = "") - public Integer get123number() { return _123number; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/NumberOnly.java index 9ccd8246ea54..3a8cec4eb651 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/NumberOnly.java @@ -46,8 +46,7 @@ public NumberOnly justNumber(BigDecimal justNumber) { **/ @JsonProperty(value = "JustNumber") @ApiModelProperty(value = "") - - + @Valid public BigDecimal getJustNumber() { return justNumber; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Order.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Order.java index 9476af340bb6..cbdaca28c141 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Order.java @@ -106,7 +106,6 @@ public Order id(Long id) { @JsonProperty(value = "id") @ApiModelProperty(value = "") - public Long getId() { return id; } @@ -127,7 +126,6 @@ public Order petId(Long petId) { @JsonProperty(value = "petId") @ApiModelProperty(value = "") - public Long getPetId() { return petId; } @@ -148,7 +146,6 @@ public Order quantity(Integer quantity) { @JsonProperty(value = "quantity") @ApiModelProperty(value = "") - public Integer getQuantity() { return quantity; } @@ -169,7 +166,6 @@ public Order shipDate(Date shipDate) { @JsonProperty(value = "shipDate") @ApiModelProperty(value = "") - public Date getShipDate() { return shipDate; } @@ -190,7 +186,6 @@ public Order status(StatusEnum status) { @JsonProperty(value = "status") @ApiModelProperty(value = "Order Status") - public StatusEnum getStatus() { return status; } @@ -211,7 +206,6 @@ public Order complete(Boolean complete) { @JsonProperty(value = "complete") @ApiModelProperty(value = "") - public Boolean getComplete() { return complete; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/OuterComposite.java index d2c7e25c90aa..88c2dc7d476a 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/OuterComposite.java @@ -56,8 +56,7 @@ public OuterComposite myNumber(BigDecimal myNumber) { **/ @JsonProperty(value = "my_number") @ApiModelProperty(value = "") - - + @Valid public BigDecimal getMyNumber() { return myNumber; } @@ -78,7 +77,6 @@ public OuterComposite myString(String myString) { @JsonProperty(value = "my_string") @ApiModelProperty(value = "") - public String getMyString() { return myString; } @@ -99,7 +97,6 @@ public OuterComposite myBoolean(Boolean myBoolean) { @JsonProperty(value = "my_boolean") @ApiModelProperty(value = "") - public Boolean getMyBoolean() { return myBoolean; } 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 727e3a781927..76f6a5be1ff5 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 @@ -113,7 +113,6 @@ public Pet id(Long id) { @JsonProperty(value = "id") @ApiModelProperty(value = "") - public Long getId() { return id; } @@ -133,8 +132,7 @@ public Pet category(Category category) { **/ @JsonProperty(value = "category") @ApiModelProperty(value = "") - - + @Valid public Category getCategory() { return category; } @@ -155,7 +153,6 @@ public Pet name(String name) { @JsonProperty(value = "name") @ApiModelProperty(example = "doggie", required = true, value = "") @NotNull - public String getName() { return name; } @@ -184,7 +181,6 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { @JsonProperty(value = "photoUrls") @ApiModelProperty(required = true, value = "") @NotNull - public Set getPhotoUrls() { return photoUrls; } @@ -214,7 +210,6 @@ public Pet addTagsItem(Tag tagsItem) { @JsonProperty(value = "tags") @ApiModelProperty(value = "") @Valid - public List<@Valid Tag> getTags() { return tags; } @@ -235,7 +230,6 @@ public Pet status(StatusEnum status) { @JsonProperty(value = "status") @ApiModelProperty(value = "pet status in the store") - public StatusEnum getStatus() { return status; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ReadOnlyFirst.java index e3c3744d4e20..fe0280ecec42 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/ReadOnlyFirst.java @@ -51,7 +51,6 @@ public ReadOnlyFirst bar(String bar) { @JsonProperty(value = "bar", access = JsonProperty.Access.READ_ONLY) @ApiModelProperty(value = "") - public String getBar() { return bar; } @@ -72,7 +71,6 @@ public ReadOnlyFirst baz(String baz) { @JsonProperty(value = "baz") @ApiModelProperty(value = "") - public String getBaz() { return baz; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/SpecialModelName.java index 7debf78bd551..6cd123a20c53 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/SpecialModelName.java @@ -47,7 +47,6 @@ public class SpecialModelName { @JsonProperty(value = "$special[property.name]") @ApiModelProperty(value = "") - public Long get$SpecialPropertyName() { return $specialPropertyName; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Tag.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Tag.java index e08351bc708d..e560173bdf2f 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/Tag.java @@ -51,7 +51,6 @@ public Tag id(Long id) { @JsonProperty(value = "id") @ApiModelProperty(value = "") - public Long getId() { return id; } @@ -72,7 +71,6 @@ public Tag name(String name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") - public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/TypeHolderDefault.java index 7db5a5237686..ca08849db72d 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/TypeHolderDefault.java @@ -70,7 +70,6 @@ public TypeHolderDefault stringItem(String stringItem) { @JsonProperty(value = "string_item") @ApiModelProperty(required = true, value = "") @NotNull - public String getStringItem() { return stringItem; } @@ -90,8 +89,7 @@ public TypeHolderDefault numberItem(BigDecimal numberItem) { **/ @JsonProperty(value = "number_item") @ApiModelProperty(required = true, value = "") - @NotNull - + @NotNull @Valid public BigDecimal getNumberItem() { return numberItem; } @@ -112,7 +110,6 @@ public TypeHolderDefault integerItem(Integer integerItem) { @JsonProperty(value = "integer_item") @ApiModelProperty(required = true, value = "") @NotNull - public Integer getIntegerItem() { return integerItem; } @@ -133,7 +130,6 @@ public TypeHolderDefault boolItem(Boolean boolItem) { @JsonProperty(value = "bool_item") @ApiModelProperty(required = true, value = "") @NotNull - public Boolean getBoolItem() { return boolItem; } @@ -162,7 +158,6 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { @JsonProperty(value = "array_item") @ApiModelProperty(required = true, value = "") @NotNull - public List getArrayItem() { return arrayItem; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/TypeHolderExample.java index c0c5314e96a8..0014ea335007 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/TypeHolderExample.java @@ -75,7 +75,6 @@ public TypeHolderExample stringItem(String stringItem) { @JsonProperty(value = "string_item") @ApiModelProperty(example = "what", required = true, value = "") @NotNull - public String getStringItem() { return stringItem; } @@ -95,8 +94,7 @@ public TypeHolderExample numberItem(BigDecimal numberItem) { **/ @JsonProperty(value = "number_item") @ApiModelProperty(example = "1.234", required = true, value = "") - @NotNull - + @NotNull @Valid public BigDecimal getNumberItem() { return numberItem; } @@ -117,7 +115,6 @@ public TypeHolderExample floatItem(Float floatItem) { @JsonProperty(value = "float_item") @ApiModelProperty(example = "1.234", required = true, value = "") @NotNull - public Float getFloatItem() { return floatItem; } @@ -138,7 +135,6 @@ public TypeHolderExample integerItem(Integer integerItem) { @JsonProperty(value = "integer_item") @ApiModelProperty(example = "-2", required = true, value = "") @NotNull - public Integer getIntegerItem() { return integerItem; } @@ -159,7 +155,6 @@ public TypeHolderExample boolItem(Boolean boolItem) { @JsonProperty(value = "bool_item") @ApiModelProperty(example = "true", required = true, value = "") @NotNull - public Boolean getBoolItem() { return boolItem; } @@ -188,7 +183,6 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { @JsonProperty(value = "array_item") @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") @NotNull - public List getArrayItem() { return arrayItem; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/User.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/User.java index 85810b74832f..b437f3504e22 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/User.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/User.java @@ -81,7 +81,6 @@ public User id(Long id) { @JsonProperty(value = "id") @ApiModelProperty(value = "") - public Long getId() { return id; } @@ -102,7 +101,6 @@ public User username(String username) { @JsonProperty(value = "username") @ApiModelProperty(value = "") - public String getUsername() { return username; } @@ -123,7 +121,6 @@ public User firstName(String firstName) { @JsonProperty(value = "firstName") @ApiModelProperty(value = "") - public String getFirstName() { return firstName; } @@ -144,7 +141,6 @@ public User lastName(String lastName) { @JsonProperty(value = "lastName") @ApiModelProperty(value = "") - public String getLastName() { return lastName; } @@ -165,7 +161,6 @@ public User email(String email) { @JsonProperty(value = "email") @ApiModelProperty(value = "") - public String getEmail() { return email; } @@ -186,7 +181,6 @@ public User password(String password) { @JsonProperty(value = "password") @ApiModelProperty(value = "") - public String getPassword() { return password; } @@ -207,7 +201,6 @@ public User phone(String phone) { @JsonProperty(value = "phone") @ApiModelProperty(value = "") - public String getPhone() { return phone; } @@ -228,7 +221,6 @@ public User userStatus(Integer userStatus) { @JsonProperty(value = "userStatus") @ApiModelProperty(value = "User Status") - public Integer getUserStatus() { return userStatus; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/XmlItem.java index 8a286dd3d4d2..0364048b51f9 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/XmlItem.java @@ -190,7 +190,6 @@ public XmlItem attributeString(String attributeString) { @JsonProperty(value = "attribute_string") @ApiModelProperty(example = "string", value = "") - public String getAttributeString() { return attributeString; } @@ -210,8 +209,7 @@ public XmlItem attributeNumber(BigDecimal attributeNumber) { **/ @JsonProperty(value = "attribute_number") @ApiModelProperty(example = "1.234", value = "") - - + @Valid public BigDecimal getAttributeNumber() { return attributeNumber; } @@ -232,7 +230,6 @@ public XmlItem attributeInteger(Integer attributeInteger) { @JsonProperty(value = "attribute_integer") @ApiModelProperty(example = "-2", value = "") - public Integer getAttributeInteger() { return attributeInteger; } @@ -253,7 +250,6 @@ public XmlItem attributeBoolean(Boolean attributeBoolean) { @JsonProperty(value = "attribute_boolean") @ApiModelProperty(example = "true", value = "") - public Boolean getAttributeBoolean() { return attributeBoolean; } @@ -282,7 +278,6 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { @JsonProperty(value = "wrapped_array") @ApiModelProperty(value = "") - public List getWrappedArray() { return wrappedArray; } @@ -303,7 +298,6 @@ public XmlItem nameString(String nameString) { @JsonProperty(value = "name_string") @ApiModelProperty(example = "string", value = "") - public String getNameString() { return nameString; } @@ -323,8 +317,7 @@ public XmlItem nameNumber(BigDecimal nameNumber) { **/ @JsonProperty(value = "name_number") @ApiModelProperty(example = "1.234", value = "") - - + @Valid public BigDecimal getNameNumber() { return nameNumber; } @@ -345,7 +338,6 @@ public XmlItem nameInteger(Integer nameInteger) { @JsonProperty(value = "name_integer") @ApiModelProperty(example = "-2", value = "") - public Integer getNameInteger() { return nameInteger; } @@ -366,7 +358,6 @@ public XmlItem nameBoolean(Boolean nameBoolean) { @JsonProperty(value = "name_boolean") @ApiModelProperty(example = "true", value = "") - public Boolean getNameBoolean() { return nameBoolean; } @@ -395,7 +386,6 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { @JsonProperty(value = "name_array") @ApiModelProperty(value = "") - public List getNameArray() { return nameArray; } @@ -424,7 +414,6 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { @JsonProperty(value = "name_wrapped_array") @ApiModelProperty(value = "") - public List getNameWrappedArray() { return nameWrappedArray; } @@ -445,7 +434,6 @@ public XmlItem prefixString(String prefixString) { @JsonProperty(value = "prefix_string") @ApiModelProperty(example = "string", value = "") - public String getPrefixString() { return prefixString; } @@ -465,8 +453,7 @@ public XmlItem prefixNumber(BigDecimal prefixNumber) { **/ @JsonProperty(value = "prefix_number") @ApiModelProperty(example = "1.234", value = "") - - + @Valid public BigDecimal getPrefixNumber() { return prefixNumber; } @@ -487,7 +474,6 @@ public XmlItem prefixInteger(Integer prefixInteger) { @JsonProperty(value = "prefix_integer") @ApiModelProperty(example = "-2", value = "") - public Integer getPrefixInteger() { return prefixInteger; } @@ -508,7 +494,6 @@ public XmlItem prefixBoolean(Boolean prefixBoolean) { @JsonProperty(value = "prefix_boolean") @ApiModelProperty(example = "true", value = "") - public Boolean getPrefixBoolean() { return prefixBoolean; } @@ -537,7 +522,6 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { @JsonProperty(value = "prefix_array") @ApiModelProperty(value = "") - public List getPrefixArray() { return prefixArray; } @@ -566,7 +550,6 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { @JsonProperty(value = "prefix_wrapped_array") @ApiModelProperty(value = "") - public List getPrefixWrappedArray() { return prefixWrappedArray; } @@ -587,7 +570,6 @@ public XmlItem namespaceString(String namespaceString) { @JsonProperty(value = "namespace_string") @ApiModelProperty(example = "string", value = "") - public String getNamespaceString() { return namespaceString; } @@ -607,8 +589,7 @@ public XmlItem namespaceNumber(BigDecimal namespaceNumber) { **/ @JsonProperty(value = "namespace_number") @ApiModelProperty(example = "1.234", value = "") - - + @Valid public BigDecimal getNamespaceNumber() { return namespaceNumber; } @@ -629,7 +610,6 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { @JsonProperty(value = "namespace_integer") @ApiModelProperty(example = "-2", value = "") - public Integer getNamespaceInteger() { return namespaceInteger; } @@ -650,7 +630,6 @@ public XmlItem namespaceBoolean(Boolean namespaceBoolean) { @JsonProperty(value = "namespace_boolean") @ApiModelProperty(example = "true", value = "") - public Boolean getNamespaceBoolean() { return namespaceBoolean; } @@ -679,7 +658,6 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { @JsonProperty(value = "namespace_array") @ApiModelProperty(value = "") - public List getNamespaceArray() { return namespaceArray; } @@ -708,7 +686,6 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { @JsonProperty(value = "namespace_wrapped_array") @ApiModelProperty(value = "") - public List getNamespaceWrappedArray() { return namespaceWrappedArray; } @@ -729,7 +706,6 @@ public XmlItem prefixNsString(String prefixNsString) { @JsonProperty(value = "prefix_ns_string") @ApiModelProperty(example = "string", value = "") - public String getPrefixNsString() { return prefixNsString; } @@ -749,8 +725,7 @@ public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { **/ @JsonProperty(value = "prefix_ns_number") @ApiModelProperty(example = "1.234", value = "") - - + @Valid public BigDecimal getPrefixNsNumber() { return prefixNsNumber; } @@ -771,7 +746,6 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { @JsonProperty(value = "prefix_ns_integer") @ApiModelProperty(example = "-2", value = "") - public Integer getPrefixNsInteger() { return prefixNsInteger; } @@ -792,7 +766,6 @@ public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { @JsonProperty(value = "prefix_ns_boolean") @ApiModelProperty(example = "true", value = "") - public Boolean getPrefixNsBoolean() { return prefixNsBoolean; } @@ -821,7 +794,6 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { @JsonProperty(value = "prefix_ns_array") @ApiModelProperty(value = "") - public List getPrefixNsArray() { return prefixNsArray; } @@ -850,7 +822,6 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { @JsonProperty(value = "prefix_ns_wrapped_array") @ApiModelProperty(value = "") - public List getPrefixNsWrappedArray() { return prefixNsWrappedArray; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/AnotherFakeApi.java index c5b4111124d7..ac8e60cb4568 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/AnotherFakeApi.java @@ -63,8 +63,7 @@ public AnotherFakeApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Response call123testSpecialTags(@ApiParam(value = "to test uuid example value" ,required=true)@HeaderParam("uuid_test") UUID uuidTest,@ApiParam(value = "client model", required = true) @NotNull - Client body,@Context SecurityContext securityContext) + public Response call123testSpecialTags(@ApiParam(value = "to test uuid example value" ,required=true)@HeaderParam("uuid_test") UUID uuidTest,@ApiParam(value = "client model", required = true) @NotNull @Valid Client body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.call123testSpecialTags(uuidTest, body, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeApi.java index 9d6ffe338798..15f426ba35b8 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeApi.java @@ -71,8 +71,7 @@ public FakeApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createXmlItem(@ApiParam(value = "XmlItem Body", required = true) @NotNull - XmlItem xmlItem,@Context SecurityContext securityContext) + public Response createXmlItem(@ApiParam(value = "XmlItem Body", required = true) @NotNull @Valid XmlItem xmlItem,@Context SecurityContext securityContext) throws NotFoundException { return delegate.createXmlItem(xmlItem, securityContext); } @@ -84,8 +83,7 @@ public Response createXmlItem(@ApiParam(value = "XmlItem Body", required = true) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Output boolean", response = Boolean.class) }) - public Response fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body") - Boolean body,@Context SecurityContext securityContext) + public Response fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body") Boolean body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeOuterBooleanSerialize(body, securityContext); } @@ -97,8 +95,7 @@ public Response fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as po @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) - public Response fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body") - OuterComposite body,@Context SecurityContext securityContext) + public Response fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body") @Valid OuterComposite body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeOuterCompositeSerialize(body, securityContext); } @@ -110,8 +107,7 @@ public Response fakeOuterCompositeSerialize(@ApiParam(value = "Input composite a @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Output number", response = BigDecimal.class) }) - public Response fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body") - BigDecimal body,@Context SecurityContext securityContext) + public Response fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body") BigDecimal body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeOuterNumberSerialize(body, securityContext); } @@ -123,8 +119,7 @@ public Response fakeOuterNumberSerialize(@ApiParam(value = "Input number as post @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Output string", response = String.class) }) - public Response fakeOuterStringSerialize(@ApiParam(value = "Input string as post body") - String body,@Context SecurityContext securityContext) + public Response fakeOuterStringSerialize(@ApiParam(value = "Input string as post body") String body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeOuterStringSerialize(body, securityContext); } @@ -136,8 +131,7 @@ public Response fakeOuterStringSerialize(@ApiParam(value = "Input string as post @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Success", response = Void.class) }) - public Response testBodyWithFileSchema(@ApiParam(value = "", required = true) @NotNull - FileSchemaTestClass body,@Context SecurityContext securityContext) + public Response testBodyWithFileSchema(@ApiParam(value = "", required = true) @NotNull @Valid FileSchemaTestClass body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testBodyWithFileSchema(body, securityContext); } @@ -149,9 +143,7 @@ public Response testBodyWithFileSchema(@ApiParam(value = "", required = true) @N @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Success", response = Void.class) }) - public Response testBodyWithQueryParams(@ApiParam(value = "", required = true) @QueryParam("query") @NotNull - String query,@ApiParam(value = "", required = true) @NotNull - User body,@Context SecurityContext securityContext) + public Response testBodyWithQueryParams(@ApiParam(value = "", required = true) @QueryParam("query") @NotNull String query,@ApiParam(value = "", required = true) @NotNull @Valid User body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testBodyWithQueryParams(query, body, securityContext); } @@ -163,8 +155,7 @@ public Response testBodyWithQueryParams(@ApiParam(value = "", required = true) @ @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Response testClientModel(@ApiParam(value = "client model", required = true) @NotNull - Client body,@Context SecurityContext securityContext) + public Response testClientModel(@ApiParam(value = "client model", required = true) @NotNull @Valid Client body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testClientModel(body, securityContext); } @@ -193,11 +184,7 @@ public Response testEndpointParameters(@ApiParam(value = "None", required=true) @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid request", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "Not found", response = Void.class) }) - public Response testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $")@HeaderParam("enum_header_string_array") List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg")@HeaderParam("enum_header_string") String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)") @QueryParam("enum_query_string_array") - List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue = "-efg") @DefaultValue("-efg") @QueryParam("enum_query_string") - String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1, -2") @QueryParam("enum_query_integer") - Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1.1, -1.2") @QueryParam("enum_query_double") - Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $", defaultValue="$") @DefaultValue("$") @FormParam("enum_form_string_array") List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @FormParam("enum_form_string") String enumFormString,@Context SecurityContext securityContext) + public Response testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $")@HeaderParam("enum_header_string_array") List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg")@HeaderParam("enum_header_string") String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)") @QueryParam("enum_query_string_array") @Valid List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue = "-efg") @DefaultValue("-efg") @QueryParam("enum_query_string") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1, -2") @QueryParam("enum_query_integer") Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1.1, -1.2") @QueryParam("enum_query_double") Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $", defaultValue="$") @DefaultValue("$") @FormParam("enum_form_string_array") List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @FormParam("enum_form_string") String enumFormString,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, securityContext); } @@ -209,11 +196,7 @@ public Response testEnumParameters(@ApiParam(value = "Header parameter enum test @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 400, message = "Something wrong", response = Void.class) }) - public Response testGroupParameters(@ApiParam(value = "Required String in group parameters", required = true) @QueryParam("required_string_group") @NotNull - Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true)@HeaderParam("required_boolean_group") Boolean requiredBooleanGroup,@ApiParam(value = "Required Integer in group parameters", required = true) @QueryParam("required_int64_group") @NotNull - Long requiredInt64Group,@ApiParam(value = "String in group parameters") @QueryParam("string_group") - Integer stringGroup,@ApiParam(value = "Boolean in group parameters" )@HeaderParam("boolean_group") Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @QueryParam("int64_group") - Long int64Group,@Context SecurityContext securityContext) + public Response testGroupParameters(@ApiParam(value = "Required String in group parameters", required = true) @QueryParam("required_string_group") @NotNull Integer requiredStringGroup,@ApiParam(value = "Required Boolean in group parameters" ,required=true)@HeaderParam("required_boolean_group") Boolean requiredBooleanGroup,@ApiParam(value = "Required Integer in group parameters", required = true) @QueryParam("required_int64_group") @NotNull Long requiredInt64Group,@ApiParam(value = "String in group parameters") @QueryParam("string_group") Integer stringGroup,@ApiParam(value = "Boolean in group parameters" )@HeaderParam("boolean_group") Boolean booleanGroup,@ApiParam(value = "Integer in group parameters") @QueryParam("int64_group") Long int64Group,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, securityContext); } @@ -225,8 +208,7 @@ public Response testGroupParameters(@ApiParam(value = "Required String in group @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response testInlineAdditionalProperties(@ApiParam(value = "request body", required = true) @NotNull @Valid - Map param,@Context SecurityContext securityContext) + public Response testInlineAdditionalProperties(@ApiParam(value = "request body", required = true) @NotNull @Valid Map param,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testInlineAdditionalProperties(param, securityContext); } @@ -250,12 +232,7 @@ public Response testJsonFormData(@ApiParam(value = "field1", required=true) @Fo @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Success", response = Void.class) }) - public Response testQueryParameterCollectionFormat(@ApiParam(value = "", required = true) @QueryParam("pipe") @NotNull @Valid - List pipe,@ApiParam(value = "", required = true) @QueryParam("ioutil") @NotNull @Valid - List ioutil,@ApiParam(value = "", required = true) @QueryParam("http") @NotNull @Valid - List http,@ApiParam(value = "", required = true) @QueryParam("url") @NotNull @Valid - List url,@ApiParam(value = "", required = true) @QueryParam("context") @NotNull @Valid - List context,@Context SecurityContext securityContext) + public Response testQueryParameterCollectionFormat(@ApiParam(value = "", required = true) @QueryParam("pipe") @NotNull @Valid List pipe,@ApiParam(value = "", required = true) @QueryParam("ioutil") @NotNull @Valid List ioutil,@ApiParam(value = "", required = true) @QueryParam("http") @NotNull @Valid List http,@ApiParam(value = "", required = true) @QueryParam("url") @NotNull @Valid List url,@ApiParam(value = "", required = true) @QueryParam("context") @NotNull @Valid List context,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, securityContext); } @@ -272,8 +249,7 @@ public Response testQueryParameterCollectionFormat(@ApiParam(value = "", require @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) - public Response uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathParam("petId") @NotNull - Long petId, + public Response uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathParam("petId") @NotNull Long petId, @FormDataParam("requiredFile") FormDataBodyPart requiredFileBodypart ,@ApiParam(value = "Additional data to pass to server")@FormDataParam("additionalMetadata") String additionalMetadata,@Context SecurityContext securityContext) throws NotFoundException { return delegate.uploadFileWithRequiredFile(petId, requiredFileBodypart, additionalMetadata, securityContext); diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java index 93ae57ff3293..4306f605e46c 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java @@ -64,8 +64,7 @@ public FakeClassnameTestApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Response testClassname(@ApiParam(value = "client model", required = true) @NotNull - Client body,@Context SecurityContext securityContext) + public Response testClassname(@ApiParam(value = "client model", required = true) @NotNull @Valid Client body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testClassname(body, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/PetApi.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/PetApi.java index ce57c1eacd2f..5592f807547b 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/PetApi.java @@ -71,8 +71,7 @@ public PetApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class), @io.swagger.annotations.ApiResponse(code = 405, message = "Invalid input", response = Void.class) }) - public Response addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull - Pet body,@Context SecurityContext securityContext) + public Response addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull @Valid Pet body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.addPet(body, securityContext); } @@ -90,8 +89,7 @@ public Response addPet(@ApiParam(value = "Pet object that needs to be added to t @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid pet value", response = Void.class) }) - public Response deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathParam("petId") @NotNull - Long petId,@ApiParam(value = "" )@HeaderParam("api_key") String apiKey,@Context SecurityContext securityContext) + public Response deletePet(@ApiParam(value = "Pet id to delete", required = true) @PathParam("petId") @NotNull Long petId,@ApiParam(value = "" )@HeaderParam("api_key") String apiKey,@Context SecurityContext securityContext) throws NotFoundException { return delegate.deletePet(petId, apiKey, securityContext); } @@ -109,8 +107,7 @@ public Response deletePet(@ApiParam(value = "Pet id to delete", required = true) @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid status value", response = Void.class) }) - public Response findPetsByStatus(@ApiParam(value = "Status values that need to be considered for filter", required = true) @QueryParam("status") @NotNull - List status,@Context SecurityContext securityContext) + public Response findPetsByStatus(@ApiParam(value = "Status values that need to be considered for filter", required = true) @QueryParam("status") @NotNull @Valid List status,@Context SecurityContext securityContext) throws NotFoundException { return delegate.findPetsByStatus(status, securityContext); } @@ -128,8 +125,7 @@ public Response findPetsByStatus(@ApiParam(value = "Status values that need to b @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "Set"), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid tag value", response = Void.class) }) - public Response findPetsByTags(@ApiParam(value = "Tags to filter by", required = true) @QueryParam("tags") @NotNull @Valid - Set tags,@Context SecurityContext securityContext) + public Response findPetsByTags(@ApiParam(value = "Tags to filter by", required = true) @QueryParam("tags") @NotNull @Valid Set tags,@Context SecurityContext securityContext) throws NotFoundException { return delegate.findPetsByTags(tags, securityContext); } @@ -145,8 +141,7 @@ public Response findPetsByTags(@ApiParam(value = "Tags to filter by", required = @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid ID supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "Pet not found", response = Void.class) }) - public Response getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathParam("petId") @NotNull - Long petId,@Context SecurityContext securityContext) + public Response getPetById(@ApiParam(value = "ID of pet to return", required = true) @PathParam("petId") @NotNull Long petId,@Context SecurityContext securityContext) throws NotFoundException { return delegate.getPetById(petId, securityContext); } @@ -166,8 +161,7 @@ public Response getPetById(@ApiParam(value = "ID of pet to return", required = t @io.swagger.annotations.ApiResponse(code = 404, message = "Pet not found", response = Void.class), @io.swagger.annotations.ApiResponse(code = 405, message = "Validation exception", response = Void.class) }) - public Response updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull - Pet body,@Context SecurityContext securityContext) + public Response updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull @Valid Pet body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.updatePet(body, securityContext); } @@ -184,8 +178,7 @@ public Response updatePet(@ApiParam(value = "Pet object that needs to be added t @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 405, message = "Invalid input", response = Void.class) }) - public Response updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathParam("petId") @NotNull - Long petId,@ApiParam(value = "Updated name of the pet") @FormParam("name") String name,@ApiParam(value = "Updated status of the pet") @FormParam("status") String status,@Context SecurityContext securityContext) + public Response updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated", required = true) @PathParam("petId") @NotNull Long petId,@ApiParam(value = "Updated name of the pet") @FormParam("name") String name,@ApiParam(value = "Updated status of the pet") @FormParam("status") String status,@Context SecurityContext securityContext) throws NotFoundException { return delegate.updatePetWithForm(petId, name, status, securityContext); } @@ -202,8 +195,7 @@ public Response updatePetWithForm(@ApiParam(value = "ID of pet that needs to be @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) - public Response uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathParam("petId") @NotNull - Long petId,@ApiParam(value = "Additional data to pass to server")@FormDataParam("additionalMetadata") String additionalMetadata, + public Response uploadFile(@ApiParam(value = "ID of pet to update", required = true) @PathParam("petId") @NotNull Long petId,@ApiParam(value = "Additional data to pass to server")@FormDataParam("additionalMetadata") String additionalMetadata, @FormDataParam("file") FormDataBodyPart _fileBodypart ,@Context SecurityContext securityContext) throws NotFoundException { return delegate.uploadFile(petId, additionalMetadata, _fileBodypart, securityContext); diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/StoreApi.java index 38275029d254..4ef38ebed15f 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/StoreApi.java @@ -64,8 +64,7 @@ public StoreApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid ID supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "Order not found", response = Void.class) }) - public Response deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathParam("order_id") @NotNull - String orderId,@Context SecurityContext securityContext) + public Response deleteOrder(@ApiParam(value = "ID of the order that needs to be deleted", required = true) @PathParam("order_id") @NotNull String orderId,@Context SecurityContext securityContext) throws NotFoundException { return delegate.deleteOrder(orderId, securityContext); } @@ -93,8 +92,7 @@ public Response getInventory(@Context SecurityContext securityContext) @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid ID supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "Order not found", response = Void.class) }) - public Response getOrderById(@ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathParam("order_id") @NotNull @Min(1L) @Max(5L) - Long orderId,@Context SecurityContext securityContext) + public Response getOrderById(@ApiParam(value = "ID of pet that needs to be fetched", required = true) @PathParam("order_id") @NotNull @Min(1L) @Max(5L) Long orderId,@Context SecurityContext securityContext) throws NotFoundException { return delegate.getOrderById(orderId, securityContext); } @@ -107,8 +105,7 @@ public Response getOrderById(@ApiParam(value = "ID of pet that needs to be fetch @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Order.class), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid Order", response = Void.class) }) - public Response placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true) @NotNull - Order body,@Context SecurityContext securityContext) + public Response placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true) @NotNull @Valid Order body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.placeOrder(body, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/UserApi.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/UserApi.java index 6cbf6ba7f323..e9bcc058068f 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/UserApi.java @@ -63,8 +63,7 @@ public UserApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUser(@ApiParam(value = "Created user object", required = true) @NotNull - User body,@Context SecurityContext securityContext) + public Response createUser(@ApiParam(value = "Created user object", required = true) @NotNull @Valid User body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.createUser(body, securityContext); } @@ -76,8 +75,7 @@ public Response createUser(@ApiParam(value = "Created user object", required = t @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true) @NotNull @Valid - List<@Valid User> body,@Context SecurityContext securityContext) + public Response createUsersWithArrayInput(@ApiParam(value = "List of user object", required = true) @NotNull @Valid List<@Valid User> body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.createUsersWithArrayInput(body, securityContext); } @@ -89,8 +87,7 @@ public Response createUsersWithArrayInput(@ApiParam(value = "List of user object @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUsersWithListInput(@ApiParam(value = "List of user object", required = true) @NotNull @Valid - List<@Valid User> body,@Context SecurityContext securityContext) + public Response createUsersWithListInput(@ApiParam(value = "List of user object", required = true) @NotNull @Valid List<@Valid User> body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.createUsersWithListInput(body, securityContext); } @@ -103,8 +100,7 @@ public Response createUsersWithListInput(@ApiParam(value = "List of user object" @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid username supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = Void.class) }) - public Response deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathParam("username") @NotNull - String username,@Context SecurityContext securityContext) + public Response deleteUser(@ApiParam(value = "The name that needs to be deleted", required = true) @PathParam("username") @NotNull String username,@Context SecurityContext securityContext) throws NotFoundException { return delegate.deleteUser(username, securityContext); } @@ -118,8 +114,7 @@ public Response deleteUser(@ApiParam(value = "The name that needs to be deleted" @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid username supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = Void.class) }) - public Response getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathParam("username") @NotNull - String username,@Context SecurityContext securityContext) + public Response getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing.", required = true) @PathParam("username") @NotNull String username,@Context SecurityContext securityContext) throws NotFoundException { return delegate.getUserByName(username, securityContext); } @@ -132,9 +127,7 @@ public Response getUserByName(@ApiParam(value = "The name that needs to be fetch @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = String.class), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid username/password supplied", response = Void.class) }) - public Response loginUser(@ApiParam(value = "The user name for login", required = true) @QueryParam("username") @NotNull - String username,@ApiParam(value = "The password for login in clear text", required = true) @QueryParam("password") @NotNull - String password,@Context SecurityContext securityContext) + public Response loginUser(@ApiParam(value = "The user name for login", required = true) @QueryParam("username") @NotNull String username,@ApiParam(value = "The password for login in clear text", required = true) @QueryParam("password") @NotNull String password,@Context SecurityContext securityContext) throws NotFoundException { return delegate.loginUser(username, password, securityContext); } @@ -159,9 +152,7 @@ public Response logoutUser(@Context SecurityContext securityContext) @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid user supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = Void.class) }) - public Response updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathParam("username") @NotNull - String username,@ApiParam(value = "Updated user object", required = true) @NotNull - User body,@Context SecurityContext securityContext) + public Response updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathParam("username") @NotNull String username,@ApiParam(value = "Updated user object", required = true) @NotNull @Valid User body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.updateUser(username, body, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesAnyType.java index a4df40550c39..927b9b17c6c3 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -48,7 +48,6 @@ public AdditionalPropertiesAnyType name(String name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") - public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesArray.java index 6583ccc66ce0..059c93738e6f 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -49,7 +49,6 @@ public AdditionalPropertiesArray name(String name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") - public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesBoolean.java index 46be0f789eee..5c6c53411c2d 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -48,7 +48,6 @@ public AdditionalPropertiesBoolean name(String name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") - public String getName() { return 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 cbd1420ce337..46c0cdeb2b1f 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 @@ -108,7 +108,6 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt @JsonProperty(value = "map_string") @ApiModelProperty(value = "") - public Map getMapString() { return mapString; } @@ -137,7 +136,6 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb @JsonProperty(value = "map_number") @ApiModelProperty(value = "") @Valid - public Map getMapNumber() { return mapNumber; } @@ -166,7 +164,6 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege @JsonProperty(value = "map_integer") @ApiModelProperty(value = "") - public Map getMapInteger() { return mapInteger; } @@ -195,7 +192,6 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea @JsonProperty(value = "map_boolean") @ApiModelProperty(value = "") - public Map getMapBoolean() { return mapBoolean; } @@ -224,7 +220,6 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List> getMapArrayInteger() { return mapArrayInteger; } @@ -253,7 +248,6 @@ public AdditionalPropertiesClass putMapArrayAnytypeItem(String key, List @JsonProperty(value = "map_array_anytype") @ApiModelProperty(value = "") @Valid - public Map> getMapArrayAnytype() { return mapArrayAnytype; } @@ -282,7 +276,6 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map> getMapMapString() { return mapMapString; } @@ -311,7 +304,6 @@ public AdditionalPropertiesClass putMapMapAnytypeItem(String key, Map> getMapMapAnytype() { return mapMapAnytype; } @@ -332,7 +324,6 @@ public AdditionalPropertiesClass anytype1(Object anytype1) { @JsonProperty(value = "anytype_1") @ApiModelProperty(value = "") - public Object getAnytype1() { return anytype1; } @@ -353,7 +344,6 @@ public AdditionalPropertiesClass anytype2(Object anytype2) { @JsonProperty(value = "anytype_2") @ApiModelProperty(value = "") - public Object getAnytype2() { return anytype2; } @@ -374,7 +364,6 @@ public AdditionalPropertiesClass anytype3(Object anytype3) { @JsonProperty(value = "anytype_3") @ApiModelProperty(value = "") - public Object getAnytype3() { return anytype3; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesInteger.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesInteger.java index 768723fbf135..c02589a7c1d0 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesInteger.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesInteger.java @@ -48,7 +48,6 @@ public AdditionalPropertiesInteger name(String name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") - public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesNumber.java index ed999237a8a0..cadb5ba92adb 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -49,7 +49,6 @@ public AdditionalPropertiesNumber name(String name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") - public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesObject.java index d683d981499e..690e2ae2f3c5 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -48,7 +48,6 @@ public AdditionalPropertiesObject name(String name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") - public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesString.java index ddcc3a685aa1..3e67e5426881 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/AdditionalPropertiesString.java @@ -48,7 +48,6 @@ public AdditionalPropertiesString name(String name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") - public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Animal.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Animal.java index 65eb059b7f3b..f802f2dd2788 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Animal.java @@ -60,7 +60,6 @@ public Animal className(String className) { @JsonProperty(value = "className") @ApiModelProperty(required = true, value = "") @NotNull - public String getClassName() { return className; } @@ -81,7 +80,6 @@ public Animal color(String color) { @JsonProperty(value = "color") @ApiModelProperty(value = "") - public String getColor() { return color; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index e4e04c60bd50..9966007d0f26 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -58,7 +58,6 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr @JsonProperty(value = "ArrayArrayNumber") @ApiModelProperty(value = "") @Valid - public List> getArrayArrayNumber() { return arrayArrayNumber; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java index 9926c93daf63..4da29b36770a 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -58,7 +58,6 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { @JsonProperty(value = "ArrayNumber") @ApiModelProperty(value = "") @Valid - public List getArrayNumber() { return arrayNumber; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ArrayTest.java index b06a520c8209..6a32cab1dfea 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ArrayTest.java @@ -68,7 +68,6 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { @JsonProperty(value = "array_of_string") @ApiModelProperty(value = "") - public List getArrayOfString() { return arrayOfString; } @@ -97,7 +96,6 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) @JsonProperty(value = "array_array_of_integer") @ApiModelProperty(value = "") @Valid - public List> getArrayArrayOfInteger() { return arrayArrayOfInteger; } @@ -126,7 +124,6 @@ public ArrayTest addArrayArrayOfModelItem(List<@Valid ReadOnlyFirst> arrayArrayO @JsonProperty(value = "array_array_of_model") @ApiModelProperty(value = "") @Valid - public List> getArrayArrayOfModel() { return arrayArrayOfModel; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/BigCat.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/BigCat.java index 0f2f75494953..8993db1f36fb 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/BigCat.java @@ -83,7 +83,6 @@ public BigCat kind(KindEnum kind) { @JsonProperty(value = "kind") @ApiModelProperty(value = "") - public KindEnum getKind() { return kind; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Capitalization.java index 064dad69cf29..275428ac81a1 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Capitalization.java @@ -71,7 +71,6 @@ public Capitalization smallCamel(String smallCamel) { @JsonProperty(value = "smallCamel") @ApiModelProperty(value = "") - public String getSmallCamel() { return smallCamel; } @@ -92,7 +91,6 @@ public Capitalization capitalCamel(String capitalCamel) { @JsonProperty(value = "CapitalCamel") @ApiModelProperty(value = "") - public String getCapitalCamel() { return capitalCamel; } @@ -113,7 +111,6 @@ public Capitalization smallSnake(String smallSnake) { @JsonProperty(value = "small_Snake") @ApiModelProperty(value = "") - public String getSmallSnake() { return smallSnake; } @@ -134,7 +131,6 @@ public Capitalization capitalSnake(String capitalSnake) { @JsonProperty(value = "Capital_Snake") @ApiModelProperty(value = "") - public String getCapitalSnake() { return capitalSnake; } @@ -155,7 +151,6 @@ public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { @JsonProperty(value = "SCA_ETH_Flow_Points") @ApiModelProperty(value = "") - public String getScAETHFlowPoints() { return scAETHFlowPoints; } @@ -176,7 +171,6 @@ public Capitalization ATT_NAME(String ATT_NAME) { @JsonProperty(value = "ATT_NAME") @ApiModelProperty(value = "Name of the pet ") - public String getATTNAME() { return ATT_NAME; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Cat.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Cat.java index b3250b097760..9700c31d1556 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Cat.java @@ -47,7 +47,6 @@ public Cat declawed(Boolean declawed) { @JsonProperty(value = "declawed") @ApiModelProperty(value = "") - public Boolean getDeclawed() { return declawed; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Category.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Category.java index 10a6a540f280..94593d27d7d8 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Category.java @@ -51,7 +51,6 @@ public Category id(Long id) { @JsonProperty(value = "id") @ApiModelProperty(value = "") - public Long getId() { return id; } @@ -72,7 +71,6 @@ public Category name(String name) { @JsonProperty(value = "name") @ApiModelProperty(required = true, value = "") @NotNull - public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ClassModel.java index 89851c227b4d..36bf5159845b 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ClassModel.java @@ -47,7 +47,6 @@ public ClassModel propertyClass(String propertyClass) { @JsonProperty(value = "_class") @ApiModelProperty(value = "") - public String getPropertyClass() { return propertyClass; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Client.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Client.java index 496a4dfc4365..ff200f04c004 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Client.java @@ -46,7 +46,6 @@ public Client client(String client) { @JsonProperty(value = "client") @ApiModelProperty(value = "") - public String getClient() { return client; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Dog.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Dog.java index 05295558b26c..d54c50dfcc38 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Dog.java @@ -47,7 +47,6 @@ public Dog breed(String breed) { @JsonProperty(value = "breed") @ApiModelProperty(value = "") - public String getBreed() { return breed; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/EnumArrays.java index 855a9fe8ee2b..274fbf027af4 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/EnumArrays.java @@ -117,7 +117,6 @@ public EnumArrays justSymbol(JustSymbolEnum justSymbol) { @JsonProperty(value = "just_symbol") @ApiModelProperty(value = "") - public JustSymbolEnum getJustSymbol() { return justSymbol; } @@ -146,7 +145,6 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { @JsonProperty(value = "array_enum") @ApiModelProperty(value = "") - public List getArrayEnum() { return arrayEnum; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/EnumTest.java index 2625ab220e87..f4461b465155 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/EnumTest.java @@ -197,7 +197,6 @@ public EnumTest enumString(EnumStringEnum enumString) { @JsonProperty(value = "enum_string") @ApiModelProperty(value = "") - public EnumStringEnum getEnumString() { return enumString; } @@ -218,7 +217,6 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { @JsonProperty(value = "enum_string_required") @ApiModelProperty(required = true, value = "") @NotNull - public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; } @@ -239,7 +237,6 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { @JsonProperty(value = "enum_integer") @ApiModelProperty(value = "") - public EnumIntegerEnum getEnumInteger() { return enumInteger; } @@ -260,7 +257,6 @@ public EnumTest enumNumber(EnumNumberEnum enumNumber) { @JsonProperty(value = "enum_number") @ApiModelProperty(value = "") - public EnumNumberEnum getEnumNumber() { return enumNumber; } @@ -280,8 +276,7 @@ public EnumTest outerEnum(OuterEnum outerEnum) { **/ @JsonProperty(value = "outerEnum") @ApiModelProperty(value = "") - - + @Valid public OuterEnum getOuterEnum() { return outerEnum; } 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 e44539543450..ccf6d9e47573 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 @@ -54,8 +54,7 @@ public FileSchemaTestClass _file(ModelFile _file) { **/ @JsonProperty(value = "file") @ApiModelProperty(value = "") - - + @Valid public ModelFile getFile() { return _file; } @@ -84,7 +83,6 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { @JsonProperty(value = "files") @ApiModelProperty(value = "") @Valid - public List<@Valid ModelFile> getFiles() { return files; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/FormatTest.java index 8b9e2a6a1774..6d9b649041c2 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/FormatTest.java @@ -118,7 +118,6 @@ public FormatTest integer(Integer integer) { @JsonProperty(value = "integer") @ApiModelProperty(value = "") @Min(10) @Max(100) - public Integer getInteger() { return integer; } @@ -141,7 +140,6 @@ public FormatTest int32(Integer int32) { @JsonProperty(value = "int32") @ApiModelProperty(value = "") @Min(20) @Max(200) - public Integer getInt32() { return int32; } @@ -162,7 +160,6 @@ public FormatTest int64(Long int64) { @JsonProperty(value = "int64") @ApiModelProperty(value = "") - public Long getInt64() { return int64; } @@ -184,8 +181,7 @@ public FormatTest number(BigDecimal number) { **/ @JsonProperty(value = "number") @ApiModelProperty(required = true, value = "") - @NotNull @DecimalMin("32.1") @DecimalMax("543.2") - + @NotNull @Valid @DecimalMin("32.1") @DecimalMax("543.2") public BigDecimal getNumber() { return number; } @@ -208,7 +204,6 @@ public FormatTest _float(Float _float) { @JsonProperty(value = "float") @ApiModelProperty(value = "") @DecimalMin("54.3") @DecimalMax("987.6") - public Float getFloat() { return _float; } @@ -231,7 +226,6 @@ public FormatTest _double(Double _double) { @JsonProperty(value = "double") @ApiModelProperty(value = "") @DecimalMin("67.8") @DecimalMax("123.4") - public Double getDouble() { return _double; } @@ -252,7 +246,6 @@ public FormatTest string(String string) { @JsonProperty(value = "string") @ApiModelProperty(value = "") @Pattern(regexp="/[a-z]/i") - public String getString() { return string; } @@ -273,7 +266,6 @@ public FormatTest _byte(byte[] _byte) { @JsonProperty(value = "byte") @ApiModelProperty(required = true, value = "") @NotNull - public byte[] getByte() { return _byte; } @@ -294,7 +286,6 @@ public FormatTest binary(File binary) { @JsonProperty(value = "binary") @ApiModelProperty(value = "") - public File getBinary() { return binary; } @@ -315,7 +306,6 @@ public FormatTest date(Date date) { @JsonProperty(value = "date") @ApiModelProperty(required = true, value = "") @NotNull - public Date getDate() { return date; } @@ -336,7 +326,6 @@ public FormatTest dateTime(Date dateTime) { @JsonProperty(value = "dateTime") @ApiModelProperty(value = "") - public Date getDateTime() { return dateTime; } @@ -357,7 +346,6 @@ public FormatTest uuid(UUID uuid) { @JsonProperty(value = "uuid") @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") - public UUID getUuid() { return uuid; } @@ -378,7 +366,6 @@ public FormatTest password(String password) { @JsonProperty(value = "password") @ApiModelProperty(required = true, value = "") @NotNull @Size(min=10,max=64) - public String getPassword() { return password; } @@ -398,8 +385,7 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { **/ @JsonProperty(value = "BigDecimal") @ApiModelProperty(value = "") - - + @Valid public BigDecimal getBigDecimal() { return bigDecimal; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java index 282698898b56..94885d038dfd 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java @@ -52,7 +52,6 @@ public HasOnlyReadOnly bar(String bar) { @JsonProperty(value = "bar", access = JsonProperty.Access.READ_ONLY) @ApiModelProperty(value = "") - public String getBar() { return bar; } @@ -73,7 +72,6 @@ public HasOnlyReadOnly foo(String foo) { @JsonProperty(value = "foo", access = JsonProperty.Access.READ_ONLY) @ApiModelProperty(value = "") - public String getFoo() { return foo; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/MapTest.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/MapTest.java index 3d58956c233c..58aa1713d779 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/MapTest.java @@ -103,7 +103,6 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr @JsonProperty(value = "map_map_of_string") @ApiModelProperty(value = "") @Valid - public Map> getMapMapOfString() { return mapMapOfString; } @@ -132,7 +131,6 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) @JsonProperty(value = "map_of_enum_string") @ApiModelProperty(value = "") - public Map getMapOfEnumString() { return mapOfEnumString; } @@ -161,7 +159,6 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { @JsonProperty(value = "direct_map") @ApiModelProperty(value = "") - public Map getDirectMap() { return directMap; } @@ -190,7 +187,6 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { @JsonProperty(value = "indirect_map") @ApiModelProperty(value = "") - public Map getIndirectMap() { return indirectMap; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 43a6f05b8988..b1c8a828c901 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -61,7 +61,6 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { @JsonProperty(value = "uuid") @ApiModelProperty(value = "") - public UUID getUuid() { return uuid; } @@ -82,7 +81,6 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(Date dateTime) { @JsonProperty(value = "dateTime") @ApiModelProperty(value = "") - public Date getDateTime() { return dateTime; } @@ -111,7 +109,6 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal @JsonProperty(value = "map") @ApiModelProperty(value = "") @Valid - public Map getMap() { return map; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Model200Response.java index c847fcf9cefc..8fa1cf529160 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Model200Response.java @@ -53,7 +53,6 @@ public Model200Response name(Integer name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") - public Integer getName() { return name; } @@ -74,7 +73,6 @@ public Model200Response propertyClass(String propertyClass) { @JsonProperty(value = "class") @ApiModelProperty(value = "") - public String getPropertyClass() { return propertyClass; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ModelApiResponse.java index 7f735683520c..2a0378636c71 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ModelApiResponse.java @@ -57,7 +57,6 @@ public ModelApiResponse code(Integer code) { @JsonProperty(value = "code") @ApiModelProperty(value = "") - public Integer getCode() { return code; } @@ -78,7 +77,6 @@ public ModelApiResponse type(String type) { @JsonProperty(value = "type") @ApiModelProperty(value = "") - public String getType() { return type; } @@ -99,7 +97,6 @@ public ModelApiResponse message(String message) { @JsonProperty(value = "message") @ApiModelProperty(value = "") - public String getMessage() { return message; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ModelFile.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ModelFile.java index 7191a2f0d49f..03301bf2979e 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ModelFile.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ModelFile.java @@ -48,7 +48,6 @@ public ModelFile sourceURI(String sourceURI) { @JsonProperty(value = "sourceURI") @ApiModelProperty(value = "Test capitalization") - public String getSourceURI() { return sourceURI; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ModelList.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ModelList.java index 56fdb3189bfe..f74cc7fb21a0 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ModelList.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ModelList.java @@ -47,7 +47,6 @@ public ModelList _123list(String _123list) { @JsonProperty(value = "123-list") @ApiModelProperty(value = "") - public String get123list() { return _123list; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ModelReturn.java index 31dd5bb219ab..89b36d9e2b77 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ModelReturn.java @@ -48,7 +48,6 @@ public ModelReturn _return(Integer _return) { @JsonProperty(value = "return") @ApiModelProperty(value = "") - public Integer getReturn() { return _return; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Name.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Name.java index 25ae922cb1fa..2b0db677d08b 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Name.java @@ -62,7 +62,6 @@ public Name name(Integer name) { @JsonProperty(value = "name") @ApiModelProperty(required = true, value = "") @NotNull - public Integer getName() { return name; } @@ -83,7 +82,6 @@ public Name snakeCase(Integer snakeCase) { @JsonProperty(value = "snake_case", access = JsonProperty.Access.READ_ONLY) @ApiModelProperty(value = "") - public Integer getSnakeCase() { return snakeCase; } @@ -104,7 +102,6 @@ public Name property(String property) { @JsonProperty(value = "property") @ApiModelProperty(value = "") - public String getProperty() { return property; } @@ -125,7 +122,6 @@ public Name _123number(Integer _123number) { @JsonProperty(value = "123Number", access = JsonProperty.Access.READ_ONLY) @ApiModelProperty(value = "") - public Integer get123number() { return _123number; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/NumberOnly.java index 9ccd8246ea54..3a8cec4eb651 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/NumberOnly.java @@ -46,8 +46,7 @@ public NumberOnly justNumber(BigDecimal justNumber) { **/ @JsonProperty(value = "JustNumber") @ApiModelProperty(value = "") - - + @Valid public BigDecimal getJustNumber() { return justNumber; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Order.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Order.java index 9476af340bb6..cbdaca28c141 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Order.java @@ -106,7 +106,6 @@ public Order id(Long id) { @JsonProperty(value = "id") @ApiModelProperty(value = "") - public Long getId() { return id; } @@ -127,7 +126,6 @@ public Order petId(Long petId) { @JsonProperty(value = "petId") @ApiModelProperty(value = "") - public Long getPetId() { return petId; } @@ -148,7 +146,6 @@ public Order quantity(Integer quantity) { @JsonProperty(value = "quantity") @ApiModelProperty(value = "") - public Integer getQuantity() { return quantity; } @@ -169,7 +166,6 @@ public Order shipDate(Date shipDate) { @JsonProperty(value = "shipDate") @ApiModelProperty(value = "") - public Date getShipDate() { return shipDate; } @@ -190,7 +186,6 @@ public Order status(StatusEnum status) { @JsonProperty(value = "status") @ApiModelProperty(value = "Order Status") - public StatusEnum getStatus() { return status; } @@ -211,7 +206,6 @@ public Order complete(Boolean complete) { @JsonProperty(value = "complete") @ApiModelProperty(value = "") - public Boolean getComplete() { return complete; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/OuterComposite.java index d2c7e25c90aa..88c2dc7d476a 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/OuterComposite.java @@ -56,8 +56,7 @@ public OuterComposite myNumber(BigDecimal myNumber) { **/ @JsonProperty(value = "my_number") @ApiModelProperty(value = "") - - + @Valid public BigDecimal getMyNumber() { return myNumber; } @@ -78,7 +77,6 @@ public OuterComposite myString(String myString) { @JsonProperty(value = "my_string") @ApiModelProperty(value = "") - public String getMyString() { return myString; } @@ -99,7 +97,6 @@ public OuterComposite myBoolean(Boolean myBoolean) { @JsonProperty(value = "my_boolean") @ApiModelProperty(value = "") - public Boolean getMyBoolean() { return myBoolean; } 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 727e3a781927..76f6a5be1ff5 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 @@ -113,7 +113,6 @@ public Pet id(Long id) { @JsonProperty(value = "id") @ApiModelProperty(value = "") - public Long getId() { return id; } @@ -133,8 +132,7 @@ public Pet category(Category category) { **/ @JsonProperty(value = "category") @ApiModelProperty(value = "") - - + @Valid public Category getCategory() { return category; } @@ -155,7 +153,6 @@ public Pet name(String name) { @JsonProperty(value = "name") @ApiModelProperty(example = "doggie", required = true, value = "") @NotNull - public String getName() { return name; } @@ -184,7 +181,6 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { @JsonProperty(value = "photoUrls") @ApiModelProperty(required = true, value = "") @NotNull - public Set getPhotoUrls() { return photoUrls; } @@ -214,7 +210,6 @@ public Pet addTagsItem(Tag tagsItem) { @JsonProperty(value = "tags") @ApiModelProperty(value = "") @Valid - public List<@Valid Tag> getTags() { return tags; } @@ -235,7 +230,6 @@ public Pet status(StatusEnum status) { @JsonProperty(value = "status") @ApiModelProperty(value = "pet status in the store") - public StatusEnum getStatus() { return status; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ReadOnlyFirst.java index e3c3744d4e20..fe0280ecec42 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/ReadOnlyFirst.java @@ -51,7 +51,6 @@ public ReadOnlyFirst bar(String bar) { @JsonProperty(value = "bar", access = JsonProperty.Access.READ_ONLY) @ApiModelProperty(value = "") - public String getBar() { return bar; } @@ -72,7 +71,6 @@ public ReadOnlyFirst baz(String baz) { @JsonProperty(value = "baz") @ApiModelProperty(value = "") - public String getBaz() { return baz; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/SpecialModelName.java index 7debf78bd551..6cd123a20c53 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/SpecialModelName.java @@ -47,7 +47,6 @@ public class SpecialModelName { @JsonProperty(value = "$special[property.name]") @ApiModelProperty(value = "") - public Long get$SpecialPropertyName() { return $specialPropertyName; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Tag.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Tag.java index e08351bc708d..e560173bdf2f 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/Tag.java @@ -51,7 +51,6 @@ public Tag id(Long id) { @JsonProperty(value = "id") @ApiModelProperty(value = "") - public Long getId() { return id; } @@ -72,7 +71,6 @@ public Tag name(String name) { @JsonProperty(value = "name") @ApiModelProperty(value = "") - public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/TypeHolderDefault.java index 7db5a5237686..ca08849db72d 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/TypeHolderDefault.java @@ -70,7 +70,6 @@ public TypeHolderDefault stringItem(String stringItem) { @JsonProperty(value = "string_item") @ApiModelProperty(required = true, value = "") @NotNull - public String getStringItem() { return stringItem; } @@ -90,8 +89,7 @@ public TypeHolderDefault numberItem(BigDecimal numberItem) { **/ @JsonProperty(value = "number_item") @ApiModelProperty(required = true, value = "") - @NotNull - + @NotNull @Valid public BigDecimal getNumberItem() { return numberItem; } @@ -112,7 +110,6 @@ public TypeHolderDefault integerItem(Integer integerItem) { @JsonProperty(value = "integer_item") @ApiModelProperty(required = true, value = "") @NotNull - public Integer getIntegerItem() { return integerItem; } @@ -133,7 +130,6 @@ public TypeHolderDefault boolItem(Boolean boolItem) { @JsonProperty(value = "bool_item") @ApiModelProperty(required = true, value = "") @NotNull - public Boolean getBoolItem() { return boolItem; } @@ -162,7 +158,6 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { @JsonProperty(value = "array_item") @ApiModelProperty(required = true, value = "") @NotNull - public List getArrayItem() { return arrayItem; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/TypeHolderExample.java index c0c5314e96a8..0014ea335007 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/TypeHolderExample.java @@ -75,7 +75,6 @@ public TypeHolderExample stringItem(String stringItem) { @JsonProperty(value = "string_item") @ApiModelProperty(example = "what", required = true, value = "") @NotNull - public String getStringItem() { return stringItem; } @@ -95,8 +94,7 @@ public TypeHolderExample numberItem(BigDecimal numberItem) { **/ @JsonProperty(value = "number_item") @ApiModelProperty(example = "1.234", required = true, value = "") - @NotNull - + @NotNull @Valid public BigDecimal getNumberItem() { return numberItem; } @@ -117,7 +115,6 @@ public TypeHolderExample floatItem(Float floatItem) { @JsonProperty(value = "float_item") @ApiModelProperty(example = "1.234", required = true, value = "") @NotNull - public Float getFloatItem() { return floatItem; } @@ -138,7 +135,6 @@ public TypeHolderExample integerItem(Integer integerItem) { @JsonProperty(value = "integer_item") @ApiModelProperty(example = "-2", required = true, value = "") @NotNull - public Integer getIntegerItem() { return integerItem; } @@ -159,7 +155,6 @@ public TypeHolderExample boolItem(Boolean boolItem) { @JsonProperty(value = "bool_item") @ApiModelProperty(example = "true", required = true, value = "") @NotNull - public Boolean getBoolItem() { return boolItem; } @@ -188,7 +183,6 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { @JsonProperty(value = "array_item") @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") @NotNull - public List getArrayItem() { return arrayItem; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/User.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/User.java index 85810b74832f..b437f3504e22 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/User.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/User.java @@ -81,7 +81,6 @@ public User id(Long id) { @JsonProperty(value = "id") @ApiModelProperty(value = "") - public Long getId() { return id; } @@ -102,7 +101,6 @@ public User username(String username) { @JsonProperty(value = "username") @ApiModelProperty(value = "") - public String getUsername() { return username; } @@ -123,7 +121,6 @@ public User firstName(String firstName) { @JsonProperty(value = "firstName") @ApiModelProperty(value = "") - public String getFirstName() { return firstName; } @@ -144,7 +141,6 @@ public User lastName(String lastName) { @JsonProperty(value = "lastName") @ApiModelProperty(value = "") - public String getLastName() { return lastName; } @@ -165,7 +161,6 @@ public User email(String email) { @JsonProperty(value = "email") @ApiModelProperty(value = "") - public String getEmail() { return email; } @@ -186,7 +181,6 @@ public User password(String password) { @JsonProperty(value = "password") @ApiModelProperty(value = "") - public String getPassword() { return password; } @@ -207,7 +201,6 @@ public User phone(String phone) { @JsonProperty(value = "phone") @ApiModelProperty(value = "") - public String getPhone() { return phone; } @@ -228,7 +221,6 @@ public User userStatus(Integer userStatus) { @JsonProperty(value = "userStatus") @ApiModelProperty(value = "User Status") - public Integer getUserStatus() { return userStatus; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/XmlItem.java index 8a286dd3d4d2..0364048b51f9 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/XmlItem.java @@ -190,7 +190,6 @@ public XmlItem attributeString(String attributeString) { @JsonProperty(value = "attribute_string") @ApiModelProperty(example = "string", value = "") - public String getAttributeString() { return attributeString; } @@ -210,8 +209,7 @@ public XmlItem attributeNumber(BigDecimal attributeNumber) { **/ @JsonProperty(value = "attribute_number") @ApiModelProperty(example = "1.234", value = "") - - + @Valid public BigDecimal getAttributeNumber() { return attributeNumber; } @@ -232,7 +230,6 @@ public XmlItem attributeInteger(Integer attributeInteger) { @JsonProperty(value = "attribute_integer") @ApiModelProperty(example = "-2", value = "") - public Integer getAttributeInteger() { return attributeInteger; } @@ -253,7 +250,6 @@ public XmlItem attributeBoolean(Boolean attributeBoolean) { @JsonProperty(value = "attribute_boolean") @ApiModelProperty(example = "true", value = "") - public Boolean getAttributeBoolean() { return attributeBoolean; } @@ -282,7 +278,6 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { @JsonProperty(value = "wrapped_array") @ApiModelProperty(value = "") - public List getWrappedArray() { return wrappedArray; } @@ -303,7 +298,6 @@ public XmlItem nameString(String nameString) { @JsonProperty(value = "name_string") @ApiModelProperty(example = "string", value = "") - public String getNameString() { return nameString; } @@ -323,8 +317,7 @@ public XmlItem nameNumber(BigDecimal nameNumber) { **/ @JsonProperty(value = "name_number") @ApiModelProperty(example = "1.234", value = "") - - + @Valid public BigDecimal getNameNumber() { return nameNumber; } @@ -345,7 +338,6 @@ public XmlItem nameInteger(Integer nameInteger) { @JsonProperty(value = "name_integer") @ApiModelProperty(example = "-2", value = "") - public Integer getNameInteger() { return nameInteger; } @@ -366,7 +358,6 @@ public XmlItem nameBoolean(Boolean nameBoolean) { @JsonProperty(value = "name_boolean") @ApiModelProperty(example = "true", value = "") - public Boolean getNameBoolean() { return nameBoolean; } @@ -395,7 +386,6 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { @JsonProperty(value = "name_array") @ApiModelProperty(value = "") - public List getNameArray() { return nameArray; } @@ -424,7 +414,6 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { @JsonProperty(value = "name_wrapped_array") @ApiModelProperty(value = "") - public List getNameWrappedArray() { return nameWrappedArray; } @@ -445,7 +434,6 @@ public XmlItem prefixString(String prefixString) { @JsonProperty(value = "prefix_string") @ApiModelProperty(example = "string", value = "") - public String getPrefixString() { return prefixString; } @@ -465,8 +453,7 @@ public XmlItem prefixNumber(BigDecimal prefixNumber) { **/ @JsonProperty(value = "prefix_number") @ApiModelProperty(example = "1.234", value = "") - - + @Valid public BigDecimal getPrefixNumber() { return prefixNumber; } @@ -487,7 +474,6 @@ public XmlItem prefixInteger(Integer prefixInteger) { @JsonProperty(value = "prefix_integer") @ApiModelProperty(example = "-2", value = "") - public Integer getPrefixInteger() { return prefixInteger; } @@ -508,7 +494,6 @@ public XmlItem prefixBoolean(Boolean prefixBoolean) { @JsonProperty(value = "prefix_boolean") @ApiModelProperty(example = "true", value = "") - public Boolean getPrefixBoolean() { return prefixBoolean; } @@ -537,7 +522,6 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { @JsonProperty(value = "prefix_array") @ApiModelProperty(value = "") - public List getPrefixArray() { return prefixArray; } @@ -566,7 +550,6 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { @JsonProperty(value = "prefix_wrapped_array") @ApiModelProperty(value = "") - public List getPrefixWrappedArray() { return prefixWrappedArray; } @@ -587,7 +570,6 @@ public XmlItem namespaceString(String namespaceString) { @JsonProperty(value = "namespace_string") @ApiModelProperty(example = "string", value = "") - public String getNamespaceString() { return namespaceString; } @@ -607,8 +589,7 @@ public XmlItem namespaceNumber(BigDecimal namespaceNumber) { **/ @JsonProperty(value = "namespace_number") @ApiModelProperty(example = "1.234", value = "") - - + @Valid public BigDecimal getNamespaceNumber() { return namespaceNumber; } @@ -629,7 +610,6 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { @JsonProperty(value = "namespace_integer") @ApiModelProperty(example = "-2", value = "") - public Integer getNamespaceInteger() { return namespaceInteger; } @@ -650,7 +630,6 @@ public XmlItem namespaceBoolean(Boolean namespaceBoolean) { @JsonProperty(value = "namespace_boolean") @ApiModelProperty(example = "true", value = "") - public Boolean getNamespaceBoolean() { return namespaceBoolean; } @@ -679,7 +658,6 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { @JsonProperty(value = "namespace_array") @ApiModelProperty(value = "") - public List getNamespaceArray() { return namespaceArray; } @@ -708,7 +686,6 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { @JsonProperty(value = "namespace_wrapped_array") @ApiModelProperty(value = "") - public List getNamespaceWrappedArray() { return namespaceWrappedArray; } @@ -729,7 +706,6 @@ public XmlItem prefixNsString(String prefixNsString) { @JsonProperty(value = "prefix_ns_string") @ApiModelProperty(example = "string", value = "") - public String getPrefixNsString() { return prefixNsString; } @@ -749,8 +725,7 @@ public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { **/ @JsonProperty(value = "prefix_ns_number") @ApiModelProperty(example = "1.234", value = "") - - + @Valid public BigDecimal getPrefixNsNumber() { return prefixNsNumber; } @@ -771,7 +746,6 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { @JsonProperty(value = "prefix_ns_integer") @ApiModelProperty(example = "-2", value = "") - public Integer getPrefixNsInteger() { return prefixNsInteger; } @@ -792,7 +766,6 @@ public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { @JsonProperty(value = "prefix_ns_boolean") @ApiModelProperty(example = "true", value = "") - public Boolean getPrefixNsBoolean() { return prefixNsBoolean; } @@ -821,7 +794,6 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { @JsonProperty(value = "prefix_ns_array") @ApiModelProperty(value = "") - public List getPrefixNsArray() { return prefixNsArray; } @@ -850,7 +822,6 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { @JsonProperty(value = "prefix_ns_wrapped_array") @ApiModelProperty(value = "") - public List getPrefixNsWrappedArray() { return prefixNsWrappedArray; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/AnotherFakeApi.java index fb1e15d48d52..f0d1c071c205 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/AnotherFakeApi.java @@ -67,8 +67,7 @@ public AnotherFakeApi(@Context ServletConfig servletContext) { @ApiResponse(responseCode = "200", description = "successful operation", content = @Content(schema = @Schema(implementation = Client.class))), }, tags={ "$another-fake?", }) - public Response call123testSpecialTags(@Schema(description = "client model", required = true) @NotNull - Client client,@Context SecurityContext securityContext) + public Response call123testSpecialTags(@Schema(description = "client model", required = true) @NotNull @Valid Client client,@Context SecurityContext securityContext) throws NotFoundException { return delegate.call123testSpecialTags(client, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/FakeApi.java index accbc143f01e..ac2be3b4eca8 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/FakeApi.java @@ -108,9 +108,7 @@ public Response fakeHealthGet(@Context SecurityContext securityContext) },security = { @SecurityRequirement(name = "http_signature_test") }, tags={ "fake", }) - public Response fakeHttpSignatureTest(@Schema(description = "Pet object that needs to be added to the store", required = true) @NotNull - Pet pet,@Schema(description = "query parameter") @QueryParam("query_1") - String query1,@Schema(description = "header parameter" )@HeaderParam("header_1") String header1,@Context SecurityContext securityContext) + public Response fakeHttpSignatureTest(@Schema(description = "Pet object that needs to be added to the store", required = true) @NotNull @Valid Pet pet,@Schema(description = "query parameter") @QueryParam("query_1") String query1,@Schema(description = "header parameter" )@HeaderParam("header_1") String header1,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeHttpSignatureTest(pet, query1, header1, securityContext); } @@ -123,8 +121,7 @@ public Response fakeHttpSignatureTest(@Schema(description = "Pet object that nee @ApiResponse(responseCode = "200", description = "Output boolean", content = @Content(schema = @Schema(implementation = Boolean.class))), }, tags={ "fake", }) - public Response fakeOuterBooleanSerialize(@Schema(description = "Input boolean as post body") - Boolean body,@Context SecurityContext securityContext) + public Response fakeOuterBooleanSerialize(@Schema(description = "Input boolean as post body") Boolean body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeOuterBooleanSerialize(body, securityContext); } @@ -137,8 +134,7 @@ public Response fakeOuterBooleanSerialize(@Schema(description = "Input boolean a @ApiResponse(responseCode = "200", description = "Output composite", content = @Content(schema = @Schema(implementation = OuterComposite.class))), }, tags={ "fake", }) - public Response fakeOuterCompositeSerialize(@Schema(description = "Input composite as post body") - OuterComposite outerComposite,@Context SecurityContext securityContext) + public Response fakeOuterCompositeSerialize(@Schema(description = "Input composite as post body") @Valid OuterComposite outerComposite,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeOuterCompositeSerialize(outerComposite, securityContext); } @@ -151,8 +147,7 @@ public Response fakeOuterCompositeSerialize(@Schema(description = "Input composi @ApiResponse(responseCode = "200", description = "Output number", content = @Content(schema = @Schema(implementation = BigDecimal.class))), }, tags={ "fake", }) - public Response fakeOuterNumberSerialize(@Schema(description = "Input number as post body") - BigDecimal body,@Context SecurityContext securityContext) + public Response fakeOuterNumberSerialize(@Schema(description = "Input number as post body") BigDecimal body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeOuterNumberSerialize(body, securityContext); } @@ -165,8 +160,7 @@ public Response fakeOuterNumberSerialize(@Schema(description = "Input number as @ApiResponse(responseCode = "200", description = "Output string", content = @Content(schema = @Schema(implementation = String.class))), }, tags={ "fake", }) - public Response fakeOuterStringSerialize(@Schema(description = "Input string as post body") - String body,@Context SecurityContext securityContext) + public Response fakeOuterStringSerialize(@Schema(description = "Input string as post body") String body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeOuterStringSerialize(body, securityContext); } @@ -179,8 +173,7 @@ public Response fakeOuterStringSerialize(@Schema(description = "Input string as @ApiResponse(responseCode = "200", description = "Output enum (int)", content = @Content(schema = @Schema(implementation = OuterObjectWithEnumProperty.class))), }, tags={ "fake", }) - public Response fakePropertyEnumIntegerSerialize(@Schema(description = "Input enum (int) as post body", required = true) @NotNull - OuterObjectWithEnumProperty outerObjectWithEnumProperty,@Context SecurityContext securityContext) + public Response fakePropertyEnumIntegerSerialize(@Schema(description = "Input enum (int) as post body", required = true) @NotNull @Valid OuterObjectWithEnumProperty outerObjectWithEnumProperty,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakePropertyEnumIntegerSerialize(outerObjectWithEnumProperty, securityContext); } @@ -192,8 +185,7 @@ public Response fakePropertyEnumIntegerSerialize(@Schema(description = "Input en @ApiResponse(responseCode = "200", description = "successful operation", content = @Content(schema = @Schema(implementation = Void.class))), }, tags={ "fake", }) - public Response testAdditionalPropertiesReference(@Schema(description = "request body", required = true) @NotNull @Valid - Map requestBody,@Context SecurityContext securityContext) + public Response testAdditionalPropertiesReference(@Schema(description = "request body", required = true) @NotNull @Valid Map requestBody,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testAdditionalPropertiesReference(requestBody, securityContext); } @@ -205,8 +197,7 @@ public Response testAdditionalPropertiesReference(@Schema(description = "request @ApiResponse(responseCode = "200", description = "Success", content = @Content(schema = @Schema(implementation = Void.class))), }, tags={ "fake", }) - public Response testBodyWithBinary(@Schema(description = "image to upload", required = true) @NotNull - File body,@Context SecurityContext securityContext) + public Response testBodyWithBinary(@Schema(description = "image to upload", required = true) @NotNull File body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testBodyWithBinary(body, securityContext); } @@ -218,8 +209,7 @@ public Response testBodyWithBinary(@Schema(description = "image to upload", requ @ApiResponse(responseCode = "200", description = "Success", content = @Content(schema = @Schema(implementation = Void.class))), }, tags={ "fake", }) - public Response testBodyWithFileSchema(@Schema(description = "", required = true) @NotNull - FileSchemaTestClass fileSchemaTestClass,@Context SecurityContext securityContext) + public Response testBodyWithFileSchema(@Schema(description = "", required = true) @NotNull @Valid FileSchemaTestClass fileSchemaTestClass,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testBodyWithFileSchema(fileSchemaTestClass, securityContext); } @@ -231,9 +221,7 @@ public Response testBodyWithFileSchema(@Schema(description = "", required = true @ApiResponse(responseCode = "200", description = "Success", content = @Content(schema = @Schema(implementation = Void.class))), }, tags={ "fake", }) - public Response testBodyWithQueryParams(@Schema(description = "") @QueryParam("query") @NotNull - String query,@Schema(description = "", required = true) @NotNull - User user,@Context SecurityContext securityContext) + public Response testBodyWithQueryParams(@Schema(description = "") @QueryParam("query") @NotNull String query,@Schema(description = "", required = true) @NotNull @Valid User user,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testBodyWithQueryParams(query, user, securityContext); } @@ -245,8 +233,7 @@ public Response testBodyWithQueryParams(@Schema(description = "") @QueryParam("q @ApiResponse(responseCode = "200", description = "successful operation", content = @Content(schema = @Schema(implementation = Client.class))), }, tags={ "fake", }) - public Response testClientModel(@Schema(description = "client model", required = true) @NotNull - Client client,@Context SecurityContext securityContext) + public Response testClientModel(@Schema(description = "client model", required = true) @NotNull @Valid Client client,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testClientModel(client, securityContext); } @@ -274,12 +261,7 @@ public Response testEndpointParameters(@Schema(description = "None") @QueryParam @ApiResponse(responseCode = "404", description = "Not found", content = @Content(schema = @Schema(implementation = Void.class))), }, tags={ "fake", }) - public Response testEnumParameters(@Schema(description = "Header parameter enum test (string array)" , allowableValues=">, $")@HeaderParam("enum_header_string_array") List enumHeaderStringArray,@Schema(description = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg")@HeaderParam("enum_header_string") String enumHeaderString,@Schema(description = "Query parameter enum test (string array)") @QueryParam("enum_query_string_array") - List enumQueryStringArray,@Schema(description = "Query parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue = "-efg") @DefaultValue("-efg") @QueryParam("enum_query_string") - String enumQueryString,@Schema(description = "Query parameter enum test (double)", allowableValues="1, -2") @QueryParam("enum_query_integer") - Integer enumQueryInteger,@Schema(description = "Query parameter enum test (double)", allowableValues="1.1, -1.2") @QueryParam("enum_query_double") - Double enumQueryDouble,@Schema(description = "") @QueryParam("enum_query_model_array") @Valid - List enumQueryModelArray,@Schema(description = "Form parameter enum test (string array)", allowableValues=">, $", defaultValue="$") @DefaultValue("$") @QueryParam("enum_form_string_array") List enumFormStringArray,@Schema(description = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @QueryParam("enum_form_string") String enumFormString,@Context SecurityContext securityContext) + public Response testEnumParameters(@Schema(description = "Header parameter enum test (string array)" , allowableValues=">, $")@HeaderParam("enum_header_string_array") List enumHeaderStringArray,@Schema(description = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg")@HeaderParam("enum_header_string") String enumHeaderString,@Schema(description = "Query parameter enum test (string array)") @QueryParam("enum_query_string_array") @Valid List enumQueryStringArray,@Schema(description = "Query parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue = "-efg") @DefaultValue("-efg") @QueryParam("enum_query_string") String enumQueryString,@Schema(description = "Query parameter enum test (double)", allowableValues="1, -2") @QueryParam("enum_query_integer") Integer enumQueryInteger,@Schema(description = "Query parameter enum test (double)", allowableValues="1.1, -1.2") @QueryParam("enum_query_double") Double enumQueryDouble,@Schema(description = "") @QueryParam("enum_query_model_array") @Valid List enumQueryModelArray,@Schema(description = "Form parameter enum test (string array)", allowableValues=">, $", defaultValue="$") @DefaultValue("$") @QueryParam("enum_form_string_array") List enumFormStringArray,@Schema(description = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @QueryParam("enum_form_string") String enumFormString,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString, securityContext); } @@ -291,11 +273,7 @@ public Response testEnumParameters(@Schema(description = "Header parameter enum },security = { @SecurityRequirement(name = "bearer_test") }, tags={ "fake", }) - public Response testGroupParameters(@Schema(description = "Required String in group parameters") @QueryParam("required_string_group") @NotNull - Integer requiredStringGroup,@Schema(description = "Required Boolean in group parameters" ,required=true)@HeaderParam("required_boolean_group") Boolean requiredBooleanGroup,@Schema(description = "Required Integer in group parameters") @QueryParam("required_int64_group") @NotNull - Long requiredInt64Group,@Schema(description = "String in group parameters") @QueryParam("string_group") - Integer stringGroup,@Schema(description = "Boolean in group parameters" )@HeaderParam("boolean_group") Boolean booleanGroup,@Schema(description = "Integer in group parameters") @QueryParam("int64_group") - Long int64Group,@Context SecurityContext securityContext) + public Response testGroupParameters(@Schema(description = "Required String in group parameters") @QueryParam("required_string_group") @NotNull Integer requiredStringGroup,@Schema(description = "Required Boolean in group parameters" ,required=true)@HeaderParam("required_boolean_group") Boolean requiredBooleanGroup,@Schema(description = "Required Integer in group parameters") @QueryParam("required_int64_group") @NotNull Long requiredInt64Group,@Schema(description = "String in group parameters") @QueryParam("string_group") Integer stringGroup,@Schema(description = "Boolean in group parameters" )@HeaderParam("boolean_group") Boolean booleanGroup,@Schema(description = "Integer in group parameters") @QueryParam("int64_group") Long int64Group,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, securityContext); } @@ -307,8 +285,7 @@ public Response testGroupParameters(@Schema(description = "Required String in gr @ApiResponse(responseCode = "200", description = "successful operation", content = @Content(schema = @Schema(implementation = Void.class))), }, tags={ "fake", }) - public Response testInlineAdditionalProperties(@Schema(description = "request body", required = true) @NotNull @Valid - Map requestBody,@Context SecurityContext securityContext) + public Response testInlineAdditionalProperties(@Schema(description = "request body", required = true) @NotNull @Valid Map requestBody,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testInlineAdditionalProperties(requestBody, securityContext); } @@ -320,8 +297,7 @@ public Response testInlineAdditionalProperties(@Schema(description = "request bo @ApiResponse(responseCode = "200", description = "successful operation", content = @Content(schema = @Schema(implementation = Void.class))), }, tags={ "fake", }) - public Response testInlineFreeformAdditionalProperties(@Schema(description = "request body", required = true) @NotNull - TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest,@Context SecurityContext securityContext) + public Response testInlineFreeformAdditionalProperties(@Schema(description = "request body", required = true) @NotNull @Valid TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest, securityContext); } @@ -345,8 +321,7 @@ public Response testJsonFormData(@Schema(description = "field1") @QueryParam("pa @ApiResponse(responseCode = "200", description = "successful operation", content = @Content(schema = @Schema(implementation = Void.class))), }, tags={ "fake", }) - public Response testNullable(@Schema(description = "request body", required = true) @NotNull - ChildWithNullable childWithNullable,@Context SecurityContext securityContext) + public Response testNullable(@Schema(description = "request body", required = true) @NotNull @Valid ChildWithNullable childWithNullable,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testNullable(childWithNullable, securityContext); } @@ -357,14 +332,7 @@ public Response testNullable(@Schema(description = "request body", required = tr @ApiResponse(responseCode = "200", description = "Success", content = @Content(schema = @Schema(implementation = Void.class))), }, tags={ "fake", }) - public Response testQueryParameterCollectionFormat(@Schema(description = "") @QueryParam("pipe") @NotNull @Valid - List pipe,@Schema(description = "") @QueryParam("ioutil") @NotNull @Valid - List ioutil,@Schema(description = "") @QueryParam("http") @NotNull @Valid - List http,@Schema(description = "") @QueryParam("url") @NotNull @Valid - List url,@Schema(description = "") @QueryParam("context") @NotNull @Valid - List context,@Schema(description = "") @QueryParam("allowEmpty") @NotNull - String allowEmpty,@Schema(description = "") @Parameter(description="language") @Valid - Map language,@Context SecurityContext securityContext) + public Response testQueryParameterCollectionFormat(@Schema(description = "") @QueryParam("pipe") @NotNull @Valid List pipe,@Schema(description = "") @QueryParam("ioutil") @NotNull @Valid List ioutil,@Schema(description = "") @QueryParam("http") @NotNull @Valid List http,@Schema(description = "") @QueryParam("url") @NotNull @Valid List url,@Schema(description = "") @QueryParam("context") @NotNull @Valid List context,@Schema(description = "") @QueryParam("allowEmpty") @NotNull String allowEmpty,@Schema(description = "") @Parameter(description="language") @Valid Map language,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowEmpty, language, securityContext); } @@ -376,8 +344,7 @@ public Response testQueryParameterCollectionFormat(@Schema(description = "") @Qu @ApiResponse(responseCode = "200", description = "successful operation", content = @Content(schema = @Schema(implementation = Void.class))), }, tags={ "fake", }) - public Response testStringMapReference(@Schema(description = "request body", required = true) @NotNull @Valid - Map requestBody,@Context SecurityContext securityContext) + public Response testStringMapReference(@Schema(description = "request body", required = true) @NotNull @Valid Map requestBody,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testStringMapReference(requestBody, securityContext); } @@ -392,8 +359,7 @@ public Response testStringMapReference(@Schema(description = "request body", req },security = { @SecurityRequirement(name = "petstore_auth", scopes={ "write:pets", "read:pets" }) }, tags={ "pet", }) - public Response uploadFileWithRequiredFile(@Schema(description= "ID of pet to update", required = true) @PathParam("petId") @NotNull - Long petId,@FormDataParam("requiredFile") FormDataBodyPart requiredFileBodypart,@Schema(description = "Additional data to pass to server")@FormDataParam("additionalMetadata") String additionalMetadata,@Context SecurityContext securityContext) + public Response uploadFileWithRequiredFile(@Schema(description= "ID of pet to update", required = true) @PathParam("petId") @NotNull Long petId,@FormDataParam("requiredFile") FormDataBodyPart requiredFileBodypart,@Schema(description = "Additional data to pass to server")@FormDataParam("additionalMetadata") String additionalMetadata,@Context SecurityContext securityContext) throws NotFoundException { return delegate.uploadFileWithRequiredFile(petId, requiredFileBodypart, additionalMetadata, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java index 166862b0b344..da5246403426 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java @@ -69,8 +69,7 @@ public FakeClassnameTestApi(@Context ServletConfig servletContext) { },security = { @SecurityRequirement(name = "api_key_query") }, tags={ "fake_classname_tags 123#$%^", }) - public Response testClassname(@Schema(description = "client model", required = true) @NotNull - Client client,@Context SecurityContext securityContext) + public Response testClassname(@Schema(description = "client model", required = true) @NotNull @Valid Client client,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testClassname(client, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/PetApi.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/PetApi.java index 88791dc7afb4..17dcf4f6668b 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/PetApi.java @@ -73,8 +73,7 @@ public PetApi(@Context ServletConfig servletContext) { },security = { @SecurityRequirement(name = "petstore_auth", scopes={ "write:pets", "read:pets" }) }, tags={ "pet", }) - public Response addPet(@Schema(description = "Pet object that needs to be added to the store", required = true) @NotNull - Pet pet,@Context SecurityContext securityContext) + public Response addPet(@Schema(description = "Pet object that needs to be added to the store", required = true) @NotNull @Valid Pet pet,@Context SecurityContext securityContext) throws NotFoundException { return delegate.addPet(pet, securityContext); } @@ -89,8 +88,7 @@ public Response addPet(@Schema(description = "Pet object that needs to be added },security = { @SecurityRequirement(name = "petstore_auth", scopes={ "write:pets", "read:pets" }) }, tags={ "pet", }) - public Response deletePet(@Schema(description= "Pet id to delete", required = true) @PathParam("petId") @NotNull - Long petId,@Schema(description = "" )@HeaderParam("api_key") String apiKey,@Context SecurityContext securityContext) + public Response deletePet(@Schema(description= "Pet id to delete", required = true) @PathParam("petId") @NotNull Long petId,@Schema(description = "" )@HeaderParam("api_key") String apiKey,@Context SecurityContext securityContext) throws NotFoundException { return delegate.deletePet(petId, apiKey, securityContext); } @@ -106,8 +104,7 @@ public Response deletePet(@Schema(description= "Pet id to delete", required = tr },security = { @SecurityRequirement(name = "petstore_auth", scopes={ "write:pets", "read:pets" }) }, tags={ "pet", }) - public Response findPetsByStatus(@Schema(description = "Status values that need to be considered for filter") @QueryParam("status") @NotNull - List status,@Context SecurityContext securityContext) + public Response findPetsByStatus(@Schema(description = "Status values that need to be considered for filter") @QueryParam("status") @NotNull @Valid List status,@Context SecurityContext securityContext) throws NotFoundException { return delegate.findPetsByStatus(status, securityContext); } @@ -123,8 +120,7 @@ public Response findPetsByStatus(@Schema(description = "Status values that need },security = { @SecurityRequirement(name = "petstore_auth", scopes={ "write:pets", "read:pets" }) }, tags={ "pet", }) - public Response findPetsByTags(@Schema(description = "Tags to filter by") @QueryParam("tags") @NotNull @Valid - Set tags,@Context SecurityContext securityContext) + public Response findPetsByTags(@Schema(description = "Tags to filter by") @QueryParam("tags") @NotNull @Valid Set tags,@Context SecurityContext securityContext) throws NotFoundException { return delegate.findPetsByTags(tags, securityContext); } @@ -142,8 +138,7 @@ public Response findPetsByTags(@Schema(description = "Tags to filter by") @Query },security = { @SecurityRequirement(name = "api_key") }, tags={ "pet", }) - public Response getPetById(@Schema(description= "ID of pet to return", required = true) @PathParam("petId") @NotNull - Long petId,@Context SecurityContext securityContext) + public Response getPetById(@Schema(description= "ID of pet to return", required = true) @PathParam("petId") @NotNull Long petId,@Context SecurityContext securityContext) throws NotFoundException { return delegate.getPetById(petId, securityContext); } @@ -162,8 +157,7 @@ public Response getPetById(@Schema(description= "ID of pet to return", required },security = { @SecurityRequirement(name = "petstore_auth", scopes={ "write:pets", "read:pets" }) }, tags={ "pet", }) - public Response updatePet(@Schema(description = "Pet object that needs to be added to the store", required = true) @NotNull - Pet pet,@Context SecurityContext securityContext) + public Response updatePet(@Schema(description = "Pet object that needs to be added to the store", required = true) @NotNull @Valid Pet pet,@Context SecurityContext securityContext) throws NotFoundException { return delegate.updatePet(pet, securityContext); } @@ -179,8 +173,7 @@ public Response updatePet(@Schema(description = "Pet object that needs to be add },security = { @SecurityRequirement(name = "petstore_auth", scopes={ "write:pets", "read:pets" }) }, tags={ "pet", }) - public Response updatePetWithForm(@Schema(description= "ID of pet that needs to be updated", required = true) @PathParam("petId") @NotNull - Long petId,@Schema(description = "Updated name of the pet") @QueryParam("name") String name,@Schema(description = "Updated status of the pet") @QueryParam("status") String status,@Context SecurityContext securityContext) + public Response updatePetWithForm(@Schema(description= "ID of pet that needs to be updated", required = true) @PathParam("petId") @NotNull Long petId,@Schema(description = "Updated name of the pet") @QueryParam("name") String name,@Schema(description = "Updated status of the pet") @QueryParam("status") String status,@Context SecurityContext securityContext) throws NotFoundException { return delegate.updatePetWithForm(petId, name, status, securityContext); } @@ -195,8 +188,7 @@ public Response updatePetWithForm(@Schema(description= "ID of pet that needs to },security = { @SecurityRequirement(name = "petstore_auth", scopes={ "write:pets", "read:pets" }) }, tags={ "pet", }) - public Response uploadFile(@Schema(description= "ID of pet to update", required = true) @PathParam("petId") @NotNull - Long petId,@Schema(description = "Additional data to pass to server")@FormDataParam("additionalMetadata") String additionalMetadata,@FormDataParam("file") FormDataBodyPart _fileBodypart,@Context SecurityContext securityContext) + public Response uploadFile(@Schema(description= "ID of pet to update", required = true) @PathParam("petId") @NotNull Long petId,@Schema(description = "Additional data to pass to server")@FormDataParam("additionalMetadata") String additionalMetadata,@FormDataParam("file") FormDataBodyPart _fileBodypart,@Context SecurityContext securityContext) throws NotFoundException { return delegate.uploadFile(petId, additionalMetadata, _fileBodypart, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/StoreApi.java index b8ec314517d9..06639a72f971 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/StoreApi.java @@ -69,8 +69,7 @@ public StoreApi(@Context ServletConfig servletContext) { @ApiResponse(responseCode = "404", description = "Order not found", content = @Content(schema = @Schema(implementation = Void.class))), }, tags={ "store", }) - public Response deleteOrder(@Schema(description= "ID of the order that needs to be deleted", required = true) @PathParam("order_id") @NotNull - String orderId,@Context SecurityContext securityContext) + public Response deleteOrder(@Schema(description= "ID of the order that needs to be deleted", required = true) @PathParam("order_id") @NotNull String orderId,@Context SecurityContext securityContext) throws NotFoundException { return delegate.deleteOrder(orderId, securityContext); } @@ -100,8 +99,7 @@ public Response getInventory(@Context SecurityContext securityContext) @ApiResponse(responseCode = "404", description = "Order not found", content = @Content(schema = @Schema(implementation = Void.class))), }, tags={ "store", }) - public Response getOrderById(@Schema(description= "ID of pet that needs to be fetched", required = true) @PathParam("order_id") @NotNull @Min(1L) @Max(5L) - Long orderId,@Context SecurityContext securityContext) + public Response getOrderById(@Schema(description= "ID of pet that needs to be fetched", required = true) @PathParam("order_id") @NotNull @Min(1L) @Max(5L) Long orderId,@Context SecurityContext securityContext) throws NotFoundException { return delegate.getOrderById(orderId, securityContext); } @@ -116,8 +114,7 @@ public Response getOrderById(@Schema(description= "ID of pet that needs to be fe @ApiResponse(responseCode = "400", description = "Invalid Order", content = @Content(schema = @Schema(implementation = Void.class))), }, tags={ "store", }) - public Response placeOrder(@Schema(description = "order placed for purchasing the pet", required = true) @NotNull - Order order,@Context SecurityContext securityContext) + public Response placeOrder(@Schema(description = "order placed for purchasing the pet", required = true) @NotNull @Valid Order order,@Context SecurityContext securityContext) throws NotFoundException { return delegate.placeOrder(order, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/UserApi.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/UserApi.java index 7d7303b0494a..942c748f219d 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/UserApi.java @@ -67,8 +67,7 @@ public UserApi(@Context ServletConfig servletContext) { @ApiResponse(responseCode = "200", description = "successful operation", content = @Content(schema = @Schema(implementation = Void.class))), }, tags={ "user", }) - public Response createUser(@Schema(description = "Created user object", required = true) @NotNull - User user,@Context SecurityContext securityContext) + public Response createUser(@Schema(description = "Created user object", required = true) @NotNull @Valid User user,@Context SecurityContext securityContext) throws NotFoundException { return delegate.createUser(user, securityContext); } @@ -80,8 +79,7 @@ public Response createUser(@Schema(description = "Created user object", required @ApiResponse(responseCode = "200", description = "successful operation", content = @Content(schema = @Schema(implementation = Void.class))), }, tags={ "user", }) - public Response createUsersWithArrayInput(@Schema(description = "List of user object", required = true) @NotNull @Valid - List<@Valid User> user,@Context SecurityContext securityContext) + public Response createUsersWithArrayInput(@Schema(description = "List of user object", required = true) @NotNull @Valid List<@Valid User> user,@Context SecurityContext securityContext) throws NotFoundException { return delegate.createUsersWithArrayInput(user, securityContext); } @@ -93,8 +91,7 @@ public Response createUsersWithArrayInput(@Schema(description = "List of user ob @ApiResponse(responseCode = "200", description = "successful operation", content = @Content(schema = @Schema(implementation = Void.class))), }, tags={ "user", }) - public Response createUsersWithListInput(@Schema(description = "List of user object", required = true) @NotNull @Valid - List<@Valid User> user,@Context SecurityContext securityContext) + public Response createUsersWithListInput(@Schema(description = "List of user object", required = true) @NotNull @Valid List<@Valid User> user,@Context SecurityContext securityContext) throws NotFoundException { return delegate.createUsersWithListInput(user, securityContext); } @@ -107,8 +104,7 @@ public Response createUsersWithListInput(@Schema(description = "List of user obj @ApiResponse(responseCode = "404", description = "User not found", content = @Content(schema = @Schema(implementation = Void.class))), }, tags={ "user", }) - public Response deleteUser(@Schema(description= "The name that needs to be deleted", required = true) @PathParam("username") @NotNull - String username,@Context SecurityContext securityContext) + public Response deleteUser(@Schema(description= "The name that needs to be deleted", required = true) @PathParam("username") @NotNull String username,@Context SecurityContext securityContext) throws NotFoundException { return delegate.deleteUser(username, securityContext); } @@ -124,8 +120,7 @@ public Response deleteUser(@Schema(description= "The name that needs to be delet @ApiResponse(responseCode = "404", description = "User not found", content = @Content(schema = @Schema(implementation = Void.class))), }, tags={ "user", }) - public Response getUserByName(@Schema(description= "The name that needs to be fetched. Use user1 for testing.", required = true) @PathParam("username") @NotNull - String username,@Context SecurityContext securityContext) + public Response getUserByName(@Schema(description= "The name that needs to be fetched. Use user1 for testing.", required = true) @PathParam("username") @NotNull String username,@Context SecurityContext securityContext) throws NotFoundException { return delegate.getUserByName(username, securityContext); } @@ -139,9 +134,7 @@ public Response getUserByName(@Schema(description= "The name that needs to be fe @ApiResponse(responseCode = "400", description = "Invalid username/password supplied", content = @Content(schema = @Schema(implementation = Void.class))), }, tags={ "user", }) - public Response loginUser(@Schema(description = "The user name for login") @QueryParam("username") @NotNull - String username,@Schema(description = "The password for login in clear text") @QueryParam("password") @NotNull - String password,@Context SecurityContext securityContext) + public Response loginUser(@Schema(description = "The user name for login") @QueryParam("username") @NotNull String username,@Schema(description = "The password for login in clear text") @QueryParam("password") @NotNull String password,@Context SecurityContext securityContext) throws NotFoundException { return delegate.loginUser(username, password, securityContext); } @@ -166,9 +159,7 @@ public Response logoutUser(@Context SecurityContext securityContext) @ApiResponse(responseCode = "404", description = "User not found", content = @Content(schema = @Schema(implementation = Void.class))), }, tags={ "user", }) - public Response updateUser(@Schema(description= "name that need to be deleted", required = true) @PathParam("username") @NotNull - String username,@Schema(description = "Updated user object", required = true) @NotNull - User user,@Context SecurityContext securityContext) + public Response updateUser(@Schema(description= "name that need to be deleted", required = true) @PathParam("username") @NotNull String username,@Schema(description = "Updated user object", required = true) @NotNull @Valid User user,@Context SecurityContext securityContext) throws NotFoundException { return delegate.updateUser(username, user, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java index 02543bd4ec56..7bea65d7acc8 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -60,7 +60,6 @@ public AdditionalPropertiesClass putMapPropertyItem(String key, String mapProper @JsonProperty(value = "map_property") @Schema(description = "") - public Map getMapProperty() { return mapProperty; } @@ -89,7 +88,6 @@ public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map> getMapOfMapProperty() { return mapOfMapProperty; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/AllOfWithSingleRef.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/AllOfWithSingleRef.java index e4d8f6c4914b..1b2e25250a86 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/AllOfWithSingleRef.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/AllOfWithSingleRef.java @@ -52,7 +52,6 @@ public AllOfWithSingleRef username(String username) { @JsonProperty(value = "username") @Schema(description = "") - public String getUsername() { return username; } @@ -72,8 +71,7 @@ public AllOfWithSingleRef singleRefType(SingleRefType singleRefType) { **/ @JsonProperty(value = "SingleRefType") @Schema(description = "") - - + @Valid public SingleRefType getSingleRefType() { return singleRefType; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Animal.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Animal.java index 4e3ea661717a..275d59938830 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Animal.java @@ -58,7 +58,6 @@ public Animal className(String className) { @JsonProperty(value = "className") @Schema(required = true, description = "") @NotNull - public String getClassName() { return className; } @@ -79,7 +78,6 @@ public Animal color(String color) { @JsonProperty(value = "color") @Schema(description = "") - public String getColor() { return color; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index 5481e97603e6..2c790d83bf25 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -57,7 +57,6 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr @JsonProperty(value = "ArrayArrayNumber") @Schema(description = "") @Valid - public List> getArrayArrayNumber() { return arrayArrayNumber; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java index a350ec7a9bab..2a570784138a 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -57,7 +57,6 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { @JsonProperty(value = "ArrayNumber") @Schema(description = "") @Valid - public List getArrayNumber() { return arrayNumber; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ArrayTest.java index ecad386389d2..a3781b5c5f70 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ArrayTest.java @@ -67,7 +67,6 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { @JsonProperty(value = "array_of_string") @Schema(description = "") @Size(min=0,max=3) - public List getArrayOfString() { return arrayOfString; } @@ -96,7 +95,6 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) @JsonProperty(value = "array_array_of_integer") @Schema(description = "") @Valid - public List> getArrayArrayOfInteger() { return arrayArrayOfInteger; } @@ -125,7 +123,6 @@ public ArrayTest addArrayArrayOfModelItem(List<@Valid ReadOnlyFirst> arrayArrayO @JsonProperty(value = "array_array_of_model") @Schema(description = "") @Valid - public List> getArrayArrayOfModel() { return arrayArrayOfModel; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Capitalization.java index ce621647e133..69106debc08a 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Capitalization.java @@ -70,7 +70,6 @@ public Capitalization smallCamel(String smallCamel) { @JsonProperty(value = "smallCamel") @Schema(description = "") - public String getSmallCamel() { return smallCamel; } @@ -91,7 +90,6 @@ public Capitalization capitalCamel(String capitalCamel) { @JsonProperty(value = "CapitalCamel") @Schema(description = "") - public String getCapitalCamel() { return capitalCamel; } @@ -112,7 +110,6 @@ public Capitalization smallSnake(String smallSnake) { @JsonProperty(value = "small_Snake") @Schema(description = "") - public String getSmallSnake() { return smallSnake; } @@ -133,7 +130,6 @@ public Capitalization capitalSnake(String capitalSnake) { @JsonProperty(value = "Capital_Snake") @Schema(description = "") - public String getCapitalSnake() { return capitalSnake; } @@ -154,7 +150,6 @@ public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { @JsonProperty(value = "SCA_ETH_Flow_Points") @Schema(description = "") - public String getScAETHFlowPoints() { return scAETHFlowPoints; } @@ -175,7 +170,6 @@ public Capitalization ATT_NAME(String ATT_NAME) { @JsonProperty(value = "ATT_NAME") @Schema(description = "Name of the pet ") - public String getATTNAME() { return ATT_NAME; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Cat.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Cat.java index 09754e19caff..4e48d5598029 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Cat.java @@ -46,7 +46,6 @@ public Cat declawed(Boolean declawed) { @JsonProperty(value = "declawed") @Schema(description = "") - public Boolean getDeclawed() { return declawed; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Category.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Category.java index bd9b3a6944ac..cfa49785f134 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Category.java @@ -50,7 +50,6 @@ public Category id(Long id) { @JsonProperty(value = "id") @Schema(description = "") - public Long getId() { return id; } @@ -71,7 +70,6 @@ public Category name(String name) { @JsonProperty(value = "name") @Schema(required = true, description = "") @NotNull - public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ChildWithNullable.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ChildWithNullable.java index 1e3cc38d08ef..f0045a48f5ac 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ChildWithNullable.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ChildWithNullable.java @@ -47,7 +47,6 @@ public ChildWithNullable otherProperty(String otherProperty) { @JsonProperty(value = "otherProperty") @Schema(description = "") - public String getOtherProperty() { return otherProperty; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ClassModel.java index 7d4aae1b944b..e9d8dcf791ce 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ClassModel.java @@ -46,7 +46,6 @@ public ClassModel propertyClass(String propertyClass) { @JsonProperty(value = "_class") @Schema(description = "") - public String getPropertyClass() { return propertyClass; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Client.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Client.java index 21c5415ef554..304de78ce3f5 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Client.java @@ -45,7 +45,6 @@ public Client client(String client) { @JsonProperty(value = "client") @Schema(description = "") - public String getClient() { return client; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/DeprecatedObject.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/DeprecatedObject.java index 6706720fbc71..93d2ea273fa1 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/DeprecatedObject.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/DeprecatedObject.java @@ -45,7 +45,6 @@ public DeprecatedObject name(String name) { @JsonProperty(value = "name") @Schema(description = "") - public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Dog.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Dog.java index 3e4233c3e25c..697ca66a34aa 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Dog.java @@ -46,7 +46,6 @@ public Dog breed(String breed) { @JsonProperty(value = "breed") @Schema(description = "") - public String getBreed() { return breed; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/EnumArrays.java index fb5ea42973c0..3c88a9d174db 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/EnumArrays.java @@ -116,7 +116,6 @@ public EnumArrays justSymbol(JustSymbolEnum justSymbol) { @JsonProperty(value = "just_symbol") @Schema(description = "") - public JustSymbolEnum getJustSymbol() { return justSymbol; } @@ -145,7 +144,6 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { @JsonProperty(value = "array_enum") @Schema(description = "") - public List getArrayEnum() { return arrayEnum; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/EnumTest.java index 00aaf36471ef..834fdc050aef 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/EnumTest.java @@ -214,7 +214,6 @@ public EnumTest enumString(EnumStringEnum enumString) { @JsonProperty(value = "enum_string") @Schema(description = "") - public EnumStringEnum getEnumString() { return enumString; } @@ -235,7 +234,6 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { @JsonProperty(value = "enum_string_required") @Schema(required = true, description = "") @NotNull - public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; } @@ -256,7 +254,6 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { @JsonProperty(value = "enum_integer") @Schema(description = "") - public EnumIntegerEnum getEnumInteger() { return enumInteger; } @@ -277,7 +274,6 @@ public EnumTest enumNumber(EnumNumberEnum enumNumber) { @JsonProperty(value = "enum_number") @Schema(description = "") - public EnumNumberEnum getEnumNumber() { return enumNumber; } @@ -297,8 +293,7 @@ public EnumTest outerEnum(OuterEnum outerEnum) { **/ @JsonProperty(value = "outerEnum") @Schema(description = "") - - + @Valid public OuterEnum getOuterEnum() { return outerEnum; } @@ -318,8 +313,7 @@ public EnumTest outerEnumInteger(OuterEnumInteger outerEnumInteger) { **/ @JsonProperty(value = "outerEnumInteger") @Schema(description = "") - - + @Valid public OuterEnumInteger getOuterEnumInteger() { return outerEnumInteger; } @@ -339,8 +333,7 @@ public EnumTest outerEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValu **/ @JsonProperty(value = "outerEnumDefaultValue") @Schema(description = "") - - + @Valid public OuterEnumDefaultValue getOuterEnumDefaultValue() { return outerEnumDefaultValue; } @@ -360,8 +353,7 @@ public EnumTest outerEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerE **/ @JsonProperty(value = "outerEnumIntegerDefaultValue") @Schema(description = "") - - + @Valid public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { return outerEnumIntegerDefaultValue; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/FakeBigDecimalMap200Response.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/FakeBigDecimalMap200Response.java index 5d16f065f804..a62bac6344dc 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/FakeBigDecimalMap200Response.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/FakeBigDecimalMap200Response.java @@ -53,8 +53,7 @@ public FakeBigDecimalMap200Response someId(BigDecimal someId) { **/ @JsonProperty(value = "someId") @Schema(description = "") - - + @Valid public BigDecimal getSomeId() { return someId; } @@ -83,7 +82,6 @@ public FakeBigDecimalMap200Response putSomeMapItem(String key, BigDecimal someMa @JsonProperty(value = "someMap") @Schema(description = "") @Valid - public Map getSomeMap() { return someMap; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/FileSchemaTestClass.java index d123b971bdbb..5192983e5006 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/FileSchemaTestClass.java @@ -53,8 +53,7 @@ public FileSchemaTestClass _file(ModelFile _file) { **/ @JsonProperty(value = "file") @Schema(description = "") - - + @Valid public ModelFile getFile() { return _file; } @@ -83,7 +82,6 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { @JsonProperty(value = "files") @Schema(description = "") @Valid - public List<@Valid ModelFile> getFiles() { return files; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Foo.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Foo.java index 97cbe20f0713..c4a0fa7ca31b 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Foo.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Foo.java @@ -45,7 +45,6 @@ public Foo bar(String bar) { @JsonProperty(value = "bar") @Schema(description = "") - public String getBar() { return bar; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/FooGetDefaultResponse.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/FooGetDefaultResponse.java index cc7129af5f03..06f3515c8521 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/FooGetDefaultResponse.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/FooGetDefaultResponse.java @@ -46,8 +46,7 @@ public FooGetDefaultResponse string(Foo string) { **/ @JsonProperty(value = "string") @Schema(description = "") - - + @Valid public Foo getString() { return string; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/FormatTest.java index 120ef31dff61..cda35bcf7387 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/FormatTest.java @@ -127,7 +127,6 @@ public FormatTest integer(Integer integer) { @JsonProperty(value = "integer") @Schema(description = "") @Min(10) @Max(100) - public Integer getInteger() { return integer; } @@ -150,7 +149,6 @@ public FormatTest int32(Integer int32) { @JsonProperty(value = "int32") @Schema(description = "") @Min(20) @Max(200) - public Integer getInt32() { return int32; } @@ -171,7 +169,6 @@ public FormatTest int64(Long int64) { @JsonProperty(value = "int64") @Schema(description = "") - public Long getInt64() { return int64; } @@ -193,8 +190,7 @@ public FormatTest number(BigDecimal number) { **/ @JsonProperty(value = "number") @Schema(required = true, description = "") - @NotNull @DecimalMin("32.1") @DecimalMax("543.2") - + @NotNull @Valid @DecimalMin("32.1") @DecimalMax("543.2") public BigDecimal getNumber() { return number; } @@ -217,7 +213,6 @@ public FormatTest _float(Float _float) { @JsonProperty(value = "float") @Schema(description = "") @DecimalMin("54.3") @DecimalMax("987.6") - public Float getFloat() { return _float; } @@ -240,7 +235,6 @@ public FormatTest _double(Double _double) { @JsonProperty(value = "double") @Schema(description = "") @DecimalMin("67.8") @DecimalMax("123.4") - public Double getDouble() { return _double; } @@ -260,8 +254,7 @@ public FormatTest decimal(BigDecimal decimal) { **/ @JsonProperty(value = "decimal") @Schema(description = "") - - + @Valid public BigDecimal getDecimal() { return decimal; } @@ -282,7 +275,6 @@ public FormatTest string(String string) { @JsonProperty(value = "string") @Schema(description = "") @Pattern(regexp="/[a-z]/i") - public String getString() { return string; } @@ -303,7 +295,6 @@ public FormatTest _byte(byte[] _byte) { @JsonProperty(value = "byte") @Schema(required = true, description = "") @NotNull - public byte[] getByte() { return _byte; } @@ -324,7 +315,6 @@ public FormatTest binary(File binary) { @JsonProperty(value = "binary") @Schema(description = "") - public File getBinary() { return binary; } @@ -345,7 +335,6 @@ public FormatTest date(Date date) { @JsonProperty(value = "date") @Schema(required = true, description = "") @NotNull - public Date getDate() { return date; } @@ -366,7 +355,6 @@ public FormatTest dateTime(Date dateTime) { @JsonProperty(value = "dateTime") @Schema(description = "") - public Date getDateTime() { return dateTime; } @@ -387,7 +375,6 @@ public FormatTest uuid(UUID uuid) { @JsonProperty(value = "uuid") @Schema(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", description = "") - public UUID getUuid() { return uuid; } @@ -408,7 +395,6 @@ public FormatTest password(String password) { @JsonProperty(value = "password") @Schema(required = true, description = "") @NotNull @Size(min=10,max=64) - public String getPassword() { return password; } @@ -429,7 +415,6 @@ public FormatTest patternWithDigits(String patternWithDigits) { @JsonProperty(value = "pattern_with_digits") @Schema(description = "A string that is a 10 digit number. Can have leading zeros.") @Pattern(regexp="^\\d{10}$") - public String getPatternWithDigits() { return patternWithDigits; } @@ -450,7 +435,6 @@ public FormatTest patternWithDigitsAndDelimiter(String patternWithDigitsAndDelim @JsonProperty(value = "pattern_with_digits_and_delimiter") @Schema(description = "A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.") @Pattern(regexp="/^image_\\d{1,3}$/i") - public String getPatternWithDigitsAndDelimiter() { return patternWithDigitsAndDelimiter; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java index 912ab951eca0..27790fb2c837 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java @@ -51,7 +51,6 @@ public HasOnlyReadOnly bar(String bar) { @JsonProperty(value = "bar", access = JsonProperty.Access.READ_ONLY) @Schema(description = "") - public String getBar() { return bar; } @@ -72,7 +71,6 @@ public HasOnlyReadOnly foo(String foo) { @JsonProperty(value = "foo", access = JsonProperty.Access.READ_ONLY) @Schema(description = "") - public String getFoo() { return foo; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/HealthCheckResult.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/HealthCheckResult.java index 4ab1bac112ff..274651b4d92e 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/HealthCheckResult.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/HealthCheckResult.java @@ -46,7 +46,6 @@ public HealthCheckResult nullableMessage(String nullableMessage) { @JsonProperty(value = "NullableMessage") @Schema(description = "") - public String getNullableMessage() { return nullableMessage; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/MapTest.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/MapTest.java index c5c1ed112af1..b49550ef78a2 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/MapTest.java @@ -102,7 +102,6 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr @JsonProperty(value = "map_map_of_string") @Schema(description = "") @Valid - public Map> getMapMapOfString() { return mapMapOfString; } @@ -131,7 +130,6 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) @JsonProperty(value = "map_of_enum_string") @Schema(description = "") - public Map getMapOfEnumString() { return mapOfEnumString; } @@ -160,7 +158,6 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { @JsonProperty(value = "direct_map") @Schema(description = "") - public Map getDirectMap() { return directMap; } @@ -189,7 +186,6 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { @JsonProperty(value = "indirect_map") @Schema(description = "") - public Map getIndirectMap() { return indirectMap; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 20284755d28b..f0ab79ce0252 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -60,7 +60,6 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { @JsonProperty(value = "uuid") @Schema(description = "") - public UUID getUuid() { return uuid; } @@ -81,7 +80,6 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(Date dateTime) { @JsonProperty(value = "dateTime") @Schema(description = "") - public Date getDateTime() { return dateTime; } @@ -110,7 +108,6 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal @JsonProperty(value = "map") @Schema(description = "") @Valid - public Map getMap() { return map; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Model200Response.java index e777c67dbf1b..829959fc6dc3 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Model200Response.java @@ -52,7 +52,6 @@ public Model200Response name(Integer name) { @JsonProperty(value = "name") @Schema(description = "") - public Integer getName() { return name; } @@ -73,7 +72,6 @@ public Model200Response propertyClass(String propertyClass) { @JsonProperty(value = "class") @Schema(description = "") - public String getPropertyClass() { return propertyClass; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ModelApiResponse.java index 94b7eac8f761..65a38ccd70ef 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ModelApiResponse.java @@ -56,7 +56,6 @@ public ModelApiResponse code(Integer code) { @JsonProperty(value = "code") @Schema(description = "") - public Integer getCode() { return code; } @@ -77,7 +76,6 @@ public ModelApiResponse type(String type) { @JsonProperty(value = "type") @Schema(description = "") - public String getType() { return type; } @@ -98,7 +96,6 @@ public ModelApiResponse message(String message) { @JsonProperty(value = "message") @Schema(description = "") - public String getMessage() { return message; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ModelFile.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ModelFile.java index fbf20357f78b..3e36dc2178be 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ModelFile.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ModelFile.java @@ -47,7 +47,6 @@ public ModelFile sourceURI(String sourceURI) { @JsonProperty(value = "sourceURI") @Schema(description = "Test capitalization") - public String getSourceURI() { return sourceURI; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ModelList.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ModelList.java index 349feb07d08d..7405e212fe8f 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ModelList.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ModelList.java @@ -46,7 +46,6 @@ public ModelList _123list(String _123list) { @JsonProperty(value = "123-list") @Schema(description = "") - public String get123list() { return _123list; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ModelReturn.java index bdd9203b028b..8cc5622675ee 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ModelReturn.java @@ -47,7 +47,6 @@ public ModelReturn _return(Integer _return) { @JsonProperty(value = "return") @Schema(description = "") - public Integer getReturn() { return _return; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Name.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Name.java index 5c9310bf9300..9b7da7956014 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Name.java @@ -61,7 +61,6 @@ public Name name(Integer name) { @JsonProperty(value = "name") @Schema(required = true, description = "") @NotNull - public Integer getName() { return name; } @@ -82,7 +81,6 @@ public Name snakeCase(Integer snakeCase) { @JsonProperty(value = "snake_case", access = JsonProperty.Access.READ_ONLY) @Schema(description = "") - public Integer getSnakeCase() { return snakeCase; } @@ -103,7 +101,6 @@ public Name property(String property) { @JsonProperty(value = "property") @Schema(description = "") - public String getProperty() { return property; } @@ -124,7 +121,6 @@ public Name _123number(Integer _123number) { @JsonProperty(value = "123Number", access = JsonProperty.Access.READ_ONLY) @Schema(description = "") - public Integer get123number() { return _123number; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/NullableClass.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/NullableClass.java index fc796665ae9d..b4b9b887618f 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/NullableClass.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/NullableClass.java @@ -107,7 +107,6 @@ public NullableClass integerProp(Integer integerProp) { @JsonProperty(value = "integer_prop") @Schema(description = "") - public Integer getIntegerProp() { return integerProp; } @@ -127,8 +126,7 @@ public NullableClass numberProp(BigDecimal numberProp) { **/ @JsonProperty(value = "number_prop") @Schema(description = "") - - + @Valid public BigDecimal getNumberProp() { return numberProp; } @@ -149,7 +147,6 @@ public NullableClass booleanProp(Boolean booleanProp) { @JsonProperty(value = "boolean_prop") @Schema(description = "") - public Boolean getBooleanProp() { return booleanProp; } @@ -170,7 +167,6 @@ public NullableClass stringProp(String stringProp) { @JsonProperty(value = "string_prop") @Schema(description = "") - public String getStringProp() { return stringProp; } @@ -191,7 +187,6 @@ public NullableClass dateProp(Date dateProp) { @JsonProperty(value = "date_prop") @Schema(description = "") - public Date getDateProp() { return dateProp; } @@ -212,7 +207,6 @@ public NullableClass datetimeProp(Date datetimeProp) { @JsonProperty(value = "datetime_prop") @Schema(description = "") - public Date getDatetimeProp() { return datetimeProp; } @@ -241,7 +235,6 @@ public NullableClass addArrayNullablePropItem(Object arrayNullablePropItem) { @JsonProperty(value = "array_nullable_prop") @Schema(description = "") - public List getArrayNullableProp() { return arrayNullableProp; } @@ -270,7 +263,6 @@ public NullableClass addArrayAndItemsNullablePropItem(Object arrayAndItemsNullab @JsonProperty(value = "array_and_items_nullable_prop") @Schema(description = "") - public List getArrayAndItemsNullableProp() { return arrayAndItemsNullableProp; } @@ -299,7 +291,6 @@ public NullableClass addArrayItemsNullableItem(Object arrayItemsNullableItem) { @JsonProperty(value = "array_items_nullable") @Schema(description = "") - public List getArrayItemsNullable() { return arrayItemsNullable; } @@ -328,7 +319,6 @@ public NullableClass putObjectNullablePropItem(String key, Object objectNullable @JsonProperty(value = "object_nullable_prop") @Schema(description = "") - public Map getObjectNullableProp() { return objectNullableProp; } @@ -357,7 +347,6 @@ public NullableClass putObjectAndItemsNullablePropItem(String key, Object object @JsonProperty(value = "object_and_items_nullable_prop") @Schema(description = "") - public Map getObjectAndItemsNullableProp() { return objectAndItemsNullableProp; } @@ -386,7 +375,6 @@ public NullableClass putObjectItemsNullableItem(String key, Object objectItemsNu @JsonProperty(value = "object_items_nullable") @Schema(description = "") - public Map getObjectItemsNullable() { return objectItemsNullable; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/NumberOnly.java index 20b0b85fa736..72148b4e65be 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/NumberOnly.java @@ -45,8 +45,7 @@ public NumberOnly justNumber(BigDecimal justNumber) { **/ @JsonProperty(value = "JustNumber") @Schema(description = "") - - + @Valid public BigDecimal getJustNumber() { return justNumber; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ObjectWithDeprecatedFields.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ObjectWithDeprecatedFields.java index 69ea76239d25..157318b051e8 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ObjectWithDeprecatedFields.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ObjectWithDeprecatedFields.java @@ -65,7 +65,6 @@ public ObjectWithDeprecatedFields uuid(String uuid) { @JsonProperty(value = "uuid") @Schema(description = "") - public String getUuid() { return uuid; } @@ -85,8 +84,7 @@ public ObjectWithDeprecatedFields id(BigDecimal id) { **/ @JsonProperty(value = "id") @Schema(description = "") - - + @Valid public BigDecimal getId() { return id; } @@ -106,8 +104,7 @@ public ObjectWithDeprecatedFields deprecatedRef(DeprecatedObject deprecatedRef) **/ @JsonProperty(value = "deprecatedRef") @Schema(description = "") - - + @Valid public DeprecatedObject getDeprecatedRef() { return deprecatedRef; } @@ -136,7 +133,6 @@ public ObjectWithDeprecatedFields addBarsItem(String barsItem) { @JsonProperty(value = "bars") @Schema(description = "") - public List getBars() { return bars; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Order.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Order.java index 471c95979cc1..4e53956c8d44 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Order.java @@ -105,7 +105,6 @@ public Order id(Long id) { @JsonProperty(value = "id") @Schema(description = "") - public Long getId() { return id; } @@ -126,7 +125,6 @@ public Order petId(Long petId) { @JsonProperty(value = "petId") @Schema(description = "") - public Long getPetId() { return petId; } @@ -147,7 +145,6 @@ public Order quantity(Integer quantity) { @JsonProperty(value = "quantity") @Schema(description = "") - public Integer getQuantity() { return quantity; } @@ -168,7 +165,6 @@ public Order shipDate(Date shipDate) { @JsonProperty(value = "shipDate") @Schema(description = "") - public Date getShipDate() { return shipDate; } @@ -189,7 +185,6 @@ public Order status(StatusEnum status) { @JsonProperty(value = "status") @Schema(description = "Order Status") - public StatusEnum getStatus() { return status; } @@ -210,7 +205,6 @@ public Order complete(Boolean complete) { @JsonProperty(value = "complete") @Schema(description = "") - public Boolean getComplete() { return complete; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/OuterComposite.java index 84df96b4791c..fae0b0a7c253 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/OuterComposite.java @@ -55,8 +55,7 @@ public OuterComposite myNumber(BigDecimal myNumber) { **/ @JsonProperty(value = "my_number") @Schema(description = "") - - + @Valid public BigDecimal getMyNumber() { return myNumber; } @@ -77,7 +76,6 @@ public OuterComposite myString(String myString) { @JsonProperty(value = "my_string") @Schema(description = "") - public String getMyString() { return myString; } @@ -98,7 +96,6 @@ public OuterComposite myBoolean(Boolean myBoolean) { @JsonProperty(value = "my_boolean") @Schema(description = "") - public Boolean getMyBoolean() { return myBoolean; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/OuterObjectWithEnumProperty.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/OuterObjectWithEnumProperty.java index 311a2281205c..16e8982cd985 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/OuterObjectWithEnumProperty.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/OuterObjectWithEnumProperty.java @@ -46,8 +46,7 @@ public OuterObjectWithEnumProperty value(OuterEnumInteger value) { **/ @JsonProperty(value = "value") @Schema(required = true, description = "") - @NotNull - + @NotNull @Valid public OuterEnumInteger getValue() { return value; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ParentWithNullable.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ParentWithNullable.java index a29d9e3d6b4d..5d33f3ee315d 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ParentWithNullable.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ParentWithNullable.java @@ -87,7 +87,6 @@ public ParentWithNullable type(TypeEnum type) { @JsonProperty(value = "type") @Schema(description = "") - public TypeEnum getType() { return type; } @@ -108,7 +107,6 @@ public ParentWithNullable nullableProperty(String nullableProperty) { @JsonProperty(value = "nullableProperty") @Schema(description = "") - public String getNullableProperty() { return nullableProperty; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Pet.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Pet.java index 77704b934432..9c8088434935 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Pet.java @@ -112,7 +112,6 @@ public Pet id(Long id) { @JsonProperty(value = "id") @Schema(description = "") - public Long getId() { return id; } @@ -132,8 +131,7 @@ public Pet category(Category category) { **/ @JsonProperty(value = "category") @Schema(description = "") - - + @Valid public Category getCategory() { return category; } @@ -154,7 +152,6 @@ public Pet name(String name) { @JsonProperty(value = "name") @Schema(example = "doggie", required = true, description = "") @NotNull - public String getName() { return name; } @@ -183,7 +180,6 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { @JsonProperty(value = "photoUrls") @Schema(required = true, description = "") @NotNull - public Set getPhotoUrls() { return photoUrls; } @@ -213,7 +209,6 @@ public Pet addTagsItem(Tag tagsItem) { @JsonProperty(value = "tags") @Schema(description = "") @Valid - public List<@Valid Tag> getTags() { return tags; } @@ -234,7 +229,6 @@ public Pet status(StatusEnum status) { @JsonProperty(value = "status") @Schema(description = "pet status in the store") - public StatusEnum getStatus() { return status; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ReadOnlyFirst.java index 00abbaf72406..c1272735f0e6 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ReadOnlyFirst.java @@ -50,7 +50,6 @@ public ReadOnlyFirst bar(String bar) { @JsonProperty(value = "bar", access = JsonProperty.Access.READ_ONLY) @Schema(description = "") - public String getBar() { return bar; } @@ -71,7 +70,6 @@ public ReadOnlyFirst baz(String baz) { @JsonProperty(value = "baz") @Schema(description = "") - public String getBaz() { return baz; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/SpecialModelName.java index 9afce2dfeb25..58c6ebd3b88a 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/SpecialModelName.java @@ -46,7 +46,6 @@ public class SpecialModelName { @JsonProperty(value = "$special[property.name]") @Schema(description = "") - public Long get$SpecialPropertyName() { return $specialPropertyName; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Tag.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Tag.java index ec6c2f3eeb92..cba274154112 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Tag.java @@ -50,7 +50,6 @@ public Tag id(Long id) { @JsonProperty(value = "id") @Schema(description = "") - public Long getId() { return id; } @@ -71,7 +70,6 @@ public Tag name(String name) { @JsonProperty(value = "name") @Schema(description = "") - public String getName() { return name; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/TestInlineFreeformAdditionalPropertiesRequest.java index 81155a33832e..0d0e8a83bd82 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -48,7 +48,6 @@ public TestInlineFreeformAdditionalPropertiesRequest someProperty(String somePro @JsonProperty(value = "someProperty") @Schema(description = "") - public String getSomeProperty() { return someProperty; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/User.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/User.java index 47df9e0a5b9d..fd4c0fc12cb5 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/User.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/User.java @@ -80,7 +80,6 @@ public User id(Long id) { @JsonProperty(value = "id") @Schema(description = "") - public Long getId() { return id; } @@ -101,7 +100,6 @@ public User username(String username) { @JsonProperty(value = "username") @Schema(description = "") - public String getUsername() { return username; } @@ -122,7 +120,6 @@ public User firstName(String firstName) { @JsonProperty(value = "firstName") @Schema(description = "") - public String getFirstName() { return firstName; } @@ -143,7 +140,6 @@ public User lastName(String lastName) { @JsonProperty(value = "lastName") @Schema(description = "") - public String getLastName() { return lastName; } @@ -164,7 +160,6 @@ public User email(String email) { @JsonProperty(value = "email") @Schema(description = "") - public String getEmail() { return email; } @@ -185,7 +180,6 @@ public User password(String password) { @JsonProperty(value = "password") @Schema(description = "") - public String getPassword() { return password; } @@ -206,7 +200,6 @@ public User phone(String phone) { @JsonProperty(value = "phone") @Schema(description = "") - public String getPhone() { return phone; } @@ -227,7 +220,6 @@ public User userStatus(Integer userStatus) { @JsonProperty(value = "userStatus") @Schema(description = "User Status") - public Integer getUserStatus() { return userStatus; } From a7f464fba05e400e632bcd472de677bfb32271f5 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Mon, 22 Apr 2024 17:05:13 +0800 Subject: [PATCH 4/5] remove eol, update samples --- .../JavaJaxRS/beanValidation.mustache | 2 +- .../okhttp-gson-user-defined-templates/info.md | 1 + .../org/openapitools/api/AnotherFakeApi.java | 2 +- .../gen/java/org/openapitools/api/FakeApi.java | 12 ++++++------ .../openapitools/api/FakeClassnameTestApi.java | 2 +- .../gen/java/org/openapitools/api/PetApi.java | 6 +++--- .../java/org/openapitools/api/StoreApi.java | 2 +- .../gen/java/org/openapitools/api/UserApi.java | 4 ++-- .../java/org/openapitools/model/EnumTest.java | 2 +- .../model/FileSchemaTestClass.java | 2 +- .../org/openapitools/model/FormatTest.java | 4 ++-- .../org/openapitools/model/NumberOnly.java | 2 +- .../org/openapitools/model/OuterComposite.java | 2 +- .../gen/java/org/openapitools/model/Pet.java | 2 +- .../openapitools/model/TypeHolderDefault.java | 2 +- .../openapitools/model/TypeHolderExample.java | 2 +- .../java/org/openapitools/model/XmlItem.java | 10 +++++----- .../org/openapitools/api/AnotherFakeApi.java | 2 +- .../gen/java/org/openapitools/api/FakeApi.java | 18 +++++++++--------- .../openapitools/api/FakeClassnameTestApi.java | 2 +- .../gen/java/org/openapitools/api/PetApi.java | 6 +++--- .../java/org/openapitools/api/StoreApi.java | 2 +- .../gen/java/org/openapitools/api/UserApi.java | 4 ++-- .../openapitools/model/AllOfWithSingleRef.java | 2 +- .../java/org/openapitools/model/EnumTest.java | 8 ++++---- .../model/FakeBigDecimalMap200Response.java | 2 +- .../model/FileSchemaTestClass.java | 2 +- .../model/FooGetDefaultResponse.java | 2 +- .../org/openapitools/model/FormatTest.java | 4 ++-- .../org/openapitools/model/NullableClass.java | 2 +- .../org/openapitools/model/NumberOnly.java | 2 +- .../model/ObjectWithDeprecatedFields.java | 4 ++-- .../org/openapitools/model/OuterComposite.java | 2 +- .../model/OuterObjectWithEnumProperty.java | 2 +- .../gen/java/org/openapitools/model/Pet.java | 2 +- .../org/openapitools/api/AnotherFakeApi.java | 2 +- .../gen/java/org/openapitools/api/FakeApi.java | 12 ++++++------ .../api/FakeClassnameTags123Api.java | 2 +- .../gen/java/org/openapitools/api/PetApi.java | 6 +++--- .../java/org/openapitools/api/StoreApi.java | 2 +- .../gen/java/org/openapitools/api/UserApi.java | 4 ++-- .../java/org/openapitools/model/EnumTest.java | 2 +- .../model/FileSchemaTestClass.java | 2 +- .../org/openapitools/model/FormatTest.java | 4 ++-- .../org/openapitools/model/NumberOnly.java | 2 +- .../org/openapitools/model/OuterComposite.java | 2 +- .../gen/java/org/openapitools/model/Pet.java | 2 +- .../openapitools/model/TypeHolderDefault.java | 2 +- .../openapitools/model/TypeHolderExample.java | 2 +- .../java/org/openapitools/model/XmlItem.java | 10 +++++----- .../org/openapitools/api/AnotherFakeApi.java | 2 +- .../gen/java/org/openapitools/api/FakeApi.java | 12 ++++++------ .../openapitools/api/FakeClassnameTestApi.java | 2 +- .../gen/java/org/openapitools/api/PetApi.java | 6 +++--- .../java/org/openapitools/api/StoreApi.java | 2 +- .../gen/java/org/openapitools/api/UserApi.java | 4 ++-- .../java/org/openapitools/model/EnumTest.java | 2 +- .../model/FileSchemaTestClass.java | 2 +- .../org/openapitools/model/FormatTest.java | 4 ++-- .../org/openapitools/model/NumberOnly.java | 2 +- .../org/openapitools/model/OuterComposite.java | 2 +- .../gen/java/org/openapitools/model/Pet.java | 2 +- .../openapitools/model/TypeHolderDefault.java | 2 +- .../openapitools/model/TypeHolderExample.java | 2 +- .../java/org/openapitools/model/XmlItem.java | 10 +++++----- .../org/openapitools/api/AnotherFakeApi.java | 2 +- .../gen/java/org/openapitools/api/FakeApi.java | 18 +++++++++--------- .../openapitools/api/FakeClassnameTestApi.java | 2 +- .../gen/java/org/openapitools/api/PetApi.java | 6 +++--- .../java/org/openapitools/api/StoreApi.java | 2 +- .../gen/java/org/openapitools/api/UserApi.java | 4 ++-- .../openapitools/model/AllOfWithSingleRef.java | 2 +- .../java/org/openapitools/model/EnumTest.java | 8 ++++---- .../model/FakeBigDecimalMap200Response.java | 2 +- .../model/FileSchemaTestClass.java | 2 +- .../model/FooGetDefaultResponse.java | 2 +- .../org/openapitools/model/FormatTest.java | 4 ++-- .../org/openapitools/model/NullableClass.java | 2 +- .../org/openapitools/model/NumberOnly.java | 2 +- .../model/ObjectWithDeprecatedFields.java | 4 ++-- .../org/openapitools/model/OuterComposite.java | 2 +- .../model/OuterObjectWithEnumProperty.java | 2 +- .../gen/java/org/openapitools/model/Pet.java | 2 +- 83 files changed, 154 insertions(+), 153 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/JavaJaxRS/beanValidation.mustache b/modules/openapi-generator/src/main/resources/JavaJaxRS/beanValidation.mustache index 04e1c913c209..6a1093dba2d7 100644 --- a/modules/openapi-generator/src/main/resources/JavaJaxRS/beanValidation.mustache +++ b/modules/openapi-generator/src/main/resources/JavaJaxRS/beanValidation.mustache @@ -1 +1 @@ -{{#required}}@NotNull {{/required}}{{#isContainer}}{{^isPrimitiveType}}{{^isDate}}{{^isDateTime}}{{^isString}}{{^isFile}}{{^isEnum}}@Valid {{/isEnum}}{{/isFile}}{{/isString}}{{/isDateTime}}{{/isDate}}{{/isPrimitiveType}}{{/isContainer}}{{>beanValidationCore}} +{{#required}}@NotNull {{/required}}{{#isContainer}}{{^isPrimitiveType}}{{^isDate}}{{^isDateTime}}{{^isString}}{{^isFile}}{{^isEnum}}@Valid {{/isEnum}}{{/isFile}}{{/isString}}{{/isDateTime}}{{/isDate}}{{/isPrimitiveType}}{{/isContainer}}{{>beanValidationCore}} \ No newline at end of file diff --git a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/info.md b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/info.md index 792d0e1c1199..5f1571afb2eb 100644 --- a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/info.md +++ b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/info.md @@ -931,6 +931,7 @@ Here are some companies/projects (alphabetical order) using OpenAPI Generator in - 2023-12-10 - [UnityでOpenAPI Generatorを使う](https://www.youtube.com/watch?v=CbNwKVV5LRM) by [Soup Tori](https://www.youtube.com/@souptori8417) - 2024-03-04 - [Generating TypeScript Types with OpenAPI for REST API Consumption](https://www.pullrequest.com/blog/generating-typescript-types-with-openapi-for-rest-api-consumption/) by [PullRequest](https://www.pullrequest.com/) - 2024-03-07 - [Fully typed Web Apps with OpenAPI (Part 1)](https://medium.com/@gfox1984/fully-typed-web-apps-with-openapi-part-1-595d55766670) by [Guillaume Renard](https://medium.com/@gfox1984) +- 2024-03-08 - [Laravel OpenAPIによる "辛くない" スキーマ駆動開発](https://fortee.jp/phperkaigi-2024/proposal/9e2e6c38-d078-4efa-99b4-83ebf9033b34) by [KentarouTakeda](https://twitter.com/KentarouTakeda) ## [6 - About Us](#table-of-contents) diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/AnotherFakeApi.java index ac8e60cb4568..6224350644de 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/AnotherFakeApi.java @@ -63,7 +63,7 @@ public AnotherFakeApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Response call123testSpecialTags(@ApiParam(value = "to test uuid example value" ,required=true)@HeaderParam("uuid_test") UUID uuidTest,@ApiParam(value = "client model", required = true) @NotNull @Valid Client body,@Context SecurityContext securityContext) + public Response call123testSpecialTags(@ApiParam(value = "to test uuid example value" ,required=true)@HeaderParam("uuid_test") UUID uuidTest,@ApiParam(value = "client model", required = true) @NotNull Client body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.call123testSpecialTags(uuidTest, body, securityContext); } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeApi.java index c561efc23d80..5033b395871c 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeApi.java @@ -72,7 +72,7 @@ public FakeApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createXmlItem(@ApiParam(value = "XmlItem Body", required = true) @NotNull @Valid XmlItem xmlItem,@Context SecurityContext securityContext) + public Response createXmlItem(@ApiParam(value = "XmlItem Body", required = true) @NotNull XmlItem xmlItem,@Context SecurityContext securityContext) throws NotFoundException { return delegate.createXmlItem(xmlItem, securityContext); } @@ -96,7 +96,7 @@ public Response fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as po @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) - public Response fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body") @Valid OuterComposite body,@Context SecurityContext securityContext) + public Response fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body") OuterComposite body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeOuterCompositeSerialize(body, securityContext); } @@ -132,7 +132,7 @@ public Response fakeOuterStringSerialize(@ApiParam(value = "Input string as post @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Success", response = Void.class) }) - public Response testBodyWithFileSchema(@ApiParam(value = "", required = true) @NotNull @Valid FileSchemaTestClass body,@Context SecurityContext securityContext) + public Response testBodyWithFileSchema(@ApiParam(value = "", required = true) @NotNull FileSchemaTestClass body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testBodyWithFileSchema(body, securityContext); } @@ -144,7 +144,7 @@ public Response testBodyWithFileSchema(@ApiParam(value = "", required = true) @N @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Success", response = Void.class) }) - public Response testBodyWithQueryParams(@ApiParam(value = "", required = true) @QueryParam("query") @NotNull String query,@ApiParam(value = "", required = true) @NotNull @Valid User body,@Context SecurityContext securityContext) + public Response testBodyWithQueryParams(@ApiParam(value = "", required = true) @QueryParam("query") @NotNull String query,@ApiParam(value = "", required = true) @NotNull User body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testBodyWithQueryParams(query, body, securityContext); } @@ -156,7 +156,7 @@ public Response testBodyWithQueryParams(@ApiParam(value = "", required = true) @ @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Response testClientModel(@ApiParam(value = "client model", required = true) @NotNull @Valid Client body,@Context SecurityContext securityContext) + public Response testClientModel(@ApiParam(value = "client model", required = true) @NotNull Client body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testClientModel(body, securityContext); } @@ -185,7 +185,7 @@ public Response testEndpointParameters(@ApiParam(value = "None", required=true) @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid request", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "Not found", response = Void.class) }) - public Response testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $")@HeaderParam("enum_header_string_array") List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg")@HeaderParam("enum_header_string") String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)") @QueryParam("enum_query_string_array") @Valid List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue = "-efg") @DefaultValue("-efg") @QueryParam("enum_query_string") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1, -2") @QueryParam("enum_query_integer") Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1.1, -1.2") @QueryParam("enum_query_double") Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $", defaultValue="$") @DefaultValue("$") @FormParam("enum_form_string_array") List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @FormParam("enum_form_string") String enumFormString,@Context SecurityContext securityContext) + public Response testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $")@HeaderParam("enum_header_string_array") List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg")@HeaderParam("enum_header_string") String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)") @QueryParam("enum_query_string_array") List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue = "-efg") @DefaultValue("-efg") @QueryParam("enum_query_string") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1, -2") @QueryParam("enum_query_integer") Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1.1, -1.2") @QueryParam("enum_query_double") Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $", defaultValue="$") @DefaultValue("$") @FormParam("enum_form_string_array") List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @FormParam("enum_form_string") String enumFormString,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, securityContext); } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java index 4306f605e46c..94cf77f70ca3 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java @@ -64,7 +64,7 @@ public FakeClassnameTestApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Response testClassname(@ApiParam(value = "client model", required = true) @NotNull @Valid Client body,@Context SecurityContext securityContext) + public Response testClassname(@ApiParam(value = "client model", required = true) @NotNull Client body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testClassname(body, securityContext); } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/PetApi.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/PetApi.java index 5592f807547b..83bc858ead76 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/PetApi.java @@ -71,7 +71,7 @@ public PetApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class), @io.swagger.annotations.ApiResponse(code = 405, message = "Invalid input", response = Void.class) }) - public Response addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull @Valid Pet body,@Context SecurityContext securityContext) + public Response addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull Pet body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.addPet(body, securityContext); } @@ -107,7 +107,7 @@ public Response deletePet(@ApiParam(value = "Pet id to delete", required = true) @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid status value", response = Void.class) }) - public Response findPetsByStatus(@ApiParam(value = "Status values that need to be considered for filter", required = true) @QueryParam("status") @NotNull @Valid List status,@Context SecurityContext securityContext) + public Response findPetsByStatus(@ApiParam(value = "Status values that need to be considered for filter", required = true) @QueryParam("status") @NotNull List status,@Context SecurityContext securityContext) throws NotFoundException { return delegate.findPetsByStatus(status, securityContext); } @@ -161,7 +161,7 @@ public Response getPetById(@ApiParam(value = "ID of pet to return", required = t @io.swagger.annotations.ApiResponse(code = 404, message = "Pet not found", response = Void.class), @io.swagger.annotations.ApiResponse(code = 405, message = "Validation exception", response = Void.class) }) - public Response updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull @Valid Pet body,@Context SecurityContext securityContext) + public Response updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull Pet body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.updatePet(body, securityContext); } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/StoreApi.java index 4ef38ebed15f..0ba67e03b4e2 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/StoreApi.java @@ -105,7 +105,7 @@ public Response getOrderById(@ApiParam(value = "ID of pet that needs to be fetch @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Order.class), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid Order", response = Void.class) }) - public Response placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true) @NotNull @Valid Order body,@Context SecurityContext securityContext) + public Response placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true) @NotNull Order body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.placeOrder(body, securityContext); } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/UserApi.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/UserApi.java index 74f9e2658acb..aa38747c0376 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/UserApi.java @@ -63,7 +63,7 @@ public UserApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUser(@ApiParam(value = "Created user object", required = true) @NotNull @Valid User body,@Context SecurityContext securityContext) + public Response createUser(@ApiParam(value = "Created user object", required = true) @NotNull User body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.createUser(body, securityContext); } @@ -152,7 +152,7 @@ public Response logoutUser(@Context SecurityContext securityContext) @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid user supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = Void.class) }) - public Response updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathParam("username") @NotNull String username,@ApiParam(value = "Updated user object", required = true) @NotNull @Valid User body,@Context SecurityContext securityContext) + public Response updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathParam("username") @NotNull String username,@ApiParam(value = "Updated user object", required = true) @NotNull User body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.updateUser(username, body, securityContext); } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/EnumTest.java index 2e4561aac1a4..f7da249b1870 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/EnumTest.java @@ -277,7 +277,7 @@ public EnumTest outerEnum(OuterEnum outerEnum) { **/ @JsonProperty(value = "outerEnum") @ApiModelProperty(value = "") - @Valid + public OuterEnum getOuterEnum() { return outerEnum; } 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 e0c7903abc69..6abeb39e8b58 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 @@ -55,7 +55,7 @@ public FileSchemaTestClass _file(ModelFile _file) { **/ @JsonProperty(value = "file") @ApiModelProperty(value = "") - @Valid + public ModelFile getFile() { return _file; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/FormatTest.java index c358822b7761..4c106c946bc5 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/FormatTest.java @@ -183,7 +183,7 @@ public FormatTest number(BigDecimal number) { **/ @JsonProperty(value = "number") @ApiModelProperty(required = true, value = "") - @NotNull @Valid @DecimalMin("32.1") @DecimalMax("543.2") + @NotNull @DecimalMin("32.1") @DecimalMax("543.2") public BigDecimal getNumber() { return number; } @@ -387,7 +387,7 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { **/ @JsonProperty(value = "BigDecimal") @ApiModelProperty(value = "") - @Valid + public BigDecimal getBigDecimal() { return bigDecimal; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/NumberOnly.java index 6313a6cdbdcf..17b1c38ea0e2 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/NumberOnly.java @@ -47,7 +47,7 @@ public NumberOnly justNumber(BigDecimal justNumber) { **/ @JsonProperty(value = "JustNumber") @ApiModelProperty(value = "") - @Valid + public BigDecimal getJustNumber() { return justNumber; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/OuterComposite.java index 16d148ad2d65..5d3555ab8983 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/OuterComposite.java @@ -57,7 +57,7 @@ public OuterComposite myNumber(BigDecimal myNumber) { **/ @JsonProperty(value = "my_number") @ApiModelProperty(value = "") - @Valid + public BigDecimal getMyNumber() { return myNumber; } 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 290605a4c8c0..3e2b93c4dac1 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 @@ -133,7 +133,7 @@ public Pet category(Category category) { **/ @JsonProperty(value = "category") @ApiModelProperty(value = "") - @Valid + public Category getCategory() { return category; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/TypeHolderDefault.java index f44fc01fe77e..3a30e0125c79 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/TypeHolderDefault.java @@ -90,7 +90,7 @@ public TypeHolderDefault numberItem(BigDecimal numberItem) { **/ @JsonProperty(value = "number_item") @ApiModelProperty(required = true, value = "") - @NotNull @Valid + @NotNull public BigDecimal getNumberItem() { return numberItem; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/TypeHolderExample.java index d56e08720337..97eec551ce4f 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/TypeHolderExample.java @@ -95,7 +95,7 @@ public TypeHolderExample numberItem(BigDecimal numberItem) { **/ @JsonProperty(value = "number_item") @ApiModelProperty(example = "1.234", required = true, value = "") - @NotNull @Valid + @NotNull public BigDecimal getNumberItem() { return numberItem; } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/XmlItem.java index 7f2509b22ff1..14ed510b5875 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/XmlItem.java @@ -210,7 +210,7 @@ public XmlItem attributeNumber(BigDecimal attributeNumber) { **/ @JsonProperty(value = "attribute_number") @ApiModelProperty(example = "1.234", value = "") - @Valid + public BigDecimal getAttributeNumber() { return attributeNumber; } @@ -318,7 +318,7 @@ public XmlItem nameNumber(BigDecimal nameNumber) { **/ @JsonProperty(value = "name_number") @ApiModelProperty(example = "1.234", value = "") - @Valid + public BigDecimal getNameNumber() { return nameNumber; } @@ -454,7 +454,7 @@ public XmlItem prefixNumber(BigDecimal prefixNumber) { **/ @JsonProperty(value = "prefix_number") @ApiModelProperty(example = "1.234", value = "") - @Valid + public BigDecimal getPrefixNumber() { return prefixNumber; } @@ -590,7 +590,7 @@ public XmlItem namespaceNumber(BigDecimal namespaceNumber) { **/ @JsonProperty(value = "namespace_number") @ApiModelProperty(example = "1.234", value = "") - @Valid + public BigDecimal getNamespaceNumber() { return namespaceNumber; } @@ -726,7 +726,7 @@ public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { **/ @JsonProperty(value = "prefix_ns_number") @ApiModelProperty(example = "1.234", value = "") - @Valid + public BigDecimal getPrefixNsNumber() { return prefixNsNumber; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/AnotherFakeApi.java index 2cc9518351d6..23723443215b 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/AnotherFakeApi.java @@ -62,7 +62,7 @@ public AnotherFakeApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Response call123testSpecialTags(@ApiParam(value = "client model", required = true) @NotNull @Valid Client client,@Context SecurityContext securityContext) + public Response call123testSpecialTags(@ApiParam(value = "client model", required = true) @NotNull Client client,@Context SecurityContext securityContext) throws NotFoundException { return delegate.call123testSpecialTags(client, securityContext); } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/FakeApi.java index ada1d28638af..c02785b06054 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/FakeApi.java @@ -103,7 +103,7 @@ public Response fakeHealthGet(@Context SecurityContext securityContext) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "The instance started successfully", response = Void.class) }) - public Response fakeHttpSignatureTest(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull @Valid Pet pet,@ApiParam(value = "query parameter") @QueryParam("query_1") String query1,@ApiParam(value = "header parameter" )@HeaderParam("header_1") String header1,@Context SecurityContext securityContext) + public Response fakeHttpSignatureTest(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull Pet pet,@ApiParam(value = "query parameter") @QueryParam("query_1") String query1,@ApiParam(value = "header parameter" )@HeaderParam("header_1") String header1,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeHttpSignatureTest(pet, query1, header1, securityContext); } @@ -127,7 +127,7 @@ public Response fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as po @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) - public Response fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body") @Valid OuterComposite outerComposite,@Context SecurityContext securityContext) + public Response fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body") OuterComposite outerComposite,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeOuterCompositeSerialize(outerComposite, securityContext); } @@ -163,7 +163,7 @@ public Response fakeOuterStringSerialize(@ApiParam(value = "Input string as post @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Output enum (int)", response = OuterObjectWithEnumProperty.class) }) - public Response fakePropertyEnumIntegerSerialize(@ApiParam(value = "Input enum (int) as post body", required = true) @NotNull @Valid OuterObjectWithEnumProperty outerObjectWithEnumProperty,@Context SecurityContext securityContext) + public Response fakePropertyEnumIntegerSerialize(@ApiParam(value = "Input enum (int) as post body", required = true) @NotNull OuterObjectWithEnumProperty outerObjectWithEnumProperty,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakePropertyEnumIntegerSerialize(outerObjectWithEnumProperty, securityContext); } @@ -199,7 +199,7 @@ public Response testBodyWithBinary(@ApiParam(value = "image to upload", required @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Success", response = Void.class) }) - public Response testBodyWithFileSchema(@ApiParam(value = "", required = true) @NotNull @Valid FileSchemaTestClass fileSchemaTestClass,@Context SecurityContext securityContext) + public Response testBodyWithFileSchema(@ApiParam(value = "", required = true) @NotNull FileSchemaTestClass fileSchemaTestClass,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testBodyWithFileSchema(fileSchemaTestClass, securityContext); } @@ -211,7 +211,7 @@ public Response testBodyWithFileSchema(@ApiParam(value = "", required = true) @N @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Success", response = Void.class) }) - public Response testBodyWithQueryParams(@ApiParam(value = "", required = true) @QueryParam("query") @NotNull String query,@ApiParam(value = "", required = true) @NotNull @Valid User user,@Context SecurityContext securityContext) + public Response testBodyWithQueryParams(@ApiParam(value = "", required = true) @QueryParam("query") @NotNull String query,@ApiParam(value = "", required = true) @NotNull User user,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testBodyWithQueryParams(query, user, securityContext); } @@ -223,7 +223,7 @@ public Response testBodyWithQueryParams(@ApiParam(value = "", required = true) @ @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Response testClientModel(@ApiParam(value = "client model", required = true) @NotNull @Valid Client client,@Context SecurityContext securityContext) + public Response testClientModel(@ApiParam(value = "client model", required = true) @NotNull Client client,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testClientModel(client, securityContext); } @@ -252,7 +252,7 @@ public Response testEndpointParameters(@ApiParam(value = "None", required=true) @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid request", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "Not found", response = Void.class) }) - public Response testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $")@HeaderParam("enum_header_string_array") List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg")@HeaderParam("enum_header_string") String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)") @QueryParam("enum_query_string_array") @Valid List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue = "-efg") @DefaultValue("-efg") @QueryParam("enum_query_string") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1, -2") @QueryParam("enum_query_integer") Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1.1, -1.2") @QueryParam("enum_query_double") Double enumQueryDouble,@ApiParam(value = "") @QueryParam("enum_query_model_array") @Valid List enumQueryModelArray,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $", defaultValue="$") @DefaultValue("$") @FormParam("enum_form_string_array") List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @FormParam("enum_form_string") String enumFormString,@Context SecurityContext securityContext) + public Response testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $")@HeaderParam("enum_header_string_array") List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg")@HeaderParam("enum_header_string") String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)") @QueryParam("enum_query_string_array") List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue = "-efg") @DefaultValue("-efg") @QueryParam("enum_query_string") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1, -2") @QueryParam("enum_query_integer") Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1.1, -1.2") @QueryParam("enum_query_double") Double enumQueryDouble,@ApiParam(value = "") @QueryParam("enum_query_model_array") @Valid List enumQueryModelArray,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $", defaultValue="$") @DefaultValue("$") @FormParam("enum_form_string_array") List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @FormParam("enum_form_string") String enumFormString,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString, securityContext); } @@ -290,7 +290,7 @@ public Response testInlineAdditionalProperties(@ApiParam(value = "request body", @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response testInlineFreeformAdditionalProperties(@ApiParam(value = "request body", required = true) @NotNull @Valid TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest,@Context SecurityContext securityContext) + public Response testInlineFreeformAdditionalProperties(@ApiParam(value = "request body", required = true) @NotNull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest, securityContext); } @@ -314,7 +314,7 @@ public Response testJsonFormData(@ApiParam(value = "field1", required=true) @Fo @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response testNullable(@ApiParam(value = "request body", required = true) @NotNull @Valid ChildWithNullable childWithNullable,@Context SecurityContext securityContext) + public Response testNullable(@ApiParam(value = "request body", required = true) @NotNull ChildWithNullable childWithNullable,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testNullable(childWithNullable, securityContext); } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java index cae08da10f3a..f550ebd12f0f 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java @@ -64,7 +64,7 @@ public FakeClassnameTestApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Response testClassname(@ApiParam(value = "client model", required = true) @NotNull @Valid Client client,@Context SecurityContext securityContext) + public Response testClassname(@ApiParam(value = "client model", required = true) @NotNull Client client,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testClassname(client, securityContext); } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/PetApi.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/PetApi.java index 08cbaad7a95b..75a83b477548 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/PetApi.java @@ -71,7 +71,7 @@ public PetApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponse(code = 200, message = "Successful operation", response = Void.class), @io.swagger.annotations.ApiResponse(code = 405, message = "Invalid input", response = Void.class) }) - public Response addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull @Valid Pet pet,@Context SecurityContext securityContext) + public Response addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull Pet pet,@Context SecurityContext securityContext) throws NotFoundException { return delegate.addPet(pet, securityContext); } @@ -107,7 +107,7 @@ public Response deletePet(@ApiParam(value = "Pet id to delete", required = true) @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid status value", response = Void.class) }) - public Response findPetsByStatus(@ApiParam(value = "Status values that need to be considered for filter", required = true) @QueryParam("status") @NotNull @Valid List status,@Context SecurityContext securityContext) + public Response findPetsByStatus(@ApiParam(value = "Status values that need to be considered for filter", required = true) @QueryParam("status") @NotNull List status,@Context SecurityContext securityContext) throws NotFoundException { return delegate.findPetsByStatus(status, securityContext); } @@ -161,7 +161,7 @@ public Response getPetById(@ApiParam(value = "ID of pet to return", required = t @io.swagger.annotations.ApiResponse(code = 404, message = "Pet not found", response = Void.class), @io.swagger.annotations.ApiResponse(code = 405, message = "Validation exception", response = Void.class) }) - public Response updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull @Valid Pet pet,@Context SecurityContext securityContext) + public Response updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull Pet pet,@Context SecurityContext securityContext) throws NotFoundException { return delegate.updatePet(pet, securityContext); } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/StoreApi.java index 8dab60144f80..41980a82845b 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/StoreApi.java @@ -105,7 +105,7 @@ public Response getOrderById(@ApiParam(value = "ID of pet that needs to be fetch @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Order.class), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid Order", response = Void.class) }) - public Response placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true) @NotNull @Valid Order order,@Context SecurityContext securityContext) + public Response placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true) @NotNull Order order,@Context SecurityContext securityContext) throws NotFoundException { return delegate.placeOrder(order, securityContext); } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/UserApi.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/UserApi.java index 167f33a9b032..767dc8ba6f17 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/UserApi.java @@ -63,7 +63,7 @@ public UserApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUser(@ApiParam(value = "Created user object", required = true) @NotNull @Valid User user,@Context SecurityContext securityContext) + public Response createUser(@ApiParam(value = "Created user object", required = true) @NotNull User user,@Context SecurityContext securityContext) throws NotFoundException { return delegate.createUser(user, securityContext); } @@ -152,7 +152,7 @@ public Response logoutUser(@Context SecurityContext securityContext) @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid user supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = Void.class) }) - public Response updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathParam("username") @NotNull String username,@ApiParam(value = "Updated user object", required = true) @NotNull @Valid User user,@Context SecurityContext securityContext) + public Response updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathParam("username") @NotNull String username,@ApiParam(value = "Updated user object", required = true) @NotNull User user,@Context SecurityContext securityContext) throws NotFoundException { return delegate.updateUser(username, user, securityContext); } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/AllOfWithSingleRef.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/AllOfWithSingleRef.java index 6477dffc466d..5950a6351588 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/AllOfWithSingleRef.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/AllOfWithSingleRef.java @@ -72,7 +72,7 @@ public AllOfWithSingleRef singleRefType(SingleRefType singleRefType) { **/ @JsonProperty(value = "SingleRefType") @ApiModelProperty(value = "") - @Valid + public SingleRefType getSingleRefType() { return singleRefType; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/EnumTest.java index dc9f2eaeac40..272e4cc624cd 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/EnumTest.java @@ -294,7 +294,7 @@ public EnumTest outerEnum(OuterEnum outerEnum) { **/ @JsonProperty(value = "outerEnum") @ApiModelProperty(value = "") - @Valid + public OuterEnum getOuterEnum() { return outerEnum; } @@ -314,7 +314,7 @@ public EnumTest outerEnumInteger(OuterEnumInteger outerEnumInteger) { **/ @JsonProperty(value = "outerEnumInteger") @ApiModelProperty(value = "") - @Valid + public OuterEnumInteger getOuterEnumInteger() { return outerEnumInteger; } @@ -334,7 +334,7 @@ public EnumTest outerEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValu **/ @JsonProperty(value = "outerEnumDefaultValue") @ApiModelProperty(value = "") - @Valid + public OuterEnumDefaultValue getOuterEnumDefaultValue() { return outerEnumDefaultValue; } @@ -354,7 +354,7 @@ public EnumTest outerEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerE **/ @JsonProperty(value = "outerEnumIntegerDefaultValue") @ApiModelProperty(value = "") - @Valid + public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { return outerEnumIntegerDefaultValue; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/FakeBigDecimalMap200Response.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/FakeBigDecimalMap200Response.java index 068a6fc14832..e5a58110c968 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/FakeBigDecimalMap200Response.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/FakeBigDecimalMap200Response.java @@ -54,7 +54,7 @@ public FakeBigDecimalMap200Response someId(BigDecimal someId) { **/ @JsonProperty(value = "someId") @ApiModelProperty(value = "") - @Valid + public BigDecimal getSomeId() { return someId; } 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 ccf6d9e47573..eecfc172a761 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 @@ -54,7 +54,7 @@ public FileSchemaTestClass _file(ModelFile _file) { **/ @JsonProperty(value = "file") @ApiModelProperty(value = "") - @Valid + public ModelFile getFile() { return _file; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/FooGetDefaultResponse.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/FooGetDefaultResponse.java index 9ce131f43147..0bf0adeb5c76 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/FooGetDefaultResponse.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/FooGetDefaultResponse.java @@ -47,7 +47,7 @@ public FooGetDefaultResponse string(Foo string) { **/ @JsonProperty(value = "string") @ApiModelProperty(value = "") - @Valid + public Foo getString() { return string; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/FormatTest.java index 01861aad0745..faab54a453a5 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/FormatTest.java @@ -191,7 +191,7 @@ public FormatTest number(BigDecimal number) { **/ @JsonProperty(value = "number") @ApiModelProperty(required = true, value = "") - @NotNull @Valid @DecimalMin("32.1") @DecimalMax("543.2") + @NotNull @DecimalMin("32.1") @DecimalMax("543.2") public BigDecimal getNumber() { return number; } @@ -255,7 +255,7 @@ public FormatTest decimal(BigDecimal decimal) { **/ @JsonProperty(value = "decimal") @ApiModelProperty(value = "") - @Valid + public BigDecimal getDecimal() { return decimal; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/NullableClass.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/NullableClass.java index 364022df2aa1..0adcfc309e7c 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/NullableClass.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/NullableClass.java @@ -127,7 +127,7 @@ public NullableClass numberProp(BigDecimal numberProp) { **/ @JsonProperty(value = "number_prop") @ApiModelProperty(value = "") - @Valid + public BigDecimal getNumberProp() { return numberProp; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/NumberOnly.java index 3a8cec4eb651..b6f7958cc7c9 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/NumberOnly.java @@ -46,7 +46,7 @@ public NumberOnly justNumber(BigDecimal justNumber) { **/ @JsonProperty(value = "JustNumber") @ApiModelProperty(value = "") - @Valid + public BigDecimal getJustNumber() { return justNumber; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ObjectWithDeprecatedFields.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ObjectWithDeprecatedFields.java index e6efa493dc6e..1fc336e08a39 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ObjectWithDeprecatedFields.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/ObjectWithDeprecatedFields.java @@ -85,7 +85,7 @@ public ObjectWithDeprecatedFields id(BigDecimal id) { **/ @JsonProperty(value = "id") @ApiModelProperty(value = "") - @Valid + public BigDecimal getId() { return id; } @@ -105,7 +105,7 @@ public ObjectWithDeprecatedFields deprecatedRef(DeprecatedObject deprecatedRef) **/ @JsonProperty(value = "deprecatedRef") @ApiModelProperty(value = "") - @Valid + public DeprecatedObject getDeprecatedRef() { return deprecatedRef; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/OuterComposite.java index 88c2dc7d476a..50de6e3633d3 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/OuterComposite.java @@ -56,7 +56,7 @@ public OuterComposite myNumber(BigDecimal myNumber) { **/ @JsonProperty(value = "my_number") @ApiModelProperty(value = "") - @Valid + public BigDecimal getMyNumber() { return myNumber; } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/OuterObjectWithEnumProperty.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/OuterObjectWithEnumProperty.java index cd6a0022fbfd..d2aea5b3c34e 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/OuterObjectWithEnumProperty.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/OuterObjectWithEnumProperty.java @@ -47,7 +47,7 @@ public OuterObjectWithEnumProperty value(OuterEnumInteger value) { **/ @JsonProperty(value = "value") @ApiModelProperty(required = true, value = "") - @NotNull @Valid + @NotNull public OuterEnumInteger getValue() { return value; } 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 76f6a5be1ff5..551dac812ad2 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 @@ -132,7 +132,7 @@ public Pet category(Category category) { **/ @JsonProperty(value = "category") @ApiModelProperty(value = "") - @Valid + public Category getCategory() { return category; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/AnotherFakeApi.java index f58c037de3be..c38b31736d4b 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/AnotherFakeApi.java @@ -63,7 +63,7 @@ public AnotherFakeApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Response call123testSpecialTags(@ApiParam(value = "to test uuid example value" ,required=true)@HeaderParam("uuid_test") UUID uuidTest,@ApiParam(value = "client model", required = true) @NotNull @Valid Client body,@Context SecurityContext securityContext) + public Response call123testSpecialTags(@ApiParam(value = "to test uuid example value" ,required=true)@HeaderParam("uuid_test") UUID uuidTest,@ApiParam(value = "client model", required = true) @NotNull Client body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.call123testSpecialTags(uuidTest, body, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeApi.java index a70e4b27570a..eb8f41071456 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeApi.java @@ -70,7 +70,7 @@ public FakeApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createXmlItem(@ApiParam(value = "XmlItem Body", required = true) @NotNull @Valid XmlItem xmlItem,@Context SecurityContext securityContext) + public Response createXmlItem(@ApiParam(value = "XmlItem Body", required = true) @NotNull XmlItem xmlItem,@Context SecurityContext securityContext) throws NotFoundException { return delegate.createXmlItem(xmlItem, securityContext); } @@ -94,7 +94,7 @@ public Response fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as po @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) - public Response fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body") @Valid OuterComposite body,@Context SecurityContext securityContext) + public Response fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body") OuterComposite body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeOuterCompositeSerialize(body, securityContext); } @@ -130,7 +130,7 @@ public Response fakeOuterStringSerialize(@ApiParam(value = "Input string as post @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Success", response = Void.class) }) - public Response testBodyWithFileSchema(@ApiParam(value = "", required = true) @NotNull @Valid FileSchemaTestClass body,@Context SecurityContext securityContext) + public Response testBodyWithFileSchema(@ApiParam(value = "", required = true) @NotNull FileSchemaTestClass body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testBodyWithFileSchema(body, securityContext); } @@ -142,7 +142,7 @@ public Response testBodyWithFileSchema(@ApiParam(value = "", required = true) @N @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Success", response = Void.class) }) - public Response testBodyWithQueryParams(@ApiParam(value = "", required = true) @QueryParam("query") @NotNull String query,@ApiParam(value = "", required = true) @NotNull @Valid User body,@Context SecurityContext securityContext) + public Response testBodyWithQueryParams(@ApiParam(value = "", required = true) @QueryParam("query") @NotNull String query,@ApiParam(value = "", required = true) @NotNull User body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testBodyWithQueryParams(query, body, securityContext); } @@ -154,7 +154,7 @@ public Response testBodyWithQueryParams(@ApiParam(value = "", required = true) @ @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Response testClientModel(@ApiParam(value = "client model", required = true) @NotNull @Valid Client body,@Context SecurityContext securityContext) + public Response testClientModel(@ApiParam(value = "client model", required = true) @NotNull Client body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testClientModel(body, securityContext); } @@ -183,7 +183,7 @@ public Response testEndpointParameters(@ApiParam(value = "None", required=true) @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid request", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "Not found", response = Void.class) }) - public Response testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $")@HeaderParam("enum_header_string_array") List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg")@HeaderParam("enum_header_string") String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)") @QueryParam("enum_query_string_array") @Valid List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue = "-efg") @DefaultValue("-efg") @QueryParam("enum_query_string") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1, -2") @QueryParam("enum_query_integer") Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1.1, -1.2") @QueryParam("enum_query_double") Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $", defaultValue="$") @DefaultValue("$") @FormParam("enum_form_string_array") List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @FormParam("enum_form_string") String enumFormString,@Context SecurityContext securityContext) + public Response testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $")@HeaderParam("enum_header_string_array") List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg")@HeaderParam("enum_header_string") String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)") @QueryParam("enum_query_string_array") List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue = "-efg") @DefaultValue("-efg") @QueryParam("enum_query_string") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1, -2") @QueryParam("enum_query_integer") Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1.1, -1.2") @QueryParam("enum_query_double") Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $", defaultValue="$") @DefaultValue("$") @FormParam("enum_form_string_array") List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @FormParam("enum_form_string") String enumFormString,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeClassnameTags123Api.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeClassnameTags123Api.java index 35df7d25ecdf..cf3da81bc127 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeClassnameTags123Api.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeClassnameTags123Api.java @@ -64,7 +64,7 @@ public FakeClassnameTags123Api(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Response testClassname(@ApiParam(value = "client model", required = true) @NotNull @Valid Client body,@Context SecurityContext securityContext) + public Response testClassname(@ApiParam(value = "client model", required = true) @NotNull Client body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testClassname(body, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/PetApi.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/PetApi.java index aa7d11cf7660..a7a395d47ff2 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/PetApi.java @@ -71,7 +71,7 @@ public PetApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class), @io.swagger.annotations.ApiResponse(code = 405, message = "Invalid input", response = Void.class) }) - public Response addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull @Valid Pet body,@Context SecurityContext securityContext) + public Response addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull Pet body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.addPet(body, securityContext); } @@ -107,7 +107,7 @@ public Response deletePet(@ApiParam(value = "Pet id to delete", required = true) @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid status value", response = Void.class) }) - public Response findPetsByStatus(@ApiParam(value = "Status values that need to be considered for filter", required = true) @QueryParam("status") @NotNull @Valid List status,@Context SecurityContext securityContext) + public Response findPetsByStatus(@ApiParam(value = "Status values that need to be considered for filter", required = true) @QueryParam("status") @NotNull List status,@Context SecurityContext securityContext) throws NotFoundException { return delegate.findPetsByStatus(status, securityContext); } @@ -161,7 +161,7 @@ public Response getPetById(@ApiParam(value = "ID of pet to return", required = t @io.swagger.annotations.ApiResponse(code = 404, message = "Pet not found", response = Void.class), @io.swagger.annotations.ApiResponse(code = 405, message = "Validation exception", response = Void.class) }) - public Response updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull @Valid Pet body,@Context SecurityContext securityContext) + public Response updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull Pet body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.updatePet(body, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/StoreApi.java index 657cb56bb127..973dd30a3e4c 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/StoreApi.java @@ -105,7 +105,7 @@ public Response getOrderById(@ApiParam(value = "ID of pet that needs to be fetch @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Order.class), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid Order", response = Void.class) }) - public Response placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true) @NotNull @Valid Order body,@Context SecurityContext securityContext) + public Response placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true) @NotNull Order body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.placeOrder(body, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/UserApi.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/UserApi.java index 234fb06575c8..fc69a6a12ef0 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/UserApi.java @@ -63,7 +63,7 @@ public UserApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUser(@ApiParam(value = "Created user object", required = true) @NotNull @Valid User body,@Context SecurityContext securityContext) + public Response createUser(@ApiParam(value = "Created user object", required = true) @NotNull User body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.createUser(body, securityContext); } @@ -152,7 +152,7 @@ public Response logoutUser(@Context SecurityContext securityContext) @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid user supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = Void.class) }) - public Response updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathParam("username") @NotNull String username,@ApiParam(value = "Updated user object", required = true) @NotNull @Valid User body,@Context SecurityContext securityContext) + public Response updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathParam("username") @NotNull String username,@ApiParam(value = "Updated user object", required = true) @NotNull User body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.updateUser(username, body, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/EnumTest.java index f4461b465155..5bed38133bcf 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/EnumTest.java @@ -276,7 +276,7 @@ public EnumTest outerEnum(OuterEnum outerEnum) { **/ @JsonProperty(value = "outerEnum") @ApiModelProperty(value = "") - @Valid + public OuterEnum getOuterEnum() { return outerEnum; } 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 ccf6d9e47573..eecfc172a761 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 @@ -54,7 +54,7 @@ public FileSchemaTestClass _file(ModelFile _file) { **/ @JsonProperty(value = "file") @ApiModelProperty(value = "") - @Valid + public ModelFile getFile() { return _file; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/FormatTest.java index 6d9b649041c2..b91ad50e8f53 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/FormatTest.java @@ -181,7 +181,7 @@ public FormatTest number(BigDecimal number) { **/ @JsonProperty(value = "number") @ApiModelProperty(required = true, value = "") - @NotNull @Valid @DecimalMin("32.1") @DecimalMax("543.2") + @NotNull @DecimalMin("32.1") @DecimalMax("543.2") public BigDecimal getNumber() { return number; } @@ -385,7 +385,7 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { **/ @JsonProperty(value = "BigDecimal") @ApiModelProperty(value = "") - @Valid + public BigDecimal getBigDecimal() { return bigDecimal; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/NumberOnly.java index 3a8cec4eb651..b6f7958cc7c9 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/NumberOnly.java @@ -46,7 +46,7 @@ public NumberOnly justNumber(BigDecimal justNumber) { **/ @JsonProperty(value = "JustNumber") @ApiModelProperty(value = "") - @Valid + public BigDecimal getJustNumber() { return justNumber; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/OuterComposite.java index 88c2dc7d476a..50de6e3633d3 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/OuterComposite.java @@ -56,7 +56,7 @@ public OuterComposite myNumber(BigDecimal myNumber) { **/ @JsonProperty(value = "my_number") @ApiModelProperty(value = "") - @Valid + public BigDecimal getMyNumber() { return myNumber; } 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 76f6a5be1ff5..551dac812ad2 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 @@ -132,7 +132,7 @@ public Pet category(Category category) { **/ @JsonProperty(value = "category") @ApiModelProperty(value = "") - @Valid + public Category getCategory() { return category; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/TypeHolderDefault.java index ca08849db72d..94b998b9c925 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/TypeHolderDefault.java @@ -89,7 +89,7 @@ public TypeHolderDefault numberItem(BigDecimal numberItem) { **/ @JsonProperty(value = "number_item") @ApiModelProperty(required = true, value = "") - @NotNull @Valid + @NotNull public BigDecimal getNumberItem() { return numberItem; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/TypeHolderExample.java index 0014ea335007..0b76f14f4096 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/TypeHolderExample.java @@ -94,7 +94,7 @@ public TypeHolderExample numberItem(BigDecimal numberItem) { **/ @JsonProperty(value = "number_item") @ApiModelProperty(example = "1.234", required = true, value = "") - @NotNull @Valid + @NotNull public BigDecimal getNumberItem() { return numberItem; } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/XmlItem.java index 0364048b51f9..44bc2162833a 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/XmlItem.java @@ -209,7 +209,7 @@ public XmlItem attributeNumber(BigDecimal attributeNumber) { **/ @JsonProperty(value = "attribute_number") @ApiModelProperty(example = "1.234", value = "") - @Valid + public BigDecimal getAttributeNumber() { return attributeNumber; } @@ -317,7 +317,7 @@ public XmlItem nameNumber(BigDecimal nameNumber) { **/ @JsonProperty(value = "name_number") @ApiModelProperty(example = "1.234", value = "") - @Valid + public BigDecimal getNameNumber() { return nameNumber; } @@ -453,7 +453,7 @@ public XmlItem prefixNumber(BigDecimal prefixNumber) { **/ @JsonProperty(value = "prefix_number") @ApiModelProperty(example = "1.234", value = "") - @Valid + public BigDecimal getPrefixNumber() { return prefixNumber; } @@ -589,7 +589,7 @@ public XmlItem namespaceNumber(BigDecimal namespaceNumber) { **/ @JsonProperty(value = "namespace_number") @ApiModelProperty(example = "1.234", value = "") - @Valid + public BigDecimal getNamespaceNumber() { return namespaceNumber; } @@ -725,7 +725,7 @@ public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { **/ @JsonProperty(value = "prefix_ns_number") @ApiModelProperty(example = "1.234", value = "") - @Valid + public BigDecimal getPrefixNsNumber() { return prefixNsNumber; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/AnotherFakeApi.java index ac8e60cb4568..6224350644de 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/AnotherFakeApi.java @@ -63,7 +63,7 @@ public AnotherFakeApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Response call123testSpecialTags(@ApiParam(value = "to test uuid example value" ,required=true)@HeaderParam("uuid_test") UUID uuidTest,@ApiParam(value = "client model", required = true) @NotNull @Valid Client body,@Context SecurityContext securityContext) + public Response call123testSpecialTags(@ApiParam(value = "to test uuid example value" ,required=true)@HeaderParam("uuid_test") UUID uuidTest,@ApiParam(value = "client model", required = true) @NotNull Client body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.call123testSpecialTags(uuidTest, body, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeApi.java index 15f426ba35b8..b80f90855193 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeApi.java @@ -71,7 +71,7 @@ public FakeApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createXmlItem(@ApiParam(value = "XmlItem Body", required = true) @NotNull @Valid XmlItem xmlItem,@Context SecurityContext securityContext) + public Response createXmlItem(@ApiParam(value = "XmlItem Body", required = true) @NotNull XmlItem xmlItem,@Context SecurityContext securityContext) throws NotFoundException { return delegate.createXmlItem(xmlItem, securityContext); } @@ -95,7 +95,7 @@ public Response fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as po @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) - public Response fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body") @Valid OuterComposite body,@Context SecurityContext securityContext) + public Response fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body") OuterComposite body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeOuterCompositeSerialize(body, securityContext); } @@ -131,7 +131,7 @@ public Response fakeOuterStringSerialize(@ApiParam(value = "Input string as post @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Success", response = Void.class) }) - public Response testBodyWithFileSchema(@ApiParam(value = "", required = true) @NotNull @Valid FileSchemaTestClass body,@Context SecurityContext securityContext) + public Response testBodyWithFileSchema(@ApiParam(value = "", required = true) @NotNull FileSchemaTestClass body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testBodyWithFileSchema(body, securityContext); } @@ -143,7 +143,7 @@ public Response testBodyWithFileSchema(@ApiParam(value = "", required = true) @N @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Success", response = Void.class) }) - public Response testBodyWithQueryParams(@ApiParam(value = "", required = true) @QueryParam("query") @NotNull String query,@ApiParam(value = "", required = true) @NotNull @Valid User body,@Context SecurityContext securityContext) + public Response testBodyWithQueryParams(@ApiParam(value = "", required = true) @QueryParam("query") @NotNull String query,@ApiParam(value = "", required = true) @NotNull User body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testBodyWithQueryParams(query, body, securityContext); } @@ -155,7 +155,7 @@ public Response testBodyWithQueryParams(@ApiParam(value = "", required = true) @ @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Response testClientModel(@ApiParam(value = "client model", required = true) @NotNull @Valid Client body,@Context SecurityContext securityContext) + public Response testClientModel(@ApiParam(value = "client model", required = true) @NotNull Client body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testClientModel(body, securityContext); } @@ -184,7 +184,7 @@ public Response testEndpointParameters(@ApiParam(value = "None", required=true) @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid request", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "Not found", response = Void.class) }) - public Response testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $")@HeaderParam("enum_header_string_array") List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg")@HeaderParam("enum_header_string") String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)") @QueryParam("enum_query_string_array") @Valid List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue = "-efg") @DefaultValue("-efg") @QueryParam("enum_query_string") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1, -2") @QueryParam("enum_query_integer") Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1.1, -1.2") @QueryParam("enum_query_double") Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $", defaultValue="$") @DefaultValue("$") @FormParam("enum_form_string_array") List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @FormParam("enum_form_string") String enumFormString,@Context SecurityContext securityContext) + public Response testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $")@HeaderParam("enum_header_string_array") List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg")@HeaderParam("enum_header_string") String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)") @QueryParam("enum_query_string_array") List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue = "-efg") @DefaultValue("-efg") @QueryParam("enum_query_string") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1, -2") @QueryParam("enum_query_integer") Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1.1, -1.2") @QueryParam("enum_query_double") Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $", defaultValue="$") @DefaultValue("$") @FormParam("enum_form_string_array") List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @FormParam("enum_form_string") String enumFormString,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java index 4306f605e46c..94cf77f70ca3 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java @@ -64,7 +64,7 @@ public FakeClassnameTestApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) }) - public Response testClassname(@ApiParam(value = "client model", required = true) @NotNull @Valid Client body,@Context SecurityContext securityContext) + public Response testClassname(@ApiParam(value = "client model", required = true) @NotNull Client body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testClassname(body, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/PetApi.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/PetApi.java index 5592f807547b..83bc858ead76 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/PetApi.java @@ -71,7 +71,7 @@ public PetApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class), @io.swagger.annotations.ApiResponse(code = 405, message = "Invalid input", response = Void.class) }) - public Response addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull @Valid Pet body,@Context SecurityContext securityContext) + public Response addPet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull Pet body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.addPet(body, securityContext); } @@ -107,7 +107,7 @@ public Response deletePet(@ApiParam(value = "Pet id to delete", required = true) @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid status value", response = Void.class) }) - public Response findPetsByStatus(@ApiParam(value = "Status values that need to be considered for filter", required = true) @QueryParam("status") @NotNull @Valid List status,@Context SecurityContext securityContext) + public Response findPetsByStatus(@ApiParam(value = "Status values that need to be considered for filter", required = true) @QueryParam("status") @NotNull List status,@Context SecurityContext securityContext) throws NotFoundException { return delegate.findPetsByStatus(status, securityContext); } @@ -161,7 +161,7 @@ public Response getPetById(@ApiParam(value = "ID of pet to return", required = t @io.swagger.annotations.ApiResponse(code = 404, message = "Pet not found", response = Void.class), @io.swagger.annotations.ApiResponse(code = 405, message = "Validation exception", response = Void.class) }) - public Response updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull @Valid Pet body,@Context SecurityContext securityContext) + public Response updatePet(@ApiParam(value = "Pet object that needs to be added to the store", required = true) @NotNull Pet body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.updatePet(body, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/StoreApi.java index 4ef38ebed15f..0ba67e03b4e2 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/StoreApi.java @@ -105,7 +105,7 @@ public Response getOrderById(@ApiParam(value = "ID of pet that needs to be fetch @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Order.class), @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid Order", response = Void.class) }) - public Response placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true) @NotNull @Valid Order body,@Context SecurityContext securityContext) + public Response placeOrder(@ApiParam(value = "order placed for purchasing the pet", required = true) @NotNull Order body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.placeOrder(body, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/UserApi.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/UserApi.java index e9bcc058068f..5245c6240ee0 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/UserApi.java @@ -63,7 +63,7 @@ public UserApi(@Context ServletConfig servletContext) { @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) }) - public Response createUser(@ApiParam(value = "Created user object", required = true) @NotNull @Valid User body,@Context SecurityContext securityContext) + public Response createUser(@ApiParam(value = "Created user object", required = true) @NotNull User body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.createUser(body, securityContext); } @@ -152,7 +152,7 @@ public Response logoutUser(@Context SecurityContext securityContext) @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid user supplied", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = Void.class) }) - public Response updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathParam("username") @NotNull String username,@ApiParam(value = "Updated user object", required = true) @NotNull @Valid User body,@Context SecurityContext securityContext) + public Response updateUser(@ApiParam(value = "name that need to be deleted", required = true) @PathParam("username") @NotNull String username,@ApiParam(value = "Updated user object", required = true) @NotNull User body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.updateUser(username, body, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/EnumTest.java index f4461b465155..5bed38133bcf 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/EnumTest.java @@ -276,7 +276,7 @@ public EnumTest outerEnum(OuterEnum outerEnum) { **/ @JsonProperty(value = "outerEnum") @ApiModelProperty(value = "") - @Valid + public OuterEnum getOuterEnum() { return outerEnum; } 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 ccf6d9e47573..eecfc172a761 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 @@ -54,7 +54,7 @@ public FileSchemaTestClass _file(ModelFile _file) { **/ @JsonProperty(value = "file") @ApiModelProperty(value = "") - @Valid + public ModelFile getFile() { return _file; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/FormatTest.java index 6d9b649041c2..b91ad50e8f53 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/FormatTest.java @@ -181,7 +181,7 @@ public FormatTest number(BigDecimal number) { **/ @JsonProperty(value = "number") @ApiModelProperty(required = true, value = "") - @NotNull @Valid @DecimalMin("32.1") @DecimalMax("543.2") + @NotNull @DecimalMin("32.1") @DecimalMax("543.2") public BigDecimal getNumber() { return number; } @@ -385,7 +385,7 @@ public FormatTest bigDecimal(BigDecimal bigDecimal) { **/ @JsonProperty(value = "BigDecimal") @ApiModelProperty(value = "") - @Valid + public BigDecimal getBigDecimal() { return bigDecimal; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/NumberOnly.java index 3a8cec4eb651..b6f7958cc7c9 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/NumberOnly.java @@ -46,7 +46,7 @@ public NumberOnly justNumber(BigDecimal justNumber) { **/ @JsonProperty(value = "JustNumber") @ApiModelProperty(value = "") - @Valid + public BigDecimal getJustNumber() { return justNumber; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/OuterComposite.java index 88c2dc7d476a..50de6e3633d3 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/OuterComposite.java @@ -56,7 +56,7 @@ public OuterComposite myNumber(BigDecimal myNumber) { **/ @JsonProperty(value = "my_number") @ApiModelProperty(value = "") - @Valid + public BigDecimal getMyNumber() { return myNumber; } 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 76f6a5be1ff5..551dac812ad2 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 @@ -132,7 +132,7 @@ public Pet category(Category category) { **/ @JsonProperty(value = "category") @ApiModelProperty(value = "") - @Valid + public Category getCategory() { return category; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/TypeHolderDefault.java index ca08849db72d..94b998b9c925 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/TypeHolderDefault.java @@ -89,7 +89,7 @@ public TypeHolderDefault numberItem(BigDecimal numberItem) { **/ @JsonProperty(value = "number_item") @ApiModelProperty(required = true, value = "") - @NotNull @Valid + @NotNull public BigDecimal getNumberItem() { return numberItem; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/TypeHolderExample.java index 0014ea335007..0b76f14f4096 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/TypeHolderExample.java @@ -94,7 +94,7 @@ public TypeHolderExample numberItem(BigDecimal numberItem) { **/ @JsonProperty(value = "number_item") @ApiModelProperty(example = "1.234", required = true, value = "") - @NotNull @Valid + @NotNull public BigDecimal getNumberItem() { return numberItem; } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/XmlItem.java index 0364048b51f9..44bc2162833a 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/XmlItem.java @@ -209,7 +209,7 @@ public XmlItem attributeNumber(BigDecimal attributeNumber) { **/ @JsonProperty(value = "attribute_number") @ApiModelProperty(example = "1.234", value = "") - @Valid + public BigDecimal getAttributeNumber() { return attributeNumber; } @@ -317,7 +317,7 @@ public XmlItem nameNumber(BigDecimal nameNumber) { **/ @JsonProperty(value = "name_number") @ApiModelProperty(example = "1.234", value = "") - @Valid + public BigDecimal getNameNumber() { return nameNumber; } @@ -453,7 +453,7 @@ public XmlItem prefixNumber(BigDecimal prefixNumber) { **/ @JsonProperty(value = "prefix_number") @ApiModelProperty(example = "1.234", value = "") - @Valid + public BigDecimal getPrefixNumber() { return prefixNumber; } @@ -589,7 +589,7 @@ public XmlItem namespaceNumber(BigDecimal namespaceNumber) { **/ @JsonProperty(value = "namespace_number") @ApiModelProperty(example = "1.234", value = "") - @Valid + public BigDecimal getNamespaceNumber() { return namespaceNumber; } @@ -725,7 +725,7 @@ public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { **/ @JsonProperty(value = "prefix_ns_number") @ApiModelProperty(example = "1.234", value = "") - @Valid + public BigDecimal getPrefixNsNumber() { return prefixNsNumber; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/AnotherFakeApi.java index f0d1c071c205..7f6196aa8fbc 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/AnotherFakeApi.java @@ -67,7 +67,7 @@ public AnotherFakeApi(@Context ServletConfig servletContext) { @ApiResponse(responseCode = "200", description = "successful operation", content = @Content(schema = @Schema(implementation = Client.class))), }, tags={ "$another-fake?", }) - public Response call123testSpecialTags(@Schema(description = "client model", required = true) @NotNull @Valid Client client,@Context SecurityContext securityContext) + public Response call123testSpecialTags(@Schema(description = "client model", required = true) @NotNull Client client,@Context SecurityContext securityContext) throws NotFoundException { return delegate.call123testSpecialTags(client, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/FakeApi.java index ac2be3b4eca8..5b1f8d55b84c 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/FakeApi.java @@ -108,7 +108,7 @@ public Response fakeHealthGet(@Context SecurityContext securityContext) },security = { @SecurityRequirement(name = "http_signature_test") }, tags={ "fake", }) - public Response fakeHttpSignatureTest(@Schema(description = "Pet object that needs to be added to the store", required = true) @NotNull @Valid Pet pet,@Schema(description = "query parameter") @QueryParam("query_1") String query1,@Schema(description = "header parameter" )@HeaderParam("header_1") String header1,@Context SecurityContext securityContext) + public Response fakeHttpSignatureTest(@Schema(description = "Pet object that needs to be added to the store", required = true) @NotNull Pet pet,@Schema(description = "query parameter") @QueryParam("query_1") String query1,@Schema(description = "header parameter" )@HeaderParam("header_1") String header1,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeHttpSignatureTest(pet, query1, header1, securityContext); } @@ -134,7 +134,7 @@ public Response fakeOuterBooleanSerialize(@Schema(description = "Input boolean a @ApiResponse(responseCode = "200", description = "Output composite", content = @Content(schema = @Schema(implementation = OuterComposite.class))), }, tags={ "fake", }) - public Response fakeOuterCompositeSerialize(@Schema(description = "Input composite as post body") @Valid OuterComposite outerComposite,@Context SecurityContext securityContext) + public Response fakeOuterCompositeSerialize(@Schema(description = "Input composite as post body") OuterComposite outerComposite,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeOuterCompositeSerialize(outerComposite, securityContext); } @@ -173,7 +173,7 @@ public Response fakeOuterStringSerialize(@Schema(description = "Input string as @ApiResponse(responseCode = "200", description = "Output enum (int)", content = @Content(schema = @Schema(implementation = OuterObjectWithEnumProperty.class))), }, tags={ "fake", }) - public Response fakePropertyEnumIntegerSerialize(@Schema(description = "Input enum (int) as post body", required = true) @NotNull @Valid OuterObjectWithEnumProperty outerObjectWithEnumProperty,@Context SecurityContext securityContext) + public Response fakePropertyEnumIntegerSerialize(@Schema(description = "Input enum (int) as post body", required = true) @NotNull OuterObjectWithEnumProperty outerObjectWithEnumProperty,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakePropertyEnumIntegerSerialize(outerObjectWithEnumProperty, securityContext); } @@ -209,7 +209,7 @@ public Response testBodyWithBinary(@Schema(description = "image to upload", requ @ApiResponse(responseCode = "200", description = "Success", content = @Content(schema = @Schema(implementation = Void.class))), }, tags={ "fake", }) - public Response testBodyWithFileSchema(@Schema(description = "", required = true) @NotNull @Valid FileSchemaTestClass fileSchemaTestClass,@Context SecurityContext securityContext) + public Response testBodyWithFileSchema(@Schema(description = "", required = true) @NotNull FileSchemaTestClass fileSchemaTestClass,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testBodyWithFileSchema(fileSchemaTestClass, securityContext); } @@ -221,7 +221,7 @@ public Response testBodyWithFileSchema(@Schema(description = "", required = true @ApiResponse(responseCode = "200", description = "Success", content = @Content(schema = @Schema(implementation = Void.class))), }, tags={ "fake", }) - public Response testBodyWithQueryParams(@Schema(description = "") @QueryParam("query") @NotNull String query,@Schema(description = "", required = true) @NotNull @Valid User user,@Context SecurityContext securityContext) + public Response testBodyWithQueryParams(@Schema(description = "") @QueryParam("query") @NotNull String query,@Schema(description = "", required = true) @NotNull User user,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testBodyWithQueryParams(query, user, securityContext); } @@ -233,7 +233,7 @@ public Response testBodyWithQueryParams(@Schema(description = "") @QueryParam("q @ApiResponse(responseCode = "200", description = "successful operation", content = @Content(schema = @Schema(implementation = Client.class))), }, tags={ "fake", }) - public Response testClientModel(@Schema(description = "client model", required = true) @NotNull @Valid Client client,@Context SecurityContext securityContext) + public Response testClientModel(@Schema(description = "client model", required = true) @NotNull Client client,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testClientModel(client, securityContext); } @@ -261,7 +261,7 @@ public Response testEndpointParameters(@Schema(description = "None") @QueryParam @ApiResponse(responseCode = "404", description = "Not found", content = @Content(schema = @Schema(implementation = Void.class))), }, tags={ "fake", }) - public Response testEnumParameters(@Schema(description = "Header parameter enum test (string array)" , allowableValues=">, $")@HeaderParam("enum_header_string_array") List enumHeaderStringArray,@Schema(description = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg")@HeaderParam("enum_header_string") String enumHeaderString,@Schema(description = "Query parameter enum test (string array)") @QueryParam("enum_query_string_array") @Valid List enumQueryStringArray,@Schema(description = "Query parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue = "-efg") @DefaultValue("-efg") @QueryParam("enum_query_string") String enumQueryString,@Schema(description = "Query parameter enum test (double)", allowableValues="1, -2") @QueryParam("enum_query_integer") Integer enumQueryInteger,@Schema(description = "Query parameter enum test (double)", allowableValues="1.1, -1.2") @QueryParam("enum_query_double") Double enumQueryDouble,@Schema(description = "") @QueryParam("enum_query_model_array") @Valid List enumQueryModelArray,@Schema(description = "Form parameter enum test (string array)", allowableValues=">, $", defaultValue="$") @DefaultValue("$") @QueryParam("enum_form_string_array") List enumFormStringArray,@Schema(description = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @QueryParam("enum_form_string") String enumFormString,@Context SecurityContext securityContext) + public Response testEnumParameters(@Schema(description = "Header parameter enum test (string array)" , allowableValues=">, $")@HeaderParam("enum_header_string_array") List enumHeaderStringArray,@Schema(description = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg")@HeaderParam("enum_header_string") String enumHeaderString,@Schema(description = "Query parameter enum test (string array)") @QueryParam("enum_query_string_array") List enumQueryStringArray,@Schema(description = "Query parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue = "-efg") @DefaultValue("-efg") @QueryParam("enum_query_string") String enumQueryString,@Schema(description = "Query parameter enum test (double)", allowableValues="1, -2") @QueryParam("enum_query_integer") Integer enumQueryInteger,@Schema(description = "Query parameter enum test (double)", allowableValues="1.1, -1.2") @QueryParam("enum_query_double") Double enumQueryDouble,@Schema(description = "") @QueryParam("enum_query_model_array") @Valid List enumQueryModelArray,@Schema(description = "Form parameter enum test (string array)", allowableValues=">, $", defaultValue="$") @DefaultValue("$") @QueryParam("enum_form_string_array") List enumFormStringArray,@Schema(description = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @QueryParam("enum_form_string") String enumFormString,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString, securityContext); } @@ -297,7 +297,7 @@ public Response testInlineAdditionalProperties(@Schema(description = "request bo @ApiResponse(responseCode = "200", description = "successful operation", content = @Content(schema = @Schema(implementation = Void.class))), }, tags={ "fake", }) - public Response testInlineFreeformAdditionalProperties(@Schema(description = "request body", required = true) @NotNull @Valid TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest,@Context SecurityContext securityContext) + public Response testInlineFreeformAdditionalProperties(@Schema(description = "request body", required = true) @NotNull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest, securityContext); } @@ -321,7 +321,7 @@ public Response testJsonFormData(@Schema(description = "field1") @QueryParam("pa @ApiResponse(responseCode = "200", description = "successful operation", content = @Content(schema = @Schema(implementation = Void.class))), }, tags={ "fake", }) - public Response testNullable(@Schema(description = "request body", required = true) @NotNull @Valid ChildWithNullable childWithNullable,@Context SecurityContext securityContext) + public Response testNullable(@Schema(description = "request body", required = true) @NotNull ChildWithNullable childWithNullable,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testNullable(childWithNullable, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java index da5246403426..775ebfe89111 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java @@ -69,7 +69,7 @@ public FakeClassnameTestApi(@Context ServletConfig servletContext) { },security = { @SecurityRequirement(name = "api_key_query") }, tags={ "fake_classname_tags 123#$%^", }) - public Response testClassname(@Schema(description = "client model", required = true) @NotNull @Valid Client client,@Context SecurityContext securityContext) + public Response testClassname(@Schema(description = "client model", required = true) @NotNull Client client,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testClassname(client, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/PetApi.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/PetApi.java index 17dcf4f6668b..c9bd02cbaad1 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/PetApi.java @@ -73,7 +73,7 @@ public PetApi(@Context ServletConfig servletContext) { },security = { @SecurityRequirement(name = "petstore_auth", scopes={ "write:pets", "read:pets" }) }, tags={ "pet", }) - public Response addPet(@Schema(description = "Pet object that needs to be added to the store", required = true) @NotNull @Valid Pet pet,@Context SecurityContext securityContext) + public Response addPet(@Schema(description = "Pet object that needs to be added to the store", required = true) @NotNull Pet pet,@Context SecurityContext securityContext) throws NotFoundException { return delegate.addPet(pet, securityContext); } @@ -104,7 +104,7 @@ public Response deletePet(@Schema(description= "Pet id to delete", required = tr },security = { @SecurityRequirement(name = "petstore_auth", scopes={ "write:pets", "read:pets" }) }, tags={ "pet", }) - public Response findPetsByStatus(@Schema(description = "Status values that need to be considered for filter") @QueryParam("status") @NotNull @Valid List status,@Context SecurityContext securityContext) + public Response findPetsByStatus(@Schema(description = "Status values that need to be considered for filter") @QueryParam("status") @NotNull List status,@Context SecurityContext securityContext) throws NotFoundException { return delegate.findPetsByStatus(status, securityContext); } @@ -157,7 +157,7 @@ public Response getPetById(@Schema(description= "ID of pet to return", required },security = { @SecurityRequirement(name = "petstore_auth", scopes={ "write:pets", "read:pets" }) }, tags={ "pet", }) - public Response updatePet(@Schema(description = "Pet object that needs to be added to the store", required = true) @NotNull @Valid Pet pet,@Context SecurityContext securityContext) + public Response updatePet(@Schema(description = "Pet object that needs to be added to the store", required = true) @NotNull Pet pet,@Context SecurityContext securityContext) throws NotFoundException { return delegate.updatePet(pet, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/StoreApi.java index 06639a72f971..7d993603e91d 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/StoreApi.java @@ -114,7 +114,7 @@ public Response getOrderById(@Schema(description= "ID of pet that needs to be fe @ApiResponse(responseCode = "400", description = "Invalid Order", content = @Content(schema = @Schema(implementation = Void.class))), }, tags={ "store", }) - public Response placeOrder(@Schema(description = "order placed for purchasing the pet", required = true) @NotNull @Valid Order order,@Context SecurityContext securityContext) + public Response placeOrder(@Schema(description = "order placed for purchasing the pet", required = true) @NotNull Order order,@Context SecurityContext securityContext) throws NotFoundException { return delegate.placeOrder(order, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/UserApi.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/UserApi.java index 942c748f219d..b8b25d753075 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/UserApi.java @@ -67,7 +67,7 @@ public UserApi(@Context ServletConfig servletContext) { @ApiResponse(responseCode = "200", description = "successful operation", content = @Content(schema = @Schema(implementation = Void.class))), }, tags={ "user", }) - public Response createUser(@Schema(description = "Created user object", required = true) @NotNull @Valid User user,@Context SecurityContext securityContext) + public Response createUser(@Schema(description = "Created user object", required = true) @NotNull User user,@Context SecurityContext securityContext) throws NotFoundException { return delegate.createUser(user, securityContext); } @@ -159,7 +159,7 @@ public Response logoutUser(@Context SecurityContext securityContext) @ApiResponse(responseCode = "404", description = "User not found", content = @Content(schema = @Schema(implementation = Void.class))), }, tags={ "user", }) - public Response updateUser(@Schema(description= "name that need to be deleted", required = true) @PathParam("username") @NotNull String username,@Schema(description = "Updated user object", required = true) @NotNull @Valid User user,@Context SecurityContext securityContext) + public Response updateUser(@Schema(description= "name that need to be deleted", required = true) @PathParam("username") @NotNull String username,@Schema(description = "Updated user object", required = true) @NotNull User user,@Context SecurityContext securityContext) throws NotFoundException { return delegate.updateUser(username, user, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/AllOfWithSingleRef.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/AllOfWithSingleRef.java index 1b2e25250a86..1754b7c9f51a 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/AllOfWithSingleRef.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/AllOfWithSingleRef.java @@ -71,7 +71,7 @@ public AllOfWithSingleRef singleRefType(SingleRefType singleRefType) { **/ @JsonProperty(value = "SingleRefType") @Schema(description = "") - @Valid + public SingleRefType getSingleRefType() { return singleRefType; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/EnumTest.java index 834fdc050aef..5c3d49410d84 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/EnumTest.java @@ -293,7 +293,7 @@ public EnumTest outerEnum(OuterEnum outerEnum) { **/ @JsonProperty(value = "outerEnum") @Schema(description = "") - @Valid + public OuterEnum getOuterEnum() { return outerEnum; } @@ -313,7 +313,7 @@ public EnumTest outerEnumInteger(OuterEnumInteger outerEnumInteger) { **/ @JsonProperty(value = "outerEnumInteger") @Schema(description = "") - @Valid + public OuterEnumInteger getOuterEnumInteger() { return outerEnumInteger; } @@ -333,7 +333,7 @@ public EnumTest outerEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValu **/ @JsonProperty(value = "outerEnumDefaultValue") @Schema(description = "") - @Valid + public OuterEnumDefaultValue getOuterEnumDefaultValue() { return outerEnumDefaultValue; } @@ -353,7 +353,7 @@ public EnumTest outerEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerE **/ @JsonProperty(value = "outerEnumIntegerDefaultValue") @Schema(description = "") - @Valid + public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { return outerEnumIntegerDefaultValue; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/FakeBigDecimalMap200Response.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/FakeBigDecimalMap200Response.java index a62bac6344dc..9403fd3a6d53 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/FakeBigDecimalMap200Response.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/FakeBigDecimalMap200Response.java @@ -53,7 +53,7 @@ public FakeBigDecimalMap200Response someId(BigDecimal someId) { **/ @JsonProperty(value = "someId") @Schema(description = "") - @Valid + public BigDecimal getSomeId() { return someId; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/FileSchemaTestClass.java index 5192983e5006..b2c77afcc292 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/FileSchemaTestClass.java @@ -53,7 +53,7 @@ public FileSchemaTestClass _file(ModelFile _file) { **/ @JsonProperty(value = "file") @Schema(description = "") - @Valid + public ModelFile getFile() { return _file; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/FooGetDefaultResponse.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/FooGetDefaultResponse.java index 06f3515c8521..b7aedccda509 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/FooGetDefaultResponse.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/FooGetDefaultResponse.java @@ -46,7 +46,7 @@ public FooGetDefaultResponse string(Foo string) { **/ @JsonProperty(value = "string") @Schema(description = "") - @Valid + public Foo getString() { return string; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/FormatTest.java index cda35bcf7387..df535f84f96a 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/FormatTest.java @@ -190,7 +190,7 @@ public FormatTest number(BigDecimal number) { **/ @JsonProperty(value = "number") @Schema(required = true, description = "") - @NotNull @Valid @DecimalMin("32.1") @DecimalMax("543.2") + @NotNull @DecimalMin("32.1") @DecimalMax("543.2") public BigDecimal getNumber() { return number; } @@ -254,7 +254,7 @@ public FormatTest decimal(BigDecimal decimal) { **/ @JsonProperty(value = "decimal") @Schema(description = "") - @Valid + public BigDecimal getDecimal() { return decimal; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/NullableClass.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/NullableClass.java index b4b9b887618f..09a63ee39ad1 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/NullableClass.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/NullableClass.java @@ -126,7 +126,7 @@ public NullableClass numberProp(BigDecimal numberProp) { **/ @JsonProperty(value = "number_prop") @Schema(description = "") - @Valid + public BigDecimal getNumberProp() { return numberProp; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/NumberOnly.java index 72148b4e65be..531c9fd125fe 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/NumberOnly.java @@ -45,7 +45,7 @@ public NumberOnly justNumber(BigDecimal justNumber) { **/ @JsonProperty(value = "JustNumber") @Schema(description = "") - @Valid + public BigDecimal getJustNumber() { return justNumber; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ObjectWithDeprecatedFields.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ObjectWithDeprecatedFields.java index 157318b051e8..ae8740a8d7fd 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ObjectWithDeprecatedFields.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/ObjectWithDeprecatedFields.java @@ -84,7 +84,7 @@ public ObjectWithDeprecatedFields id(BigDecimal id) { **/ @JsonProperty(value = "id") @Schema(description = "") - @Valid + public BigDecimal getId() { return id; } @@ -104,7 +104,7 @@ public ObjectWithDeprecatedFields deprecatedRef(DeprecatedObject deprecatedRef) **/ @JsonProperty(value = "deprecatedRef") @Schema(description = "") - @Valid + public DeprecatedObject getDeprecatedRef() { return deprecatedRef; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/OuterComposite.java index fae0b0a7c253..5a34e94ee5ec 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/OuterComposite.java @@ -55,7 +55,7 @@ public OuterComposite myNumber(BigDecimal myNumber) { **/ @JsonProperty(value = "my_number") @Schema(description = "") - @Valid + public BigDecimal getMyNumber() { return myNumber; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/OuterObjectWithEnumProperty.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/OuterObjectWithEnumProperty.java index 16e8982cd985..86531dd2fd5f 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/OuterObjectWithEnumProperty.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/OuterObjectWithEnumProperty.java @@ -46,7 +46,7 @@ public OuterObjectWithEnumProperty value(OuterEnumInteger value) { **/ @JsonProperty(value = "value") @Schema(required = true, description = "") - @NotNull @Valid + @NotNull public OuterEnumInteger getValue() { return value; } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Pet.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Pet.java index 9c8088434935..ed543304ac7a 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/Pet.java @@ -131,7 +131,7 @@ public Pet category(Category category) { **/ @JsonProperty(value = "category") @Schema(description = "") - @Valid + public Category getCategory() { return category; } From 598578648a98bd9e39a0eafda2b4f9c21c1e7b0f Mon Sep 17 00:00:00 2001 From: William Cheng Date: Wed, 24 Apr 2024 15:44:55 +0800 Subject: [PATCH 5/5] use isEnumOrRef instead --- .../src/main/resources/JavaJaxRS/beanValidation.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/openapi-generator/src/main/resources/JavaJaxRS/beanValidation.mustache b/modules/openapi-generator/src/main/resources/JavaJaxRS/beanValidation.mustache index 6a1093dba2d7..a9b694c54f3d 100644 --- a/modules/openapi-generator/src/main/resources/JavaJaxRS/beanValidation.mustache +++ b/modules/openapi-generator/src/main/resources/JavaJaxRS/beanValidation.mustache @@ -1 +1 @@ -{{#required}}@NotNull {{/required}}{{#isContainer}}{{^isPrimitiveType}}{{^isDate}}{{^isDateTime}}{{^isString}}{{^isFile}}{{^isEnum}}@Valid {{/isEnum}}{{/isFile}}{{/isString}}{{/isDateTime}}{{/isDate}}{{/isPrimitiveType}}{{/isContainer}}{{>beanValidationCore}} \ No newline at end of file +{{#required}}@NotNull {{/required}}{{#isContainer}}{{^isPrimitiveType}}{{^isDate}}{{^isDateTime}}{{^isString}}{{^isFile}}{{^isEnumOrRef}}@Valid {{/isEnumOrRef}}{{/isFile}}{{/isString}}{{/isDateTime}}{{/isDate}}{{/isPrimitiveType}}{{/isContainer}}{{>beanValidationCore}} \ No newline at end of file